commit d2c2e8ea2afa35e3e6ed39e21e7c555558a08859 Author: Damillora Date: Mon Jun 13 13:58:57 2022 +0700 initial commit diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..885450e --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +cd /android +lunch treble_arm64_bgN-userdebug + +RELAX_USES_LIBRARY_CHECK=true +BUILD_NUMBER=$rom_fp +make installclean +make -j 16 systemimage +make vndk-test-sepolicy +xz -c -T16 $OUT/system.img > /android/system-$rom_fp.img.xz diff --git a/install_dependencies.sh b/install_dependencies.sh new file mode 100755 index 0000000..b9b23c3 --- /dev/null +++ b/install_dependencies.sh @@ -0,0 +1,31 @@ +apt-get install -y \ + build-essential \ + imagemagick \ + xorriso \ + locales \ + openjdk-8-jdk \ + python \ + git \ + m4 \ + unzip \ + bison \ + zip \ + gperf \ + libxml2-utils \ + zlib1g:i386 \ + libstdc++6:i386 \ + bc \ + curl \ + lzop \ + lzip \ + lunzip \ + jq \ + wget \ + squashfs-tools \ + sudo ; +ln -s /usr/bin/xorrisofs /usr/bin/mkisofs +curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo +chmod a+x /usr/local/bin/repo + +git config --global user.name "Damillora" +git config --global user.email "developer@damillora.com" diff --git a/prepare_source.sh b/prepare_source.sh new file mode 100755 index 0000000..416d7d5 --- /dev/null +++ b/prepare_source.sh @@ -0,0 +1,18 @@ +rom_fp="$(date +%y%m%d).sophie" + +manifest_url="https://android.googlesource.com/platform/manifest" +aosp="android-12.1.0_r8" +phh="android-12.0" + +mkdir /android +cd /android +repo init -u "$manifest_url" -b $aosp --depth=1 +git clone https://git.nanao.moe/android/treble_manifest .repo/local_manifests -b $phh +repo sync -c -j 1 + +cd device/phh/treble +bash generate.sh +wget https://github.com/phhusson/treble_experimentations/raw/master/0001-Fix-SearchLauncher-for-Android-12.1.patch +cd vendor/partner_gms +git am /android/0001-Fix-SearchLauncher-for-Android-12.1.patch +cd /android