mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-25 07:29:24 -05:00
Small tweaks
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
65584e96ce
commit
bc3a9cddba
@ -0,0 +1,41 @@
|
||||
From 9eafc9bac81580be0a391981ea28d8b2fc51b4f7 Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Martins <bgcngm@gmail.com>
|
||||
Date: Thu, 3 Dec 2020 20:52:39 +0000
|
||||
Subject: [PATCH] msm8974-common: Re-enable ZRAM
|
||||
|
||||
This time around with ZRAM size set to 75% of total RAM size,
|
||||
as per Qualcomm Android GO Performance Tuning Guide.
|
||||
|
||||
Change-Id: I8f8362ccb5110fba6c5ed50b5d87a0b94a48e01c
|
||||
---
|
||||
rootdir/etc/fstab.qcom | 2 ++
|
||||
rootdir/etc/init.qcom.rc | 4 ++++
|
||||
2 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom
|
||||
index 26986943..28965315 100644
|
||||
--- a/rootdir/etc/fstab.qcom
|
||||
+++ b/rootdir/etc/fstab.qcom
|
||||
@@ -18,5 +18,7 @@
|
||||
/dev/block/platform/msm_sdcc.1/by-name/radio /firmware/radio vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/platform/msm_sdcc.1/by-name/adsp /firmware/adsp vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
|
||||
+/dev/block/zram0 none swap defaults zramsize=75%,max_comp_streams=4,swapprio=10,notrim
|
||||
+
|
||||
/devices/msm_sdcc.2/mmc_host* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
/devices/platform/xhci-hcd/usb* auto auto defaults voldmanaged=usb:auto
|
||||
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
|
||||
index c978a74f..470ce27f 100644
|
||||
--- a/rootdir/etc/init.qcom.rc
|
||||
+++ b/rootdir/etc/init.qcom.rc
|
||||
@@ -289,6 +289,10 @@ service wcnss-service /vendor/bin/wcnss_service
|
||||
oneshot
|
||||
|
||||
## Properties start here
|
||||
+on property:sys.boot_completed=1
|
||||
+ # Enable ZRAM once boot is completed
|
||||
+ swapon_all /vendor/etc/fstab.qcom
|
||||
+
|
||||
on property:vendor.bluetooth.hciattach=true
|
||||
start hciattach
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 39a82d79321100965f446fb4007f2a44f3d41f4d Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Philip Nagler-Frank <philip@nagler.world>
|
||||
Date: Mon, 22 Mar 2021 21:03:57 -0400
|
||||
Subject: [PATCH] Add permission to allow an APK to fake a signature.
|
||||
@ -14,7 +14,7 @@ Change-Id: I770c2c8b2ab6857d4ea0a4142fb814302685a64e
|
||||
6 files changed, 54 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/api/current.txt b/api/current.txt
|
||||
index 952ccdad992..6bd7ffe6dcb 100644
|
||||
index 952ccdad992c..6bd7ffe6dcb8 100644
|
||||
--- a/api/current.txt
|
||||
+++ b/api/current.txt
|
||||
@@ -77,6 +77,7 @@ package android {
|
||||
@ -34,10 +34,10 @@ index 952ccdad992..6bd7ffe6dcb 100644
|
||||
field public static final String MICROPHONE = "android.permission-group.MICROPHONE";
|
||||
field public static final String PHONE = "android.permission-group.PHONE";
|
||||
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
|
||||
index 962d6ce79a4..5a654329446 100644
|
||||
index ee428371a016..ad6cfd6ae501 100644
|
||||
--- a/core/res/AndroidManifest.xml
|
||||
+++ b/core/res/AndroidManifest.xml
|
||||
@@ -2842,6 +2842,21 @@
|
||||
@@ -2852,6 +2852,21 @@
|
||||
android:description="@string/permdesc_getPackageSize"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
@ -60,7 +60,7 @@ index 962d6ce79a4..5a654329446 100644
|
||||
{@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 b61b26a0e7f..0b6206def57 100644
|
||||
index f4efcc7e4eec..51b461e79492 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -1654,6 +1654,8 @@
|
||||
@ -73,7 +73,7 @@ index b61b26a0e7f..0b6206def57 100644
|
||||
|
||||
<!-- 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 d6ee28b93f9..d5b3f54afc5 100644
|
||||
index 5c659123b027..4ea996c492c7 100644
|
||||
--- a/core/res/res/values/strings.xml
|
||||
+++ b/core/res/res/values/strings.xml
|
||||
@@ -847,6 +847,18 @@
|
||||
@ -96,7 +96,7 @@ index d6ee28b93f9..d5b3f54afc5 100644
|
||||
<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/non-updatable-api/current.txt b/non-updatable-api/current.txt
|
||||
index 5f15216e840..57748a8090a 100644
|
||||
index 5f15216e8400..57748a8090a2 100644
|
||||
--- a/non-updatable-api/current.txt
|
||||
+++ b/non-updatable-api/current.txt
|
||||
@@ -79,6 +79,7 @@ package android {
|
||||
@ -116,7 +116,7 @@ index 5f15216e840..57748a8090a 100644
|
||||
field public static final String MICROPHONE = "android.permission-group.MICROPHONE";
|
||||
field public static final String PHONE = "android.permission-group.PHONE";
|
||||
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
index cbf2300d998..c9cafa76c66 100644
|
||||
index ea9378e98b1a..c2a677613c6d 100644
|
||||
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
@@ -4454,8 +4454,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
@ -156,6 +156,3 @@ index cbf2300d998..c9cafa76c66 100644
|
||||
@Override
|
||||
public void checkPackageStartable(String packageName, int userId) {
|
||||
final int callingUid = Binder.getCallingUid();
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
From afedf9abaf7dc3df592b0b9e1046b3c87217af64 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Mon, 12 Feb 2018 02:55:55 -0500
|
||||
Subject: [PATCH] Harden signature spoofing
|
||||
@ -9,10 +9,10 @@ Change-Id: I86f35690710612f23ffce9067e1fd4d58b9fba6f
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
|
||||
index 5a654329446..a87ab52cbaa 100644
|
||||
index ad6cfd6ae501..acd7dbbbc4b1 100644
|
||||
--- a/core/res/AndroidManifest.xml
|
||||
+++ b/core/res/AndroidManifest.xml
|
||||
@@ -2853,7 +2853,7 @@
|
||||
@@ -2863,7 +2863,7 @@
|
||||
seen by applications -->
|
||||
<permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE"
|
||||
android:permissionGroup="android.permission-group.UNDEFINED"
|
||||
@ -21,6 +21,3 @@ index 5a654329446..a87ab52cbaa 100644
|
||||
android:label="@string/permlab_fakePackageSignature"
|
||||
android:description="@string/permdesc_fakePackageSignature" />
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 07a7a113fb952844fad6b90ff064544a76c9f4c7 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Philip Nagler-Frank <philip@nagler.world>
|
||||
Date: Mon, 22 Mar 2021 21:07:09 -0400
|
||||
Subject: [PATCH] Add permission to allow an APK to fake a signature.
|
||||
@ -29,6 +29,3 @@ index 65fdd590a..fdd71e215 100644
|
||||
PLATFORM_PERMISSION_GROUPS = new ArrayMap<>();
|
||||
int numPlatformPermissions = PLATFORM_PERMISSIONS.size();
|
||||
for (int i = 0; i < numPlatformPermissions; i++) {
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 658d0533ceacb6a2cd08d40badd9d2695a96409f
|
||||
Subproject commit 4472db7087a7da96df144ef2c6cb43e23b29d907
|
@ -320,6 +320,10 @@ if enterAndClear "device/htc/m8-common"; then
|
||||
awk -i inplace '!/TARGET_RELEASETOOLS_EXTENSIONS/' BoardConfigCommon.mk; #broken releasetools
|
||||
fi;
|
||||
|
||||
if enterAndClear "device/htc/msm8974-common"; then
|
||||
applyPatch "$DOS_PATCHES/android_device_htc_msm8974-common/295147.patch"; #Enable ZRAM
|
||||
fi;
|
||||
|
||||
if enterAndClear "device/lge/g2-common"; then
|
||||
sed -i '3itypeattribute hwaddrs misc_block_device_exception;' sepolicy/hwaddrs.te;
|
||||
echo "allow hwaddrs self:capability { fowner };" >> sepolicy/hwaddrs.te;
|
||||
|
Loading…
Reference in New Issue
Block a user