linux:android-source-compile-galaxy-nexus
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:android-source-compile-galaxy-nexus [2012/08/08 12:08] – created percy | linux:android-source-compile-galaxy-nexus [2016/05/05 13:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Compile the Android JB 4.1,need 64 bit linux,so use VirtualBox to install Ubuntu 12.04. | Compile the Android JB 4.1,need 64 bit linux,so use VirtualBox to install Ubuntu 12.04. | ||
- | 1.https:// | + | ===== Google Official build guide ===== |
- | https:// | + | |
- | http:// | + | - https:// |
+ | | ||
+ | | ||
+ | |||
+ | ===== jdk1.6: ===== | ||
- | jdk1.6: | ||
http:// | http:// | ||
+ | Download it and move to /opt: | ||
+ | chmod +x jdk-6u31-linux-x64.bin | ||
+ | ./ | ||
+ | After install, | ||
+ | export JAVA_HOME=/ | ||
+ | export JRE_HOME=/ | ||
+ | export CLASSPATH=.: | ||
+ | export PATH=$JAVA_HOME/ | ||
+ | Use java -version to check it is correct: | ||
+ | < | ||
+ | java version " | ||
+ | Java(TM) SE Runtime Environment (build 1.6.0_31-b04) | ||
+ | Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) | ||
+ | </ | ||
+ | ===== VirtualBox Share: ===== | ||
- | VirtualBox Share: | ||
1. Fist add file share in VirtualBox setting.The share file name: | 1. Fist add file share in VirtualBox setting.The share file name: | ||
2.Then mount it in the Ubuntu: | 2.Then mount it in the Ubuntu: | ||
Line 18: | Line 35: | ||
Android / | Android / | ||
| | ||
+ | ===== Resize the VirtualBox VDI ===== | ||
+ | Resize to 40G | ||
+ | VBoxManage modifyhd android_vhdd.vdi --resize 40000 | ||
+ | Then use gparted to resize the origin extend partitoin. | ||
| | ||
- | | + | ===== ClockworkMod Recovery ===== |
+ | Download recovery here: | ||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | fastboot flash recovery recovery-clockwork-6.0.1.0-maguro.img | ||
+ | |||
+ | ===== Install su/ | ||
+ | |||
+ | < | ||
+ | adb root | ||
+ | adb remount | ||
+ | adb push su /system/bin | ||
+ | adb push Superuser.apk /system/app | ||
+ | adb shell chmod 06755 / | ||
+ | adb shell chmod 06755 / | ||
+ | </ | ||
+ | ===== Enter fastboot mode ===== | ||
+ | |||
+ | Volume UP+DOWN+Power | ||
+ | |||
+ | ===== gapps download ===== | ||
+ | http:// | ||
+ | |||
+ | jb: | ||
+ | ===== fastboot ===== | ||
+ | USAGE: | ||
+ | |||
+ | 1. fastboot flash system system.img | ||
+ | 2. fastboot flash boot boot.img | ||
+ | 3. fastboot -w | ||
+ | NOTICE:it will format the sdcard,so need backup the data on sdcard first. | ||
+ | |||
+ | |||
+ | ===== Recovery ===== | ||
+ | fastboot flash recovery recovery-clockwork-6.0.1.0-maguro.img | ||
+ | |||
+ | Root step: | ||
+ | 1.boot to fastboot mode. | ||
+ | 2.flash the recovery | ||
+ | 3.push su& | ||
+ | 4.reboot. | ||
+ | | ||
+ | Now use SuperSU to manager the root list: | ||
+ | | ||
+ | http:// | ||
+ | | ||
+ | NOTICE: |
/var/www/dokuwiki/wiki/data/pages/linux/android-source-compile-galaxy-nexus.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1