The touch screen is probably a feature.

Also extend the feature APIs a bit.

Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
This commit is contained in:
Dianne Hackborn
2009-09-26 16:39:23 -07:00
parent 075a18d607
commit 039c68e756
9 changed files with 124 additions and 1 deletions

View File

@@ -1103,6 +1103,12 @@ class PackageManagerService extends IPackageManager.Stub {
return null;
}
public boolean hasSystemFeature(String name) {
synchronized (mPackages) {
return mAvailableFeatures.containsKey(name);
}
}
public int checkPermission(String permName, String pkgName) {
synchronized (mPackages) {
PackageParser.Package p = mPackages.get(pkgName);