We are using ubuntu chroot from Sailfish HADK, so build your sailfish for starters. https://gist.github.com/kimmoli/90ddf7540222b27fd4f0ca9ec1214d45
mkdir -p ~/android/system
cd ~/android/system/
repo init -u https://github.com/CyanogenMod/android.git -b stable/cm-12.1-YOG7D
cd .repo/local_manifests
curl -O https://gist.githubusercontent.com/kimmoli/56edb0c8d975ffa22b0487279db68788/raw/onyx.xml
onyx.xml is the other file in this gist
~/android/system/.repo/manifest.xml
- revision="refs/tags/android-5.1.1_r26" />
+ revision="refs/tags/android-5.1.1_r35" />
This takes some time, about 25GBytes
cd ~/android/system
repo sync
rm -rI ~/android/system/device/oppo/common/configpanel/
rm -rI ~/android/system/device/oppo/common/keyhandler/
rm -rI ~/android/system/device/oppo/common/cmhw/
~/android/system/device/oneplus/onyx/overlay/packages/services/Telecomm/res/values/config.xml
- <bool name="config_speed_up_audio_on_mt_calls">true</bool>
+<!-- <bool name="config_speed_up_audio_on_mt_calls">true</bool> -->
sdk
ubu-chroot -r $MER_ROOT/sdks/ubuntu
cd ~/android/system
This might be needed or not (ref bountycastle errors)
sudo apt-get install unzip
hadk
cd ~/android/system
source build/envsetup.sh
export USE_CCACHE=1
breakfast $DEVICE
croot
brunch $DEVICE
Build time was roughly 4 hours with i3
Current status: make completed successfully
scp /home/kimmoli/android/system/out/target/product/onyx/cm-12.1-20160723-UNOFFICIAL-onyx.zip nemo@....:/media/sdcard/nnnn-nnnn/
Wipe, factory reset
Install zip
reboot system
If you get some BountyCastle error with file keys
, run this commend (change paths) from outside ubuntu chroot
java -jar \
/home/$USER/android/system/out/host/linux-x86/framework/dumpkey.jar \
build/target/product/security/testkey.x509.pem \
build/target/product/security/cm.x509.pem \
build/target/product/security/cm-devkey.x509.pem > \
/home/$USER/android/system/out/target/product/scorpion/obj/PACKAGING/ota_keys_intermediates/keys