AOSP (Android Open Source Project) ã®Codelabãããã®ã§ãã£ã¬ã³ã¸ãã¦ã¿ãæ¥è¨ã§ãã
Androidã®Bluetoothã¾ããã調ã¹ã¦ãã¦OSã¬ã¤ã¤ã¼ã®å®è£ ãããã£ã¦ã¿ãããªããAndroid OSããã«ãã§ããç°å¢ããªããã®ãã¨èãã¦ã¾ããããã«ãç°å¢ã«æ±ããããè¦ä»¶ã¯ä»¥ä¸ã«è¨è¼ãããã¾ãã¦ãmacã¯ãã¡ã64ãããCPUãã¹ãã¬ã¼ã¸512GBãã¡ã¢ãª16GBï¼æ¨å¥¨64GBï¼ã¨ããæãã§ãã
Requirements | Android Open Source Project
æå ã«ã¯ã¡ããã©ãããã·ã³ããªããAWSã§ããã®ãè¯ãããªãã¨æã£ã¦ããã®ã§ãã家ã§ãã³ãªããã¶ã£ã¦ãIntel Macã®åå¨ã«æ°ãã¤ãã¾ããï¼ã¹ãã¬ã¼ã¸ãä¸è¶³ãã¦ãã¾ããå¤ä»ãSSDãæ¥ç¶ãã¦Ubuntuãã¤ã³ã¹ãã¼ã«ããã°ãããæ°ãããï¼
ã¨ãããã¨ã§ç¡äºãã«ãã§ãã¾ããããã£ããã¨ã¯å¤§ãã2ã¤ã§ãã
- Intel Macã§macã¨Ubuntuã§ãã¥ã¢ã«ãã¼ãã§ããããã«ãã
- Ubuntuä¸ã§Android OSããã«ããã
Intel Macã§macã¨Ubuntuã§ãã¥ã¢ã«ãã¼ãã§ããããã«ãã
ã°ã°ãã¨ããæ¹ãããããåºã¦ããã
å¤ä»ãSSDã«ãã¼ãã£ã·ã§ã³ä½ã£ã¦Ubuntu 18.04ãã¤ã³ã¹ãã¼ã«ããã
ååUbuntuã¤ã³ã¹ãã¼ã«å¾ãWi-Fiãæå¹ã«ãããã¨ããã¨ãNo Wi-Fi Adapter Foundãã¨ããã¨ã©ã¼ã«ãªã£ã¦ãã¾ã£ããUbuntuåã¤ã³ã¹ãã¼ã«ã試ã¿ã¦ã¤ã³ã¹ãã¼ã«ã¦ã£ã¶ã¼ãã®éä¸ã«ããWi-Fiãã©ã¤ããæ¢ããªãã·ã§ã³ãONã«ãããã¨ã§è§£æ±ºã
Ubuntuä¸ã§Android OSããã«ããã
ä¸æºå
Codelabã®æé ã«å¾ã£ã¦é²ãã¦ããã
Android developer codelab | Android Open Source Project
å¿ é ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãããåé¡ãªãã
repo
ã¯ã©ã¤ã¢ã³ããã¤ã³ã¹ãã¼ã«ãããåé¡ãªãã
repo
ã使ã£ã¦ã½ã¼ã¹ã³ã¼ãããã§ãã¯ã¢ã¦ããããåé¡ãªãã
ãã«ã
ãã«ããéå§ããï¼
$ source build/envsetup.sh ... $ lunch aosp_cf_x86_64_phone-userdebug ... $ m ... soong bootstrap failed with: exit status 1
ã¨ã©ã¼ï¼ï¼
調ã¹ã¦ã¿ããå¤åããã¨åãã
ã¡ã¢ãªã足ããªãã®ã ãªãCodelabã®ãã«ãè¦ä»¶ã«ãã¡ã¢ãªæ¨å¥¨64GBã¨ãã£ãã®ã§swapã大ãããããã¨ã§å¯¾å¿ããã
$ sudo swapoff /swapfile $ sudo fallocate -l 64G /swapfile $ sudo mkswap /swapfile $ sudo swapon /swapfile
ãã«ãåãã£ã¬ã³ã¸ï¼
$ m ... 2023-10-31 09:19:41 - build_super_image.py - INFO : Done writing image out/target/product/vsoc_x86_64/super.img [100% 190384/190384] //frameworks/base/boot:platform-bootclasspath monolithic hi #### build completed successfully (19:51:23 (hh:mm:ss)) ####
æåï¼20æéãããã»ã»ã»ï¼
m
ã³ãã³ãã®ç´åã«å®è¡ãã lunch aosp_cf_x86_64_phone-userdebug
ã§ãããlunch
ã§ãã«ãããææç©ã®ã¿ã¼ã²ããæå®ãã¦ãããå¼æ°ã¯ <product_name>-<build_variant>
ã¨ãããã©ã¼ãããã§ã<product_name>
ã®é¨åã§ææç©ã§ããOSãåãã端æ«ã®æå®ãããã
Building Android | Android Open Source Project
ä»åã®Codelabã§ã¯aosp_cf_x86_64_phone
ã¨ãªã£ã¦ãã¦ãcf
ã¨ããã®ã¯Cuttlefishã¨ãããã¼ã«ã«PCä¸ã§ãåãä»®æ³Androidããã¤ã¹ãæå®ãã¦ãããããã
Cuttlefishãèµ·åããªã
ã¨ããããã§ãCuttlefishãåãããããèµ·åããªãã»ã»ã»ãäºè±¡ã¨ãã¦ã¯ä»¥ä¸ã¨åãã«è¦ããã®ã ãã©ã試è¡é¯èª¤ãããã©åãããªãã£ãã
Error running local cuttlefish instance
AVDã§åãã
ã¢ããã¼ããå¤ãã¦ãAndroidã¢ããªéçºã§ã使ãã¨ãã¥ã¬ã¼ã¿AVDã§åãããã¨ã«ããã
Using Android Emulator virtual devices | Android Open Source Project
ããã¥ã¡ã³ããèªãã¨<product_name>
ã¨ãã¦sdk_phone_x86_64
ãæå®ããå¿
è¦ããããããã<build_variant>
ãçç¥ãã¦æ¸ããã¦ããã®ã ãã©éçºç¨ãªã®ã§engãæå®ãããã¨ã«ããã
$ lunch sdk_phone_x86_64-eng ... $ m ... [100% 44917/44917] Create system-qemu.img now #### build completed successfully (06:30:13 (hh:mm:ss)) ####
æåï¼ãã«ãæéã6æéã«ç¸®ãã çç±ã¯ä»ã®ã¨ããè¬ã
åããã¦ã¿ãã
$ emulator
ãã¿ã³ã¬ï¼ï¼ï¼
ããã¾ã
ããã§ãã¤ã§ãAndroid OSãããããã§ãã...