Remove All Ads from XDA
Honor 9 Lite

[Q] kitkat mount and verify /system as rw

261 posts
Thanks Meter: 52
By solitarymonkey, Senior Member on 26th February 2014, 11:35 PM
Post Reply Email Thread
I'm struggling to get an app to run a "mount -o rw,remount /system" command and correctly verify that it is in actual fact remounted as rw. The code is doing it's job, and can write to the system partition, but only if I bypass the verification step which (by design, obviously) stops it from progressing.
I'm not at my computer right now, but I can provide the code if need be.
I'm currently using the source of an existing app, and just tinkering at the moment, as the app in question currently doesn't work on 4.4.2.
Thank you in advance!!

Sent from my GT-I9300 using XDA Premium 4 mobile app
27th February 2014, 11:17 AM |#2  
solitarymonkey's Avatar
OP Senior Member
Flag Northamptonshire
Thanks Meter: 52
Donate to Me
With a bit of terminal emulator experimentation on device, I've identified that as an unprivileged user, even if remount to rw was successful, running "mount | grep system" still shows the flag "ro". Yet running "su -c mount | grep system" shows "rw".
So this narrows done my question. How can I get the app to query the same info as root to obtain the true flag? I'm pretty new to Java and android programming and not having much luck understanding the android API.
Thanks again!

Sent from my GT-I9300 using XDA Premium 4 mobile app
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes