简体   繁体   English

Android Go 应用测试

[英]Android Go app test

I want to test how my app behaves on Android Go.我想测试我的应用程序在 Android Go 上的行为。

According to this post: https://developer.android.com/develop/quality-guidelines/building-for-billions-device-capacity.html#androidgo根据这篇文章: https://developer.android.com/develop/quality-guidelines/building-for-billions-device-capacity.html#androidgo

I understand that the following conditions need to be set:我理解需要设置以下条件:

  • targetSdkVersion >= 26 targetSdkVersion >= 26
  • Adding <uses-feature android:name="android.hardware.ram.low" android:required="true"> to the app menifest.添加<uses-feature android:name="android.hardware.ram.low" android:required="true">到应用程序清单。
  • RAM size ≤1GB内存大小≤1GB
  • The on-device app size should be smaller than 40MB (mine is less then 20MB).设备上的应用程序大小应小于 40MB(我的小于 20MB)。

How can I tell if my app runs in Android Go mode or not?如何判断我的应用程序是否以 Android Go 模式运行?

I've created an emulator with the followoing configurations:我创建了一个具有以下配置的模拟器:

Name: Andorid_go_API_27名称:Andorid_go_API_27

CPU/ABI: Google APIs Intel Atom (x86) CPU/ABI:谷歌 API 英特尔凌动 (x86)

Path: C:\Users\rotem.matityahu.android\avd\Andorid_go_API_27.avd路径:C:\Users\rotem.matityahu.android\avd\Andorid_go_API_27.avd

Target: google_apis [Google APIs] (API level 27)目标:google_apis [Google API](API 级别 27)

Skin: 1080x1920皮肤:1080x1920

SD Card: 100 MiB SD 卡:100 MiB

hw.dPad: no hw.dPad: 没有

hw.lcd.height: 1920 hw.lcd.height: 1920

runtime.network.speed: full runtime.network.speed:满

hw.accelerometer: yes硬件加速度计:是的

hw.device.name: New Device 1 hw.device.name:新设备 1

vm.heapSize: 256虚拟机堆大小:256

skin.dynamic: yes skin.dynamic:是的

hw.device.manufacturer: User hw.device.manufacturer:用户

hw.lcd.width: 1080硬件液晶宽度:1080

hw.gps: yes hw.gps:是的

hw.initialOrientation: Portrait hw.initialOrientation:纵向

skin.path.backup: _no_skin skin.path.backup:_no_skin

image.androidVersion.api: 27 image.androidVersion.api: 27

hw.audioInput: yes hw.audioInput:是的

image.sysdir.1: system-images\android-27\google_apis\x86\ image.sysdir.1: 系统图像\android-27\google_apis\x86\

tag.id: google_apis标签.id: google_apis

showDeviceFrame: no showDeviceFrame: 没有

hw.camera.back: emulated hw.camera.back:模拟

hw.mainKeys: no hw.mainKeys:没有

AvdId: Andorid_go_API_27 AvdId:Andorid_go_API_27

hw.camera.front: emulated hw.camera.front:模拟

hw.lcd.density: 480 hw.lcd.density: 480

avd.ini.displayname: Andorid go API 27 avd.ini.displayname: Andorid go API 27

hw.gpu.mode: auto hw.gpu.mode:自动

hw.device.hash2: MD5:1c925b9117dd9f33c5128dac289a0d68 hw.device.hash2: MD5:1c925b9117dd9f33c5128dac289a0d68

hw.ramSize: 512硬件内存大小:512

hw.trackBall: no hw.trackBall: 没有

PlayStore.enabled: false PlayStore.enabled: false

fastboot.forceColdBoot: no fastboot.forceColdBoot:没有

hw.battery: yes硬件电池:是的

hw.cpu.ncore: 2 hw.cpu.ncore:2

hw.sdCard: no hw.sdCard: 没有

tag.display: Google APIs tag.display:Google API

runtime.network.latency: none runtime.network.latency:无

hw.keyboard: yes硬件键盘:是的

hw.sensors.proximity: yes hw.sensors.proximity:是的

disk.dataPartition.size: 800M disk.dataPartition.size: 800M

hw.sensors.orientation: yes hw.sensors.orientation:是的

avd.ini.encoding: UTF-8 avd.ini.encoding: UTF-8

hw.gpu.enabled: yes hw.gpu.enabled:是的

Android Oreo (Go edition) seems to be the special release of Android Oreo (8.1) for low spec devices. Android Oreo(Go版)似乎是针对低规格设备的Android Oreo(8.1) 的特别版本

Unfortunately there is no way to check the compatibility for now. 不幸的是,目前无法检查兼容性。 For example, no emulator with Go edition is available. 例如,没有可用的Go版本的模拟器。 You can only follow the guidelines for now. 您现在只能遵循指南。

If you try to navigate to your app on the Play Store with an AndroidGo device or if you try to download it to a device with your same account and which is an AndroidGo device you should see a compatibility or incompatibility message如果您尝试使用 AndroidGo 设备在 Play 商店中导航到您的应用,或者如果您尝试将其下载到具有相同帐户的设备并且是 AndroidGo 设备,您应该会看到一条兼容性或不兼容消息

The install button should be disabled if not compatible and there should be details provided in "About this app ->" screen at the bottom如果不兼容,则应禁用安装按钮,底部的“关于此应用程序 ->”屏幕中应提供详细信息从 1GB AndroidGo 测试设备查看我的应用程序

From this video from Google you can understand that need to setup your SDK target to 28 . 这个来自谷歌视频,你可以了解到需要设置您的SDK目标 28。 This will make you app for Android Go. 这将使您成为Android Go的应用程序。

One more resource with important informations for build focusing in Go Edition: How to optimize your app for Android (Go edition) Go Edition中构建重点的重要信息之一: 如何优化Android应用程序(Go版)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM