Scheduling a script to run at boot? - EVO 4G Q&A, Help & Troubleshooting

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

Related

How do u make script run at system start?

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?

[SCRIPT]Adrenaline Shot 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

{Script} CPU1 disabler while in sleep!!! The Battery Saver Mod!

Script Version!
Code:
This time I present to you a script that will in theory (and so far for me, in reality) save us some battery without having to risk our hardware with undervolting! I present to you...
[B]CPU Sleeper[/B]
[QUOTE]Honestly the Script can be made to work with any Dual Core / Quad Core! The Only Problem is you need to be Rooted!
~ Currently the issue with CM9, is that the boot becomes incomplete while in init.d folder without Modification to the sysinit..
~ however, with any rooted device you can download the script & continue to use it via a script manager app on every boot.
~ With the Script Manager App, this script virtually can run on any Multi-Processor CPU
Hope that clears things Up,
~~Eugene[/QUOTE]
[U]What is it?[/U]
Its a fairly simple script that will put CPU 1 OFFLINE when the screen turns off. Once the screen comes back on, it will allow CPU 1 back ONLINE.
[U]How does it work?[/U]
Since we have dual core CPUs, we have a CPU 0 and a CPU 1, core 1 and core 2, while the screen is off we really only need to have 1 core active, this script will make sure CPU 1 shuts off while the screen is off, then resumes normal usage when the screen comes back on.
[B][COLOR="red"]WARNING! READ THIS![/COLOR][/B]
This script relies on init.d OR script manager! CM9, for some reason, tends to run this at the exact same time it runs some other script (I forget atm which) and it will clash, causing no boot! CM9 users MUST use the script manager version install! Flex Reaper appears to work fine with it as init.d. I strongly urge you to use the script manager version of this, NOT the flashable version. Always make a nandroid backup before modifying the system, including this!
[U][COLOR="Red"]Instructions[/COLOR][/U]
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.
[I]Version 1: Flashable[/I]
Same as any of my flashable releases, I did most of the work for you!
Make a full backup
Download to external SD card
Install from SD card
Pick the cpu sleeper zip file
it'll be almost instant
reboot
Shouldn't be any need to clear caches or anything like that.
[I]Version 2: Script only[/I]
This can be run in 2 ways, via init.d support, or via script manager. Both are pretty similar, and can be done a number of ways, however this is the basis of how.
[U]Init.d supported kernel:[/U]
Make a backup!
Download the script file, making sure no extensions get added onto the file. Copy the file to /system/etc/init.d and set the permissions to the following:
XOX
XOX
XOX
Once done, reboot the system, and it will take effect when your system is finished rebooting.
[U]Script Manager[/U]
This method is probably the better method, and should work with any kernel/ROM. Download the script file, making sure no file extensions get added, and copy it to /system/etc. Set the file permissions to:
XOX
XOX
XOX
Once done, load up script manager, select browse as root (if it isn't already set from the crossix mod method in the guide) then browse to /system/etc and select the script file S98cpu_sleep, then select ROOT and BOOT options. After this is set, reboot system.
[U]What do I do if I can't boot after using this?[/U]
You made that backup, right? Ok, then here is what you do.
Hold the power button until the tablet powers off
Press and hold the volume down button, next to the screen lock switch
Press and hold Power (while holding volume down)
Once the recover kernel message comes up, release the buttons
In CWM go to advanced, mounts, mount system, then format system
In TWRP, go to wipe, then wipe system
In CWM go to restore, advanced restore, restore ONLY system
In TWRP select restore, then uncheck all so ONLY system is checked
After restoring system, wipe cache and dalvik cache, then reboot system.
System should boot normally.
[B]Downloads[/B]
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.
Dual Core:
Download: [COLOR="Red"]Script Only - Recommend Install via Script Manager App[/COLOR]
[URL="http://d-h.st/N1N"]CPU Sleeper script only[/URL]
Quad Core:
Download: [COLOR="Red"]Script Only - Recommend Install via Script Manager App[/COLOR]
[url=http://www66.zippyshare.com/v/9249467/file.html]cpusleep[/url]
Thanks to [COLOR="DarkGreen"]pio_masaki[/COLOR] for rewriting the OP
App Version:
Code:
[B]CPU Sleeper[/B]
~Free to all Memebers
~ Must Be Rooted to use App
[B][COLOR="Blue"]What is it?[/COLOR][/B]
Its a fairly simple App that will put CPU 1/2/3 OFFLINE when the screen turns off. Once the screen comes back on, it will allow CPU 1/2/3 back ONLINE.
[B][COLOR="Blue"]How does it work?[/COLOR][/B]
Since we have Dual & Quad core CPUs, we have a CPU 0 and a CPU 1/2/3, core 0/1/2/3, while the screen is off we really only need to have 1 core active "CPU0", this App will make sure CPU 1/2/3 shuts off while the screen is off, then resumes normal usage when the screen comes back on.
[B][COLOR="Blue"]Compatibility?[/COLOR][/B]
Works with any Dual Core & Quad Core Devices!
~ICS
~Gingerbread
[B][COLOR="Blue"]Battery Saving?[/COLOR][/B]
Battery savings all depends on Usage & idle times.
[U][COLOR="Red"]Instructions[/COLOR][/U]
download the App, install & either manually run it, or set to run every boot-up
[B]Downloads[/B]
[url=http://www20.zippyshare.com/v/85067559/file.html]CPU Sleep.apk[/url]
Credits:
Handlerexploit for the creation of the App.
As a begging dev myself, I appreciate your work. Keep on keeping on.
Not sure why previous thread was closed, as no reason was given, but the flashable works FINE on my phone. I had no issues whatsoever. If everyone were to follow the instructions listed they would see that they are advised to make a backup IN CASE something does go wrong and it won't boot. Major props for this man. Just curious, but I noticed that after flashing this it seems that when the screen is off the phone downclocks to 384k KHz. I do have a profile on SETCPU for when screen is off to downclock to 594k KHz. I'm assuming that this script is what is downclocking this below the minimum i had set in SETCPU?
klarthur said:
Not sure why previous thread was closed, as no reason was given, but the flashable works FINE on my phone. I had no issues whatsoever. If everyone were to follow the instructions listed they would see that they are advised to make a backup IN CASE something does go wrong and it won't boot. Major props for this man. Just curious, but I noticed that after flashing this it seems that when the screen is off the phone downclocks to 384k KHz. I do have a profile on SETCPU for when screen is off to downclock to 594k KHz. I'm assuming that this script is what is downclocking this below the minimum i had set in SETCPU?
Click to expand...
Click to collapse
I want the flash able zip any way you can send me the link. I'm glad to see some traction with the sprint s3
thanks in advance
Sent from my SPH-L710 using xda app-developers app
edisepic said:
I want the flash able zip any way you can send me the link. I'm glad to see some traction with the sprint s3
thanks in advance
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I would need permission from the OP to send it I believe, since he took it down from the OP :/ If the OP doesn't mind i'd be happy to
klarthur said:
I would need permission from the OP to send it I believe, since he took it down from the OP :/ If the OP doesn't mind i'd be happy to
Click to expand...
Click to collapse
Just make sure it works due to people just flashing before checking it works...
This is what got the OP Removed due to people failing to Read & understanding Logic..
eugene373 said:
Just make sure it works due to people just flashing before checking it works...
This is what got the OP Removed due to people failing to Read & understanding Logic..
Click to expand...
Click to collapse
It worked fine for me but I made a backup before flashing it to be safe, as stated in the OP. Thank you!
---------- Post added at 03:27 AM ---------- Previous post was at 03:23 AM ----------
edisepic said:
I want the flash able zip any way you can send me the link. I'm glad to see some traction with the sprint s3
thanks in advance
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
PM sent!
I would also like the cwm zip!
Sent from my SPH-L710 using xda premium
lballer69 said:
I would also like the cwm zip!
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
PM sent!
wiped cache and dalvik and flashed and had no boot issues.
Sent from my SPH-L710 using xda app-developers app
lballer69 said:
I would also like the cwm zip!
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
+1 please!
Sent from my SPH-L710 using xda app-developers app
thearch1tect said:
+1 please!
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Look in the Market tomorrow for CPU Sleep
Why is this snake oil thread still here?
nabbed said:
Why is this snake oil thread still here?
Click to expand...
Click to collapse
It's a legitimate mod, if you hate it so much why not just leave it and go about your business? No need to fight over a matter of opinion... Seriously.
Sent from my SPH-L710 using xda premium
Trying this on a SGS2 dual core with AOKP . Pushed to init.d and it booted fine. Will let ya know what differences I see. Thanks for the work on this. The principle behind it makes sense. Hopefully it works as it should. Thanks again.
nabbed said:
Why is this snake oil thread still here?
Click to expand...
Click to collapse
Because it does work. It's not a Placebo effect & it does save battery...
There has been countless Number of People that has Confirmed this on the Atrix2 / SGS2 / Sensation / SGS3 and One X is currently being test as well..
~Eugene
eugene373 said:
Because it does work. It's not a Placebo effect & it does save battery...
There has been countless Number of People that has Confirmed this on the Atrix2 / SGS2 / Sensation / SGS3 and One X is currently being test as well..
~Eugene
Click to expand...
Click to collapse
Could you please PM me the cwm flashable version. I am constantly testing and flashing my phone and it would really make my life easier then pushing with Root Explorer each time. I would like to test this on a few different setups so I can tell my peeps if it works or not. Great job by the way.
scarmon25 said:
Could you please PM me the cwm flashable version. I am constantly testing and flashing my phone and it would really make my life easier then pushing with Root Explorer each time. I would like to test this on a few different setups so I can tell my peeps if it works or not. Great job by the way.
Click to expand...
Click to collapse
Just download the app
It's posted on the OP.
eugene373 said:
Just download the app
It's posted on the OP.
Click to expand...
Click to collapse
Are you referring to script manager? I went through the OP a couple of times and that's the only mention of an app I see. I could use that method but I still have to paste it into system/etc. Not trying to be difficult just want to make sure I'm jot going blind.
Edit. NM. I see it now
Thanks for reposting the apk and not punishing all of us:good:

v6 supercharger question

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

Help making an installable zip file?

I want to make a zip file comprised of all the apps I normally use. In the form of APKS. Can someone maybe point me in the right direction as to how to accomplish this?
I tried using an already made zip and replacing the apk in the zip file with all of mine. They installed but a few were completely screwed up.
Skype kept force closing over and over again. I was getting spammed by the force close dialog box and couldn't do anything at all lol.
I'm just lazy and would like to flash them all at once after flashing the rom I'm using.
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
H3adru5H said:
I want to make a zip file comprised of all the apps I normally use. In the form of APKS. Can someone maybe point me in the right direction as to how to accomplish this?
I tried using an already made zip and replacing the apk in the zip file with all of mine. They installed but a few were completely screwed up.
Skype kept force closing over and over again. I was getting spammed by the force close dialog box and couldn't do anything at all lol.
I'm just lazy and would like to flash them all at once after flashing the rom I'm using.
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
Not sure how you are zipping and extracting but I do something similar with no problems thus far. I add my favorite gizmo apps (so I don't have to download them again) by modifying the rom prior to flashing with the android kitchen. There's a few extra steps I take to add/take away the desired apps but it's all relatively easy. Read the thread below (see link) and thank dsixda profusely! :good:
Android Kitchen
http://forum.xda-developers.com/showthread.php?t=633246
Aimless Rambler said:
Not sure how you are zipping and extracting but I do something similar with no problems thus far. I add my favorite gizmo apps (so I don't have to download them again) by modifying the rom prior to flashing with the android kitchen. There's a few extra steps I take to add/take away the desired apps but it's all relatively easy. Read the thread below (see link) and thank dsixda profusely! :good:
Android Kitchen
http://forum.xda-developers.com/showthread.php?t=633246
Click to expand...
Click to collapse
Gonna try this lol
Sent from my Nexus 7 using XDA Premium HD app
H3adru5H said:
Gonna try this lol
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
It's a pretty useful tool for doing other things too once you get the hang of it. If you got any questions just holler.

Categories

Resources