我刚刚在Play商店上传了一个用于alpha测试的Android应用程序,下面是它的aapt dump badging详细信息。它表明此应用程序与我的Galaxy Nexus与Android 4.3不兼容。我一直在这款手机上测试这个应用程序。 我似乎无法弄清楚我做错了什么。我的另一部手机是4.2.2似乎是兼容的。
./aapt dump badging ~/Desktop/MyApp.apk
package: name='com.example.MyApp' versionCode='4' versionName='1.4'
sdkVersion:'14'
targetSdkVersion:'18'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission:'android.permission.READ_PHONE_STATE'
uses-permission:'android.permission.SYSTEM_ALERT_WINDOW'
uses-permission:'android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission:'android.permission.GET_ACCOUNTS'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
uses-permission:'com.google.android.providers.gsf.permission.READ_GSERVICES'
application-label:'MyApp'
application-icon-160:'res/drawable/icon.png'
application-icon-240:'res/drawable/icon.png'
application-icon-320:'res/drawable/icon.png'
application-icon-480:'res/drawable/icon.png'
application: label='MyApp' icon='res/drawable/icon.png'
launchable-activity: name='com.example.MyApp.MyActivity' label='' icon=''
uses-permission:'android.permission.READ_EXTERNAL_STORAGE'
uses-implied-permission:'android.permission.READ_EXTERNAL_STORAGE','requested WRITE_EXTERNAL_STORAGE'
uses-feature:'android.hardware.location'
uses-implied-feature:'android.hardware.location','requested a location access permission'
uses-feature:'android.hardware.location.gps'
uses-implied-feature:'android.hardware.location.gps','requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature:'android.hardware.location.network'
uses-implied-feature:'android.hardware.location.network','requested android.permission.ACCESS_COURSE_LOCATION permission'
uses-feature:'android.hardware.touchscreen'
uses-implied-feature:'android.hardware.touchscreen','assumed you require a touch screen unless explicitly made optional'
uses-feature:'android.hardware.screen.portrait'
uses-implied-feature:'android.hardware.screen.portrait','one or more activities have specified a portrait orientation'
main
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'ca' 'da' 'fa' 'ja' 'nb' 'be' 'de' 'af' 'bg' 'th' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'nl' 'pl' 'sl' 'tl' 'am' 'in' 'ko' 'ro' 'ar' 'fr' 'hr' 'sr' 'tr' 'cs' 'es' 'ms' 'et' 'it' 'lt' 'pt' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'en_GB' 'zh_CN' 'pt_BR' 'es_US' 'pt_PT' 'zh_TW'
densities: '160' '240' '320' '480'
答案 0 :(得分:0)
你可以调用PackageManager.hasSystemFeature()并检查在使用Android 4.3的Nexus中是否支持uset feature by appt中列出的所有功能