Giter VIP home page Giter VIP logo

Comments (7)

PinkiePieStyle avatar PinkiePieStyle commented on May 29, 2024

pls try
in adb.py line 197

if '/system_root' in res:
    self._syspart_name = '/system_root'
    if '/sbin/.magisk/mirror/system_root' in res:
        self._syspart_name = '/sbin/.magisk/mirror/system'
        #self._syspart_name = '/sbin/.magisk/mirror/system_root/system'

or uncomment the 'system_root/system'

from dwarf.

sn0opy avatar sn0opy commented on May 29, 2024

I don't think this will help either, since this is still not my actual system partition I think.

# mount -o rw,remount /sbin/.magisk/mirror/system_root
'/sbin/.magisk/block/system_root' is read-only

from dwarf.

PinkiePieStyle avatar PinkiePieStyle commented on May 29, 2024

su -c mount

think sysdir should be
'/sbin/.magisk/mirror/system_root/system'

test with latest commit

from dwarf.

sn0opy avatar sn0opy commented on May 29, 2024

There has sneaked in an extra / in line 201. I've updated it to

if '/sbin/.magisk/block/system_root' in res:

to actually use the intended path.

But as stated above, manually mounting said path does not work due to the message you see on the screen. See the "#" in front of the command. I was trying to point out I was doing this as root already ;)

from dwarf.

4val0v avatar 4val0v commented on May 29, 2024

Same problem when installing Frida from Dwarf
Nexus 6 - Android 5.0
Console:

failed to mount /system on device

adb.py line 196

res = self._do_adb_command('shell mount | grep system')

Return:

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/sbin/.magisk/block/system /sbin/.magisk/mirror/system ext4 ro,seclabel,relatime,data=ordered 0 0

Next command: (not working)

shell su -c mount -o ro,remount /sbin/.magisk/mirror/system

rm / mv etc... - Read-only file system

from dwarf.

4val0v avatar 4val0v commented on May 29, 2024

This method works for me on Nexus 5X and Nexus 6

Notebook-home:~ paul$ adb shell
shell@shamu:/ $ su
root@shamu:/ # mount -o rw,remount /
root@shamu:/ # touch /system/xbin/texxxxx                                      
root@shamu:/ # ls -la /system/xbin/ | grep tex                                 
-rw-r--r-- root     root            0 2020-04-26 05:04 texxxxx

https://didgeridoohan.com/magisk/Magisk#hn_Cant_edit_system_files

from dwarf.

PinkiePieStyle avatar PinkiePieStyle commented on May 29, 2024

Same problem when installing Frida from Dwarf
Nexus 6 - Android 5.0
Console:

failed to mount /system on device

adb.py line 196

res = self._do_adb_command('shell mount | grep system')

Return:

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/sbin/.magisk/block/system /sbin/.magisk/mirror/system ext4 ro,seclabel,relatime,data=ordered 0 0

Next command: (not working)

shell su -c mount -o ro,remount /sbin/.magisk/mirror/system

rm / mv etc... - Read-only file system

mount -o ro,.. < readonly

working on a fallback

@sn0opy can u try the syspart_fallback branch
set frida path in adb.py line 48 self._frida_path = ''

adding some find / -name frida-server + path via prefs later

from dwarf.

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.