项目作者: MartinX3-AndroidDevelopment

项目描述 :
twrp akari sony xperia xz2
高级语言: Makefile
项目地址: git://github.com/MartinX3-AndroidDevelopment/TWRP_android_device_sony_akari_old.git
创建时间: 2018-07-22T13:41:31Z
项目社区:https://github.com/MartinX3-AndroidDevelopment/TWRP_android_device_sony_akari_old

开源协议:GNU Affero General Public License v3.0

下载


TWRP device configuration for Sony Xperia XZ2

XDA Thread

https://forum.xda-developers.com/xperia-xz2/development/recovery-twrp-3-2-2-0-touch-recovery-t3821597

Compile

First checkout minimal twrp with omnirom tree:

  1. repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-8.1
  2. repo sync

Then add these projects to .repo/manifest.xml:

  1. <project path="device/sony/akari" name="MartinX3/android_device_sony_akari" remote="github" revision="android-9.0" ></project>

To make all works you need to modify the buildinfo.sh in build/tools

echo “ro.build.version.release=$PLATFORM_VERSION”

echo “ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH”

to

echo “ro.build.version.release_orig=$PLATFORM_VERSION”

echo “ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH”

And you need to increase the PLATFORM_VERSION to 16.1.0 in build/core/version_defaults.mk to override Google’s anti-rollback features

  1. Finally execute these:

. build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree.
lunch omni_akari-eng
mka adbd bootimage

  1. To test it:

fastboot boot out/target/product/akari/boot.img
```