Professional Documents
Culture Documents
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
make clobber
go to forrests folder
python update_aosp.py
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:
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.
Now you should have a fresh modified Android system ready to go with Google Play Service
and the testing scripts.
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