Full width home advertisement

Telecom world news Marathi

Climb the mountains

Post Page Advertisement [Top]

How do I automatically power on Android phone when charger plug-in

Before starting tutorial on "How do I automatically power on Android phone when charger plugged in ?" We are discussing why on earth someone do this ? Or why someone need this ?

Ans: Assuming A scenario where you are reusing old Android phone for a FTP server or HTTP server. That time you setup your phone for FTP/HTTP/Cam server and Keep it   permanently to place. All Android server's app can auto start after a reboot. But what happened if your electricity current gone and phone switch off and electricity current return. What happened is, Your phone charging start but phone not boot. This is the scenes where you need this tutorial .

Is you do this trick on your own device/phone ? ( 😂 Trust is matter )
The short answer is "YES"

Long Answer :
Yeah I'm do this trick on my android 7 phone. And that phone is my FTP+http server at home. I'm using 64GB SanDisk card. I can backup images to and stream MP4 video from FTP server.







How do I automatically power on Android phone when charger plugged in

Tutorial :


In this Tutorial we are going to tell you "How to automatically power on Android phone when charger plug-in ?"

Pre Required things :

  • Android phone ( ofcourse )
  • Bootloader unlock
  • Rooted
  • Boot.img file
  • Twrp
  • Pc with installed 'AIK tool'
  • AIK tool ( latest download link )

Steps : 
     If you guy's already unlocked bootloader & rooted.
You require boot.img of your device.
How to Get Boot IMG of your device ?
You can get boot.img file of your device/phone in stock firmware. If your device stock firmware is zip file then unzip the file & copy the boot.img file in safe place.

Edit the Boot.img :
Boot img file is container file like zip file. But To unpack the boot.img file we need a special tool "AIK TOOL " ( ANDROID IMAGE KITCHEN).
     Copy the boot.img file in the root of the aik tool folder. Unpack 

After unpack of boot.img file. Go in extracted boot.img folder and open ramdisk folder. Check for init.rc file. Open this file in text editor like ( notepad++ ). After open the file use search option and search for on charger
Default On charger line is look like this ↓
on charger
    class_start charger
    setprop ro.bootmode "normal"

You need to make this like below ↓

 on charger

    class_start charger

    setprop ro.bootmode "normal"

    setprop sys.powerctl "reboot"

Save file in notepad++ & repack boot.img using AIK tool. 

Repack the Boot.img :

Flash the new edited boot.img using fastboot method. Connect phone to charger and Check if phone is automatically boot on or not.



FAQ  answer in this Tutorial :

  • AutoBoot Android When Charger Connected.
  • boot phone when charger is connected.
  • How do I make my phone automatically turn on?
  • How can I turn my phone on without the power button?





No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib