我在办公室里做了相当数量的Android构建,并且在办公室里有一个大量定制的分叉,但我想回到家里开始并为自己探索它。
我得到了AOSP并构建了它...然后用完了想法。模拟器甚至是预构建的。我认为至少模拟器会是我构建的结果,但似乎Repo工作区甚至没有配备来构建模拟器。我可以启动模拟器,但它甚至使用构建?
我怎样才能玩AOSP?是否有一个可以浏览或运行的大量单元测试套件(快速的Web搜索不清楚)?也许有意义地探索AOSP的本地服务/后端的唯一方法是编写应用程序?
我曾经希望,在没有自己打砖机的风险的情况下,实际上我可以玩更低级别的东西,比如在系统服务上进行业余手术,只是为了在疯狂地笑着学习。
我为 aosp_x86_64-eng 构建了它。这有什么缺点吗?这不像我需要闪存任何硬件。
感谢。
答案 0 :(得分:0)
现在怎么办?尝试:
至于模拟器是否实际使用构建中的图像,请在根模拟器PID上执行 lsof :
~/development/android/master/out/host/linux-x86/bin$ lsof -p 12813 | grep development/android
lsof: WARNING: can't stat() ext4 file system /var/lib/docker/aufs
Output information may be incomplete.
qemu-syst 12813 doprea cwd DIR 8,17 4096 44303281 development/android/master/prebuilts/android-emulator/linux-x86_64
qemu-syst 12813 doprea txt REG 8,17 15027168 44303462 development/android/master/prebuilts/android-emulator/linux-x86_64/qemu/linux-x86_64/qemu-system-x86_64
qemu-syst 12813 doprea mem REG 8,17 6731464 44303355 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/gles_swiftshader/libGLES_CM.so
qemu-syst 12813 doprea mem REG 8,17 7211320 44303356 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/gles_swiftshader/libGLESv2.so
qemu-syst 12813 doprea mem REG 8,17 47552 44303354 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/gles_swiftshader/libEGL.so
qemu-syst 12813 doprea mem REG 8,17 679560 44303361 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/lib64OpenglRender.so
qemu-syst 12813 doprea mem REG 8,17 482400 44303443 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqwebp.so
qemu-syst 12813 doprea mem REG 8,17 429808 44303441 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqtiff.so
qemu-syst 12813 doprea mem REG 8,17 268448 44303438 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqjpeg.so
qemu-syst 12813 doprea mem REG 8,17 20632 44303442 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqwbmp.so
qemu-syst 12813 doprea mem REG 8,17 21656 44303440 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqtga.so
qemu-syst 12813 doprea mem REG 8,17 24568 44303439 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqsvg.so
qemu-syst 12813 doprea mem REG 8,17 28600 44303437 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqico.so
qemu-syst 12813 doprea mem REG 8,17 38584 44303436 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqicns.so
qemu-syst 12813 doprea mem REG 8,17 46736 44303434 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqdds.so
qemu-syst 12813 doprea mem REG 8,17 3666001 44303464 development/android/master/prebuilts/android-emulator/linux-x86_64/resources/resources.rcc
qemu-syst 12813 doprea mem REG 8,17 2037120 44303413 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/lib/libQt5XcbQpa.so.5
qemu-syst 12813 doprea mem REG 8,17 5786232 44303373 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/lib/libQt5Core.so.5
qemu-syst 12813 doprea mem REG 8,17 5811584 44303381 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/lib/libQt5Gui.so.5
qemu-syst 12813 doprea mem REG 8,17 6596968 44303409 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/lib/libQt5Widgets.so.5
qemu-syst 12813 doprea mem REG 8,17 523800 44303377 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/lib/libQt5DBus.so.5
qemu-syst 12813 doprea mem REG 8,17 345976 44303401 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/lib/libQt5Svg.so.5
qemu-syst 12813 doprea mem REG 8,17 4831936 44303364 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/libstdc++/libstdc++.so.6
qemu-syst 12813 doprea mem REG 8,17 28440 44303435 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/imageformats/libqgif.so
qemu-syst 12813 doprea mem REG 8,17 116760 44303446 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
qemu-syst 12813 doprea mem REG 8,17 10424 44303451 development/android/master/prebuilts/android-emulator/linux-x86_64/lib64/qt/plugins/platforms/libqxcb.so
qemu-syst 12813 doprea 27r REG 8,17 2686451712 43785802 development/android/master/out/target/product/generic_x86_64/system-qemu.img
qemu-syst 12813 doprea 28u REG 8,17 524288 43785809 development/android/master/out/target/product/generic_x86_64/cache.img.qcow2
qemu-syst 12813 doprea 29r REG 8,17 69206016 43784468 development/android/master/out/target/product/generic_x86_64/cache.img
qemu-syst 12813 doprea 30u REG 8,17 136642560 43785810 development/android/master/out/target/product/generic_x86_64/userdata-qemu.img.qcow2
qemu-syst 12813 doprea 31r REG 8,17 2147483648 43785805 development/android/master/out/target/product/generic_x86_64/userdata-qemu.img
qemu-syst 12813 doprea 32u REG 8,17 393216 43785811 development/android/master/out/target/product/generic_x86_64/encryptionkey.img.qcow2
qemu-syst 12813 doprea 33r REG 8,17 1048576 43784447 development/android/master/out/target/product/generic_x86_64/encryptionkey.img
qemu-syst 12813 doprea 34r REG 8,17 102760448 43785799 development/android/master/out/target/product/generic_x86_64/vendor-qemu.img
所以,是的。虽然模拟器可能是预构建的,但只要您的构建环境已加载,它就会从当前构建环境中提供。