diff --git a/.gitignore b/.gitignore index 8d86507..b89323a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store -Apps/.DS_Store -Apps/Magisk.apk +Apps/* initramfs.img bzImage *.rc \ No newline at end of file diff --git a/README.md b/README.md index 1952398..d268a93 100644 --- a/README.md +++ b/README.md @@ -249,3 +249,4 @@ Command Examples: * [Akianonymus _json_value](https://gist.github.com/cjus/1047794#gistcomment-3313785) * [Tad Fisher Android Nixpkgs](https://github.com/tadfisher/android-nixpkgs) * [Sébastien Corne magisk-single-user](https://github.com/seebz) +* [remote-android Native Bridge Support in ReDroid](https://github.com/remote-android/redroid-doc/tree/master/native_bridge) diff --git a/rootAVD.sh b/rootAVD.sh index df39b49..8f75ee6 100755 --- a/rootAVD.sh +++ b/rootAVD.sh @@ -900,9 +900,15 @@ patching_ramdisk(){ echo "[!] AddRCscripts=$AddRCscripts" if ("$AddRCscripts"); then echo "[*] adding *.rc files to ramdisk" + #for f in *.rc; do + # ./magiskboot cpio ramdisk.cpio "add 0644 overlay.d/sbin/$f $f" + #done + CSTRC=custom.rc + touch $CSTRC for f in *.rc; do - ./magiskboot cpio ramdisk.cpio "add 0644 overlay.d/sbin/$f $f" - done + echo "$f" > $CSTRC + done + ./magiskboot cpio ramdisk.cpio "add 0644 overlay.d/$CSTRC $CSTRC" echo "[-] overlay adding complete" echo "[-] jumping back to patching ramdisk for magisk init" else @@ -1152,7 +1158,7 @@ FindSystemImages() { fi cd $HOME > /dev/null - for SI in $(find -s $SYSIM_DIR -type f -iname ramdisk.img); do + for SI in $(find $SYSIM_DIR -type f -iname ramdisk.img); do if ( "$ListAllAVDs" ); then SYSIM_EX+=" ~/$SI" else @@ -1175,6 +1181,7 @@ FindSystemImages() { echo "${bold}./rootAVD.sh $SYSIM InstallKernelModules${normal}" echo "${bold}./rootAVD.sh $SYSIM InstallPrebuiltKernelModules${normal}" echo "${bold}./rootAVD.sh $SYSIM InstallPrebuiltKernelModules GetUSBHPmodZ PATCHFSTAB DEBUG${normal}" + echo "${bold}./rootAVD.sh $SYSIM AddRCscripts${normal}" echo "" fi done