.repo/
directory. Run the
following:
$ repo init -u https://android.googlesource.com/platform/manifest \
-b android-5.0.0_r1
.repo/
directory do the following:
local_manifests/
local_manifest.xml
in the local_manifests/
directory.
In order to let the repo fetch the ipShiled changes from
NESL github, you should edit local_manifest.xml
to contain the following:
<manifest>
<remote name="github" fetch="https://github.com" />
<remove-project name="platform/frameworks/native" />
<project path="frameworks/native" remote="github"
name="malzantot/lollipop-ips-sensorservice"
revision="lollipop-ipshield" />
<remove-project name="platform/frameworks/base" />
<project path="frameworks/base" remote="github"
name="malzantot/lollipop-ips-frameworks_base"
revision="lollipop-ipshield" />
<remove-project name="platform/external/sepolicy" />
<project path="external/sepolicy" remote="github"
name="malzantot/lollipop-ips-sepolicy"
revision="lollipop-ipshield" />
<remove-project name="platform/system/core" />
<project path="system/core" remote="github"
name="malzantot/lollipop-ips-libutils"
revision="lollipop-ipshield" />
</manifest>
android-5.0.0_r1
.$ repo sync -f
Now you have all the source code in place, but you still need to get the non open-source part of AOSP i.e. some 3rd party drivers. Please go to this page to download the patch for your device and apply them to the source folder.
Please make sure you apply the binary driver patches before starting the build!
$ source build/envsetup.sh
$ lunch 20
$ make update-api
$ make -j8
Note that you should adjust your -j8 parameter according to the number of cores in your processor.
.repo/
directory. Run the
following:
$ repo init -u https://android.googlesource.com/platform/manifest \
-b android-4.2.2_r1
.repo/
directory do the following:
local_manifests/
local_manifest.xml
in the local_manifests/
directory.
In order to let the repo fetch the ipShiled changes from
NESL github, you should edit local_manifest.xml
to contain the following:
<manifest>
<remote name="github" fetch="https://github.com" />
<remove-project name="platform/frameworks/native" />
<project path="frameworks/native" remote="github"
name="nesl/platform_frameworks_native"
revision="refs/tags/android-4.2.2_r1" />
<remove-project name="platform/frameworks/base" />
<project path="frameworks/base" remote="github"
name="nesl/platform_frameworks_base"
revision="refs/tags/android-4.2.2_r1" />
</manifest>
4.2.2_r1
.$ cd frameworks/base
$ git checkout -b jb-privacy remotes/github/jb-privacy
$ cd ../native
$ git checkout -b jb-privacy remotes/github/jb-privacy
$ cd ../..
Now you have all the source code in place, but you still need to get the non open-source part of AOSP i.e. some 3rd party drivers. Please go to this page to download the patch for your device and apply them to the source folder.
Please make sure you apply the binary driver patches before starting the build!
$ source build/envsetup.sh
$ lunch 11
$ make -j8
Note that you should adjust your -j8 parameter according to the number of cores in your processor.
To flash the ipShield image, you should first unlock the bootloader of your phone, if you have not done so before:
$ adb reboot bootloader
$ fastboot devices
$ fastboot oem unlock
Then use the following commands to flash the image (Please understand the risk of flashing your phone, and make sure to do back-up of important data):
$ cd out/target/product/mako
$ export ANDROID_OUT_PATH=$PWD
$ adb reboot bootloader
$ fastboot -w flashall
Then enjoy the ipShield features by installing the FirewallManager front-end app here.
Please refer to this page for instructions about how to install Google apps (including the Play Store) on a phone with fresh AOSP.