compile Android-4.3.1_r source code and swipe to your own Galaxy Nexus I9250 on the real machineRain Date: 2014-04-30
The purpose of compiling the source code is to modify the source code, and then can also run on the corresponding phone, only in this sense. I have a Samsung Galaxy Nexus I9250 on hand, codenamed Maguro. However, at present, Google's official does not provide for the android4.4.2 version of the corresponding hardware driver, the latest only available to Android4.3, specifically can be viewed here https://developers.google.com/android/nexus/drivers. I see on the internet based on 4.4 source code +4.3 driver compilation success and can run, but I tried, many errors have not been resolved so far, so first tried the 4.3 source +4.3 driver. Here's the whole process:
Note: For details on compiling environment settings, refer to my previous article < based on Ubuntu 14.04 LTS compiled Android4.4.2 source code;.
The first step: Get ANDROID-4.3.1_R1 Source code
$mkdir ANDROID-4.3.1_R1$CD Android-4.3.1_r1$repo init-u https://android.googlesource.com/platform/manifest-b Android-4.3.1_r1$repo Sync
Step Two: Compile the source code for ANDROID-4.3.1_R1
[email protected]:~/devenv/android-4.3.1_r1$. Build/envsetup.shincluding device/asus/deb/vendorsetup.shincluding device/asus/flo/vendorsetup.shincluding Device /asus/tilapia/vendorsetup.shincluding device/generic/armv7-a-neon/vendorsetup.shincluding device/generic/mips/ Vendorsetup.shincluding device/generic/x86/vendorsetup.shincluding device/lge/mako/vendorsetup.shincluding Device /samsung/maguro/vendorsetup.shincluding device/samsung/manta/vendorsetup.shincluding Device/samsung_slsi/arndale /vendorsetup.shincluding device/samsung/toroplus/vendorsetup.shincluding device/samsung/toro/ Vendorsetup.shincluding device/ti/panda/vendorsetup.shincluding sdk/bash_completion/adb.bash[email protected]:~/devenv/android-4.3.1_r1$ Lunchyou ' re Building on linuxlunch menu ... pick a combo:1 2. Aosp_x86-eng 3. Aosp_mips-eng 4. Vbox_x86-eng 5. Aosp_deb-userdebug 6. Aosp_flo-userdebug 7. Full_tilapia-userdebug 8. Mini_armv7a_neon-userdebug 9. Mini_mips-userdebug 10. Mini_x86-userdebug 11. Full_mako-userdebug 12. Full_maguro-userdebug 13. Full_manta-userdebug 14. Full_arndale-userdebug 15. Full_toroplus-userdebug 16. Full_toro-userdebug 17. Full_panda-userdebugwhich would? [Aosp_arm-eng] 12============================================platform_version_codename=relplatform_version= 4.3.1target_product=full_magurotarget_build_variant=userdebugtarget_build_type=releasetarget_build_apps=target _arch=armtarget_arch_variant=armv7-a-neontarget_cpu_variant=cortex-a9host_arch=x86host_os=linuxhost_os_extra= linux-3.13.0-24-generic-x86_64-with-ubuntu-14.04-trustyhost_build_type=releasebuild_id=jls36iout_dir=out====== ======================================[email protected]:~/devenv/android-4.3.1_r1$ Make-j4
Note: If this step directly to the machine, will appear prompt flash success, but after the restart of Google logo after the black screen, unable to start. The reason is because the driver is not added, you must complete the third step before starting the brush machine.
Step Three: Download the official driver for i9250 (Maguro) and recompile(1) Download driver: Enter the Https://developers.google.com/android/nexus/drivers#magurojwr66y, the Wi-Fi and other 6 drivers once downloaded, and then extracted, will generate 6. sh files. Put these files in the root directory of your source code. (2) Execute. sh file extraction driver: by performing "chmod +x *.sh" To increase the executable permissions for them, then execute the 6 sh files sequentially, each file will let you enter "I accept" to accept the agreement. After acceptance, the extracted driver is placed in a directory named vendor. At this point, the vendor directory should be located under the root directory of the source code, under ANDROID-4.3.1_R1. then re-compile the following command again, the compilation time will be compared to the end.
$. Build/envsetup.sh$lunch 12$make-j4
The fourth step is to brush the compiled img onto the i9250 phone.(1) Modify the environment variables in ~/.BASHRC android_product_out to:
Export Android_product_out=/home/dennis/devenv/android-4.3.1_r1/out/target/product/maguro
(2) Re-enter the command line, then start the brush machine
$ adb reboot bootloader$ FastBoot flashall-w
After the brush, the system will automatically restart, if there are no other problems, you can see the results of your labor!
Rainwater Reprint Please specify source: http://blog.csdn.net/gobitan/article/details/24792589
References:1. http://blog.csdn.net/gobitan/article/details/24367439 based on Ubuntu 14.04 LTS compiled Android4.4.2 source code 2. http://blog.csdn.net/zjmdp/article/details/7737802 Android 4.1 (Jelly Bean) source code compilation Process Summary
Compile Android-4.3.1_r source code and swipe to your own Galaxy Nexus I9250 on the real machine