Skip to content

Instantly share code, notes, and snippets.

diff --git a/core/jni/android_util_AssetManager.cpp b/core/jni/android_util_AssetManager.cpp
index 90aee9e..0d689fc 100644
--- a/core/jni/android_util_AssetManager.cpp
+++ b/core/jni/android_util_AssetManager.cpp
@@ -164,7 +164,7 @@ static void verifySystemIdmaps()
}
// Generic idmap parameters
- const char* argv[8];
+ const char* argv[9];
diff --git a/core/jni/android_util_AssetManager.cpp b/core/jni/android_util_AssetManager.cpp
index b137da3..30d8abe 100644
--- a/core/jni/android_util_AssetManager.cpp
+++ b/core/jni/android_util_AssetManager.cpp
@@ -164,7 +164,7 @@ static void verifySystemIdmaps()
}
// Generic idmap parameters
- const char* argv[8];
+ const char* argv[9];
diff --git a/rw-system.sh b/rw-system.sh
index 2b063ae..bfb4818 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -30,10 +30,18 @@ if [ -n "$img" -a ! -f /system/rewrite-spl-done ];then
done=''
fi
+ v="$(getprop ro.bootimage.build.fingerprint)"
+ if [ "$v" != "$(getprop ro.build.fingerprint)" ];then
#!/system/bin/sh
set -e
img="$(find /dev/block -type l |grep by-name |grep /kernel$(getprop ro.boot.slot_suffix) |head -n 1)"
[ -z "$img" ] && img="$(find /dev/block -type l |grep by-name |grep /boot$(getprop ro.boot.slot_suffix) |head -n 1)"
#if mount -o remount,rw /system;then
# resize2fs $(grep ' /system ' /proc/mounts |cut -d ' ' -f 1)
#elif mount -o remount,rw /;then
diff --git a/core/config.mk b/core/config.mk
index 7adecff..682edea 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -971,16 +971,16 @@ include $(BUILD_SYSTEM)/ninja_config.mk
include $(BUILD_SYSTEM)/soong_config.mk
endif
-ifneq ($(LINEAGE_BUILD),)
+ifeq ($(LINEAGE_BUILD),)
#!/system/bin/sh
setprop service.adb.root 1
#This is using functionfs
#TODO: Make a variant for configfs
if getprop sys.usb.configfs |grep -q 1;then
mount -t configfs none /config
mkdir -p /config/usb_gadget/g1
echo 0x0299 > /config/usb_gadget/g1/bcdDevice
0. run my AOSP GSI v18, on a Huawei device
1. adb root;adb disable-verity;adb reboot;adb root;adb remount; in adb shell echo '(typepermissive radio)' >> /system/etc/selinux/plat_sepolicy.cil
2. copy https://drive.google.com/open?id=1In9J-0qfm2q70hsPtWIv29M3ruIJEbRP inside /system/overlay
3. install https://drive.google.com/open?id=1gWliRzuMBz64jpCf4nXBNZlSTZAX19A2 (adb install or local install from file manager is fine)
4. put IMS sim card in slot 1, not 2
5. get me logs with adb logcat --pid=$(adb shell pidof com.android.phone)
diff --git a/hardware.c b/hardware.c
index 8faac074..331ebcb2 100644
--- a/hardware.c
+++ b/hardware.c
@@ -108,9 +108,9 @@ static int load(const char *id,
/* Check that the id matches */
if (strcmp(id, hmi->id) != 0) {
- ALOGE("load: id=%s != hmi->id=%s", id, hmi->id);
- status = -EINVAL;
#!/system/bin/sh
setprop service.adb.root 1
#This is using functionfs
#TODO: Make a variant for configfs
if getprop sys.usb.configfs |grep -q 1;then
mount -t configfs none /config
mkdir -p /config/usb_gadget/g1
echo 0x0299 > /config/usb_gadget/g1/bcdDevice
06-06 20:42:02.286 1691 1796 D avos_player: flags: PAUSED LATE_INDEX FILE_NONLOCAL
06-06 20:42:02.288 1691 1691 D PlayerActivity: postVideoInfoAndPrepared false
06-06 20:42:02.288 1691 1691 D PlayerActivity: postVideoInfoAndPrepared false
06-06 20:42:02.288 1691 1691 D PlayerActivity: postVideoInfoAndPrepared true
06-06 20:42:02.289 1691 2373 I StreamOverHttp: Stream over localhost: serving request on /127.0.0.1
06-06 20:42:02.290 1691 2375 D StreamOverHttp: decodeHeader User-Agent: Lavf/57.71.100
06-06 20:42:02.290 1691 2375 D StreamOverHttp: decodeHeader Accept: */*
06-06 20:42:02.290 1691 2375 D StreamOverHttp: decodeHeader Range: bytes=0-
06-06 20:42:02.291 1691 2375 D StreamOverHttp: decodeHeader Connection: close
06-06 20:42:02.291 1691 2375 D StreamOverHttp: decodeHeader Host: localhost:42532