[Q] Additional Command on Booting - Android Q&A, Help & Troubleshooting

Hi guys. I couldn't install cwm and I want to insert a command to /system/etc/init.goldfish.sh to execute additional script to change files on device booting.
Script file /mnt/external_sd/rv.sh. When it exists it will be executed. I just wanna add "sh /mnt/external_sd/rv.sh". Will this code be a problem when it is just like that.
I hope I could tell everything readable
Thanks.

Related

[Q] How to execute a command at boot...

Probably is this question really simple to anwser but I just cant get Android to execute a command at boot.
I tried putting the command in init & init.goldfish.sh, but it still isn't executed at boot.
For sure the syntax is correct!
Thanks in advance.
hennymugge said:
Probably is this question really simple to anwser but I just cant get Android to execute a command at boot.
I tried putting the command in init & init.goldfish.sh, but it still isn't executed at boot.
For sure the syntax is correct!
Thanks in advance.
Click to expand...
Click to collapse
In the most ROMs you can add the command to any file in /system/etc/init.d/ and it will be executed at boot.
Or, you can create a file in that folder, and set 755 permissions on it.
k0rner said:
In the most ROMs you can add the command to any file in /system/etc/init.d/ and it will be executed at boot.
Or, you can create a file in that folder, and set 755 permissions on it.
Click to expand...
Click to collapse
Great! Thank you so much!

[Q] Updater-script

Hi.
I'm using a Samsung SGH-i997 Infuse 4g. GB 2.3.6
I'm using root explorer to describe file system.
I hope someone with experience with updater_script can help.
I was interested in running a command from /system/xbin.
When you run root explorer, in the root, there is a /bin folder and a /system/bin folder. They contain same commands
Commands in it will have: mount, unmount, reboot etc
To run this in updater-script, you will need this:
run_program("sbin/mount", argument etc);
I wanted to run a command in /system/xbin
These command are: (ex:chmod, clear, grep, insmod etc)
I know these commands can be included in a script file, ex: mumbojumbo.sh
and can be extracted, given permission and run as a script.
What I was interested in was if it was possible to run these from updater-script without going through a *.sh script.
Example:
run_program("system/xbin/chmod", argument);
Obviously I have tried without succeeding using different combinations
Thank you
bump
10 chars
just run_program("sbin/chmod", blah) will do.
while in recovery...connect to the adb shell and look into sbin/

problem with pushing a file via adb and/busybox

I am using Samsung Galaxy Note with stock ICS 4.0.4 and notecore kernel v13 std by g.lewarne.
here is the link for the kernel: http://forum.xda-developers.com/showthread.php?t=1749863 (it is hydracore now. but same for tw roms)
You may have heard the program called Droid Manager by deep unknown xda presented it to us a couple of days ago.
here is the link ıf the program: http://forum.xda-developers.com/showthread.php?t=1772338
my problem is that:
the program cannot push edited build.prop file to my phone. It can do so for any other phones.
I communicated with the dev of the program and he infırmed me that the program uses busybıx and/or adb commands to push the new build.prop file. we tried a couple of things yet could bot find a sokution. we tried the way to create a new file within the phone. (cat command). We 8succeeded however we need to push "enter" button to push the content to the file which is not possible to do so with the coding of droid manager. (i dont know how to tell the problem properly since i am not a dev )
what could be the possible solutions way???
TIA
p.s: i will ask devs to look at the thread. maybe they can shed more light to the problem...
I have opened Teamviwer with "ardicli2000" and worked directly from his laptop on his phone.
Done the following via Droid Manager and Command Line (CMD):
1. remount system as RW: succeeded.
2. Create a file on "/system" using: "touch /system/1.txt" also succeeded.
3. tried pushing a file from his desktop (file name was: 1.txt) FAILED !!
No matter what, once I start using "Adb push" I fail on putting anything on "/system" I get: Permission denied :-/
but when I attempt to create anything on "/system" using busybox commands I SUCCEED !!
what could be the issue?! everything in the program functions without issues except for "adb push" to "/system" :crying:
DeepUnknown said:
I have opened Teamviwer with "ardicli2000" and worked directly from his laptop on his phone.
Done the following via Droid Manager and Command Line (CMD):
1. remount system as RW: succeeded.
2. Create a file on "/system" using: "touch /system/1.txt" also succeeded.
3. tried pushing a file from his desktop (file name was: 1.txt) FAILED !!
No matter what, once I start using "Adb push" I fail on putting anything on "/system" I get: Permission denied :-/
but when I attempt to create anything on "/system" using busybox commands I SUCCEED !!
what could be the issue?! everything in the program functions without issues except for "adb push" to "/system" :crying:
Click to expand...
Click to collapse
Could no one help

[Q] Custom Firmware - Running SH scripts on boot

Hey there,
I am around 85% complete on a custom firmware I am developing on the amlogic platform for a new device I am working on.
The base firmware I have used runs sh scripts during boot - and upon shell launch. I have added what sh I want to run into the same directory with the same permissions as existing but mine won't run.
The sh files I need to run either during boot or as soon as boot has completed - simply unpack an tar archive files to a specific location.
Can anyone assist?
Thanks in advance
DA

Run sh-script on boot

I have rooted smartphone Lenovo A Plus (A1010A20) with Android 5.1. I want to schedule some script to be execute on boot. I did not find any "init.d" directory, so I added the script call to "/system/etc/mkshrc" file. But in this case the script executes only after I enter the terminal as a super user. So I installed Busybox and tried to use cron. But I can not make crond service run automatically. I even create folder "/system/etc/init.d/" and put file with script to run crond. But it does not working.
How to make crond service run automatically on Android?
yurybx said:
I have rooted smartphone Lenovo A Plus (A1010A20) with Android 5.1. I want to schedule some script to be execute on boot. I did not find any "init.d" directory, so I added the script call to "/system/etc/mkshrc" file. But in this case the script executes only after I enter the terminal as a super user. So I installed Busybox and tried to use cron. But I can not make crond service run automatically. I even create folder "/system/etc/init.d/" and put file with script to run crond. But it does not working.
How to make crond service run automatically on Android?
Click to expand...
Click to collapse
Try this
https://forum.xda-developers.com/an...ript-zip-init-d-enabler-stock-kernel-t3347724

Categories

Resources