Instructions to Build on Mac Pro

download Instructions to Build on Mac Pro

of 3

Transcript of Instructions to Build on Mac Pro

  • 8/19/2019 Instructions to Build on Mac Pro

    1/3

    ˇInstructions to Build Android onMac

    Pro

    Setup the mac to build android by following instructions here

    1)MounttheAndroidVolumeonMacPro:On a Terminal or New Screen:a) Import bash_proles:

    source ~/.bashrc

    source ~/.bash_profile

    b) Mount the Android Volume:

     mountAndroid

    2)Switch to theAndroidVolume:

    cd /Volumes/android/uiuc_android_lollipop

    3)EnvironmentSetup:

    Addendum:

    ● go to running builds

    ● get Nexus 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 do “make -j8”

    EndAddendum

    Enter the following commands:

    source build/envsetup.sh

    https://developers.google.com/android/nexus/drivershttps://source.android.com/source/running.htmlhttps://medium.com/%40raminmahmoodi/build-android-5-0-lollipop-on-osx-10-10-yosemite-441bd00ee77a%23.xjyfx7kwo

  • 8/19/2019 Instructions to Build on Mac Pro

    2/3

    ulimit -S -n 1024

    4)Congurethebuild:

    Enter the following command (for Nexus 6):

    lunch aosp_shamu-eng

     5) Build!

     make -j16

    6)Then, toasha device, connect thedevicetothemacpro, thenreboot themachine tothe bootloader:Enter:

    adb reboot bootloader

    Then, (under the same directory you have built android), ash the images with the following com-mand:

    fastboot flashall [-w] (-w option if you 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)Pushuiautomatortesting scriptsonto thedevice:Under the older mobileinteraction repo, nd the scripts at mobileinteraction/uitracesexplorer/testcases/uitracesexplorer/jars/testcases/*.jarPush all the les onto the android system by doing pushes individually:

    adb push HomeTestCase.jar /sdcard/

    Repeatthisforall 4 .jarles

    8)InstallGoogleAppsandplayservices:First, Download Google apps:For our modied version of Android 5.1.1, download this: http://oceanhost.eu/emjr10qqp7bj/gapps-lp-20150222-signed.zip.html (This le is also available under /Volumes/android/uiuc_android_lollipop/gapps)

    Then, push it onto the device by entering:

    http://oceanhost.eu/emjr10qqp7bj/gapps-lp-20150222-signed.zip.htmlhttp://oceanhost.eu/emjr10qqp7bj/gapps-lp-20150222-signed.zip.html

  • 8/19/2019 Instructions to Build on Mac Pro

    3/3

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

    Then, ash the TWRP recovery image to the device:Download the twrp image: https://dl.twrp.me/shamu/twrp-2.8.7.1-shamu.imgThen 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 won’t 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 conrm your

    choice.● Then, under the TWRP recovery mode on the phone(you may have to swipe right to allow

    modications if this is your rst time accessing TWRP on the phone), click on “install”.

    ● Then under the le directories, nd /sdcard/gapps-lp-20150222-signed.zip , click on the lelisting.

    ● Swipe Right to conrm ash, then click “Reboot System” after ash.

    ● Now you should have a fresh modied Android system ready to go with Google Play Serviceand the testing scripts.

    To update google play services:1) Launch the Play Store app2) Search “Google Play Services” by clicking on the top right button3) Update Google Play Services on the app page by clicking on the Google Play Services Result andthe “Update” 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%20thttps://source.android.com/source/initializing.html

    Installing GAppshttp://forum.xda-developers.com/android/software/tk-gapps-t3116347https://twrp.me/devices/motorolanexus6.html

    https://twrp.me/devices/motorolanexus6.htmlhttp://forum.xda-developers.com/android/software/tk-gapps-t3116347https://source.android.com/source/initializing.htmlhttps://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8%23q=how%2520to%2520build%2520android%2520on%2520yosemite&es_th=1https://dl.twrp.me/shamu/twrp-2.8.7.1-shamu.img