added support for ramdisk-qemu.img

This commit is contained in:
newbit1
2023-04-12 22:58:23 +02:00
parent 0b68051109
commit 0d046029b8
2 changed files with 20 additions and 10 deletions
+7 -5
View File
@@ -341,6 +341,13 @@ rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-31\google_apis_play
</details>
### Change Logs
#### [April 2023]
* [rootAVD.sh] - added support for ramdisk-qemu.img
<details>
<summary>Archive</summary>
### Change Logs
#### [December 2022]
* [rootAVD.sh] - Fixed arithmetic syntax error in decompress_ramdisk
@@ -362,11 +369,6 @@ rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-31\google_apis_play
* [General] - Bug fixes
#### [February 2022]
* [General] - Updated to Magisk Stable Version 24.1
<details>
<summary>Archive</summary>
### Change Logs
#### [October 2021]
* [rootAVD.sh] - Added get Up-To-Date Script Routine if Script is broken
* [rootAVD.sh] - Updated LZ4 decompression Routine
+13 -5
View File
@@ -420,10 +420,18 @@ create_backup() {
pushtoAVD() {
local SRC=""
local DST="$2"
local ADBPUSHECHO=""
SRC=${1##*/}
echo "[*] Push $SRC into $ADBBASEDIR"
ADBPUSHECHO=$(adb push $1 $ADBBASEDIR 2>/dev/null)
if [[ "$DST" == "" ]]; then
echo "[*] Push $SRC into $ADBBASEDIR"
ADBPUSHECHO=$(adb push $1 $ADBBASEDIR 2>/dev/null)
else
echo "[*] Push $SRC into $ADBBASEDIR/$DST"
ADBPUSHECHO=$(adb push $1 $ADBBASEDIR/$DST 2>/dev/null)
fi
echo "[-] $ADBPUSHECHO"
}
@@ -654,14 +662,14 @@ CopyMagiskToAVD() {
# Proceed with ramdisk
if "$RAMDISKIMG"; then
# Is it a ramdisk named file?
if [ $RDFFILE != "ramdisk.img" ]; then
# Is it a ramdisk named img file?
if [[ "$RDFFILE" != ramdisk*.img ]]; then
echo "[!] please give a path to a ramdisk file"
exit
fi
create_backup $AVDPATHWITHRDFFILE
pushtoAVD $AVDPATHWITHRDFFILE
pushtoAVD $AVDPATHWITHRDFFILE "ramdisk.img"
if ( "$InstallKernelModules" ); then
INITRAMFS=$ROOTAVD/initramfs.img