Post by AnkuLua on Aug 18, 2018 8:21:32 GMT
Disclaimer Notice:
Installing boot daemon may cause problems on devices. The most serious may cause devices not able to boot.
If the script causing any damages, AnkuLua team takes no responsibility.
Use this script at your own risk.
Installing boot daemon may cause problems on devices. The most serious may cause devices not able to boot.
If the script causing any damages, AnkuLua team takes no responsibility.
Use this script at your own risk.
Foreword:
Some games don't allow root. Under this situation, AnkuLua users can only use daemon. But after every reboot, users need to install daemon. It causes some troubles. Many users ask the possibility of booting with daemon. And don't need to install daemon from PC.
For emulators, strongly suggest LD player 4.0 and above. No daemon is needed. You can use media projection and accessibility directly.
Preparation:
This script can install boot daemon on devices. But, ...
The devices need to be root first.
The devices need to be root first.
The devices need to be root first.
You can turn off root after installing boot daemon.
Revision History:
1.3.1:
* improve compatibility
* Please start AnkuLua (Pro2) later than 30 seconds after emualtor started.
drive.google.com/open?id=1EmSP2cg7C8wtj7Oa_As8HmRg1uOsmWaE
www.dropbox.com/s/xun6kot77m7xurg/installBootDaemon.v1.3.1.zip?dl=1
1.3.0:
* improve compatibility
drive.google.com/open?id=1qHgQacrbKFAxkxd5lXM0deuz39laQBW1
www.dropbox.com/s/3w88osi2m33lplr/installBootDaemon.v1.3.0.zip?dl=1
1.2.0:
* clear bug for KOPlayer
www.dropbox.com/s/6hrrka6l4ffhrsr/installBootDaemon.v1.2.0.zip?dl=1
1.1.0:
* First release for English version
www.dropbox.com/s/qb9poosk5qnm6vt/installBootDaemon.v1.1.0.zip?dl=1
If the downloaded file with bin extension name, please rename it to zip.
When unzippping the zip file, please keep the folder structure. There must be an daemon folder.
Suggest to unzip to /sdcard/AnkuLua
You can use ES file browser to unzip or change file names.
play.google.com/store/apps/details?id=com.estrongs.android.pop
Usage:
1. Make sure that the device is root.
2. Select script install.luac
3. Press the AnkuLua play button
4. In emulators, if there are more than one init*sh under /system, following dialog will show. Please select the suitable one.
Afterword:
If upgrade Android version or emulator version, You may need to install boot daemon again.
To help others, please report the result of your device. No matter success or failure.
It will help other users.
How to uninstall:
Under devices rooted, remove file /system/bin/ama_daemon
If fail to install:
Please zip all /*.rc and email it to ankulua@gmail.com
How does it work:
Real devices:
During start-up, Android will process /init.rc first. Many services are defined in init.rc, flash_recovery is one of the service.
And service flash_recovery will always be run once during start-up. And the run job is normally in a shell file.
All we need to do is making flash_recovery shell run the daemon.
Emulators:
It seems that emulators doesn't have flash_recovery.
We just search all init*.sh files under /system hierarchy directories. And choose one to run daemon.
What does the script do?:
- Copy suitable daemon to /system/bin
- Find the correct shell file. First search flash_recovery in all /*.rc files. If not found, search all init*.sh files under /system hierarchy directories.
- Append the shell file with "ama_daemon".
Step 1 is always done by the script.
For other steps, you may try it in adb shell.
If su not allowed in adb shell, try terminal emulator
play.google.com/store/apps/details?id=jackpal.androidterm.
The flow of commands for real devices on adb shell is like
And the flow of commands for nox on terminal emulator is like