mirror of
https://gitlab.com/newbit/rootAVD.git
synced 2026-06-01 22:09:11 +02:00
Added PREINITDEVICE config
This commit is contained in:
@@ -379,6 +379,7 @@ rootAVD.bat system-images\android-25\google_apis_playstore\armeabi-v7a\ramdisk.i
|
||||
### Change Logs
|
||||
|
||||
#### [March 2024]
|
||||
* [rootAVD.sh] - Added PREINITDEVICE config
|
||||
* [rootAVD.bat] - Added support for elevated write permissions
|
||||
|
||||
<details>
|
||||
|
||||
+15
-8
@@ -1681,24 +1681,31 @@ patching_ramdisk(){
|
||||
|
||||
echo "[-] Patching ramdisk"
|
||||
|
||||
echo "KEEPVERITY=$KEEPVERITY" > config
|
||||
echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config
|
||||
echo "RECOVERYMODE=$RECOVERYMODE" >> config
|
||||
|
||||
# actually here is the SHA of the bootimage generated
|
||||
# we only have one file, so it could make sense
|
||||
[ ! -z $SHA1 ] && echo "SHA1=$SHA1" >> config
|
||||
|
||||
# Compress to save precious ramdisk space
|
||||
|
||||
if $IS32BITONLY || ! $IS64BITONLY ; then
|
||||
PREINITDEVICE=$($BASEDIR/magisk32 --preinit-device)
|
||||
$BASEDIR/magiskboot compress=xz magisk32 magisk32.xz
|
||||
fi
|
||||
|
||||
if $IS64BITONLY || ! $IS32BITONLY ; then
|
||||
PREINITDEVICE=$($BASEDIR/magisk64 --preinit-device)
|
||||
$BASEDIR/magiskboot compress=xz magisk64 magisk64.xz
|
||||
fi
|
||||
|
||||
echo "KEEPVERITY=$KEEPVERITY" > config
|
||||
echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config
|
||||
echo "RECOVERYMODE=$RECOVERYMODE" >> config
|
||||
|
||||
if [ -n "$PREINITDEVICE" ]; then
|
||||
echo "[*] Pre-init storage partition: $PREINITDEVICE"
|
||||
echo "PREINITDEVICE=$PREINITDEVICE" >> config
|
||||
fi
|
||||
|
||||
# actually here is the SHA of the bootimage generated
|
||||
# we only have one file, so it could make sense
|
||||
[ ! -z $SHA1 ] && echo "SHA1=$SHA1" >> config
|
||||
|
||||
$IS64BITONLY && SKIP32="#" || SKIP32=""
|
||||
$IS64BIT && SKIP64="" || SKIP64="#"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user