Initial commit for Android 10
This commit is contained in:
commit
c02a16ccb8
40
0001-Disable-vendor-mismatch-warning.patch
Normal file
40
0001-Disable-vendor-mismatch-warning.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
From 9b907d3b202fd3f7a892b50eacd92e4d51877606 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Thu, 5 Apr 2018 10:01:19 +0800
|
||||||
|
Subject: [PATCH] Disable vendor mismatch warning
|
||||||
|
|
||||||
|
Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||||
|
---
|
||||||
|
.../server/wm/ActivityTaskManagerService.java | 16 ++--------------
|
||||||
|
1 file changed, 2 insertions(+), 14 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||||
|
index ef02fd52999..b6bccb1c21c 100644
|
||||||
|
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||||
|
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||||
|
@@ -6486,20 +6486,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Build.isBuildConsistent()) {
|
||||||
|
- Slog.e(TAG, "Build fingerprint is not consistent, warning user");
|
||||||
|
- mUiHandler.post(() -> {
|
||||||
|
- if (mShowDialogs) {
|
||||||
|
- AlertDialog d = new BaseErrorDialog(mUiContext);
|
||||||
|
- d.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
|
||||||
|
- d.setCancelable(false);
|
||||||
|
- d.setTitle(mUiContext.getText(R.string.android_system_label));
|
||||||
|
- d.setMessage(mUiContext.getText(R.string.system_error_manufacturer));
|
||||||
|
- d.setButton(DialogInterface.BUTTON_POSITIVE,
|
||||||
|
- mUiContext.getText(R.string.ok),
|
||||||
|
- mUiHandler.obtainMessage(DISMISS_DIALOG_UI_MSG, d));
|
||||||
|
- d.show();
|
||||||
|
- }
|
||||||
|
- });
|
||||||
|
+ Slog.e(TAG, "Build fingerprint is not consistent");
|
||||||
|
+ // Do not emit warning about vendor mismatch
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
24
0001-Increase-system-partition-size-for-arm_ab.patch
Normal file
24
0001-Increase-system-partition-size-for-arm_ab.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From 037c36f36b8f71bd2001c30285bcfcd6523973b0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
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
|
||||||
|
|
87
0001-LineageParts-Invert-per-app-stretch-to-fullscreen.patch
Normal file
87
0001-LineageParts-Invert-per-app-stretch-to-fullscreen.patch
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
From 2ac5823e318b5cbf1418d9f1b45fae66711a621b Mon Sep 17 00:00:00 2001
|
||||||
|
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 13 Jan 2019 21:44:48 +0800
|
||||||
|
Subject: [PATCH] LineageParts: Invert per-app stretch-to-fullscreen
|
||||||
|
|
||||||
|
Change-Id: Icb02c8dfd84882f736e37d6cd92c35e5eb288faa
|
||||||
|
---
|
||||||
|
res/values-zh-rCN/strings.xml | 4 ++--
|
||||||
|
res/values/strings.xml | 4 ++--
|
||||||
|
res/xml/long_screen_prefs.xml | 2 +-
|
||||||
|
res/xml/parts_catalog.xml | 4 ++--
|
||||||
|
src/org/lineageos/lineageparts/applications/LongScreenSettings.java | 2 +-
|
||||||
|
5 files changed, 8 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
|
||||||
|
index 2938aa0..04848ad 100644
|
||||||
|
--- a/res/values-zh-rCN/strings.xml
|
||||||
|
+++ b/res/values-zh-rCN/strings.xml
|
||||||
|
@@ -481,8 +481,8 @@
|
||||||
|
<string name="expanded_desktop_style_hide_navigation">隐藏导航栏</string>
|
||||||
|
<string name="expanded_desktop_style_hide_both">同时隐藏</string>
|
||||||
|
<string name="expanded_desktop_nothing_to_show_text">关闭开关以自定义您每个应用的扩展桌面</string>
|
||||||
|
- <string name="long_screen_settings_title">全屏应用</string>
|
||||||
|
- <string name="long_screen_settings_summary">强制旧式应用程序使用全屏长宽比</string>
|
||||||
|
+ <string name="inverse_long_screen_settings_title">禁用拉伸全屏</string>
|
||||||
|
+ <string name="inverse_long_screen_settings_summary">对选定的应用禁用拉伸全屏</string>
|
||||||
|
<string name="charging_sounds_settings_title">充电提示音</string>
|
||||||
|
<string name="charging_sounds_enabled_title">启用</string>
|
||||||
|
<string name="charging_sounds_enabled_summary">连接或断开电源时发出声音</string>
|
||||||
|
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
||||||
|
index 684cbee..bc5fffe 100644
|
||||||
|
--- a/res/values/strings.xml
|
||||||
|
+++ b/res/values/strings.xml
|
||||||
|
@@ -616,8 +616,8 @@
|
||||||
|
<string name="expanded_desktop_nothing_to_show_text">Turn the switch off to customize your expanded desktop on a per-app basis</string>
|
||||||
|
|
||||||
|
<!-- Applications: Long screen -->
|
||||||
|
- <string name="long_screen_settings_title">Full screen apps</string>
|
||||||
|
- <string name="long_screen_settings_summary">Force legacy apps to use full screen aspect ratio</string>
|
||||||
|
+ <string name="inverse_long_screen_settings_title">Disable stretch-to-fullscreen</string>
|
||||||
|
+ <string name="inverse_long_screen_settings_summary">Prevent selected apps from utilizing stretch-to-fullscreen</string>
|
||||||
|
|
||||||
|
<!-- Sounds: Charging sounds -->
|
||||||
|
<string name="charging_sounds_settings_title">Charging sounds</string>
|
||||||
|
diff --git a/res/xml/long_screen_prefs.xml b/res/xml/long_screen_prefs.xml
|
||||||
|
index ec947fa..20da90a 100644
|
||||||
|
--- a/res/xml/long_screen_prefs.xml
|
||||||
|
+++ b/res/xml/long_screen_prefs.xml
|
||||||
|
@@ -18,6 +18,6 @@
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:lineage="http://schemas.android.com/apk/res/org.lineageos.lineageparts"
|
||||||
|
android:key="long_screen_settings"
|
||||||
|
- android:title="@string/long_screen_settings_title">
|
||||||
|
+ android:title="@string/inverse_long_screen_settings_title">
|
||||||
|
|
||||||
|
</PreferenceScreen>
|
||||||
|
diff --git a/res/xml/parts_catalog.xml b/res/xml/parts_catalog.xml
|
||||||
|
index 2ad4fdb..4bc2c5a 100644
|
||||||
|
--- a/res/xml/parts_catalog.xml
|
||||||
|
+++ b/res/xml/parts_catalog.xml
|
||||||
|
@@ -102,8 +102,8 @@
|
||||||
|
lineage:xmlRes="@xml/expanded_desktop_prefs" />
|
||||||
|
|
||||||
|
<part android:key="long_screen_settings"
|
||||||
|
- android:title="@string/long_screen_settings_title"
|
||||||
|
- android:summary="@string/long_screen_settings_summary"
|
||||||
|
+ android:title="@string/inverse_long_screen_settings_title"
|
||||||
|
+ android:summary="@string/inverse_long_screen_settings_summary"
|
||||||
|
android:fragment="org.lineageos.lineageparts.applications.LongScreenSettings"
|
||||||
|
lineage:xmlRes="@xml/long_screen_prefs" />
|
||||||
|
|
||||||
|
diff --git a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||||
|
index 782e33e..3aa6320 100644
|
||||||
|
--- a/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||||
|
+++ b/src/org/lineageos/lineageparts/applications/LongScreenSettings.java
|
||||||
|
@@ -245,7 +245,7 @@ public class LongScreenSettings extends SettingsPreferenceFragment
|
||||||
|
mApplicationsState.ensureIcon(entry);
|
||||||
|
holder.icon.setImageDrawable(entry.icon);
|
||||||
|
holder.state.setTag(entry);
|
||||||
|
- holder.state.setChecked(mLongScreen.shouldForceLongScreen(entry.info.packageName));
|
||||||
|
+ holder.state.setChecked(!(mLongScreen.shouldForceLongScreen(entry.info.packageName)));
|
||||||
|
return holder.rootView;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
28
0001-Remove-fsck-SELinux-labels.patch
Normal file
28
0001-Remove-fsck-SELinux-labels.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From d922de7e988db91e16f0d9c15b5589026e7bc11c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Wed, 23 Oct 2019 09:38:16 +0000
|
||||||
|
Subject: [PATCH] Remove fsck SELinux labels
|
||||||
|
|
||||||
|
These are covered by LOS sepolicy
|
||||||
|
|
||||||
|
Change-Id: I7c63c9aed39afc07b8c80918053154113f848cd9
|
||||||
|
---
|
||||||
|
sepolicy/file_contexts | 3 ---
|
||||||
|
1 file changed, 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
|
||||||
|
index 1160738..a29bd32 100644
|
||||||
|
--- a/sepolicy/file_contexts
|
||||||
|
+++ b/sepolicy/file_contexts
|
||||||
|
@@ -5,8 +5,5 @@
|
||||||
|
/system/bin/phh-on-boot.sh u:object_r:phhsu_exec:s0
|
||||||
|
/system/bin/asus-motor u:object_r:phhsu_exec:s0
|
||||||
|
|
||||||
|
-#/system/bin/fsck\.exfat u:object_r:fsck_exec:s0
|
||||||
|
-/system/bin/fsck\.ntfs u:object_r:fsck_exec:s0
|
||||||
|
-
|
||||||
|
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
From f0826e489f5b2823d22273a55ef628945fa9819c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Fri, 1 Nov 2019 15:26:10 +0000
|
||||||
|
Subject: [PATCH] [TEMP] treble: Fix init.treble-environ.rc hardcode for LOS
|
||||||
|
|
||||||
|
Refer to https://github.com/phhusson/device_phh_treble/commit/a6aa52f7b11cc7d3f9fbe51356b34ebf0705d775
|
||||||
|
|
||||||
|
Change-Id: I045e140f0eafe13bca07c6e24f31361a3f876a45
|
||||||
|
---
|
||||||
|
environ/init.treble-environ.rc | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/environ/init.treble-environ.rc b/environ/init.treble-environ.rc
|
||||||
|
index 4fc8c32..d36ba2c 100644
|
||||||
|
--- a/environ/init.treble-environ.rc
|
||||||
|
+++ b/environ/init.treble-environ.rc
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
# set up the global environment
|
||||||
|
on init
|
||||||
|
export BOOTCLASSPATH /apex/com.android.runtime/javalib/core-oj.jar:/apex/com.android.runtime/javalib/core-libart.jar:/apex/com.android.runtime/javalib/okhttp.jar:/apex/com.android.runtime/javalib/bouncycastle.jar:/apex/com.android.runtime/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.test.base.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar
|
||||||
|
- export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar
|
||||||
|
+ export SYSTEMSERVERCLASSPATH /system/framework/org.lineageos.platform.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
@ -0,0 +1,40 @@
|
|||||||
|
From 9a0fea3a8fa45f4fd804f06eaa0a39a044ecb0d8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 3 Nov 2019 03:32:02 +0000
|
||||||
|
Subject: [PATCH] UI: Revive navbar layout tuning via sysui_nav_bar tunable
|
||||||
|
|
||||||
|
Google keeps fixing what ain't broken.
|
||||||
|
This partially undoes https://github.com/LineageOS/android_frameworks_base/commit/e0d5ccd331e694afdc3c8462a1b845df329de2b8
|
||||||
|
|
||||||
|
Change-Id: I7a0fcfc9c27a08100712200d50f295f4bd81494d
|
||||||
|
---
|
||||||
|
.../systemui/statusbar/phone/NavigationBarInflaterView.java | 6 ++++--
|
||||||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||||
|
index 79a47af9fdf..50b3a47b6fa 100644
|
||||||
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||||
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
||||||
|
@@ -155,7 +155,7 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||||
|
@Override
|
||||||
|
protected void onAttachedToWindow() {
|
||||||
|
super.onAttachedToWindow();
|
||||||
|
- Dependency.get(TunerService.class).addTunable(this, NAV_BAR_INVERSE);
|
||||||
|
+ Dependency.get(TunerService.class).addTunable(this, NAV_BAR_VIEWS, NAV_BAR_INVERSE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@@ -167,7 +167,9 @@ public class NavigationBarInflaterView extends FrameLayout
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onTuningChanged(String key, String newValue) {
|
||||||
|
- if (NAV_BAR_INVERSE.equals(key)) {
|
||||||
|
+ if (NAV_BAR_VIEWS.equals(key)) {
|
||||||
|
+ setNavigationBarLayout(newValue);
|
||||||
|
+ } else if (NAV_BAR_INVERSE.equals(key)) {
|
||||||
|
mInverseLayout = TunerService.parseIntegerSwitch(newValue, false);
|
||||||
|
updateLayoutInversion();
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
62
0001-build-Don-t-handle-apns-conf.patch
Normal file
62
0001-build-Don-t-handle-apns-conf.patch
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
From 834da871f22f65ee8c8a807c13f9248a4633ecee Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Tue, 22 Oct 2019 12:36:03 +0000
|
||||||
|
Subject: [PATCH] build: Don't handle apns-conf
|
||||||
|
|
||||||
|
Leave it to vendor/lineage instead
|
||||||
|
|
||||||
|
Change-Id: I743e2d8ab8b6527c887b4d9bbc219ff4dcf6a9ba
|
||||||
|
---
|
||||||
|
target/product/full_base_telephony.mk | 5 -----
|
||||||
|
target/product/gsi_common.mk | 7 -------
|
||||||
|
target/product/mainline.mk | 4 ----
|
||||||
|
3 files changed, 16 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/target/product/full_base_telephony.mk b/target/product/full_base_telephony.mk
|
||||||
|
index e3442147a..0aa9e7700 100644
|
||||||
|
--- a/target/product/full_base_telephony.mk
|
||||||
|
+++ b/target/product/full_base_telephony.mk
|
||||||
|
@@ -30,10 +30,5 @@ endif
|
||||||
|
PRODUCT_COPY_FILES := \
|
||||||
|
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
||||||
|
|
||||||
|
-ifeq ($(LINEAGE_BUILD),)
|
||||||
|
-PRODUCT_COPY_FILES += \
|
||||||
|
- device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||||
|
-endif
|
||||||
|
-
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
||||||
|
diff --git a/target/product/gsi_common.mk b/target/product/gsi_common.mk
|
||||||
|
index dac3a2fcf..b7ef78c23 100644
|
||||||
|
--- a/target/product/gsi_common.mk
|
||||||
|
+++ b/target/product/gsi_common.mk
|
||||||
|
@@ -87,13 +87,6 @@ PRODUCT_PACKAGES += \
|
||||||
|
WAPPushManager \
|
||||||
|
WallpaperPicker \
|
||||||
|
|
||||||
|
-# Telephony:
|
||||||
|
-# Provide a APN configuration to GSI product
|
||||||
|
-ifeq ($(LINEAGE_BUILD),)
|
||||||
|
-PRODUCT_COPY_FILES += \
|
||||||
|
- device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
||||||
|
-endif
|
||||||
|
-
|
||||||
|
# NFC:
|
||||||
|
# Provide a libnfc-nci.conf to GSI product
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
diff --git a/target/product/mainline.mk b/target/product/mainline.mk
|
||||||
|
index ca16fc656..70da48b25 100644
|
||||||
|
--- a/target/product/mainline.mk
|
||||||
|
+++ b/target/product/mainline.mk
|
||||||
|
@@ -40,7 +40,3 @@ endif
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
PhotoTable \
|
||||||
|
WallpaperPicker \
|
||||||
|
-
|
||||||
|
-ifeq ($(LINEAGE_BUILD),)
|
||||||
|
-PRODUCT_COPY_FILES += device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
||||||
|
-endif
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
43
0001-build_soong-Disable-generated_kernel_headers.patch
Normal file
43
0001-build_soong-Disable-generated_kernel_headers.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From 07c0c3e6eb186a068835b114dbce98c9cfd77877 Mon Sep 17 00:00:00 2001
|
||||||
|
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 3 Mar 2019 14:07:33 +0800
|
||||||
|
Subject: [PATCH] build_soong: Disable generated_kernel_headers
|
||||||
|
|
||||||
|
Change-Id: I630857cec208f1830e776bf5031d7bb9bc4435d0
|
||||||
|
---
|
||||||
|
build/soong/Android.bp | 22 ----------------------
|
||||||
|
1 file changed, 22 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
|
||||||
|
index 3e98349b..108c52f7 100644
|
||||||
|
--- a/build/soong/Android.bp
|
||||||
|
+++ b/build/soong/Android.bp
|
||||||
|
@@ -22,25 +22,3 @@ bootstrap_go_package {
|
||||||
|
],
|
||||||
|
pluginFor: ["soong_build"],
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-lineage_generator {
|
||||||
|
- name: "generated_kernel_includes",
|
||||||
|
-
|
||||||
|
- // The headers make command
|
||||||
|
- cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
|
||||||
|
-
|
||||||
|
- // Directories that can be imported by a cc_* module generated_headers property
|
||||||
|
- export_include_dirs: ["usr/include", "usr/techpack/audio/include"],
|
||||||
|
-
|
||||||
|
- // Sources for dependency tracking
|
||||||
|
- dep_root: "$(TARGET_KERNEL_SOURCE)",
|
||||||
|
- dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"],
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-cc_library_headers {
|
||||||
|
- name: "generated_kernel_headers",
|
||||||
|
- generated_headers: ["generated_kernel_includes"],
|
||||||
|
- export_generated_headers: ["generated_kernel_includes"],
|
||||||
|
- vendor_available: true,
|
||||||
|
- recovery_available: true,
|
||||||
|
-}
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
106
0001-core-Add-support-for-MicroG.patch
Normal file
106
0001-core-Add-support-for-MicroG.patch
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
From c9b266ded8a63da3408c24479100ea53baf455b7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: gudenau <gudenau>
|
||||||
|
Date: Tue, 25 Sep 2018 09:44:26 +0200
|
||||||
|
Subject: [PATCH] core: Add support for MicroG
|
||||||
|
|
||||||
|
-fake signatures, enabled per app by dynamic permission
|
||||||
|
|
||||||
|
Change-Id: I84fc7e5c606f4b57012d948a4cc6cb521db6b03e
|
||||||
|
---
|
||||||
|
core/res/AndroidManifest.xml | 7 ++++++
|
||||||
|
core/res/res/values/config.xml | 2 ++
|
||||||
|
core/res/res/values/strings.xml | 5 ++++
|
||||||
|
.../server/pm/PackageManagerService.java | 23 +++++++++++++++++--
|
||||||
|
4 files changed, 35 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
|
||||||
|
index 0c3b7a137b9..fc6f9d9a1ec 100644
|
||||||
|
--- a/core/res/AndroidManifest.xml
|
||||||
|
+++ b/core/res/AndroidManifest.xml
|
||||||
|
@@ -2637,6 +2637,13 @@
|
||||||
|
android:description="@string/permdesc_getPackageSize"
|
||||||
|
android:protectionLevel="normal" />
|
||||||
|
|
||||||
|
+ <!-- @hide Allows an application to change the package signature as
|
||||||
|
+ seen by applications -->
|
||||||
|
+ <permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE"
|
||||||
|
+ android:protectionLevel="dangerous"
|
||||||
|
+ android:label="@string/permlab_fakePackageSignature"
|
||||||
|
+ android:description="@string/permdesc_fakePackageSignature" />
|
||||||
|
+
|
||||||
|
<!-- @deprecated No longer useful, see
|
||||||
|
{@link android.content.pm.PackageManager#addPackageToPreferred}
|
||||||
|
for details. -->
|
||||||
|
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||||
|
index 91f4cf3093e..91fb69f8066 100644
|
||||||
|
--- a/core/res/res/values/config.xml
|
||||||
|
+++ b/core/res/res/values/config.xml
|
||||||
|
@@ -1856,6 +1856,8 @@
|
||||||
|
<string-array name="config_locationProviderPackageNames" translatable="false">
|
||||||
|
<!-- The standard AOSP fused location provider -->
|
||||||
|
<item>com.android.location.fused</item>
|
||||||
|
+ <!-- The (faked) microg fused location provider (a free reimplementation) -->
|
||||||
|
+ <item>com.google.android.gms</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<!-- This string array can be overriden to enable test location providers initially. -->
|
||||||
|
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
|
||||||
|
index 152b131af8f..f8d87a37064 100644
|
||||||
|
--- a/core/res/res/values/strings.xml
|
||||||
|
+++ b/core/res/res/values/strings.xml
|
||||||
|
@@ -827,6 +827,11 @@
|
||||||
|
|
||||||
|
<!-- Permissions -->
|
||||||
|
|
||||||
|
+ <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||||
|
+ <string name="permlab_fakePackageSignature">Spoof package signature</string>
|
||||||
|
+ <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||||
|
+ <string name="permdesc_fakePackageSignature">Allows the app to pretend to be a different app. Malicious applications might be able to use this to access private application data. Legitimate uses include an emulator pretending to be what it emulates. Grant this permission with caution only!</string>
|
||||||
|
+
|
||||||
|
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||||
|
<string name="permlab_statusBar">disable or modify status bar</string>
|
||||||
|
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
|
||||||
|
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||||
|
index fb672a5231f..d5878ed9fc4 100644
|
||||||
|
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||||
|
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||||
|
@@ -4111,8 +4111,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||||
|
final Set<String> permissions = ArrayUtils.isEmpty(p.requestedPermissions)
|
||||||
|
? Collections.emptySet() : permissionsState.getPermissions(userId);
|
||||||
|
|
||||||
|
- PackageInfo packageInfo = PackageParser.generatePackageInfo(p, gids, flags,
|
||||||
|
- ps.firstInstallTime, ps.lastUpdateTime, permissions, state, userId);
|
||||||
|
+ PackageInfo packageInfo = mayFakeSignature(p, PackageParser.generatePackageInfo(p, gids, flags,
|
||||||
|
+ ps.firstInstallTime, ps.lastUpdateTime, permissions, state, userId),
|
||||||
|
+ permissions);
|
||||||
|
|
||||||
|
if (packageInfo == null) {
|
||||||
|
return null;
|
||||||
|
@@ -4148,6 +4149,24 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ private PackageInfo mayFakeSignature(PackageParser.Package p, PackageInfo pi,
|
||||||
|
+ Set<String> permissions) {
|
||||||
|
+ try {
|
||||||
|
+ if (permissions.contains("android.permission.FAKE_PACKAGE_SIGNATURE")
|
||||||
|
+ && p.applicationInfo.targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1
|
||||||
|
+ && p.mAppMetaData != null) {
|
||||||
|
+ String sig = p.mAppMetaData.getString("fake-signature");
|
||||||
|
+ if (sig != null) {
|
||||||
|
+ pi.signatures = new Signature[] {new Signature(sig)};
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ } catch (Throwable t) {
|
||||||
|
+ // We should never die because of any failures, this is system code!
|
||||||
|
+ Log.w("PackageManagerService.FAKE_PACKAGE_SIGNATURE", t);
|
||||||
|
+ }
|
||||||
|
+ return pi;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public void checkPackageStartable(String packageName, int userId) {
|
||||||
|
final int callingUid = Binder.getCallingUid();
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
@ -0,0 +1,54 @@
|
|||||||
|
From c1784a15c22eee3404065da12ec5edca061916e8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Sun, 17 Nov 2019 00:55:11 +0000
|
||||||
|
Subject: [PATCH] cryptfshw: Remove dependency on generated kernel headers
|
||||||
|
|
||||||
|
Change-Id: I217b74e961ad3a0681acfb4aeee82f09a846078e
|
||||||
|
---
|
||||||
|
cryptfshw/1.0/Android.bp | 2 +-
|
||||||
|
cryptfshw/1.0/kernel/Android.bp | 2 +-
|
||||||
|
cryptfshw/1.0/qsee/Android.bp | 2 +-
|
||||||
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cryptfshw/1.0/Android.bp b/cryptfshw/1.0/Android.bp
|
||||||
|
index fe511ff..6157075 100644
|
||||||
|
--- a/cryptfshw/1.0/Android.bp
|
||||||
|
+++ b/cryptfshw/1.0/Android.bp
|
||||||
|
@@ -21,7 +21,7 @@ cc_library_static {
|
||||||
|
"CryptfsHwUtils.cpp",
|
||||||
|
],
|
||||||
|
export_include_dirs: ["."],
|
||||||
|
- header_libs: ["generated_kernel_headers"],
|
||||||
|
+ header_libs: ["device_kernel_headers"],
|
||||||
|
shared_libs: [
|
||||||
|
"libbase",
|
||||||
|
"libhidlbase",
|
||||||
|
diff --git a/cryptfshw/1.0/kernel/Android.bp b/cryptfshw/1.0/kernel/Android.bp
|
||||||
|
index 1c1f9af..909d5ec 100644
|
||||||
|
--- a/cryptfshw/1.0/kernel/Android.bp
|
||||||
|
+++ b/cryptfshw/1.0/kernel/Android.bp
|
||||||
|
@@ -31,7 +31,7 @@ cc_binary {
|
||||||
|
cflags: ["-DARCH_ARM_32"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
- header_libs: ["generated_kernel_headers"],
|
||||||
|
+ header_libs: ["device_kernel_headers"],
|
||||||
|
shared_libs: [
|
||||||
|
"libbase",
|
||||||
|
"libhidlbase",
|
||||||
|
diff --git a/cryptfshw/1.0/qsee/Android.bp b/cryptfshw/1.0/qsee/Android.bp
|
||||||
|
index b06e286..01cadd4 100644
|
||||||
|
--- a/cryptfshw/1.0/qsee/Android.bp
|
||||||
|
+++ b/cryptfshw/1.0/qsee/Android.bp
|
||||||
|
@@ -38,7 +38,7 @@ cc_binary {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
- header_libs: ["generated_kernel_headers"],
|
||||||
|
+ header_libs: ["device_kernel_headers"],
|
||||||
|
shared_libs: [
|
||||||
|
"libbase",
|
||||||
|
"libdl",
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
26
0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
Normal file
26
0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 95ef97f5aa82c15e47f9313eca4899d89dba5dd0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Wed, 4 Jul 2018 17:59:14 +0800
|
||||||
|
Subject: [PATCH] sdk: Invert per-app stretch-to-fullscreen implementation
|
||||||
|
|
||||||
|
Change-Id: Idf7dab4e1e0c79953fa672f33ec65fecffb37c83
|
||||||
|
---
|
||||||
|
sdk/src/java/org/lineageos/internal/applications/LongScreen.java | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/sdk/src/java/org/lineageos/internal/applications/LongScreen.java b/sdk/src/java/org/lineageos/internal/applications/LongScreen.java
|
||||||
|
index 7fe0d68..26ea349 100644
|
||||||
|
--- a/sdk/src/java/org/lineageos/internal/applications/LongScreen.java
|
||||||
|
+++ b/sdk/src/java/org/lineageos/internal/applications/LongScreen.java
|
||||||
|
@@ -57,7 +57,7 @@ public class LongScreen {
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean shouldForceLongScreen(String packageName) {
|
||||||
|
- return isSupported() && mApps.contains(packageName);
|
||||||
|
+ return isSupported() && !(mApps.contains(packageName));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<String> getApps() {
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
117
0001-treble-Add-overlay-lineage.patch
Normal file
117
0001-treble-Add-overlay-lineage.patch
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
From b35194fdd618f1ae2682c6d285d92a4ae7d421cc Mon Sep 17 00:00:00 2001
|
||||||
|
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Mon, 15 Jul 2019 10:43:52 +0000
|
||||||
|
Subject: [PATCH] treble: Add overlay-lineage
|
||||||
|
|
||||||
|
Change-Id: I9d313b1488d98acc7cf37d23820946ee99745426
|
||||||
|
---
|
||||||
|
base.mk | 4 +-
|
||||||
|
.../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 8636247..f18e1c7 100644
|
||||||
|
--- a/base.mk
|
||||||
|
+++ b/base.mk
|
||||||
|
@@ -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
|
||||||
|
-DEVICE_PACKAGE_OVERLAYS += device/phh/treble/overlay
|
||||||
|
+DEVICE_PACKAGE_OVERLAYS += \
|
||||||
|
+ device/phh/treble/overlay \
|
||||||
|
+ device/phh/treble/overlay-lineage
|
||||||
|
|
||||||
|
$(call inherit-product, vendor/hardware_overlay/overlay.mk)
|
||||||
|
$(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..8df673a
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml
|
||||||
|
@@ -0,0 +1,81 @@
|
||||||
|
+<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
+<!--
|
||||||
|
+ Copyright (C) 2015-2016 The CyanogenMod Project
|
||||||
|
+ 2017-2018 The LineageOS Project
|
||||||
|
+
|
||||||
|
+ Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
+ you may not use this file except in compliance with the License.
|
||||||
|
+ You may obtain a copy of the License at
|
||||||
|
+ http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
+ Unless required by applicable law or agreed to in writing, software
|
||||||
|
+ distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
+ See the License for the specific language governing permissions and
|
||||||
|
+ limitations under the License.
|
||||||
|
+-->
|
||||||
|
+<resources>
|
||||||
|
+ <!-- Whether device has screen with higher aspect ratio -->
|
||||||
|
+ <bool name="config_haveHigherAspectRatioScreen">true</bool>
|
||||||
|
+
|
||||||
|
+ <!-- All the capabilities of the LEDs on this device, stored as a bit field.
|
||||||
|
+ This integer should equal the sum of the corresponding value for each
|
||||||
|
+ of the following capabilities present:
|
||||||
|
+ // Device has a color adjustable battery light.
|
||||||
|
+ LIGHTS_RGB_NOTIFICATION_LED = 1
|
||||||
|
+ // Device has a color adjustable notification light.
|
||||||
|
+ LIGHTS_RGB_BATTERY_LED = 2
|
||||||
|
+ LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
|
||||||
|
+ // The notification light has adjustable pulsing capability.
|
||||||
|
+ LIGHTS_PULSATING_LED = 8
|
||||||
|
+ // Device has a multi-segment battery light that is able to
|
||||||
|
+ // use the light brightness value to determine how many
|
||||||
|
+ // segments to show (in order to represent battery level).
|
||||||
|
+ LIGHTS_SEGMENTED_BATTERY_LED = 16
|
||||||
|
+ // The notification light supports HAL adjustable brightness
|
||||||
|
+ // via the alpha channel.
|
||||||
|
+ // Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
|
||||||
|
+ // then HAL support is not necessary for brightness control. In this case,
|
||||||
|
+ // brightness support will be provided by lineage-sdk through the scaling of
|
||||||
|
+ // RGB color values.
|
||||||
|
+ LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
|
||||||
|
+ // Device has a battery light.
|
||||||
|
+ LIGHTS_BATTERY_LED = 64
|
||||||
|
+ // The battery light supports HAL adjustable brightness via
|
||||||
|
+ // the alpha channel.
|
||||||
|
+ // Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
|
||||||
|
+ // support is not necessary for brightness control. In this case,
|
||||||
|
+ // brightness support will be provided by lineage-sdk through the scaling of
|
||||||
|
+ // RGB color values.
|
||||||
|
+ LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
|
||||||
|
+ For example, a device with notification and battery lights that supports
|
||||||
|
+ pulsating and RGB control would set this config to 75. -->
|
||||||
|
+ <integer name="config_deviceLightCapabilities">255</integer>
|
||||||
|
+
|
||||||
|
+ <!-- Hardware keys present on the device, stored as a bit field.
|
||||||
|
+ This integer should equal the sum of the corresponding value for each
|
||||||
|
+ of the following keys present:
|
||||||
|
+ 1 - Home
|
||||||
|
+ 2 - Back
|
||||||
|
+ 4 - Menu
|
||||||
|
+ 8 - Assistant (search)
|
||||||
|
+ 16 - App switch
|
||||||
|
+ 32 - Camera
|
||||||
|
+ 64 - Volume rocker
|
||||||
|
+ For example, a device with Home, Back and Menu keys would set this
|
||||||
|
+ config to 7. -->
|
||||||
|
+ <integer name="config_deviceHardwareKeys">127</integer>
|
||||||
|
+
|
||||||
|
+ <!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
|
||||||
|
+ This integer should equal the sum of the corresponding value for each
|
||||||
|
+ of the following keys present:
|
||||||
|
+ 1 - Home
|
||||||
|
+ 2 - Back
|
||||||
|
+ 4 - Menu
|
||||||
|
+ 8 - Assistant (search)
|
||||||
|
+ 16 - App switch
|
||||||
|
+ 32 - Camera
|
||||||
|
+ 64 - Volume rocker
|
||||||
|
+ For example, a device with Home, Back and Menu keys would set this
|
||||||
|
+ config to 7. -->
|
||||||
|
+ <integer name="config_deviceHardwareWakeKeys">127</integer>
|
||||||
|
+</resources>
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
From 5180f2417b628e6f1611ce24fd54f711fbdbb991 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
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 @@
|
||||||
|
<string name="config_icon_mask" translatable="false">"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"</string>
|
||||||
|
<bool name="config_useRoundIcon">true</bool>
|
||||||
|
|
||||||
|
- <string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||||
|
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||||
|
<!-- Currently disabled for Android Go
|
||||||
|
<integer name="config_multiuserMaximumUsers">4</integer>
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
From 06ddcd3f6403ad8c76ebf3ace73ef7ebfc8b902d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||||
|
Date: Thu, 5 Sep 2019 02:08:22 +0000
|
||||||
|
Subject: [PATCH] vendor_lineage: Log privapp-permissions whitelist violations
|
||||||
|
instead
|
||||||
|
|
||||||
|
Change-Id: I49dba61f332253e291a65e79ca70d9a07d45bb07
|
||||||
|
---
|
||||||
|
config/common.mk | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/config/common.mk b/config/common.mk
|
||||||
|
index 2be6dfff..79792b13 100644
|
||||||
|
--- a/config/common.mk
|
||||||
|
+++ b/config/common.mk
|
||||||
|
@@ -87,9 +87,9 @@ PRODUCT_COPY_FILES += \
|
||||||
|
vendor/lineage/config/permissions/privapp-permissions-lineage-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-lineage.xml \
|
||||||
|
vendor/lineage/config/permissions/privapp-permissions-cm-legacy.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-cm-legacy.xml
|
||||||
|
|
||||||
|
-# Enforce privapp-permissions whitelist
|
||||||
|
+# Log privapp-permissions whitelist violations
|
||||||
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
||||||
|
- ro.control_privapp_permissions=enforce
|
||||||
|
+ ro.control_privapp_permissions=log
|
||||||
|
|
||||||
|
# Hidden API whitelist
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
1
README.md
Normal file
1
README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Prerequisite: sync [treble_experimentations](https://github.com/AndyCGYan/treble_experimentations) to `~`; sync [treble_patches](https://github.com/AndyCGYan/treble_patches) to `treble_patches` under workspace root
|
82
buildbot_treble_vanilla.sh
Normal file
82
buildbot_treble_vanilla.sh
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
|
||||||
|
|
||||||
|
cd frameworks/base
|
||||||
|
git revert 6077075200cce9f66a688012786b054d0843ed6c --no-edit #fw/b: Fix systemui tests with in-display fingerprint
|
||||||
|
git revert 737170f406d850c79efc961e9d4026dd10db4f88 --no-edit #FODCircleView: defer removal to next re-layout
|
||||||
|
git revert 471cf7dc1478fce893e77ac1fb97dfbeeb5af2e7 --no-edit #Initial support for in-display fingerprint sensors
|
||||||
|
cd ../..
|
||||||
|
|
||||||
|
rm -f device/*/sepolicy/common/private/genfs_contexts
|
||||||
|
cd device/phh/treble
|
||||||
|
git clean -fdx
|
||||||
|
bash generate.sh lineage
|
||||||
|
cd ../../..
|
||||||
|
bash ~/treble_experimentations/apply-patches.sh treble_patches
|
||||||
|
|
||||||
|
echo "Setting up build environment"
|
||||||
|
source build/envsetup.sh &> /dev/null
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "Picking temporary stuff"
|
||||||
|
repopick -Q "(topic:"ten-vold"+OR+"10-qcom-encryption"+OR+"10-qcom-encryption-fbe-wrapped-key")+status:open+NOT+owner:javelinanddart@gmail.com"
|
||||||
|
repopick 263896 #cryptfshw: Introduce kernel backend implementation
|
||||||
|
echo ""
|
||||||
|
#repopick 256308 #tinycompress: Enable extended compress format
|
||||||
|
#repopick 259449 #config: Mark more gralloc bits as valid
|
||||||
|
|
||||||
|
#read -p "Press any key to start building, or CTRL-C to exit" nothing
|
||||||
|
|
||||||
|
echo "Applying universal patches"
|
||||||
|
cd frameworks/base
|
||||||
|
git am ../../0001-UI-Revive-navbar-layout-tuning-via-sysui_nav_bar-tun.patch
|
||||||
|
git am ../../0001-Disable-vendor-mismatch-warning.patch
|
||||||
|
git am ../../0001-core-Add-support-for-MicroG.patch
|
||||||
|
cd ../..
|
||||||
|
cd lineage-sdk
|
||||||
|
git am ../0001-sdk-Invert-per-app-stretch-to-fullscreen.patch
|
||||||
|
cd ..
|
||||||
|
cd packages/apps/LineageParts
|
||||||
|
git am ../../../0001-LineageParts-Invert-per-app-stretch-to-fullscreen.patch
|
||||||
|
cd ../../..
|
||||||
|
cd vendor/lineage
|
||||||
|
git am ../../0001-vendor_lineage-Log-privapp-permissions-whitelist-vio.patch
|
||||||
|
cd ../..
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "Applying GSI-specific patches"
|
||||||
|
cd build/make
|
||||||
|
git am ../../0001-build-Don-t-handle-apns-conf.patch
|
||||||
|
cd ../..
|
||||||
|
cd device/phh/treble
|
||||||
|
git revert 82b15278bad816632dcaeaed623b569978e9840d --no-edit #Update lineage.mk for LineageOS 16.0
|
||||||
|
git am ../../../0001-Remove-fsck-SELinux-labels.patch
|
||||||
|
git am ../../../0001-treble-Add-overlay-lineage.patch
|
||||||
|
git am ../../../0001-treble-Don-t-specify-config_wallpaperCropperPackage.patch
|
||||||
|
git am ../../../0001-Increase-system-partition-size-for-arm_ab.patch
|
||||||
|
git am ../../../0001-TEMP-treble-Fix-init.treble-environ.rc-hardcode-for-.patch
|
||||||
|
cd ../../..
|
||||||
|
cd external/tinycompress
|
||||||
|
git revert 41d822fd7edfe1e629cdebe5645dab41ea4efb59 --no-edit #tinycompress: Use generated kernel headers
|
||||||
|
cd ../..
|
||||||
|
cd hardware/lineage/interfaces
|
||||||
|
git am ../../../0001-cryptfshw-Remove-dependency-on-generated-kernel-head.patch
|
||||||
|
cd ../../..
|
||||||
|
cd vendor/lineage
|
||||||
|
git am ../../0001-build_soong-Disable-generated_kernel_headers.patch
|
||||||
|
cd ../..
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "CHECK PATCH STATUS NOW!"
|
||||||
|
sleep 5
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
lunch treble_arm64_avN-userdebug
|
||||||
|
make WITHOUT_CHECK_API=true installclean
|
||||||
|
make WITHOUT_CHECK_API=true systemimage
|
||||||
|
make WITHOUT_CHECK_API=true vndk-test-sepolicy
|
||||||
|
BUILD_DATE=`date +%Y%m%d`
|
||||||
|
mv $OUT/system.img ~/build-output/lineage-17.0-$BUILD_DATE-UNOFFICIAL-treble_arm64_avN.img
|
||||||
|
cat $OUT/system/build.prop | grep security_patch
|
||||||
|
echo ""
|
Loading…
x
Reference in New Issue
Block a user