Android Question Running adb commands from app

Discussion in 'Android Questions' started by Blueforcer, Jun 10, 2019.

  1. Blueforcer

    Blueforcer Active Member Licensed User

    I want to call adb commands from my app.
    e.g:

    i tried to use it with following code, but it doesnt work. did i miss something?
    With USB adb it works perfectly

    Code:
    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)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Pass a StringBuilder for StdError. What are the values of the two outputs?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice