User Tools

Site Tools


linux:android-source-compile-galaxy-nexus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:android-source-compile-galaxy-nexus [2012/08/08 16:01] percylinux:android-source-compile-galaxy-nexus [2016/05/05 13:07] (current) – external edit 127.0.0.1
Line 5: Line 5:
 ===== Google Official build guide ===== ===== Google Official build guide =====
  
-https://source.android.com/source/initializing.html +  - https://source.android.com/source/initializing.html 
-https://developers.google.com/android/nexus/drivers#magurojro03c +  https://developers.google.com/android/nexus/drivers#magurojro03c 
-http://source.android.com/source/building-devices.html+  http://source.android.com/source/building-devices.html
  
 ===== jdk1.6: ===== ===== jdk1.6: =====
Line 13: Line 13:
 http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-x64.bin http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-x64.bin
  
 +Download it and move to /opt: 
 +  chmod +x jdk-6u31-linux-x64.bin 
 +  ./jdk-6u31-linux-x64.bin 
 +After install,append folloing config to /etc/profile: 
 +  export JAVA_HOME=/opt/jdk1.6.0_31 
 +  export JRE_HOME=/opt/jdk1.6.0_31/jre 
 +  export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH 
 +  export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH 
 +Use java -version to check it is correct: 
 +<code> 
 +java version "1.6.0_31" 
 +Java(TM) SE Runtime Environment (build 1.6.0_31-b04) 
 +Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) 
 +</code>
 ===== VirtualBox Share: ===== ===== VirtualBox Share: =====
  
Line 22: Line 35:
   Android /mnt/Android vboxsf rw,gid=100,uid=1000,auto 0 0   Android /mnt/Android vboxsf rw,gid=100,uid=1000,auto 0 0
      
 +===== 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://www.clockworkmod.com/rommanager/
  
 +http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.1.0-maguro.img
 +
 +  fastboot flash recovery recovery-clockwork-6.0.1.0-maguro.img
 +
 +===== Install su/Superuser.apk =====
 +
 +<code>
 +  adb root
 +  adb remount
 +  adb push su /system/bin
 +  adb push Superuser.apk /system/app
 +  adb shell chmod 06755 /system/bin/su
 +  adb shell chmod 06755 /system/app/Superuser.apk
 +</code>
 +===== Enter fastboot mode =====
 +
 +Volume UP+DOWN+Power
 +
 +===== gapps download =====
 +http://goo.im/gapps/
 +
 +jb:http://goo.im/gapps/gapps-jb-20120726-signed.zip
 +===== fastboot =====
 +USAGE:http://wiki.cyanogenmod.com/wiki/Fastboot
 +
 +  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&Superuser.apk,add execute permission.
 +  4.reboot.
 +  
 +  Now use SuperSU to manager the root list:
 +  
 +  http://forum.xda-developers.com/showthread.php?t=1538053
 +  
 +  NOTICE:click the above link to get the zip package,just install the zip package in recovery mode is OK.
/var/www/dokuwiki/wiki/data/attic/linux/android-source-compile-galaxy-nexus.1344412896.txt.gz · Last modified: 2016/05/05 13:06 (external edit)