B4A Library SuperUser: Acquiring root permissions, the easy way.

Suntzu

Member
Licensed User
Longtime User

I have the same issue as dune3000.

I think su.DeviceRooted function is not working. SuBrowserSample works without any issue but not SuShellSimpleSample and SuShellAdvancedSample.

Commenting out the su.DeviceRooted's if..end if clause in the SuShellSimpleSample works:

B4X:
Sub BtnExecute_Click
    Dim su As SuShell
    'If su.DeviceRooted Then
        Dim Process As SuProcess = su.ExecuteWithEvent("ls", "Su")
        If Process.WaitForCompletion Then
            Msgbox("Process.Response.Size = " & Process.Response.Length, "Done")
        Else
            Msgbox("Permissions error!", "")
        End If
    'Else
        'Msgbox("Device not rooted!", "")
    'End If
End Sub
 

Firpas

Active Member
Licensed User
Longtime User
I'm testing superuser lib 2.30 on my S4 (android 4.3) and it not work.

What i am doing wrong????





Thanks in advance
 

MaFu

Well-Known Member
Licensed User
Longtime User
How to root depends on phone manufacturer and model. Ask Google with your phone name and "root" as search term.
But beware: the root process for your phone may be simple or complex. And if you doing wrong, you may have a new paperweight eventually.
 

JohnD

Active Member
Licensed User
Longtime User
@Periklis: Google reports that superuser.zip is Malicious. Chrome blocked the download. I'm sure this is not malware. I know how to unblock it. I'm just giving you a heads-up in case you didn't already know about it. Don't shoot the messenger.
 

Attachments

  • superuser.gif
    26.5 KB · Views: 255

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User

fanfalveto

Active Member
Licensed User
Longtime User
don´t install apk
B4X:
Sub BtnInstallApk_Click
    ProgressDialogShow2("please wait", False)
    Apk.Install(File.DirAssets, "culturilla.apk")
'    Dim Result As Boolean = Apk.Install(File.DirAssets, "culturilla.apk")
'    DisplayResult(Result)
End Sub
the phone is rooted (lg l5,samsung s4)
any idea why?
 

Htar Htar Lwin

Member
Licensed User
Longtime User
Hi, Periklis
When I run the tutorial on my 2.3.6 rooted phone, after click on "execute command" button, Permission error! message box appears. I already granted superuser permissions. Why?
 

Attachments

  • Root.png
    11.5 KB · Views: 236
Last edited:

ivan.tellez

Active Member
Licensed User
Longtime User
there is a Bug on the Recorder.Options.ShaketoStop

Lots of apps include haptics, most of them in form of vibration. the problem is when you try to record one of this apps, the recorder is way to sensitive and stops the recording when the app makes a vibration.

One aproach is to add a threshold value to adjust in the sake detection, or make id not as sensitive as it is now.
 

BarryW

Active Member
Licensed User
Longtime User
How to use this to access com.android.providers.telephony/databases/mmssms.db. Please Help
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
I use your library to silent install an apk.

I receive this error log:


B4X:
java.lang.IllegalThreadStateException: Process has not yet terminated: 6999
    at java.lang.ProcessManager$ProcessImpl.exitValue(ProcessManager.java:275)
    at com.datasteam.b4a.system.superuser.Su$1.run(Su.java:192)
    at java.lang.Thread.run(Thread.java:838)
true


** Activity (main) Pause, UserClosed = true **

What does it means?
 
Last edited:

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User

Hello,
have you solved this problem?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…