init commитььиьа
This commit is contained in:
commit
ede7d165a4
12 files changed
+541
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#!/system/bin/sh
|
||||
MODDIR=${0%/*}
|
||||
|
||||
TMP=/dev/euicc_overlay_tmp
|
||||
SRC=/product/overlay
|
||||
if [ -f "$MODDIR/product/overlay/EuiccSlotsFix.apk" ]; then
|
||||
rm -rf "$TMP" 2>/dev/null
|
||||
mkdir -p "$TMP"
|
||||
cp -a "$SRC/." "$TMP/" 2>/dev/null
|
||||
cp -a "$MODDIR/product/overlay/EuiccSlotsFix.apk" "$TMP/" 2>/dev/null
|
||||
mount -t tmpfs -o mode=755 tmpfs "$SRC"
|
||||
cp -a "$TMP/." "$SRC/" 2>/dev/null
|
||||
chown -R root:root "$SRC"
|
||||
chmod 755 "$SRC"
|
||||
restorecon -R "$SRC" 2>/dev/null
|
||||
rm -rf "$TMP"
|
||||
fi
|
||||
|
||||
PTMP=/dev/perm_tmp
|
||||
PERM=/product/etc/permissions
|
||||
if [ -f "$MODDIR/product/etc/permissions/android.hardware.telephony.satellite.xml" ]; then
|
||||
rm -rf "$PTMP" 2>/dev/null
|
||||
mkdir -p "$PTMP"
|
||||
cp -a "$PERM/." "$PTMP/" 2>/dev/null
|
||||
cp -a "$MODDIR/product/etc/permissions/android.hardware.telephony.satellite.xml" "$PTMP/" 2>/dev/null
|
||||
mount -t tmpfs -o mode=755 tmpfs "$PERM"
|
||||
cp -a "$PTMP/." "$PERM/" 2>/dev/null
|
||||
chown -R root:root "$PERM"
|
||||
chmod 755 "$PERM"
|
||||
chmod 644 "$PERM"/*.xml 2>/dev/null
|
||||
restorecon -R "$PERM" 2>/dev/null
|
||||
rm -rf "$PTMP"
|
||||
fi
|
||||
|
||||
/data/adb/ksu/bin/resetprop ro.surface_flinger.set_idle_timer_ms 3000
|
||||
|
||||
setsid /system/bin/sh "$MODDIR/esimd.sh" >/dev/null 2>&1 </dev/null &
|
||||
Reference in new issue
Block a user