当前位置: 首页 > news >正文

Android车机DIY开发之软件篇(十二) AOSP12下载编译

Android车机DIY开发之软件篇(十二) AOSP12下载编译

sudo apt-get update

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g+±multilib libc6-dev-i386 lib32ncurses5-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip python-pyelftools python3-pyelftools device-tree-compiler libfdt-dev libfdt1 libssl-dev liblz4-tool python-dev libncurses5 make

sudo rm -rf /usr/bin/python
sudo ln -s /usr/bin/python2 /usr/bin/python

git config --global user.name “赵川”
git config --global user.email"zc1508890767@gmail.com"

sudo apt-get install libqt5x11extras5

mkdir ~/bin
PATH=~/bin:$PATH
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo
chmod a+x ~/bin/repo

repo的运行过程中会尝试访问官方的git源更新repo自己,如果想使用tuna的镜像源进行更新,可以将如下内容复制到你的~/.bashrc里
export REPO_URL=‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/’
cd …
source ~/.bashrc

cd AOSP12/
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-12.0.0_r13
repo sync

source build/envsetup.sh
lunch
build_build_var_cache
lunch 72
make

emulator -gpu swiftshader_indirect
emulator -gpu off
emulator -wipe-data -gpu swiftshader_indirect
emulator -no-snapshot-load
1. aosp_akita-trunk_staging-userdebug
2. aosp_arm-trunk_staging-eng
3. aosp_arm64-trunk_staging-eng
4. aosp_bluejay-trunk_staging-userdebug
5. aosp_bluejay_car-trunk_staging-userdebug
6. aosp_caiman-trunk_staging-userdebug
7. aosp_cf_arm64_auto-trunk_staging-userdebug
8. aosp_cf_arm64_phone-trunk_staging-userdebug
9. aosp_cf_riscv64_phone-trunk_staging-userdebug
10. aosp_cf_x86_64_auto-trunk_staging-userdebug
11. aosp_cf_x86_64_auto_mdnd-trunk_staging-userdebug
12. aosp_cf_x86_64_foldable-trunk_staging-userdebug
13. aosp_cf_x86_64_only_phone_hsum-trunk_staging-userdebug
14. aosp_cf_x86_64_pc-trunk_staging-userdebug
15. aosp_cf_x86_64_phone-trunk_staging-userdebug
16. aosp_cf_x86_64_tv-trunk_staging-userdebug
17. aosp_cf_x86_tv-trunk_staging-userdebug
18. aosp_cheetah-trunk_staging-userdebug
19. aosp_cheetah_car-trunk_staging-userdebug
20. aosp_cheetah_hwasan-trunk_staging-userdebug
21. aosp_cloudripper-trunk_staging-userdebug
22. aosp_comet-trunk_staging-userdebug
23. aosp_felix-trunk_staging-userdebug
24. aosp_husky-trunk_staging-userdebug
25. aosp_husky_car-trunk_staging-userdebug
26. aosp_komodo-trunk_staging-userdebug
27. aosp_lynx-trunk_staging-userdebug
28. aosp_oriole-trunk_staging-userdebug
29. aosp_oriole_car-trunk_staging-userdebug
30. aosp_panther-trunk_staging-userdebug
31. aosp_panther_car-trunk_staging-userdebug
32. aosp_panther_hwasan-trunk_staging-userdebug
33. aosp_raven-trunk_staging-userdebug
34. aosp_raven_car-trunk_staging-userdebug
35. aosp_ravenclaw-trunk_staging-userdebug
36. aosp_redfin_car-trunk_staging-userdebug
37. aosp_ripcurrent-trunk_staging-userdebug
38. aosp_ripcurrent24-trunk_staging-userdebug
39. aosp_ripcurrentpro-trunk_staging-userdebug
40. aosp_shiba-trunk_staging-userdebug
41. aosp_slider-trunk_staging-userdebug
42. aosp_sunfish_car-trunk_staging-userdebug
43. aosp_tangorpro-trunk_staging-userdebug
44. aosp_tangorpro_car-trunk_staging-userdebug
45. aosp_tokay-trunk_staging-userdebug
46. aosp_trout_arm64-trunk_staging-userdebug
47. aosp_trout_x86_64-trunk_staging-userdebug
48. aosp_whitefin-trunk_staging-userdebug
49. aosp_x86-trunk_staging-eng
50. aosp_x86_64-trunk_staging-eng
51. arm_krait-trunk_staging-eng
52. arm_v7_v8-trunk_staging-eng
53. armv8-trunk_staging-eng
54. armv8_cortex_a55-trunk_staging-eng
55. armv8_kryo385-trunk_staging-eng
56. db845c-trunk_staging-userdebug
57. gsi_car_arm64-trunk_staging-userdebug
58. gsi_car_x86_64-trunk_staging-userdebug
59. hikey-trunk_staging-userdebug
60. hikey64_only-trunk_staging-userdebug
61. hikey960-trunk_staging-userdebug
62. hikey960_tv-trunk_staging-userdebug
63. hikey_tv-trunk_staging-userdebug
64. poplar-trunk_staging-eng
65. poplar-trunk_staging-user
66. poplar-trunk_staging-userdebug
67. qemu_trusty_arm64-trunk_staging-userdebug
68. riscv64-trunk_staging-eng
69. sdk_car_arm64-trunk_staging-userdebug
70. sdk_car_cw_x86_64-trunk_staging-userdebug
71. sdk_car_md_x86_64-trunk_staging-userdebug
72. sdk_car_x86_64-trunk_staging-userdebug
73. silvermont-trunk_staging-eng
74. yukawa-trunk_staging-userdebug

