Post Reply

[Q] kitkat mount and verify /system as rw

OP solitarymonkey

26th February 2014, 10:35 PM   |  #1  
solitarymonkey's Avatar
OP Senior Member
Flag Northamptonshire
Thanks Meter: 26
 
176 posts
Join Date:Joined: Jan 2011
Donate to Me
More
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
Last edited by solitarymonkey; 27th February 2014 at 09:05 AM.
27th February 2014, 10:17 AM   |  #2  
solitarymonkey's Avatar
OP Senior Member
Flag Northamptonshire
Thanks Meter: 26
 
176 posts
Join Date:Joined: Jan 2011
Donate to Me
More
UPDATE
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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Java for Android App Development by ThreadRank