禁止为特定的Android版本或设备下载/安装App [英] Disable download / install of App for a specific Android Version or Device

查看:81
本文介绍了禁止为特定的Android版本或设备下载/安装App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现,基于我的cordova/phonegap的应用的android版本在新的android 5设备上显示了一个错误(已在Nexus 4和Nexus 7上进行了测试).

I just found out that the android version of my cordova/phonegap based app shows a bug on new android 5 devices (tested on Nexus 4 and Nexus 7).

不确定是由设备还是操作系统版本引起的(我的猜测:android 5)

Not sure if the devices or the os version causes this (my guess: android 5)

问题是,相对简单的页面无法滚动-当按钮仍响应触摸事件时.

The problem is, that a relatively simple page cannot be scrolled - while buttons still responding to touch events.

我正在修复,但在此补丁可用之前,我想针对所有android 5设备禁用该应用.

I'm working on a fix, but until this will be available I'd like to disable the app for all android 5 devices.

所以,基本上,我想手动使该应用程序与Android 5.x不兼容,直到我解决问题为止.

So, basically I want to make the app manually incompatible with Android 5.x, until I fixed the problem.

是否有人知道在Google PlayStore中是否可行以及如何实现-最好不上传应用的中间版本?

Does anyone know if and how this is possible in Googles PlayStore - preferably without uploading a intermediate version of the app?

推荐答案

有两种方法可以做到这一点.一个在Play开发者控制台中,一个通过上传新的APK.不幸的是,上传新APK是您最好的解决方案.

There are two ways to do this. One in the Play Developer console and one by uploading a new APK. Unfortunately, uploading a new APK is your best solution.

https://support.google.com/googleplay/android-developer/answer/1286017

  1. 登录开发者控制台 https://play.google.com/apps/publish
  2. 选择您的应用程序
  3. 点击 APK
  4. 点击管理排除的设备
  5. 键入您要排除的设备的名称
  6. 拨动开关,以便显示红色符号.
  7. 点击底部的保存

您将需要对每个要使用的设备执行此操作

You will need to do this for every device you want to exlcude

http://developer.android.com/guide/topic/manifest/uses-sdk-element.html

您需要使用 android:maxSdkVersion ="integer" 属性更新AndroidManifest.xml文件的 uses-sdk 元素.就您而言:

You need to update the AndroidManifest.xml file's uses-sdk elem with the android:maxSdkVersion="integer" attribute. In your case:

android:maxSdkVersion="19"

要排除棒棒糖,请参见 https://source.android.com/source/build-numbers.html .这将排除所有当前&未来的5.0设备,因此您不必继续更新列表.

to exclude lollipop, see https://source.android.com/source/build-numbers.html . This will exclude all current & future 5.0 devices so you don't have to keep updating your list.

这篇关于禁止为特定的Android版本或设备下载/安装App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