Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,743,029 Members 43,530 Now Online
XDA Developers Android and Mobile Development Forum

[Q] kitkat mount and verify /system as rw

Tip us?
 
solitarymonkey
Old
(Last edited by solitarymonkey; 27th February 2014 at 09:05 AM.)
#1  
solitarymonkey's Avatar
Senior Member - OP
Thanks Meter 26
Posts: 176
Join Date: Jan 2011
Location: Northamptonshire

 
DONATE TO ME
Default [Q] kitkat mount and verify /system as rw

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
 
solitarymonkey
Old
#2  
solitarymonkey's Avatar
Senior Member - OP
Thanks Meter 26
Posts: 176
Join Date: Jan 2011
Location: Northamptonshire

 
DONATE TO ME
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes