Power off / reboot without root access

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

  1. Pasta88

    Pasta88 MDL Expert

    Jun 17, 2009
    1,010
    20
    60
    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,426
    11,364
    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,805
    4,149
    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,696
    15,732
    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 Expert

    Jun 17, 2009
    1,010
    20
    60
    Care to share how I would do that plz?
     
  6. Tito

    Tito Super Mod / Adviser
    Staff Member

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

    Yen Admin
    Staff Member

    May 6, 2007
    11,426
    11,364
    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
    37
    12
    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,696
    15,732
    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
    37
    12
    0
    But not all functions of Tasker require root access.