avd 记录~
avd 创建
https://developer.android.google.cn/studio/run/managing-avds?hl=zh-cn
https://blog.csdn.net/m0_37792384/article/details/129526914
avd 默认位置安装位置
通过环境变量设置是可以修改的,如果使用的是windows就要修改,否则会占用C盘。
配置方法如下:
http://t.csdn.cn/Z9knu
.android/avd 下
.android/avd/xxxx.ini 文件
包含:编码格式、AVD路径、名称、目标版本
avd.ini.encoding=UTF-8
path=/Users/xxxx/.android/avd/E171-TV_API_31.avd
path.rel=avd/E171-TV_API_31.avd
target=android-31
.android/avd/.avd 下
config.ini 文件
AvdId = E171-TV_API_31
PlayStore.enabled = false
abi.type = arm64-v8a
avd.ini.displayname = E171-TV API 31
avd.ini.encoding = UTF-8
disk.dataPartition.size = 6442450944
fastboot.chosenSnapshotFile =
fastboot.forceChosenSnapshotBoot = no
fastboot.forceColdBoot = no
fastboot.forceFastBoot = yes
hw.accelerometer = yes
hw.arc = false
hw.audioInput = yes
hw.battery = yes
hw.camera.back = virtualscene
hw.camera.front = emulated
hw.cpu.arch = arm64
hw.cpu.ncore = 4
hw.dPad = no
hw.device.hash2 = MD5:12a57aa6873840a84dec2f2937e4bb8a
hw.device.manufacturer = User
hw.device.name = E171-TV
hw.gps = yes
hw.gpu.enabled = yes
hw.gpu.mode = auto
hw.initialOrientation = landscape
hw.keyboard = yes
# 密度比(dpi)
hw.lcd.density = 160
# 尺寸
hw.lcd.height = 792
hw.lcd.width = 1726
# 导航栏,最好不要改,会引起尺寸拉伸,最好通过创建就定好,phone这个值是yes,TV是no
hw.mainKeys = no
hw.ramSize = 1536
hw.sdCard = no
hw.sensors.orientation = yes
hw.sensors.proximity = yes
hw.trackBall = no
image.sysdir.1 = system-images/android-31/google_apis/arm64-v8a/
runtime.network.latency = none
runtime.network.speed = full
showDeviceFrame = no
skin.dynamic = yes
# 尺寸
skin.name = 1726x792
skin.path = _no_skin
skin.path.backup = _no_skin
tag.display = Google APIs
tag.id = google_apis
vm.heapSize = 192
扩展
没尝试
隐藏导航栏和状态栏:https://www.bilibili.com/read/cv10224949/
命令
改变屏幕尺寸和密度比,貌似只是此次生效,我看文件里的数值没变。
adb shell wm size 1726x792
adb shell wm density 160