Android Question Running adb commands from app

Blueforcer

Well-Known Member
Licensed User
Longtime 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)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…