You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
if(RootTools.isRootAvailable()) {
String appsDirPath = "/data/app";
File appsDir = new File(appsDirPath);
boolean result = RootTools.remount(appsDirPath, "rw");
if(result) {
appsDir.list();
}
}
What is the expected output? What do you see instead?
.list() should allow me to see all files contained within the directory,
however it returns null. Further inspection indicates that appsDir.canRead()
returns a false.
What version of the product are you using? On what operating system?
RootTools 1.7, Android 4.0.4
Please provide any additional information below.
Original issue reported on code.google.com by skylar.s...@gmail.com on 2 May 2012 at 8:03
The text was updated successfully, but these errors were encountered:
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
Original issue reported on code.google.com by
skylar.s...@gmail.com
on 2 May 2012 at 8:03The text was updated successfully, but these errors were encountered: