The touch screen is probably a feature.
Also extend the feature APIs a bit. Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user