I am trying to read a xml file from /data/data/aas/a.xml. But I don't know how to get started. I well remounted /data as rw and chmod 777 /data/data/a.xml. It is rooted. It works on adb well .
My xml format is ...
<map>
<string name="aaa">123</string>
<string name="bbb">222</string>
...
...
<string name="ccc">999</string>
</map>
I want to get the value of ccc(999) in that way. How can I achieve it .Please help me please .. I am very new to android programming ! Please give me full explanation .
Code In my onCreate()..
process = Runtime.getRuntime().exec("su");
os = new DataOutputStream(process.getOutputStream());
os.writeBytes("mount -o remount rw /data");
os.writeBytes("chmod 777 data/data/com.aas.a/a.xml");
... In a.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<map>
<string name="ccc">0000</string>
</map>
... I want 0000 from this . Thank you ..