Giter VIP home page Giter VIP logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
Here after a detailled log:
05-03 17:38:06.109: D/RootTools v1.7(1755): Checking for su
05-03 17:38:06.109: D/RootTools v1.7(1755): Trying second method
05-03 17:38:06.109: D/RootTools v1.7(1755): Checking for su
05-03 17:38:06.109: D/RootTools v1.7(1755): su was NOT found here: /sbin/
05-03 17:38:06.109: D/RootTools v1.7(1755): su was NOT found here: /system/bin/
05-03 17:38:06.109: D/RootTools v1.7(1755): su was found here: /system/xbin/
05-03 17:38:06.109: D/RootTools v1.7(1755): su was NOT found here: 
/data/local/xbin/
05-03 17:38:06.109: D/RootTools v1.7(1755): su was NOT found here: 
/data/local/bin/
05-03 17:38:06.109: D/RootTools v1.7(1755): su was NOT found here: /data/local/
05-03 17:38:06.109: I/UiRecorderActivity(1755): SU is available !
05-03 17:38:06.109: D/RootTools v1.7(1755): Sending 1 shell command
05-03 17:38:06.129: W/System.err(1755): java.util.concurrent.TimeoutException
05-03 17:38:06.129: W/System.err(1755):     at 
com.stericson.RootTools.Executer.sendShell(Executer.java:95)
05-03 17:38:06.129: W/System.err(1755):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1112)
05-03 17:38:06.129: W/System.err(1755):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1079)
05-03 17:38:06.129: W/System.err(1755):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1171)
05-03 17:38:06.129: W/System.err(1755):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1197)
[...]
05-03 17:38:06.129: W/System.err(1755):     at 
android.view.View.performClick(View.java:3511)
05-03 17:38:06.129: W/System.err(1755):     at 
android.view.View$PerformClick.run(View.java:14105)
05-03 17:38:06.129: W/System.err(1755):     at 
android.os.Handler.handleCallback(Handler.java:605)
05-03 17:38:06.129: W/System.err(1755):     at 
android.os.Handler.dispatchMessage(Handler.java:92)
05-03 17:38:06.129: W/System.err(1755):     at 
android.os.Looper.loop(Looper.java:137)
05-03 17:38:06.129: W/System.err(1755):     at 
android.app.ActivityThread.main(ActivityThread.java:4424)
05-03 17:38:06.129: W/System.err(1755):     at 
java.lang.reflect.Method.invokeNative(Native Method)
05-03 17:38:06.129: W/System.err(1755):     at 
java.lang.reflect.Method.invoke(Method.java:511)
05-03 17:38:06.129: W/System.err(1755):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-03 17:38:06.129: W/System.err(1755):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-03 17:38:06.129: W/System.err(1755):     at 
dalvik.system.NativeStart.main(Native Method)
05-03 17:38:06.139: D/dalvikvm(1755): GC_EXPLICIT freed 81K, 10% free 
9272K/10243K, paused 1ms+1ms
05-03 17:38:06.149: D/RootTools v1.7(1755): Using Root
05-03 17:38:06.149: D/RootTools v1.7(1755): Shell command: setprop my.key start
05-03 17:38:06.149: D/RootTools v1.7(1755): Error: write failed: EPIPE (Broken 
pipe)
05-03 17:38:06.149: D/RootTools v1.7(1755): In finally block
05-03 17:38:06.149: D/RootTools v1.7(1755): Getting Exit
05-03 17:38:06.149: D/RootTools v1.7(1755): Exit done...

Original comment by [email protected] on 3 May 2012 at 3:41

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
I don't think this is an error with RootTools but with setprop. Does this same 
command work if executed from the shell on your phone?

Original comment by [email protected] on 3 May 2012 at 3:43

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
[deleted comment]

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
With Android Terminal Emulator you mean ?
I am trying ...

SO the result:
a getprop works.

But for setprop i need su, but when I try su:

app_66@android:/ $ su
su: uid 10066 not allowed to su

:/

Original comment by [email protected] on 4 May 2012 at 7:28

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
Ok I tried again now I have:
[...]
05-04 09:33:51.587: D/RootTools v1.7(3834): su was found here: /system/xbin/
[...]
05-04 09:33:51.587: D/RootTools v1.7(3834): Sending 1 shell command
05-04 09:33:51.597: W/System.err(3834): java.util.concurrent.TimeoutException
05-04 09:33:51.597: W/System.err(3834):     at 
com.stericson.RootTools.Executer.sendShell(Executer.java:95)
05-04 09:33:51.597: W/System.err(3834):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1112)
05-04 09:33:51.597: W/System.err(3834):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1079)
05-04 09:33:51.597: W/System.err(3834):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1171)
05-04 09:33:51.597: W/System.err(3834):     at 
com.stericson.RootTools.RootTools.sendShell(RootTools.java:1197)
[...]
05-04 09:33:51.627: D/RootTools v1.7(3834): Using Root
05-04 09:33:51.627: D/RootTools v1.7(3834): Shell command: setprop my.key 1
05-04 09:33:51.627: D/RootTools v1.7(3834): Done reading input stream
05-04 09:33:51.627: D/RootTools v1.7(3834): error stream: su: uid 10065 not 
allowed to su

Strange, how a "su" binary cannot provide access to it ?

Original comment by [email protected] on 4 May 2012 at 7:37

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
I'm not sure what is happening there, however I am pretty certain that what is 
happening is not related to the RootTools library :\

Original comment by [email protected] on 4 May 2012 at 1:49

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024

Original comment by [email protected] on 23 May 2012 at 4:22

  • Changed state: Invalid

from roottools.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
I have the same EPIPE broken issue on rooted android 4.0.3 devices with and 
without RootTools. So the issue shall not be related to RootTools. The problem 
is almost all the devices I tested broke the same way.

To test without RootTools, use this basic code:

Process su = Runtime.getRuntime().exec("/system/xbin/su"); // my is here

DataOutputStream os = new DataOutputStream(
su.getOutputStream());

// Getting the id of the current user to check if this is root
os.writeBytes("id\n"); // IOException EPIPE broken thrown there.
os.flush();

Off course, this is the correct path and name. I also tried many different su 
supposed to be OK but failed the same way.

Original comment by [email protected] on 14 Sep 2012 at 8:25

from roottools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.