I've made a couple of scripts that I would like to run when android starts. Currently I manually run them via terminal. I currently have these scripts in my /system/xbin. Trying to learn how to develop.
Sent from my MB525 using XDA App
Jason78729 said:
I've made a couple of scripts that I would like to run when android starts. Currently I manually run them via terminal. I currently have these scripts in my /system/xbin. Trying to learn how to develop.
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
put it to /system/etc/install-recovery.sh
I'd like to have a script run at system startup. I'm running an official Froyo ROM. Could someone please tell me how to do it?
Related
I am running one of the new cm7 nightlys with godmod kernel. I cannot get the init.d scripts to run on boot. I've tried 3.3.7 and still no go. Anything I'm missing?
Do you have init.d folder in system/etc/??
Sent from my PC36100 using Tapatalk
I do, it also has a bunch of random scripts in there from the initial flash of the rom.
I just cannot figure out why my phone will not execute any of the scripts in the folder.
siris420 said:
I do, it also has a bunch of random scripts in there from the initial flash of the rom.
I just cannot figure out why my phone will not execute any of the scripts in the folder.
Click to expand...
Click to collapse
How do you know it's not running the scripts? What are you doing to verify if it is or not?
Sent from a Nifty Tomatoe
Hit that thanks button if I managed to help
Installed a ram script, and some other things. Reboot. Check minfree values and they are still stock.
Actually your ultimate ram script.
I just used this script found HERE
Follow the directions...
Required:
rooted phone
busybox installed [get from market]
Terminal Emulator [get from market]
make sure your rooted and busybox installed....
Im using my deodexed rom, not debloated, my ram is hanging at 183-185mb
any questions about script ask in the original thread.
any questions on working on continuum, post in this thread
phone is amazingly faster!
NOTE: looks like it unroots phone.
To reroot use superoneclick 2. 3. 3
I'm working on what we can do to stop this...
Good find! This is a good boost.. What this does is:
The phone has a selected amount of memory for it's tasks. Over time this memory gets used up. When the phone's memory reaches a specific amount the phone automatically deletes specific files.. In the process of all of this, everything is slowed down. What this script does is delete the cache which is using up the ram/memory. Instead of allowing the phone to manage this, this script deletes the files in a specific interval.. In this case, i think it is every hour(don't quote me)..
I utulized something similar to this in my previous rom.. it however lowered the point the phone deleted the items out of memory automatically.
Many scripts like this are out.
Code:
#!/system/bin/sh
# Adrenaline Shot
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
One option you could do is create an init.d script to automatically run this(as long as you have imnuts' custom kernel installed)
Likewise, as long as you have busybox installed you should be able to make an sysctl script that will run this on boot.
pattielipp said:
Good find! This is a good boost.. What this does is:
The phone has a selected amount of memory for it's tasks. Over time this memory gets used up. When the phone's memory reaches a specific amount the phone automatically deletes specific files.. In the process of all of this, everything is slowed down. What this script does is delete the cache which is using up the ram/memory. Instead of allowing the phone to manage this, this script deletes the files in a specific interval.. In this case, i think it is every hour(don't quote me)..
I utulized something similar to this in my previous rom.. it however lowered the point the phone deleted the items out of memory automatically.
Many scripts like this are out.
Code:
#!/system/bin/sh
# Adrenaline Shot
sync;
sleep 1
echo "3" > /proc/sys/vm/drop_caches;
echo "1" > /proc/sys/vm/drop_caches;
sleep 1
echo " ** Turbo Boosted ** ";
One option you could do is create an init.d script to automatically run this(as long as you have imnuts' custom kernel installed)
Likewise, as long as you have busybox installed you should be able to make an sysctl script that will run this on boot.
Click to expand...
Click to collapse
Thanks for explaining it. Did imnuts get unit.d to work? I did not see a confirmation
Sent from my SCH-I400 using xda premium
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
With imnuts kernel init.d scripts are working.. they are finicky, but i did have them working for a period of time when i was looking into init.d and sysctl scripts.
biznazz said:
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
flash another ec09 build.. most include root capabilities.. If you want a stock deodexed and rooted build go with ciscoo's build.. if you want deodexed adn debloated, i have a release out.. Both of these are rooted...
biznazz said:
So I flashed this on ec09 and I lost root. Any ideas?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
As did i lol... superoneclick 2.3.3 works
Sent from my SCH-I400 using xda premium
Ok thanks ciscoo. Could you add that bit of info into the op for others that decide to flash this. thanks duder
Sent from my SCH-I400 using xda premium
Sure will. I wasn't sure until u mentioned it.
Sent from my SCH-I400 using xda premium
Just tried this,FREAKIN AWESOME!
Sent from my SCH-I400 using Tapatalk
abby_nitewolf said:
Just tried this,FREAKIN AWESOME!
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
Did it unroot ya though?
Sent from my SCH-I400 using xda premium
ciscogee said:
Did it unroot ya though?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Just flashed. Insta unroot. S1c rerooted fine. Here's my question. I looked, before I rooted again. Su is still in bin, and su and busybox are both in xbin. Maybe someone better with scripts can clear this up, but i can't see where the boost script should affect su at all. I looked at the updater script, and the boost script itself. I'd be very curious, if someone knows.
Sent from my SCH-I400 using Tapatalk
When you run this it removes all running scripts and applications from the ramdisk that are stored in the cache. Root is given at startup as well as other scripts being run only once, however they stay in the ram until the memory is needed, then they are replaced. This completly clears the cache.. for those running this, if you reroot your phone does this unroot it again after a specific amount of time? 1 hour or 1 day after the script is run?
pattielipp said:
When you run this it removes all running scripts and applications from the ramdisk that are stored in the cache. Root is given at startup as well as other scripts being run only once, however they stay in the ram until the memory is needed, then they are replaced. This completly clears the cache.. for those running this, if you reroot your phone does this unroot it again after a specific amount of time? 1 hour or 1 day after the script is run?
Click to expand...
Click to collapse
Rerooted at 0730. It's 1245 now. Just checked and i still have root.
Sent from my SCH-I400 using Tapatalk
Txwolf1980 said:
Rerooted at 0730. It's 1245 now. Just checked and i still have root.
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
Is ram still down also?
Sent from my SCH-I400 using xda premium
To be honest, There was only an 11mb drop with me. But, that (such as it was) is back up. Just ran it again, kept SU, but usage actually increased... Figures, I'd have the retarded phone of the bunch. Kinda supports the whole 'phone reflects it's user' line of thought.
yeah i was confused when it unrooted me. i just pushed the files back in and activated root again. It has been a day already and i still have root. i had about a 30mb difference with me. it may not be much for others but for me every mb counts.
In script OP. not this threads OP. Is the fix for unroot problem.
Sent from my SCH-I400 using xda premium
ciscogee said:
In script OP. not this threads OP. Is the fix for unroot problem.
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Lol you beat me to it, i was about to post that
Sent from my ADR6425LVW using Tapatalk
I think my post might have been a little under developed. My apologies.
I'm running SmurfedOut V6.6.
I was checking out other scripts available and came across V6 Supercharger. While reading up on the thread I saw that the OP mentioned that stock roms don't run a script at boot.
What I'm wondering was if there is a way to check that the script is running or a way that I can make the script run automatically at boot.
Again I apologize for the messy post earlier and hope that this issue can be resolved.
Well the issue was resolved through PM. For anyone who has a stock rom and is using Script Manager make sure of 2 things after you click on the script:
1) Make sure to click the skull and crossbones to run as root and
2) Make sure you click the cog two tabs down to make it run on boot.
This information should be put into any OP under the [SCRIPT/TWEAKS] header.
Thanks again to PapaSmurf151.
Sent from my PC36100 using xda app-developers app
How do you know when it's running and do you have to run it
Every time you reboot?
You need too locate the init.d file and set it to run at boot. If it's working you will know because when you run the script it will say you are supercharged 100%
Sent from my SGH-T989 using xda premium
rymanh said:
You need too locate the init.d file and set it to run at boot. If it's working you will know because when you run the script it will say you are supercharged 100%
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I thought I'm remember reading that you were not Supposed to set it at boot. If you read the original thread it will tell you how to tell if it is working. And that is after you install it use 17 to reboot and open it with script manager again and when it come up the options list it will say your super charged below the list
Sent from my SGH-T989 using xda premium
In the script it advises not to run the script at boot but you are supposed to go to etc/init.d and set the S99SuperCharger and Bulletproof aps to run at boot.. Other wise you will need to run the script every time you start your phone
Sent from my SGH-T989 using xda premium
rymanh said:
In the script it advises not to run the script at boot but you are supposed to go to etc/init.d and set the S99SuperCharger and Bulletproof aps to run at boot.. Other wise you will need to run the script every time you start your phone
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
I have been in the intd folder before but I never seen
Anything about making run at boot. And by the way I am running
Cm10 official and it says I am 75% supercharged. I think that's
Because my ROM deletes something every time I boot.
edshawn911 said:
I have been in the intd folder before but I never seen
Anything about making run at boot. And by the way I am running
Cm10 official and it says I am 75% supercharged. I think that's
Because my ROM deletes something every time I boot.
Click to expand...
Click to collapse
Until I figured out I would have the same problem as you.. Only 75% whenever I reboot my phone.. After you set the file to run at boot it will be 100% every time I promise... Btw bulletproof apps is optional and doesn't count in your supercharger percentage.. But if you want it to work properly ou need to set it to run at boot as well
Sent from my SGH-T989 using xda premium
rymanh said:
Until I figured out I would have the same problem as you.. Only 75% whenever I reboot my phone.. After you set the file to run at boot it will be 100% every time I promise... Btw bulletproof apps is optional and doesn't count in your supercharger percentage.. But if you want it to work properly ou need to set it to run at boot as well
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
thanks a lot for your help. could you maybe give me your exact steps
so that i can use that as a guide. thanks in advance..
I use the smanager app... After you set up V6 the way you want it navigate to the file location specified near the top of the screenshot... etc/init.d/S99SuperCharger and make sure SU, and boot are set.
That's all you have to do
Sent from my SGH-T989 using xda premium
Is it possible to get init.d working on a SGH-T889 that is rooted, and running the latest stock rom and kernel?
I managed to make the folder, and chmod it to 777 via a terminal, and my tweaking apps create scripts in said folder that are pre-modded to 777, but they fail to launch at boot.
I would like to stay as close to stock as possible, but I love being rooted.
What can I do to find a happy medium?
Sent from my SGH-T889 using xda premium
EncryptedFile said:
Is it possible to get init.d working on a SGH-T889 that is rooted, and running the latest stock rom and kernel?
I managed to make the folder, and chmod it to 777 via a terminal, and my tweaking apps create scripts in said folder that are pre-modded to 777, but they fail to launch at boot.
I would like to stay as close to stock as possible, but I love being rooted.
What can I do to find a happy medium?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
You have to enable this in the ramdisk
Sent from my SGH-T889 using xda app-developers app
I believe apps like script manager can do this, but you can also get init.d support using busybox and an edited script in /system/etc/. Otherwise - what ptmr3 said
Busybox run-parts with installrecovery.sh, it works on many, many devices with stock kernels. Just make sure you don't inadvertently delete the script from recovery.
Darkshado said:
Busybox run-parts with installrecovery.sh, it works on many, many devices with stock kernels. Just make sure you don't inadvertently delete the script from recovery.
Click to expand...
Click to collapse
That would be the one
headscratch.gif
I'm extremely computer literate, but only fairly adept at matters pertaining to android/rooted actions.
I have above basic Linux knowledge as well, so if you point me in the right direction, I should be able to take it from there.
//I meant to add I have busy box installed.
Sent from my SGH-T889 using xda premium