简体   繁体   English

在AVD上运行自定义ROM

[英]Run a Custom ROM on an AVD

Does anyone know if this it is possible to run a Custom ROM on a AVD? 有谁知道这是否可以在AVD上运行自定义ROM? ANd how can I do this? 我怎么能这样做? Thanks 谢谢

If you build a custom rom by yourself, after you've built a custom rom you can launch it with the command emulator . 如果您自己构建自定义ROM,则在构建自定义ROM后,可以使用命令emulator启动它。 But to do this you need at first to build your rom for emulator (usually, full-generic lunch option). 但要做到这一点,你首先需要为模拟器构建你的rom(通常是full-generic午餐选项)。 If not you can just copy necessary images and also run them using emulator command. 如果没有,您可以只复制必要的图像,并使用emulator命令运行它们。 For instance, I usually copy .sh script in the folder with Android sources and run this script: 例如,我通常在包含Android源的文件夹中复制.sh脚本并运行此脚本:

out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ -system out/target/product/generic/system.img -ramdisk out/target/product/generic/ramdisk.img -data out/target/product/generic/userdata.img -kernel prebuilt/android-arm/kernel/kernel-qemu -sdcard sdcard.img -skindir sdk/emulator/skins -skin WVGA800 -scale 0.7 -memory 512 -wipe-data -partition-size 200

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

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