Hi, We have a need to add some hw dependent feature that is not defined officially as constants in PackageManager. I wonder what are the restrictions on string values returned from PackageManager.getSystemAvailableFeatures(). From latest CTS code, it seems to suggest OEMs can implement non-official features and return from this call as long as the feature string does not start with "android".
See lines 83-97 in https://android.googlesource.com/platform/cts/+/5f330b951b7771b0dc08004b923516284fd4bfe9/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java. It seems to suggest to use namespace other than "android" for non-official features. So return a feature string like "com.mycompany.myfeature" would be OK? If so, can "com.mycompany.myfeature" be used as value for "uses-feature" tag in AndroidManifest.xml so applications requiring that feature will only be installed on device with that feature? Have anyone done this sort of things before? Or anyone from Google can comment or confirm that is expected usage? Thanks Haitao -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
