Open GoogleCodeExporter opened 8 years ago
on the off chance that i'm using it incorrectly... this fails to show /data/app
in the mounts:
if(RootTools.isRootAvailable()) {
String appsDirPath = "/data/app";
File appsDir = new File(appsDirPath);
boolean result = RootTools.remount(appsDirPath, "rw");
if(result) {
try {
RootTools.getMounts();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Original comment by skylar.s...@gmail.com
on 2 May 2012 at 8:17
Well, remount is suppose to be used for system mounts...I suppose I should make
that a bit clearer.
You don't want to remount that, you need to change the permissions on that
directory.
We don't have a function for this, but I will add it in.
Use chmod to change the permissions of that directory to 0777 so that you can
access the data stored there. However make sure you return the permissions to
what they were before you changed them.
Original comment by Stericso...@gmail.com
on 2 May 2012 at 8:34
Ahh. My apologies for the misunderstanding. Thanks for taking the enhancement
request then. =)
Original comment by skylar.s...@gmail.com
on 7 May 2012 at 3:31
Original issue reported on code.google.com by
skylar.s...@gmail.com
on 2 May 2012 at 8:03