Android Studio for Platform 使用方法

下载地址

sudo dpkg -i XXXX.deb
cd /opt/android-studio-for-platform/bin
./studio.sh

Repo checkout,选择你的AOSP源码根目录。
Lunch target,选择你的lunch目标,比如模拟器的话就填写sdk_phone_x86_64。
Module Path,选择你要调试的模块,比如调试frameworks模块的话,就添加选择frameworks。
Project name,填写你的项目名。
Location,这是你的Android Studio For Platform存储项目信息的路径。

点击右上角的Attach Debugger To Android Process

ADB 使用方法

export PATH=~/Android/Sdk/platform-tools:$PATH

如果需要移植生效写入~/.bashrc 然后 source ~/.bashrc
adb devices
adb shell

http://www.lryc.cn/news/535259.html

相关文章:

  • Jenkins+gitee 搭建自动化部署
  • 【文本处理】如何在批量WORD和txt文本提取手机号码,固话号码,提取邮箱,删除中文,删除英文,提取车牌号等等一些文本提取固定格式的操作,基于WPF的解决方案
  • Linux系统引导与服务管理
  • 网络工程师 (30)以太网技术
  • react项目引入tailwindcss不生效解决方案
  • 【C#】条件运算符
  • Windows11+PyCharm利用MMSegmentation训练自己的数据集保姆级教程
  • WPS计算机二级•文档的文本样式与编号
  • Word中Ctrl+V粘贴报错问题
  • python-leetcode 24.回文链表
  • 数据治理双证通关经验分享 | CDGA/CDGP备考全指南
  • 3.4 学习UVM中的uvm_monitor类分为几步?
  • Java在大数据处理中的应用:从MapReduce到Spark
  • 日常吐槽。
  • 2025最新版Node.js下载安装~保姆级教程
  • 机器学习:学习记录(二)
  • 迁移学习 Transfer Learning
  • 实现:多活的基础中间件
  • Mybatis源码01 - 总体框架设计
  • 在大型语言模型(LLM)框架内Transformer架构与混合专家(MoE)策略的概念整合
  • Selenium WebDriver自动化测试(扩展篇)--Jenkins持续集成
  • Wiki文档转换为Word技术
  • 1.【线性代数】——方程组的几何解释
  • 力扣1448. 统计二叉树中好节点的数目
  • 【C#零基础从入门到精通】(二)——C#注释和命名法详解
  • SQLServer的创建,表创建,主键,约束,模糊查询
  • DeepSeek深度思考:客户端(Android/iOS)架构设计指南
  • 亚远景-精通ASPICE:专业咨询助力汽车软件开发高效合规
  • OpenCV 相机标定流程指南
  • 项目场景拷打