Skip to content

Instantly share code, notes, and snippets.

commit c1cfacd60751faf8ddabd01b9b34b85778dbd559
Author: Svirusx <45526199+Svirusx@users.noreply.github.com>
Date: Sat Oct 28 16:27:39 2023 +0200
BackupFix
diff --git a/services/backup/java/com/android/server/backup/utils/BackupEligibilityRules.java b/services/backup/java/com/android/server/backup/utils/BackupEligibilityRules.java
index 7c47f1e4..982066a3 100644
--- a/services/backup/java/com/android/server/backup/utils/BackupEligibilityRules.java
+++ b/services/backup/java/com/android/server/backup/utils/BackupEligibilityRules.java
@Svirusx
Svirusx / 0001.Disable_Hardened_Malloc.patch
Created August 6, 2023 19:55
To compile GrapheneOS as GSI Hardened_Malloc need to be reverted. Fix for error "hardened_malloc: fatal allocator error: failed to allocate slab region"
diff --git a/libc/Android.bp b/libc/Android.bp
index 2fa9817..a780486 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -170,11 +170,9 @@ cc_defaults {
lib64: {
cflags: [
"-DH_MALLOC_PREFIX",
- "-DUSE_H_MALLOC",
"-DUSE_SCUDO",
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 0e95e30a99b8..05c0cd6a7da4 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -3569,6 +3569,11 @@
android:description="@string/permdesc_getPackageSize"
android:protectionLevel="normal" />
+ <!-- Allows an application to change the package signature as
+ seen by applications -->
--- a/core/res/res/values/config.xml 2023-07-23 21:53:00.491326836 +0200
+++ b/core/res/res/values/config.xml 2023-07-23 21:53:36.655674432 +0200
@@ -2222,7 +2222,7 @@
<!-- The name of the package that will hold the system gallery role. -->
<string name="config_systemGallery" translatable="false">com.android.gallery3d</string>
<!-- The names of the packages that will hold the automotive projection role. -->
- <string name="config_systemAutomotiveProjection" translatable="false"></string>
+ <string name="config_systemAutomotiveProjection" translatable="false">com.google.android.projection.gearhead</string>
<!-- The name of the package that will hold the system cluster service role. -->
<string name="config_systemAutomotiveCluster" translatable="false"></string>
@Svirusx
Svirusx / docker.md
Created September 5, 2021 18:47 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary