Android Question hi, restart android

Discussion in 'Android Questions' started by ivanomonti, Jul 17, 2015.

  1. ivanomonti

    ivanomonti Well-Known Member Licensed User

    hello guys, I need a hand to my phone has no keyboard and restart working on ... how you can create a command that let me restart the phone ... as a restart !!
     
  2. specci48

    specci48 Well-Known Member Licensed User

    DonManfred likes this.
  3. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Code:
    Private p As Phone
        
    Private Out, Err As StringBuilder
               
        Out.Initialize
        Err.Initialize
      
        
    File.WriteString(File.DirInternal, "reboot.sh""su -c reboot")

        p.Shell(
    "sh"Array As String(File.Combine(File.DirInternal, "reboot.sh")), Out, Err)
    not result :-( not reboot, null
     
  4. DonManfred

    DonManfred Expert Licensed User

    Your device must be ROOTED to call SUPERUSER (su)
     
    lemonisdead likes this.
  5. ivanomonti

    ivanomonti Well-Known Member Licensed User

    I do not understand, forgive,,, you an example
     
  6. DonManfred

    DonManfred Expert Licensed User

Loading...