Mount android system root

Mount system as rw on Android 10 with Magisk 20.4

paschalisx

New member

I am using Magisk 20.4 and trying to mount /system on a Google Pixel running Android 10.

I have tried using:

The following also do not work:

I was also curious whether stuff in /sbin/.magisk/rootdir/system/ can actually override stuff in /system/ but that doesn’t seem to be the case..

Has anyone managed to mount /system on Android 10? Is this issue specific to Google Pixel?

moonlightdrive

Senior Member

Paschalis

Senior Member

Paschalis

Senior Member

Turns out I don’t need to mount /system.
I wanted this so I could ship my modified version of libart.so, libart-compiler.so and dex2oat (which are in APEX), as well some other external compiler libraries and tools.
So I’ve written some magisk modules, and it works really well. Even for the runtime apex. I’m impressed!

The only reason someone might need to mount /system is if he/she uses an app/tool that needs it.

Deleted member 10802473

Guest

jcruzcruz35

Member

Turns out I don’t need to mount /system.
I wanted this so I could ship my modified version of libart.so, libart-compiler.so and dex2oat (which are in APEX), as well some other external compiler libraries and tools.
So I’ve written some magisk modules, and it works really well. Even for the runtime apex. I’m impressed!

The only reason someone might need to mount /system is if he/she uses an app/tool that needs it.

Источник

How to Mount Android to Win­dows with Root File Sys­tem Access

Ashish Mundhra

27 Oct 2012

While I was composing the Chrome for Android User Agent article, I had to transfer a file to my Android’s SD card and then use a Root file explorer like ES File Explorer to move the file to the system directory and apply the new file permissions. After finishing with the article, I thought that it would have been a lot easier if there was a way to mount Android root path on Windows to write and modify files.

So after some research on forums and discussion threads, I came across a wonderful tool called Android Commander using which we could do the aforementioned task of rooting Android device. So let’s see what some of the basic requirements of the tool are and how to install and use it on Windows.

Читайте также:  Пульт с экраном для андроид

Some Basic Requirements

Here are some of the basic requirements your phone and computer should fulfill before you can run the application.

Phone Requirements

  • The phone must be rooted and you must have the latest version of BusyBox installed on it.
  • You must enable USB debugging on your phone. ICS and above users can find the option in Settings—>Developers Option. For users who are still running on Android 2.2.x and 2.3.x can find the settings under Settings->Applications->Development
  • You must have a data cable to connect your phone to your computer.

Computer Requirements

  • You must have the latest ADB drivers installed on your computer.
  • You will need admin access on your computer to install and run the program

Installing Android Commander

If you meet all the above requirements you can go ahead and install Android Commander on your computer. The application installs just like any other Windows application and you just need to follow the onscreen instructions to complete the setup.

After install the application, launch it. No need to mount your Android SD card as storage media, the app will read the data using the ADB interface. The app will look similar to an FTP application with the Windows files arranged on the left-pane and the Android file system mounted on the right-pane. The Android file system will be mounted as a root user and you could edit, update or delete any system file from Windows itself.

You can install applications using the APK files saved on your desktop. If your Android keys or screen is broken, you can use Android Commander to control your phone completely. Apart from some basic soft keys, you can transfer text to your phone on apps like WhatsApp. There are plenty of other useful features of the application you can explore.

Conclusion

Android Commander is undoubtedly a great find and if you love to play with your Android file system to install some new patches or hacks, Android Commander will prove to be very helpful. If you know of a better application that could help me with similar tasks, don’t forget to mention it in the comments.

Last updated on 8 Feb, 2018
The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.

How To Fix Your Phone Date Is Inaccurate Error In WhatsApp

Is # WhatsApp showing your inaccurate date error on your Phone? Check out these # troubleshooting fixes to resolve the inaccurate date error on # WhatsApp.

4 Best Ways to Turn Off Notifications on Android

Is your phone buzzing because of the # notifications too often? There are different ways to turn off notifications on # Android.

How to Send Group Texts from Android and iPhone

Here’s how to send group # text messages to your family, friends, or offlice colleagues using your # Android and # iPhone.

How to Add and Use Sleep Timer on YouTube Music

Do you miss the sleep # timer functionality on YouTube # Music? if yes, here’s how to add and use sleep # timer on # YouTube Music for both # Android and # iOS.

Top 9 Ways to Fix Facebook Not Loading Pictures

Is # Facebook not loading pictures for you? Let’s troubleshoot the issue on # Android and iPhone.

How to Block and Unblock Someone on Google Hangouts

Top 7 Ways to Fix Google Maps Showing Wrong Location on Android and iOS

# Google Maps showing wrong # location? Check out these # troubleshooting solutions to improve Google # Maps location accuracy on # Android and iPhone.

How to Save Mobile Data While Using Spotify

Want to save up on # mobile data while you enjoy the music on the go? Here’s how to do that.

Читайте также:  Взлом андроида с кали линукс

Did You Know

Over 60% of Instagram users are located outside the USA.

Источник

Cannot mount system_root and /product read only

geraIT

Member

Hello,
I have installed xiaomi eu and magisk (using twrp) and then removed some google apps using root uninstaller. Now my phone is stuck on fastboot.
When I try to restore factory settings in twrp I get errors:
Failed to mount /system_root (read only file system)
Failed to mount /product (read only file system)

How can I mount this partition as read write?
Is there any other workaround?

[Edit]
I do not have backup of partitions

dvait008

Member

Hello,
I have installed xiaomi eu and magisk (using twrp) and then removed some google apps using root uninstaller. Now my phone is stuck on fastboot.
When I try to restore factory settings in twrp I get errors:
Failed to mount /system_root (read only file system)
Failed to mount /product (read only file system)

How can I mount this partition as read write?
Is there any other workaround?

[Edit]
I do not have backup of partitions

reliot

Member

geraIT

Member

Thank you for info. I was able to fix this problem. I am not a specialist so I do not know if all steps are required (someone more experienced can verify). Do it on your own risk:
1) in twrp terminal I executed: mount -o rw,remount,a (rw for read write, a is for all partitions)
2) wipe cache, Dalvik
3) format data
4) I have flashed magisk uninstaller (I don’t know if it has any impact)
5) reboot to twrp
6) connect to PC, moved rom (xiaomi.eu) to device
7) mount all possible partitions
8) install rom
9) I got an error
10) reboot to twrp and flash rom again — it worked now
11) install magisk (optional)
12) done

I hope it’ll help others but it needs verification first.

cgdams

Senior Member

Thank you for info. I was able to fix this problem. I am not a specialist so I do not know if all steps are required (someone more experienced can verify). Do it on your own risk:
1) in twrp terminal I executed: mount -o rw,remount,a (rw for read write, a is for all partitions)
2) wipe cache, Dalvik
3) format data
4) I have flashed magisk uninstaller (I don’t know if it has any impact)
5) reboot to twrp
6) connect to PC, moved rom (xiaomi.eu) to device
7) mount all possible partitions
8) install rom
9) I got an error
10) reboot to twrp and flash rom again — it worked now
11) install magisk (optional)
12) done

I hope it’ll help others but it needs verification first.

I had the same problem, too, out of the blue.

I flashed xiaomi.eu Miui 12 stable last wednesday, installed magisk and adaway immediately afterwards and even did some restarts in the last days.
Today i did another restart, and the phone went into a fastboot mode bootloop immediately.

I was able to boot to TWRP by holding down the VolUp-Key while rebooting. TWRP was unable to mount the system and product partitions.

I followed your steps to solve the problem, and it did indeed work. Two things i did differently, though:
— After formatting data, i booted into recovery again before continuing. In my experience, this is essential if you want to copy things from your pc to the newly formatted data partition.
— I skipped step 7 (mount all possible partitions) completely.

First flash of the ROM went without error, i did not need to flash twice.

I don’t know what caused the problem in the first place. I did not uninstall system apps.
I did use Magisk Manager to enable systemless hostfiles, to enable Adaway, so maybe that’s the culprit.

Читайте также:  Яндекс определить номера для андроид как установить

I’ll try to retrace my steps, to see where it goes wrong. If i find anything, i’ll let you know. If anyone else knows the reason, please let me know.
EDIT: I can’t find the reason. It’s not Magisk itself, it’s not Magisk Manager enabling systemless host, it’s not Adaway.

Источник

mount system/system_root is incorrect in android-10.0 twrp when dynamic partition #2411

Comments

wzsx150 commented Feb 7, 2020

when /system is mounted by dm-0, ‘mount —move’ will be error.
so maybe do umount /system then mount on /system_root.

—move maybe not support mapper block.

has tested on redmi k30 5G in twrp.

The text was updated successfully, but these errors were encountered:

aIecxs commented Feb 8, 2020

or use bind mount overlays

wzsx150 commented Feb 16, 2020

some android-10.0 twrp has be built, so hope as soon as fix this bug

androidacybot commented Feb 20, 2020

TWRP does not offically support android 10 and thus no one really knows how they will implement dynamic partitions, thus @topjohnwu may not fix this until then because what if he fixes it for your unofficial TWRP and turns out offically they do it a whole other way?

aIecxs commented Feb 20, 2020 •

lol thats just a simple fix. instead of

(and umount to stay clean) btw mount —move does not work for me even manually with busybox or toybox. afaik this is for @osm0sis to look at (don’t hit me 😀

osm0sis commented Feb 20, 2020

Sounds more like a bug that your TWRP is using dm-0 mapper instead of actual partition mounting?

aIecxs commented Feb 20, 2020

idk. but the —move error is not related to twrp. i get always Invalid argument

Click to expand

osm0sis commented Feb 20, 2020 •

You shouldn’t be trying to run those commands while booted, they’re for recovery setup only.

The Magisk Installer’s mount setup is @topjohnwu’s work, and I’ve intentionally avoided messing with it since I prefer to do things somewhat differently: https://github.com/osm0sis/AnyKernel3/blob/master/META-INF/com/google/android/update-binary#L88-L124

aIecxs commented Feb 20, 2020 •

Thanks! It came to my mind the moment i had to use lazy umount.. my bad, i run toolbox from mksh in recovery. the reason must be busy /system

yes i have seen the mount function i came across to it when gapps was failing to detect system-as-root (btw maybe it’s better to test -e in case build.prop is a symlink) but that’s OT here

osm0sis commented Mar 1, 2020

#2496 might address this issue.

wzsx150 commented Mar 5, 2020

Sounds more like a bug that your TWRP is using dm-0 mapper instead of actual partition mounting?
not a bug.
android-10.0 dynamic partition, the mount partion is not actual partition.
dynamic partition is dm block and linked at /dev/block/mapper/ <$dynamic partition name>by init

wzsx150 commented Mar 5, 2020 •

can it fix the bug about mounting dynamic partition? @osm0sis

osm0sis commented Mar 5, 2020 •

TWRP based on Android 10 hasn’t even been merged for development yet, so I’m not sure where you’re getting this from. Why don’t you add the linked changes to the latest Magisk canary zip and test if it helps?

wzsx150 commented Mar 6, 2020

this is the same as #2496

but I will make twrp support magisk.zip mount —move

osm0sis commented Mar 6, 2020 •

Cool. I guess you should close this issue then, please. 🙂

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Оцените статью