Questions tagged [roottools]

RootTools is a library with utilities for running commands as root from within Android Java Code.

RootTools is a library with utilities for running commands as root from within Android Java Code.

Old homepage: https://code.google.com/p/roottools/

New homepage: https://github.com/Stericson/RootTools

25 questions
0
votes
1 answer

Roottols is making me unable to open a file

I have an App that copies and modifies permissions of a file. But then when I try to read said file I get permission denied. java.io.FileNotFoundException: /data/data/com.lstupenengo.primeraapp/files/xx: open failed: EACCES (Permission denied) How…
Luciano Stupenengo
  • 183
  • 1
  • 1
  • 12
0
votes
1 answer

Nothing happens when I click on the "Check For BusyBox" button

I made an application that checks for root using RootTools. Now, I added an option to check for BusyBox availability. When I click on "Check For BusyBox", nothing happens, though the "Check For Root" is working perfectly. I don't understand why is…
user3377697
0
votes
1 answer

ClassNotFoundException thrown by RootTools in JavaCommandCapture

I followed the directions on the RootTools usage and run Java as root wiki pages, but when I load my app with the following in onCreate() I get a ClassNotFoundException: com.stericson.RootTools.containers.RootClass: import…
CCJ
  • 1,619
  • 26
  • 41
0
votes
1 answer

Why RootTools cp command don't work?

I'm trying to make a copy of a file in the etc folder, for that I use the next code in a button: changeNTP.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { File exists = new…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
0
votes
1 answer

android java receive root access is denied

I have successfully rooted my Nexus4 and am trying to receive the root access in java via the RootTools.jar extension. When I call RootTools.isRootAvailable() I receive true but when calling RootTools.isAccessGiven() which should actually give me…
wasp256
  • 5,943
  • 12
  • 72
  • 119
0
votes
1 answer

Android gaining permission to "/data" folder using Roottools?

I am working on a File manager, and I want to be able to get root access to the /data folder. I want to create and maintain File objects from that directory. How can I accomplish this? Here is what I tried so far.. if (RootTools.isRootAvailable())…
user2351234
  • 965
  • 2
  • 12
  • 20
0
votes
1 answer

Error after updating Android SDK 22.0.1

With up-to-date Eclipse and SDK, my project is now not running on a 2.2.2 device. It gives error creating class instance: 06-12 07:50:10.282: W/dalvikvm(16541): VFY: unable to resolve static field 6 (debugMode) in…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
0
votes
2 answers

How to obtain file permission using roottools

I want to obtain linux file permissions without parsing ls -l. Since I will be using RootTools, I see it has a Permissions class, but how should I obtain permission data of a File into that object?
Yaroslav Mytkalyk
  • 16,950
  • 10
  • 72
  • 99
0
votes
1 answer

rooted android read only file system error

I'm trying to modify /etc/hosts/ file and for that I make a separate file in external storage and then cp it to the location. I'm getting these error messages: 01-14 18:51:51.069: E/HostsActivity(5356): rm failed for /etc/hosts, Read-only file…
prongs
  • 9,422
  • 21
  • 67
  • 105
-1
votes
1 answer

Copy folders from "/data/data" on Android

I want to copy entire folders from "/data/data/THIRDPARTYPACKAGE" to the SD card. My app crashes whenever I call: FileManager.copyDirectory("/data/data/THIRDPARTYPACKAGE", "/sdcard"); Here is my code so far: class FileManager { public static…
zliebersbach
  • 111
  • 2
  • 10
1
2