android - Playstore 中 10 英寸平板电脑的应用列表,但不显示 7 英寸平板电脑

标签 android google-play android-manifest

我已经按照其他帖子的建议检查了使用权限、使用功能和支持屏幕。我已经在 Playstore 中上传了一个应用程序作为更新,其中包含以下 list 文件。以前的版本工作正常。该项目早些时候在 eclipse 中,现在已移至 android studio。我遇到了 list 合并,因为已经使用了很多库,因此不必要地添加了很多权限,因此我分别删除了每个库。也检查了使用权限和使用功能。 manifest 与之前版本的变化用星号表示

我的应用程序必须只支持平板电脑。

这是主 list 文件。

<?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="com.xx.yy"
        android:versionCode="13"
        android:versionName="1.8.1">

        <uses-sdk
            android:minSdkVersion="14"
            android:targetSdkVersion="19" />

        <supports-screens
            android:largeScreens="true"
            android:normalScreens="false"
            android:requiresSmallestWidthDp="600"
            android:smallScreens="false"
            android:xlargeScreens="true"
            *tools:replace="android:normalScreens,android:smallScreens" />

        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.CAMERA" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

        <uses-feature android:name="android.hardware.camera" />
        *<uses-feature
        *    android:name="android.hardware.location.gps"
        *    android:required="false" />

*<uses-feature
        *    android:name="android.hardware.location.network"
        *    android:required="false" />

        <uses-permission android:name="android.permission.GET_ACCOUNTS" />
        <uses-permission android:name="android.permission.WAKE_LOCK" />

        <permission
            android:name="com.xx.yy.permission.C2D_MESSAGE"
            android:protectionLevel="signature" />

        <uses-permission android:name="com.xx.yy.permission.C2D_MESSAGE" />
        <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
        <uses-permission android:name="android.permission.GET_TASKS" />
        <uses-permission android:name="android.permission.REORDER_TASKS" />
        *<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
     *   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>*

        *<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" tools:node="remove"/>
       * <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" tools:node="remove"/>
       * <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" tools:node="remove"/>
      *  <uses-permission android:name="android.permission.VIBRATE"  tools:node="remove"/>
       * <uses-permission android:name="android.permission.FLASHLIGHT"  tools:node="remove"/>
      *  <uses-permission android:name="android.permission.READ_CONTACTS"  tools:node="remove"/>
    </manifest>

在先前版本上运行 dump badging 后的 AAPT 属性。

package: name='om.xx.yyy' versionCode='8' versionName='1.7' platformBuildVersionName='5.0.1-1624448'
sdkVersion:'11'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.GET_ACCOUNTS'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='com.hp.wallartsolutions2.permission.C2D_MESSAGE'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.REORDER_TASKS'

application-icon-120:'res/drawable-mdpi-v4/icon.png'
application-icon-160:'res/drawable-mdpi-v4/icon.png'
application-icon-240:'res/drawable-hdpi-v4/icon.png'
application-icon-320:'res/drawable-xhdpi-v4/icon.png'
application-icon-480:'res/drawable-xxhdpi-v4/icon.png'
application: label='xyz' icon='res/drawable-mdpi-v4/hp_icon.png'
launchable-activity: name='com.xx.yyy.ui.SplashScreenActivity'  label='' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature: name='android.hardware.screen.landscape'
  uses-implied-feature: name='android.hardware.screen.landscape' reason='one or more activities have specified a landscape orientation'
  uses-feature: name='android.hardware.touchscreen'
  uses-implied-feature: name='android.hardware.touchscreen' reason='default feature for all apps'
main
other-activities
other-receivers
other-services
supports-screens: 'large' 'xlarge'
supports-any-density: 'true'
requires-smallest-width:'600'
locales: '--_--' 'ca' 'da' 'fa' 'ja' 'nb' 'id' 'be' 'de' 'he' 'af' 'bg' 'th' 'zh' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'nl' 'pl' 'sl' 'tl' 'am' 'in' 'ko' 'ro' 'ar' 'fr' 'hr' 'sr' 'tr' 'cs' 'es' 'ms' 'it' 'lt' 'pt' 'eu' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'fr-CA' 'lo-LA' 'en-GB' 'et-EE' 'ka-GE' 'km-KH' 'zh-HK' 'hy-AM' 'zh-CN' 'en-IN' 'mn-MN' 'pt-BR' 'es-ES' 'es-US' 'pt-PT' 'zh-TW' 'ms-MY'
densities: '120' '160' '240' '320' '480'
native-code: 'armeabi' 'armeabi-v7a'

我尝试在当前版本的 apk 上运行 aapt dump badging 以查找 apk 属性。 这是结果。

package: name='com.xx.yyy' versionCode='13' versionName='1.8.1' platformBuildVersionName='4.4W.2-1537038'
sdkVersion:'14'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.GET_ACCOUNTS'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='com.xx.yyy.permission.C2D_MESSAGE'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.REORDER_TASKS'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
application-label:'xyz'
application-icon-120:'res/drawable-mdpi-v4/icon.png'
application-icon-160:'res/drawable-mdpi-v4/icon.png'
application-icon-240:'res/drawable-hdpi-v4/icon.png'
application-icon-320:'res/drawable-xhdpi-v4/icon.png'
application-icon-480:'res/drawable-xxhdpi-v4/icon.png'
application: label='xyz' icon='res/drawable-mdpi-v4/icon.png'
launchable-activity: name='com.xx.yy.zz.SplashScreenActivity'  label='' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature-not-required: name='android.hardware.camera.autofocus'
  uses-feature-not-required: name='android.hardware.camera.flash'
  uses-feature-not-required: name='android.hardware.camera.front'
  uses-feature-not-required: name='android.hardware.location.gps'
  uses-feature: name='android.hardware.screen.landscape'
  uses-feature: name='android.hardware.touchscreen'
  uses-feature-not-required: name='android.hardware.wifi'
  uses-feature: name='android.hardware.location'
  uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
  uses-feature: name='android.hardware.location.network'
  uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission'
main
other-activities
other-receivers
other-services
supports-screens: 'large' 'xlarge'
supports-any-density: 'true'
requires-smallest-width:'600'
locales: '--_--' 'ca' 'da' 'fa' 'ja' 'pa' 'ta' 'nb' 'id' 'be' 'de' 'he' 'te' 'af' 'bg' 'th' 'zh' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'ml' 'nl' 'pl' 'sl' 'tl' 'am' 'bn' 'in' 'kn' 'ko' 'ro' 'ar' 'fr' 'hr' 'mr' 'sr' 'tr' 'cs' 'es' 'ms' 'it' 'lt' 'pt' 'eu' 'gu' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'fr-CA' 'lo-LA' 'en-GB' 'et-EE' 'ka-GE' 'km-KH' 'zh-HK' 'hy-AM' 'zh-CN' 'en-IN' 'mn-MN' 'pt-BR' 'es-ES' 'es-US' 'pt-PT' 'zh-TW' 'ms-MY'
densities: '120' '160' '240' '320' '480'
native-code: 'armeabi' 'armeabi-v7a'

我是否遗漏了一些东西,以便 7 英寸设备也可以看到该应用程序?我的应用程序必须只支持平板电脑。 该应用程序未列出任何 7 英寸设备。 aapt dump badging 命令显示对大型和超大型设备的支持。

Manifest 合并是由于 zing library 以下是 library 中的权限

<manifest
    package="com.google.zxing.client.android"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:installLocation="auto"
    android:versionCode="94"
    android:versionName="4.5.1">

    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.FLASHLIGHT"/>
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
    <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="19"/>

    <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
    <uses-feature
        android:name="android.hardware.camera"
        android:required="false"/>
    <uses-feature
        android:name="android.hardware.camera.front"
        android:required="false"/>
    <!-- TODO replace above two with next line after Android 4.2 -->
    <!-- <uses-feature android:name="android.hardware.camera.any"/> -->
    <uses-feature
        android:name="android.hardware.camera.autofocus"
        android:required="false"/>
    <uses-feature
        android:name="android.hardware.camera.flash"
        android:required="false"/>
    <uses-feature android:name="android.hardware.screen.landscape"/>
    <uses-feature
        android:name="android.hardware.wifi"
        android:required="false"/>
    <!-- This excludes Google TV, which is unfortunately included by virtue of not requiring a camera -->
    <uses-feature android:name="android.hardware.touchscreen"/>
    <!-- TODO make this not required again after android.hardware.camera.any is available -->

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true"/>

</manifest>

更新 1:我将使用功能 android.hardware.location.gps 更改为 false,它不会直接出现在 playstore 搜索中。但是当从浏览器搜索并按下安装时,导航到 playstore 并成功安装。我正在使用 HP Slate 7 安装 http://www.gsmarena.com/hp_slate_7-5317.php

更新 2:我已将 uses 功能 android.hardware.location.network 更改为 false 并上传了测试版。等待它现在处于 Activity 状态

最佳答案

这不是权限问题而是<support-screens>导致这个的 block 。

    <supports-screens
        android:largeScreens="true"
        android:normalScreens="false"
        android:requiresSmallestWidthDp="600"
        android:smallScreens="false"
        android:xlargeScreens="true"
        tools:replace="android:normalScreens,android:smallScreens" />

您的应用将您的应用限制在某些屏幕上,因此我建议您对其进行审核,尤其是设置为 false 的条目.

编辑

tools:replace告诉您要使用 list 中的值,而不是库中的值。而你的告诉normalScreen=false .和 normalScreenTraditionally this is an HVGA medium density screen, but WQVGA low density and WVGA high density are also considered to be normal .我怀疑您看到问题的 7 英寸平板电脑没有高分辨率屏幕供电,如果是这样,这就是为什么您的应用程序被列为不兼容的原因。除非您的应用程序确实无法在 normalScreen 上运行,否则没有必要将其设置为false .

关于android - Playstore 中 10 英寸平板电脑的应用列表,但不显示 7 英寸平板电脑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36592072/

相关文章:

android - 从 Android 服务中打开数据库连接时出错

android - Cordova Android 不允许向 fb-messenger 打开白名单 Intent

java - 请评论对称加密中密码 block 链接(CBC)的数据大小

java - 如何在AsyncTask doInBackground()中使用同步对象?

google-play - Play 商店 : Couldn't upload, 重试

android - 安装错误 : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

android - 从服务器 [DF-AA-20] 检索信息时出错

android - 使用修改后的屏幕截图的 Google Play 分阶段发布

android - 如何从其市场链接中解析android应用程序的基本信息?

Android: list 中的奇怪错误