Closed GoogleCodeExporter closed 9 years ago
i should add that i have the android.permission.ACCESS_SUPERUSER permission in
my manifest, as the developer of com.noshufou.android.su suggests. adding it
didn't make a difference.
i should also add that isAccessGiven() did work properly with
com.noshufou.android.su at one point in the past. then i uninstalled
com.noshufou.android.su, installed com.koushikdutta.superuser, uninstalled
com.koushikdutta.superuser, and reinstalled com.noshufou.android.su. that's
when the trouble started. i've tried reinstalling com.noshufou.android.su
numerous times since then, but isAccessGiven() is still misbehaving.
Original comment by benhiras...@gmail.com
on 28 Jun 2013 at 5:38
it looks like com.koushikdutta.superuser replaced the su binary. this could be
the cause of the problem.
Original comment by benhiras...@gmail.com
on 28 Jun 2013 at 5:59
Yes, if the su binary is for Koush's Superuser application then it will not
work with ChainsDD's application and you will get the Root Access Denied.
Your users needs to have the su binary provided by ChainsDD's application.
Original comment by Stericso...@gmail.com
on 28 Jun 2013 at 6:03
got it. thanks!
Original comment by benhiras...@gmail.com
on 28 Jun 2013 at 6:32
no problem, let me know if you have any further issues.
Original comment by Stericso...@gmail.com
on 28 Jun 2013 at 6:41
CODE:
-------------------------------------------------------------------------
if (RootTools.isRootAvailable())
{
CommandCapture command = new CommandCapture(0, "chmod 777 /dev/pn*");
try {
RootTools.getShell(true).add(command).waitForFinish();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (TimeoutException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RootDeniedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
else
{
RootTools.offerSuperUser(DtaActivity.this);
}
LOG:
-------------------------------------------------------------------------
10-02 22:43:56.810: D/RootTools v2.6(4701): Starting Root Shell!
10-02 22:43:56.810: D/RootTools v2.6(4701): Starting shell: su
10-02 22:43:56.850: W/System.err(4701):
com.stericson.RootTools.exceptions.RootDeniedException: Root Access Denied
10-02 22:43:56.850: W/System.err(4701): at
com.stericson.RootTools.execution.Shell.<init>(Shell.java:77)
10-02 22:43:56.850: W/System.err(4701): at
com.stericson.RootTools.execution.Shell.startRootShell(Shell.java:294)
10-02 22:43:56.850: W/System.err(4701): at
com.stericson.RootTools.execution.Shell.startRootShell(Shell.java:280)
10-02 22:43:56.850: W/System.err(4701): at
com.stericson.RootTools.RootTools.getShell(RootTools.java:373)
10-02 22:43:56.850: W/System.err(4701): at
com.stericson.RootTools.RootTools.getShell(RootTools.java:389)
10-02 22:43:56.850: W/System.err(4701): at
com.stericson.RootTools.RootTools.getShell(RootTools.java:402)
10-02 22:43:56.850: W/System.err(4701): at
com.xiaohua.dta.DtaActivity.root(DtaActivity.java:190)
10-02 22:43:56.850: W/System.err(4701): at
com.xiaohua.dta.DtaActivity.onCreate(DtaActivity.java:112)
10-02 22:43:56.850: W/System.err(4701): at
android.app.Activity.performCreate(Activity.java:4465)
10-02 22:43:56.850: W/System.err(4701): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
10-02 22:43:56.850: W/System.err(4701): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
10-02 22:43:56.850: W/System.err(4701): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
10-02 22:43:56.850: W/System.err(4701): at
android.app.ActivityThread.access$600(ActivityThread.java:127)
10-02 22:43:56.850: W/System.err(4701): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
10-02 22:43:56.850: W/System.err(4701): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-02 22:43:56.850: W/System.err(4701): at
android.os.Looper.loop(Looper.java:137)
10-02 22:43:56.850: W/System.err(4701): at
android.app.ActivityThread.main(ActivityThread.java:4448)
10-02 22:43:56.850: W/System.err(4701): at
java.lang.reflect.Method.invokeNative(Native Method)
10-02 22:43:56.850: W/System.err(4701): at
java.lang.reflect.Method.invoke(Method.java:511)
10-02 22:43:56.850: W/System.err(4701): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)
10-02 22:43:56.850: W/System.err(4701): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
10-02 22:43:56.850: W/System.err(4701): at
dalvik.system.NativeStart.main(Native Method)
--------------------------------------------------------------------------------
---
Hi,
Any comments of this issue? thanks!
Original comment by nfcsph...@gmail.com
on 2 Oct 2013 at 2:50
I've seen this happen before. Is Superuser prompting for access?
Original comment by Stericso...@gmail.com
on 2 Oct 2013 at 2:52
No, The funcation RootTools.isRootAvailable() return TRUE,
BTW, Let me put few info as following,
- Same application is not problem at XIAOMI MI2A cell phone; happened at SONY
test phone,
- Could work well based on ADB SHELL, likes adb root,adb remount, chmod...;
Original comment by nfcsph...@gmail.com
on 2 Oct 2013 at 3:05
Sounds like an issue with the Super User binary. Can you update your binary? I
just had this happen with another user and this was the solution.
Original comment by Stericso...@gmail.com
on 2 Oct 2013 at 3:12
Already to try su version 3.0 and version 3.2, Both have problem ,
Original comment by nfcsph...@gmail.com
on 2 Oct 2013 at 3:39
Would you help to take look attach SU binary, this is SU3.2 ,
Is any problem with here? thanks!
Original comment by nfcsph...@gmail.com
on 2 Oct 2013 at 3:45
Attachments:
Hi,
Test Passed devices:
> XIAOMI MI2A
> HTC NEW ONE(HTC802W)
Otherwise:
*RootTools.isRootAvailable() = true
*RootTools.isAccessGiven() = false
> SONY sample
> Google Nexus 7
Under this case application will pop up menu show end user that how to change
permission via ADB mode, I have cross checked the SU BIN the probelm shall be
not here, and I am adding the issue in my watch list, thanks.
Original comment by nfcsph...@gmail.com
on 8 Oct 2013 at 2:42
Original issue reported on code.google.com by
benhiras...@gmail.com
on 28 Jun 2013 at 5:30