Coder Social home page Coder Social logo

Comments (12)

newbit1 avatar newbit1 commented on September 26, 2024

Is this really rootAVD related?

To disable Magisk-Modules, you can place a disable file into its directory.

Or you can just delete them all at once like in the Magisk FAQ mentioned.

You can do both via adb.

To boot your AVD into Safe Mode, you can follow the guide How to boot your device up in android safe mode

Works perfect.

from rootavd.

andronoob avatar andronoob commented on September 26, 2024

Is this really rootAVD related?

Yes, I think, without your amazing work I won't be able to install magisk onto AVD.

However I just want to share my experience.

You can do both via adb.

When a problematic module blocks boot process, adb is simply not available at all.

To boot your AVD into Safe Mode, you can follow the guide How to boot your device up in android safe mode

When the AVD simply fails to boot, there's no chance to click that "reboot to safe mode" button.

from rootavd.

andronoob avatar andronoob commented on September 26, 2024

I hope that some hints could be added to README and text prompt of this script, so that in the case a problematic module blocks the AVD from normally booting, the user will feel less anxious.

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

What exactly do you want in the readme? The primary scope of the script is to install Magisk, everything beyond this is Magisk
related. You can always wipe data or restore the ramdisk.img

from rootavd.

andronoob avatar andronoob commented on September 26, 2024

The primary scope of the script is to install Magisk, everything beyond this is Magisk
related.

Of course. However I didn't know Magisk supports safe mode in the beginning either. I think some reminders about this can be helpful.

Maybe just a reminder like "in case a problematic magisk module bricks your AVD, you may try pressing the volume down button to enter safe mode!" is enough.

You can always wipe data or restore the ramdisk.img

Sometimes you don't want to wipe data. To my understanding, although restoring ramdisk.img can make the AVD boot again, it will neither disable any magisk module, nor provide root access, so that safe mode is still useful to quickly fix a "bricked" AVD by disabling all magisk modules.

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

Agree! This does definitely elevate the support level, especially the part that avoids wiping the data.
Could you please provide me this "bricking" module? So I can reproduce that issue and a possible way to fix it.

from rootavd.

andronoob avatar andronoob commented on September 26, 2024

Could you please provide me this "bricking" module? So I can reproduce that issue and a possible way to fix it.

Thanks, but, actually it was not a ZIP, I wanted to modify some system files, so I just copied & modified the hosts module (inside /data/adb/modules) to achieve this. Other modules (including the hosts module) is working without problem.

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

Then send me just this. Or create a module that breaks. Without something, I can't reproduce anything. Sorry

from rootavd.

andronoob avatar andronoob commented on September 26, 2024

Or create a module that breaks.

Maybe you could try this (assuming you've already added hosts module), after entering adb shell:

(of course, since this will brick the AVD, you should be prepared for this)

su
cd /data/adb/modules
cp -a hosts badmodule
cd badmodule
rm ./disable
rm ./system/etc/hosts
rmdir ./system/etc/
mkdir ./system/lib/
mkdir ./system/lib64/
touch ./system/lib/libc.so
touch ./system/lib64/libc.so
reboot -p

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

thanks! Can't find any module with this name.
Can you provide me a link please?

from rootavd.

andronoob avatar andronoob commented on September 26, 2024

Can't find any module with this name.

It can be added by clicking "Systemless hosts" in magisk app settings.

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

Thank you for your patience. Readme is updated.

from rootavd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.