Android Question Running adb commands from app

Blueforcer

Active Member
Licensed User
I want to call adb commands from my app.
e.g:

adb shell setprop debug.oculus.textureWidth 1536
adb shell setprop debug.oculus.textureHeight 1536
i tried to use it with following code, but it doesnt work. did i miss something?
With USB adb it works perfectly

B4X:
    Dim sb As StringBuilder
sb.Initialize
P.Shell("setprop",Array As String("debug.oculus.textureWidth","1536"), sb, Null)
P.Shell("setprop",Array As String("debug.oculus.textureHeight","1536"), sb, Null)
Log(sb.ToString)
 

Erel

Administrator
Staff member
Licensed User
Pass a StringBuilder for StdError. What are the values of the two outputs?
 
Top