You are on page 1of 3

Instructions to Build Android on Mac

Pro
Setup the mac to build android by following instructions here
1) Mount the Android Volume on Mac Pro:
On a Terminal or New Screen:
a) Import bash_profiles:
source ~/.bashrc

source ~/.bash_profile
b) Mount the Android Volume:
mountAndroid
2) Switch to the Android Volume:
cd /Volumes/android/uiuc_android_lollipop
3) Environment Setup:
Addendum:

go to running builds

getNexus 6 (Mobile) binaries for Android 5.1.0 (LMY47I) binaries from here

androidMount

go to /Volumes/android/uiuc_android_lollipop and copy the unzipped versions of these scripts

run the three scripts

make clobber

go to forrests folder

python update_aosp.py

go back to/Volumes/android/uiuc_android_lollipop and domake -j8

End Addendum
Enter the following commands:
source build/envsetup.sh

ulimit -S -n 1024
4) Configure the build:
Enter the following command (for Nexus 6):
lunch aosp_shamu-eng
5) Build!
make -j16
6) Then, to flash a device, connect the device to the macpro, then reboot the machine to the
bootloader:
Enter:
adb reboot bootloader
Then, (under the same directory you have built android), flash the images with the following command:
fastboot flashall [-w](-w option ifyou wish to erase all existing data on the
device)
BIPLABS NOTES:
adb -s XZFGHJGJH reboot bootloader
fastboot oem unlock
fastboot reboot
fastboot flashall -w
7) Push uiautomator testing scripts onto the device:
Under the older mobileinteraction repo, find the scripts atmobileinteraction/uitracesexplorer/
testcases/uitracesexplorer/jars/testcases/*.jar
Push all the files onto the android system by doing pushes individually:
adb push HomeTestCase.jar /sdcard/
Repeat this for all 4 .jar files
8) Install Google Apps and play services:
First, Download Google apps:
For our modified version of Android 5.1.1, download this:http://oceanhost.eu/emjr10qqp7bj/
gapps-lp-20150222-signed.zip.html(This file is also available under /Volumes/android/
uiuc_android_lollipop/gapps)
Then, push it onto the device by entering:

adb push gapps-lp-20150222-signed.zip/sdcard/


Then, flash the TWRP recovery image to the device:
Download the twrp image:https://dl.twrp.me/shamu/twrp-2.8.7.1-shamu.img
Then enter bootloader with the same command (adb reboot bootloader)
Flash the recovery image by:
fastboot flash recovery twrp-2.8.7.1-shamu.img
Then, boot into recovery by entering:
adb reboot recovery
This wont work with the new images.

Afer doing adb reboot bootloader

Use the volume key to toggle to Recovery Mode, then use the Power button to confirm your
choice.

Then, under the TWRP recovery mode on the phone(you may have to swipe right to allow
modifications if this is your first time accessing TWRP on the phone), click oninstall.

Then under the file directories, find /sdcard/gapps-lp-20150222-signed.zip , click on the file
listing.

Swipe Right to confirm flash, then clickReboot System after flash.

Now you should have a fresh modified Android system ready to go with Google Play Service
and the testing scripts.

To update google play services:


1) Launch the Play Store app
2) SearchGoogle Play Services by clicking on the top right button
3) Update Google Play Services on the app page by clicking on the Google Play Services Result and
theUpdate Button on the result page
Ref:

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=how%20to%20bu
https://source.android.com/source/initializing.html
Installing GApps
http://forum.xda-developers.com/android/software/tk-gapps-t3116347
https://twrp.me/devices/motorolanexus6.html

You might also like