Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit f299146

Browse files
committed
Add android-10.0. for the moment, only do vanilla/su variants
1 parent d3d75ff commit f299146

File tree

1 file changed

+41
-24
lines changed

1 file changed

+41
-24
lines changed

build.sh

+41-24
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ phh="android-8.1"
1616
if [ "$1" == "android-9.0" ];then
1717
aosp="android-9.0.0_r47"
1818
phh="android-9.0"
19+
elif [ "$1" == "android-10.0" ];then
20+
aosp="android-10.0.0_r2"
21+
phh="android-10.0"
1922
fi
2023

2124
if [ "$release" == true ];then
2225
[ -z "$version" ] && exit 1
2326
[ ! -f "$originFolder/release/config.ini" ] && exit 1
2427
fi
2528

26-
2729
repo init -u https://android.googlesource.com/platform/manifest -b $aosp
2830
if [ -d .repo/local_manifests ] ;then
2931
( cd .repo/local_manifests; git fetch; git reset --hard; git checkout origin/$phh)
@@ -48,30 +50,45 @@ repo manifest -r > release/$rom_fp/manifest.xml
4850
bash "$originFolder"/list-patches.sh
4951
cp patches.zip release/$rom_fp/patches.zip
5052

51-
buildVariant treble_arm64_avN-userdebug arm64-aonly-vanilla-nosu
52-
buildVariant treble_arm64_agS-userdebug arm64-aonly-gapps-su
53-
#buildVariant treble_arm64_afS-userdebug arm64-aonly-floss-su
54-
rm -Rf out/target/product/phhgsi*
55-
56-
buildVariant treble_arm64_bvN-userdebug arm64-ab-vanilla-nosu
57-
buildVariant treble_arm64_bgS-userdebug arm64-ab-gapps-su
58-
#buildVariant treble_arm64_bfS-userdebug arm64-ab-floss-su
59-
rm -Rf out/target/product/phhgsi*
60-
61-
buildVariant treble_arm_avN-userdebug arm-aonly-vanilla-nosu
62-
[ "$1" != "android-9.0" ] && buildVariant treble_arm_aoS-userdebug arm-aonly-go-su
63-
buildVariant treble_arm_agS-userdebug arm-aonly-gapps-su
64-
rm -Rf out/target/product/phhgsi*
65-
66-
buildVariant treble_a64_avN-userdebug arm32_binder64-aonly-vanilla-nosu
67-
buildVariant treble_a64_agS-userdebug arm32_binder64-aonly-gapps-su
68-
rm -Rf out/target/product/phhgsi*
69-
70-
if [ "$1" = "android-9.0" ];then
71-
buildVariant treble_a64_bvN-userdebug arm32_binder64-ab-vanilla-nosu
72-
buildVariant treble_a64_bgS-userdebug arm32_binder64-ab-gapps-su
53+
if [ "$1" = "android-10.0" ];then
54+
buildVariant treble_arm64_avS-userdebug quack-arm64-aonly
55+
rm -Rf out/target/product/phhgsi*
56+
buildVariant treble_arm64_bvS-userdebug quack-arm64-ab
57+
rm -Rf out/target/product/phhgsi*
58+
buildVariant treble_arm_avS-userdebug quack-arm-aonly
59+
rm -Rf out/target/product/phhgsi*
60+
buildVariant treble_arm_bvS-userdebug quack-arm-ab
61+
rm -Rf out/target/product/phhgsi*
62+
buildVariant treble_a64_avS-userdebug quack-arm32_binder64-aonly
63+
rm -Rf out/target/product/phhgsi*
64+
buildVariant treble_a64_bvS-userdebug quack-arm32_binder64-ab
65+
rm -Rf out/target/product/phhgsi*
66+
else
67+
buildVariant treble_arm64_avN-userdebug arm64-aonly-vanilla-nosu
68+
buildVariant treble_arm64_agS-userdebug arm64-aonly-gapps-su
69+
#buildVariant treble_arm64_afS-userdebug arm64-aonly-floss-su
70+
rm -Rf out/target/product/phhgsi*
71+
72+
buildVariant treble_arm64_bvN-userdebug arm64-ab-vanilla-nosu
73+
buildVariant treble_arm64_bgS-userdebug arm64-ab-gapps-su
74+
#buildVariant treble_arm64_bfS-userdebug arm64-ab-floss-su
75+
rm -Rf out/target/product/phhgsi*
76+
77+
buildVariant treble_arm_avN-userdebug arm-aonly-vanilla-nosu
78+
[ "$1" != "android-9.0" ] && buildVariant treble_arm_aoS-userdebug arm-aonly-go-su
79+
buildVariant treble_arm_agS-userdebug arm-aonly-gapps-su
80+
rm -Rf out/target/product/phhgsi*
81+
82+
buildVariant treble_a64_avN-userdebug arm32_binder64-aonly-vanilla-nosu
83+
buildVariant treble_a64_agS-userdebug arm32_binder64-aonly-gapps-su
84+
rm -Rf out/target/product/phhgsi*
85+
86+
if [ "$1" = "android-9.0" ];then
87+
buildVariant treble_a64_bvN-userdebug arm32_binder64-ab-vanilla-nosu
88+
buildVariant treble_a64_bgS-userdebug arm32_binder64-ab-gapps-su
89+
fi
90+
rm -Rf out/target/product/phhgsi*
7391
fi
74-
rm -Rf out/target/product/phhgsi*
7592

7693
if [ "$release" == true ];then
7794
(

0 commit comments

Comments
 (0)