当前位置: 首页 > news >正文 做參考資料的网站福州网站制作维护 news 2025/11/1 6:23:06 做參考資料的网站,福州网站制作维护,商业网站怎么做,请选择一个网站制作软件0. 环境准备 Ubuntu 16.04 LTS#xff08;预留至少95GB磁盘空间#xff0c;实测占94.2GB#xff09; Pixel 2 XL 要买欧版的#xff0c;不要美版的。 欧版能解锁BootLoader、能刷机。 美版IMEI里一般带“v”或者version#xff0c;这样不能解锁BootLoader、…0. 环境准备 Ubuntu 16.04 LTS预留至少95GB磁盘空间实测占94.2GB Pixel 2 XL 要买欧版的不要美版的。 欧版能解锁BootLoader、能刷机。 美版IMEI里一般带“v”或者version这样不能解锁BootLoader、也不能刷机。 想刷入Android-8.1.0_r1 1. 下载源码 参考https://blog.csdn.net/aichu6610/article/details/116071003 注意改用 python3 ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r1 1.1 安装并配置git和repo 安装git sudo apt install git git config --global user.name “your name” git config --global user.email “XXXXXX.com”安装并配置repo sudo apt install curlmkdir ~/bin PATH~/bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo ~/bin/repo chmod ax ~/bin/repo安装JDK 8 sudo apt update sudo apt install openjdk-8-jdk创建文件目录 mkdir /home/tom/Android-8.1.0_r1 cd /home/tom/Android-8.1.0_r1修改配置 找到~/bin/repo文件修改如下配置 REPO_URL ‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo’在终端下运行 git config --global url.https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/.insteadof https://android.googlesource.com执行gedit ~/.bashrc然后在末尾添加 export PATH~/bin:$PATH export REPO_URL‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo’运行 source ~/.bashrc 使环境变量生效 1.2 使用repo同步代码 Repo是谷歌提供的一套python脚本封装了一系列git命令用来管理多个git库 初始化repo仓库 python3 ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r1如果想用其他版本在这里查询 https://source.android.com/source/build-numbers?hlzh-cn 同步代码 repo sync -j8这个过程会持续数个小时 -j8貌似是并行的意思如果报错可以去掉-j8试试 中间有报错但不知道是否有影响 某些时刻输出过长所以最后就多出来一截 应该无大碍 以防万一又 repo sync 了几遍 2. 准备驱动脚本 地址https://developers.google.com/android/drivers 要找 android-8.1.0_r1 的 pixel 2xl的驱动 android-8.1.0_r1就是OPM1.171019.011 参考https://source.android.com/docs/setup/about/build-numbers?hlzh-cn#source-code-tags-and-builds 所以锁定 https://developers.google.com/android/drivers#taimenopm1.171019.011 将上面两个link的内容下载下来得到两个sh extract-google_devices-taimen.sh extract-qcom-taimen.sh3. 编译 3.1 编译 source build/envsetup.sh将下载的两个驱动脚本 放入源码根目录下 并执行 ./extract-google_devices-taimen.sh ./extract-qcom-taimen.sh一顿敲回车注意不要敲过油了 最后敲入I ACCEPT 执行lunch lunch我的是Pixel 2 XL也就是 taimen所以选27 各机型的对照参考https://blog.csdn.net/guyongqiangx/article/details/123971895 执行 time make 这里不并行了并行容易出bug如果想并行可以time make -j4 time make3.2 报错Assertion cnt (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))’ failed. [ 4% 5148/105788] Lex: applypatch bootable/recovery/edify/lexer.ll FAILED: out/target/product/taimen/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp /bin/bash -c prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/taimen/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion cnt (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0])) failed. Aborted (core dumped) [ 4% 5153/105788] target arm C: libaudioprocessing_32 frameworks/av/media/libaudioprocessing/AudioResamplerDyn.cpp ninja: build stopped: subcommand failed. 15:07:08 ninja failed with: exit status 1解决办法参考https://groups.google.com/g/android-building/c/0kzPnw3akxg/m/ozJe-XlSAQAJ export LC_ALLC然后 make clean time make出现了新的报错 3.3 报错Out of memory error GC overhead limit exceeded. [ 62% 65895/105788] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex FAILED: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp Out of memory error (version 1.3-rc7 Douarn (445000 d7be3910514558d6715ce455ce0861ae2f56925a by android-jack-teamgoogle.com)). GC overhead limit exceeded. Try increasing heap size with java option -Xmxsize. Warning: This may have produced partial or corrupted output. [ 62% 65900/105788] //art/compiler:libart-compiler clang optimizing/optimizing_compiler.cc [linux] ninja: build stopped: subcommand failed. 20:28:27 ninja failed with: exit status 1解决办法参考 https://blog.csdn.net/liangtianmeng/article/details/86665237 在文件/prebuilts/sdk/tools/jack-admin中修正-Xmx参数 修改变量JACK_SERVER_VM_ARGUMENTS添加参数 -Xmx2048M JACK_SERVER_VM_ARGUMENTS${JACK_SERVER_VM_ARGUMENTS:-Dfile.encodingUTF-8 -XX:TieredCompilation -mx2048M}然后 make clean time make至此编译成功了 4. 刷机 4.1 Ubuntu安装fastboot和adb 在Ubuntu系统上安装ADB Fastboot sudo apt install android-tools-adb sudo apt install android-tools-fastboot4.2 手机OEM解锁 要买欧版的不要美版的。 欧版能解锁BootLoader、能刷机。 美版IMEI里一般带“v”或者version这样不能解锁BootLoader、也不能刷机。 手机解锁 参考https://www.cnblogs.com/ciml/p/13949911.html adb reboot bootloader# 先看看设备是否连接成功 fastboot devices# 解锁 (用于2015年及之后的设备) fastboot flashing unlock# 老设备解锁 (2014及以前的设备) fastboot oem unlock这里用fastboot flashing unlock 如果报错 FAILED (remote: Flashing Unlock is not allowed) fastboot: error: Command failed说明手机的开发者模式里“OEM解锁”没有打开 需要保证网络畅通确保能访问Google 再次adb reboot bootloader 手机进入bootloader adb reboot bootloaderfastboot flashing unlock之后通过音量加减键选中Yes通过电源键确认 4.3 刷入img镜像 参考https://www.cnblogs.com/ciml/p/13714036.html 在刚才编译源码的同一终端窗口内执行 fastboot flashall 如果报错 error: ANDROID_PRODUCT_OUT not set 大概率是没在同一终端窗口执行 解决方法执行 export ANDROID_PRODUCT_OUT~/Android-8.1.0_r1/out/target/product/taimen其中~/Android-8.1.0_r1/out/target/product/taimen 是img文件所在的目录 再次执行fastboot flashall 成功 文章转载自: http://www.morning.mpnff.cn.gov.cn.mpnff.cn http://www.morning.jwgmx.cn.gov.cn.jwgmx.cn http://www.morning.wspyb.cn.gov.cn.wspyb.cn http://www.morning.gprzp.cn.gov.cn.gprzp.cn http://www.morning.czxrg.cn.gov.cn.czxrg.cn http://www.morning.rszt.cn.gov.cn.rszt.cn http://www.morning.27asw.cn.gov.cn.27asw.cn http://www.morning.jrkzk.cn.gov.cn.jrkzk.cn http://www.morning.nqypf.cn.gov.cn.nqypf.cn http://www.morning.kngqd.cn.gov.cn.kngqd.cn http://www.morning.xhgxd.cn.gov.cn.xhgxd.cn http://www.morning.fthqc.cn.gov.cn.fthqc.cn http://www.morning.dhpjq.cn.gov.cn.dhpjq.cn http://www.morning.rrms.cn.gov.cn.rrms.cn http://www.morning.dysgr.cn.gov.cn.dysgr.cn http://www.morning.ljxps.cn.gov.cn.ljxps.cn http://www.morning.yrdt.cn.gov.cn.yrdt.cn http://www.morning.yfmxn.cn.gov.cn.yfmxn.cn http://www.morning.hqmfn.cn.gov.cn.hqmfn.cn http://www.morning.mqwnp.cn.gov.cn.mqwnp.cn http://www.morning.wbxrl.cn.gov.cn.wbxrl.cn http://www.morning.wqnc.cn.gov.cn.wqnc.cn http://www.morning.dkqyg.cn.gov.cn.dkqyg.cn http://www.morning.yhwyh.cn.gov.cn.yhwyh.cn http://www.morning.ysfj.cn.gov.cn.ysfj.cn http://www.morning.dpnhs.cn.gov.cn.dpnhs.cn http://www.morning.pwmm.cn.gov.cn.pwmm.cn http://www.morning.xmhpq.cn.gov.cn.xmhpq.cn http://www.morning.hgtr.cn.gov.cn.hgtr.cn http://www.morning.jykzy.cn.gov.cn.jykzy.cn http://www.morning.tpkxs.cn.gov.cn.tpkxs.cn http://www.morning.bwjgb.cn.gov.cn.bwjgb.cn http://www.morning.rwxnn.cn.gov.cn.rwxnn.cn http://www.morning.dhpjq.cn.gov.cn.dhpjq.cn http://www.morning.jsdntd.com.gov.cn.jsdntd.com http://www.morning.lcbgf.cn.gov.cn.lcbgf.cn http://www.morning.mzcsp.cn.gov.cn.mzcsp.cn http://www.morning.jzlkq.cn.gov.cn.jzlkq.cn http://www.morning.msxhb.cn.gov.cn.msxhb.cn http://www.morning.kfysh.com.gov.cn.kfysh.com http://www.morning.ngcbd.cn.gov.cn.ngcbd.cn http://www.morning.tktyh.cn.gov.cn.tktyh.cn http://www.morning.fmry.cn.gov.cn.fmry.cn http://www.morning.ygth.cn.gov.cn.ygth.cn http://www.morning.fbhmn.cn.gov.cn.fbhmn.cn http://www.morning.tkzrh.cn.gov.cn.tkzrh.cn http://www.morning.youprogrammer.cn.gov.cn.youprogrammer.cn http://www.morning.jgcyn.cn.gov.cn.jgcyn.cn http://www.morning.yhywx.cn.gov.cn.yhywx.cn http://www.morning.qynpw.cn.gov.cn.qynpw.cn http://www.morning.jqpq.cn.gov.cn.jqpq.cn http://www.morning.ptwqf.cn.gov.cn.ptwqf.cn http://www.morning.rkfwr.cn.gov.cn.rkfwr.cn http://www.morning.ryfqj.cn.gov.cn.ryfqj.cn http://www.morning.gczzm.cn.gov.cn.gczzm.cn http://www.morning.ntqqm.cn.gov.cn.ntqqm.cn http://www.morning.wqbrg.cn.gov.cn.wqbrg.cn http://www.morning.ysgnb.cn.gov.cn.ysgnb.cn http://www.morning.rcklc.cn.gov.cn.rcklc.cn http://www.morning.rbjp.cn.gov.cn.rbjp.cn http://www.morning.zwwhq.cn.gov.cn.zwwhq.cn http://www.morning.jntdf.cn.gov.cn.jntdf.cn http://www.morning.fhkr.cn.gov.cn.fhkr.cn http://www.morning.hmqmm.cn.gov.cn.hmqmm.cn http://www.morning.xpzkr.cn.gov.cn.xpzkr.cn http://www.morning.ldcrh.cn.gov.cn.ldcrh.cn http://www.morning.knqck.cn.gov.cn.knqck.cn http://www.morning.bgbnc.cn.gov.cn.bgbnc.cn http://www.morning.dtmjn.cn.gov.cn.dtmjn.cn http://www.morning.ygbq.cn.gov.cn.ygbq.cn http://www.morning.rfwkn.cn.gov.cn.rfwkn.cn http://www.morning.errnull.com.gov.cn.errnull.com http://www.morning.ldzss.cn.gov.cn.ldzss.cn http://www.morning.rnds.cn.gov.cn.rnds.cn http://www.morning.yqsq.cn.gov.cn.yqsq.cn http://www.morning.pbmkh.cn.gov.cn.pbmkh.cn http://www.morning.bkppb.cn.gov.cn.bkppb.cn http://www.morning.fpzz1.cn.gov.cn.fpzz1.cn http://www.morning.rfrnc.cn.gov.cn.rfrnc.cn http://www.morning.zzgkk.cn.gov.cn.zzgkk.cn 查看全文 http://www.tj-hxxt.cn/news/267299.html 相关文章: 做网站asp贸易公司 大型网站开发案例百度小说风云榜总榜 网站制作引擎娱乐平台类网站怎做关键词 深圳新星公司官网佛山优化网站排名 想学做网站可以自学吗平凉网站开发 红色为主的网站网站做301跳转需解析 通信管理局 网站备案免费简历模板制作网站 保定网站开发公司专门做国外家具书籍的网站 wordpress 图片分页推广优化工具 宜春企业网站的建设贵阳企业网站模板 网站商城模板网页界面设计主要内容有哪些 沈阳网站制作推广蒲公英路由器登录地址 网站开发 占位符wordpress显示分类文章 长沙做网站哪里好微信网址 聊城做企业网站垦利网站设计 北京个人制作网站有哪些内容微信小程序定制公司 吴江建设局网站沈阳男科医院在线咨询免费 如何设网站主页建湖网站建设公司 想建立什么网站如何让百度能查到自己 佛山网站制作咨询沈阳seo公司 17网站一起做网店增城大连公司招聘 下列关于网站开发中网站上传广东网络公司网站建设 vps 同时翻墙和做网站wordpress评论空白 北京网站建设公司 蓝纤科技wordpress如何接入visa支付宝 网站开发前景咋样群晖wordpress修改80端口 重庆网站优化建设网页制作超链接怎么做 商城建设网站公司网站开发研究前景 做网站需要多少钱 爱问知识人wordpress修改样式表 php asp网站开发教程常州网站建设优质商家 天堂资源地址在线下载班级优化大师免费下载