Linked Questions

-1
votes
1answer
45 views

Android 4.2 - how execute shell command on system boot? [duplicate]

How do I do that? I have root access and the it's a custom build of AOSP project.
7
votes
6answers
10k views

How to run a script on boot in CM12.1?

Most questions I can find related to this are dated 2011 and thereabouts, so perhaps it's not too surprising that things have changed since. I've tried a whole bunch of things, with no results ...
5
votes
2answers
12k views

Specifying SD card mount options upon boot

I have an Archos 101IT with a 16G external SD card. The SD card contains one partition that is formatted as an ext3 file system. The Archos runs UrukDroid 1.6.4 (Froyo 2.2). The Problem: When booted, ...
4
votes
3answers
6k views

How to create start up scripts using the init.d folder?

In this answer to a question I asked a while ago, he said it's possible to have a script executed every boot. I created a file (without extension) that contains the following: #!/system/bin/sh ...
1
vote
0answers
1k views

LineageOS: run custom script (start service) at boot

Seems like a simple thing. How can I run custom script on my (rooted) android with LineageOS at boot? Neither creating it as /data/local/userinit.d/99sshd nor /data/local/userinit.sh did not help. ...
-1
votes
1answer
1k views

It seems my device doesn't have init.d support, but I have a bunch of init.* files. Can I use the same approach somehow?

-rwxr-x--- 1 root root 3265 Jan 1 1970 init.class_main.sh -rwxr-x--- 1 root root 1730 Jan 1 1970 init.mdm.sh -rwxr-x--- 1 root root 3347 Jan 1 ...
0
votes
1answer
586 views

Can I run scripts on startup on rooted Galaxy Note 3?

I want to be able to run a shell command (e.g. mount) on startup on my Galaxy Note 3 (stock rooted Android 4.3) Typically on Linux that'd be done using /etc/init.d but I don't have that directory on ...
4
votes
1answer
506 views

Modify AOSP to run a specific shell command on boot in Android 6.0

I am trying to modify AOSP to run a specific shell command on boot. I tried to modify init.rc in system/core/rootdir/ to run a command on boot, but I could not make it work. I know that I should use ...
1
vote
1answer
305 views

How to Check if Script is run once device is booted?

I have a script I need to run once, and only once the phone is booted. I have attempted init.qcom.post_boot.sh, init.sec.boot.sh, debuggerd, and finally mkshrc While my script ran with debuggerd, I ...
3
votes
1answer
49 views

Corrupt files in microSD - How to know if files are damaged?

I have a Samsung Galaxy Ace 2 with a 4GB Kingston microSD. This microSD has only a few files (that I can remember) - visible both in PC and in file manager (default app) in the smartphone: Yu-Gi-Oh!...