Power off / reboot without root access

Discussion in 'Android' started by Pasta88, Mar 28, 2018.

  1. Pasta88

    Pasta88 MDL Addicted

    Jun 17, 2009
    927
    17
    30
    Is there an app (or any other way) that will shutdown or reboot an android phone without root access?



    thx
     
  2. Yen

    Yen Admin
    Staff Member

    May 6, 2007
    11,245
    11,059
    340
    AFAIK to execute any shutdown command you need to have root permissions. Scheduled shutdowns also.

    'or any other way'.... press and hold power button. lol ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Michaela Joy

    Michaela Joy MDL Crazy Lady

    Jul 26, 2012
    3,646
    3,941
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,640
    15,554
    340
    @Pasta88

    Well, you can do both via adb (without root access), but you have to trust the PC first on which the adb binary is being executed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Pasta88

    Pasta88 MDL Addicted

    Jun 17, 2009
    927
    17
    30
    Care to share how I would do that plz?
     
  6. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,640
    15,554
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Yen

    Yen Admin
    Staff Member

    May 6, 2007
    11,245
    11,059
    340
    With
    Code:
    adb devices
    you can check if the adb has connected properly. It should list your phone. You should have USB debugging enabled on your phone. (ADB = Android Debug Bridge)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. secgeek

    secgeek MDL Novice

    Feb 8, 2018
    33
    11
    0
    It can be done using AutoInput plugin for Tasker. This plugin simulate taps on the screen. Although a little hard work is required to find out X & Y coordinates of right locations on the screen to tap correct buttons.
     
  9. StOrmCatz

    StOrmCatz MDL Novice

    Jan 3, 2016
    5
    2
    0
    TouchTask is another alternative to AutoInput. Instead of using the X & Y coordinate, it might be able to click on menu items by text
     
  10. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,640
    15,554
    340
    @secgeek @StOrmCatz

    Tasker needs root access, which needs to be avoided as per user's requirement.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. secgeek

    secgeek MDL Novice

    Feb 8, 2018
    33
    11
    0
    But not all functions of Tasker require root access.