Skip to content

Building from Sources

Adam Welc edited this page Feb 14, 2019 · 2 revisions

Building the Nanoscope ROM from sources is almost identical to the procedure of building a generic custom Android ROM for Google devices described here (currently Nanoscope has been tested with Nexus 6P running Android 7.1.2 but should work equally well on all other Google devices where this particular version of Android is supported).

The main difference is in the sources used for the Android ROM build - Nanoscope support is included in the custom version of ART (Android Runtime) available here. Consequently, after following instructions to obtain “generic” AOSP sources, directory containing generic version of ART must be replaced with a directory containing Nanoscope-enabled version of ART.

Let’s assume that Android sources will be deposited in the ~/AOSP directory. Then (after following appropriate initialization steps described here and here), generic AOSP sources for Android 7.1.2 are obtained in the following way:

cd ~/AOSP

repo init -u https://android.googlesource.com/platform/manifest -b android-7.1.2_r28

repo sync

Before following subsequent ROM building steps, art directory created by the “repo sync” command must be replaced with the Nanoscope-enabled version:

cd ~/AOSP

rm -rf art

git clone https://github.com/uber/nanoscope-art.git art

Clone this wiki locally