Ubuntu为华为META8编译android8.0升级包(含打包)

手上有一部退役的meta8,顶配的,基本没咋个用,闲来无事,就想折腾折腾。好久没玩android了,就准备折腾这部meta8了。hisi650的CPU,应该可以做很多事情了。先升级android8玩玩。

          host:Ubuntu16.04版,裸机。

          target:就是meta8了。

准备环境:

        1、安装curl。命令:apt install curl。

        2、安装依赖环境。

             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 x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4

       3、安装openjdk-8-jdk,android8.0要求用openjdk-8。安装命令:apt-get install openjdk-8-jdk。

      4、下载源码。源码是从清华镜像站拉下来的。具体拉的过程可以参考清华镜像站AOSP同步说明。目前中国的宽带水平不错,有两个小时基本拉完。

      5、编译meta8 Kernel,源码从华为emui站下载。按照解压出来的第一个说明,非常顺利的在out里面获得了Imaze.gz。比以前玩三星内核痛快多了。

       6、android 8.0源码根目录建out目录。不件也成,反正系统会建。将上一步得到的Imaze.gz拷贝到out里面算是备份。

       7、编译android,一次执行下面命令。

           (1)export USE_CCACHE=1

           (2)prebuilts/misc/linux-x86/ccache/ccache -M 50G

           (3)source build/envsetup.sh

           (4)lunch

           这里要选择device,我选择了2,64位的arm。

          (5)make -j8

           我用的是make all -j8命令,习惯了,配置完毕统统的make all。

    顺畅的一笔,大约三个小时,编译就跑完了,生成的文件在/root/aosp/out/target/product/generic_arm64里面。各种img。

          不知道是Ubuntu的编译系统进步了,还是android的源码进步了,反正是一路通畅,只是时间问题。

       8、编译升级包。make  updatepackage,生成zip升级包。     

编译心得:android一路走来,已经8.1版本了,基本上都非常成熟。正向目标的编译工具都有线程的,不熟悉,可以到makefile里面去找编译命令。
      9、增加HI3650的设备。在device的huawei目录下增加hi3650,和hi3650-kernel两个目录。
     晕死,没写完!就成发布了,这个csdn,失望至极!

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
非常威猛的官方固件UPDATE.APP解包打包工具(转自XDA论坛) Huawei Update Extractor After messing around a bit with the perl tools available for extracting Huawei update.app files, i got the idea to create an own (windows) tool. Requirements .Net Framework 3.5 Install Extract the content of the zip to a folder somewhere on your system. Execute HuaweiUpdateExtractor.exe I'm planning to create an installer sometime. Usage Press the browse (...) button and select an update.app file. Select a device or unknown and press on the open button. You'll see the content of the update.app file in the listview. Select one or more files and right click. Choose Extract selected from the context menu. Choose the ouput folder and press ok. Or just right click on the list and select Extract all, choose the output folder again and press ok. Press close on the extract window. You can sort the list on sequence, filename and size. Just press on the desired column header. Command line: HuaweiUpdateExtractor extract input output [profile] HuaweiUpdateExtractor repack input output profile Profile The profiles.xml file is used to identify the files in the update.app file. Every file in the update.app has a sequence or type, which is also shown in the list. Those sequences or types are used to identify the file/device partition. Example: system.img recovery.img baseband.img version.txt splash.raw565 boot.img cust.img userdata.img signature crc system.img cache.img cust.img userdata.img modemimage.img boot.img recovery.img signature crc - Root tag of the xml file. - Identifies a device - attribute name: name of the device - attribute author: author of the device - File root tag - Identifies a file - attribute sequence: sequence of the file in update.app - attribute type: type of the file in the update.app - attribute partition: destination partition on the device - attribute signature: used to identify the signature file - attribute checksum: used to identify the checksum file - value: file name You can add or edit devices. If you want them to integrate in newer version, pm 'em to me. I'm gonna make some auto update for the device file somewhere in the future Roadmap - You tell me ... Credits ZeBadger (zebadger@hotmail.com) for figuring out the file headers S34Qu4K3 for the P6 partition layout ngamyarthar for adding ALOT of devices! Changelog

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值