0

My samsung mobile is switched off with busted power button, and the "Volume down+main button with charger" process is also not working..is there a way I can restart it using adb and sdk tools??

1
0

download magisk manager and exact variant of boot.img to any other android device. patch boot.img with advanced - keep force encryption + keep avb/dm-verity

install Odin and drivers. flash magisk_patched.tar in AP slot. set the auto reboot option

unlock device and install magisk manager. you are rooted

edit: now modify your device for auto boot each time charger is plugged in, see Irfan Latif's answer on Automatically power on Android when the charger is connected

now dump your para partition and inspect with hex editor. if you find the off mode charge string you can modify value. flash the modified para partition. this will make your device auto boot each time charger is plugged in

if the changes aren't persistent for some reason, install some start-up script which executes the mod directly

sed -i '0,/off-mode-charge=1/s/off-mode-charge=1/off-mode-charge=0/' $(find /dev/block -name by-name)/para

2
  • 1
    This trick should work only on devices where bootloader supports fastboot oem off-mode-charge 0. I don't know if odin provides an equivalent command or not. But many vendors don't implement this command in bootloader. Feb 19 '20 at 19:50
  • 1
    Universal way: android.stackexchange.com/a/221384/218526 Feb 19 '20 at 22:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.