From 7a0b4edfb304af03d41d99cab091c9c6903e38b3 Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Fri, 27 Sep 2019 10:44:26 +0800 Subject: [PATCH] Changes for September 2019 - Use a slightly altered apply-patches - Don't enforce privapp permissions - arm-ab needs a size increase to fit - Revert LOS's FOD implementation so we can keep using PHH's - Add hardware keys overlays - Don't specify an alternative wallpaper cropper, use LOS gallery --- ...ase-system-partition-size-for-arm_ab.patch | 24 +++++++++++ 0001-treble-Add-overlay-lineage.patch | 42 +++++++++++++++---- ...ecify-config_wallpaperCropperPackage.patch | 25 +++++++++++ ...og-privapp-permissions-whitelist-vio.patch | 30 +++++++++++++ README.md | 2 +- build_treble_vanilla.sh | 10 +++++ 6 files changed, 125 insertions(+), 8 deletions(-) create mode 100644 0001-Increase-system-partition-size-for-arm_ab.patch create mode 100644 0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch create mode 100644 0001-vendor_lineage-Log-privapp-permissions-whitelist-vio.patch diff --git a/0001-Increase-system-partition-size-for-arm_ab.patch b/0001-Increase-system-partition-size-for-arm_ab.patch new file mode 100644 index 0000000..8094981 --- /dev/null +++ b/0001-Increase-system-partition-size-for-arm_ab.patch @@ -0,0 +1,24 @@ +From 037c36f36b8f71bd2001c30285bcfcd6523973b0 Mon Sep 17 00:00:00 2001 +From: Andy CrossGate Yan +Date: Wed, 4 Sep 2019 01:37:30 +0000 +Subject: [PATCH] Increase system partition size for arm_ab + +Change-Id: I3ac099dd64624ec27c5fb64ce3fa3a9e500402e5 +--- + phhgsi_arm_ab/BoardConfig.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/phhgsi_arm_ab/BoardConfig.mk b/phhgsi_arm_ab/BoardConfig.mk +index 18aaace..5726959 100644 +--- a/phhgsi_arm_ab/BoardConfig.mk ++++ b/phhgsi_arm_ab/BoardConfig.mk +@@ -2,5 +2,5 @@ include build/make/target/board/generic_arm_ab/BoardConfig.mk + include device/phh/treble/board-base.mk + + ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),) +-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 ++BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1313583104 + endif +-- +2.17.1 + diff --git a/0001-treble-Add-overlay-lineage.patch b/0001-treble-Add-overlay-lineage.patch index f1f31a7..38b9f74 100644 --- a/0001-treble-Add-overlay-lineage.patch +++ b/0001-treble-Add-overlay-lineage.patch @@ -1,4 +1,4 @@ -From 96b7b373bc8d01fba994e10fa2f2e7f3a0327252 Mon Sep 17 00:00:00 2001 +From b35194fdd618f1ae2682c6d285d92a4ae7d421cc Mon Sep 17 00:00:00 2001 From: AndyCGYan Date: Mon, 15 Jul 2019 10:43:52 +0000 Subject: [PATCH] treble: Add overlay-lineage @@ -6,15 +6,15 @@ Subject: [PATCH] treble: Add overlay-lineage Change-Id: I9d313b1488d98acc7cf37d23820946ee99745426 --- base.mk | 4 +- - .../lineage/res/res/values/config.xml | 53 +++++++++++++++++++ - 2 files changed, 56 insertions(+), 1 deletion(-) + .../lineage/res/res/values/config.xml | 81 +++++++++++++++++++ + 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml diff --git a/base.mk b/base.mk -index 3fc54cd..57c982c 100644 +index 8636247..f18e1c7 100644 --- a/base.mk +++ b/base.mk -@@ -9,7 +9,9 @@ PRODUCT_COPY_FILES += \ +@@ -11,7 +11,9 @@ PRODUCT_COPY_FILES += \ device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/phh/treble/sepolicy @@ -27,10 +27,10 @@ index 3fc54cd..57c982c 100644 $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml new file mode 100644 -index 0000000..b4a2aec +index 0000000..8df673a --- /dev/null +++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml -@@ -0,0 +1,53 @@ +@@ -0,0 +1,81 @@ + + + 255 ++ ++ ++ 127 ++ ++ ++ 127 + -- 2.17.1 diff --git a/0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch b/0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch new file mode 100644 index 0000000..e2be227 --- /dev/null +++ b/0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch @@ -0,0 +1,25 @@ +From 5180f2417b628e6f1611ce24fd54f711fbdbb991 Mon Sep 17 00:00:00 2001 +From: Andy CrossGate Yan +Date: Tue, 10 Sep 2019 02:42:36 +0000 +Subject: [PATCH] treble: Don't specify config_wallpaperCropperPackage + +Change-Id: I72b59def304779e4bd9a399c01cf1180d15bf444 +--- + overlay/frameworks/base/core/res/res/values/config.xml | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml +index 0cdc065..627c91e 100644 +--- a/overlay/frameworks/base/core/res/res/values/config.xml ++++ b/overlay/frameworks/base/core/res/res/values/config.xml +@@ -22,7 +22,6 @@ + "M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z" + true + +- com.android.wallpaperpicker + true +