Related
This will enable the loading of scripts in /system/etc/init.d without editing the boot.img.
This will work for ALL dual core S3 variants.
There are two versions, one with my ondemand profile and one without. The one that has CPUProfile has it, this is a script that runs at boot setting the ondemand options to favor battery without sacrificing performance. Most user saw a GREAT increase in battery life especially when idle. See the link in my sig to use the full cpu editor. (works on the S3 with this mod)
To add init.d manually to your own rom just open /system/etc/init.qcom.post_boot.sh and add this line to the end of the file:
Code:
/system/etc/init.d/*
This mod also installs busybox which enables alot of tools native to busybox see here for busybox usage.
To install flash in recovery.
Download:
Add init.d ONLY:
EZ_Init.d ONLY
Add init.d and CPUProfile Script:
EZ_Init.d AND CPUProfile
So does this tweak the onDemand governor? Is it safe to use with setCPU? Is it safe with the Sammy kernel?
Nevermind...found the Sammy kernel thread under "original development"
good work man nice another great addition to the gs3
Works as advertised, thanks for this!
Sent from my SPH-L710 using Tapatalk 2
thanx but
Not sure why do you need to mount /system as writable in init.d script. Does that mean regular init.d scripts won't work?
bravomail said:
Not sure why do you need to mount /system as writable in init.d script. Does that mean regular init.d scripts won't work?
Click to expand...
Click to collapse
I do in all my scripts guess Its habit lol. But Its not necessary for most scripts
Sent from my SAMSUNG-SGH-I747 using xda premium
smokin1337 said:
I do in all my scripts guess Its habit lol. But Its not necessary for most scripts
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Then pls fix it if it is not too much trouble. I know publishing is kinda pain.
Mounting system as writable is a no-no.
bravomail said:
Then pls fix it if it is not too much trouble. I know publishing is kinda pain.
Mounting system as writable is a no-no.
Click to expand...
Click to collapse
I'm not trying to be a wise ass here but why is mounting system as writable a bad thing? Every device I've had never gave me a problem when I did it actually makes a few things easier when your in a pinch.
Is it because of Odin?
Sent from my HTC VLE_U using xda premium
Can we see some proof or evidence from users that this does indeed give significantly better battery usage when idling without impacting performance?
smokin1337 said:
This will enable the loading of scripts in /system/etc/init.d without editing the boot.img.
This will work for ALL dual core S3 variants.
There are two versions, one with my ondemand profile and one without. The one that has CPUProfile has it, this is a script that runs at boot setting the ondemand options to favor battery without sacrificing performance. Most user saw a GREAT increase in battery life especially when idle. See the link in my sig to use the full cpu editor. (works on the S3 with this mod)
To add init.d manually to your own rom just open /system/etc/init.qcom.post_boot.sh and add this line to the end of the file:
Code:
/system/etc/init.d/*
This mod also installs busybox which enables alot of tools native to busybox see here for busybox usage.
To install flash in recovery.
Download:
Add init.d ONLY:
EZ_Init.d ONLY
Add init.d and CPUProfile Script:
EZ_Init.d AND CPUProfile
Click to expand...
Click to collapse
Do you flash this in stock recovery or cwm?
Worked at flash... Does this conflict with the CPU disabler script?
Sent from my SPH-L710 using xda premium
---------- Post added at 12:15 PM ---------- Previous post was at 12:08 PM ----------
bgs_piece said:
Do you flash this in stock recovery or cwm?
Click to expand...
Click to collapse
CWM for me...I also added the ramscript to the folder http://forum.xda-developers.com/showthread.php?t=1111145...along with the CPU disabler script too...
---------- Post added at 12:27 PM ---------- Previous post was at 12:15 PM ----------
smokin1337 said:
This will enable the loading of scripts in /system/etc/init.d without editing the boot.img.
This will work for ALL dual core S3 variants.
There are two versions, one with my ondemand profile and one without. The one that has CPUProfile has it, this is a script that runs at boot setting the ondemand options to favor battery without sacrificing performance. Most user saw a GREAT increase in battery life especially when idle. See the link in my sig to use the full cpu editor. (works on the S3 with this mod)
To add init.d manually to your own rom just open /system/etc/init.qcom.post_boot.sh and add this line to the end of the file:
Code:
/system/etc/init.d/*
This mod also installs busybox which enables alot of tools native to busybox see here for busybox usage.
To install flash in recovery.
Download:
Add init.d ONLY:
EZ_Init.d ONLY
Add init.d and CPUProfile Script:
EZ_Init.d AND CPUProfile
Click to expand...
Click to collapse
smokin OP and Dev of this mod.
I copied the CPU Sleeper script (Eugene373) http://forum.xda-developers.com/showthread.php?t=1745517 and the Ram Manager script (Juwe11) http://forum.xda-developers.com/showthread.php?t=1745517 into the flashable you made...can I share it if I give you props?:fingers-crossed:
I flashed this in CWM and found the init.d folder with scripts installed.
When I opened the 99test script, I noted that a test file with "done" should have been created in data/local/tmp. I could not find this file anywhere.
Am I looking in the wrong place or am I correct in assuming that init.d functionality is not working?
Pj
Phoenix, AZ
This may be a noob question, but I didn't see it in the OP. How do I uninstall this??
the links are dead is there another place i can download this file
Bump
Sent from my SGH-I747 using Tapatalk 2
mvaughn12 said:
the links are dead is there another place i can download this file
Click to expand...
Click to collapse
+1
Sent from my SGH-T999 using xda app-developers app
jjlean said:
+1
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Here is a working link
http://sourceforge.net/projects/xquizit/files/T999/Apps/init.d Support.zip/download
Sent from my SGH-T999 using Tapatalk 2
Wildchld said:
Here is a working link
http://sourceforge.net/projects/xquizit/files/T999/Apps/init.d Support.zip/download
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Install fails?????
bradld said:
Install fails?????
Click to expand...
Click to collapse
No he fixed it. Installs fine. You can Odex after running it.
Sent from my SGH-T999 using xda app-developers app
is this still working on stock JB?
cuz I can't get my scripts to work.
I modded Smoking1337 CWM-flash file to run from Windows.
All credit goes to Smoking1337 for this - I only modding the install of it
See here for original website:http://forum.xda-developers.com/showthread.php?t=1584508
He also has a snapdragon version of this for those interested:
http://forum.xda-developers.com/showthread.php?t=1798765
Additional Requirement:
You need to have Init.d!!
See my init.d section in Android Development
One more comment: This is not build for overclocking - mainly built for underclocking to save battery life
Features:
Change CPU Governor
Change CPU Min/Max Frequencies
Apply Settings on Boot - Sticky Mode
Set Dual Core CPU's Independently - Governor and Frequencies
Force Dual Core - Second Core Online ALL The Time
Seperate Menus For Single and Dual Core Devices - Auto Selects
View Current Settings For Everything
Sticky Mode
OnDemand Profiling
Now uses config file to store values
Usage:
Open terminal
Type "su" without the quotes
Type "cpu" without the quotes
Make your selections
Notes:
An error appears sometimes when enabling or disabling force dual core, it's ok the settings still get applied.
Settings get applied immediately
Cores can be set independently, you can make the governors and frequencies different on each core. Could be a great battery saver by limiting the second cores resources.
Force Dual Core will make the second core stay online all the time
Some kernels do not have a available_scaling_freq so the available frequencies will not be displayed, look up the settings your kernel has either in your rom thread or kernel thread.
Sticky Mode will apply the settings you have made on reboot (requires init.d support- which most roms and most devices have)
OnDemand Profiling allows you to set profiles for ondemand governor, the settings possible are performance, performance and battery, and battery saver. Setting will only apply to ondemand govenor !! I will add more when i get some kernels for my one x.
This mod will depend on the successful working of INIT.D. init.d did not work for me.
Edit:
After Init.d working successfully, this also worked.
I tried flashing this one via cwm but got error installation aborted..any solution?
Mangtas_666 said:
I tried flashing this one via cwm but got error installation aborted..any solution?
Click to expand...
Click to collapse
Use the windows addition.
confused
popfan said:
Use the windows addition.
Click to expand...
Click to collapse
Whats windows addition? i dont get it..
Mangtas_666 said:
Whats windows addition? i dont get it..
Click to expand...
Click to collapse
This runs from windows not CWM. If you want to run it from CWM then get it from the original website (link in OP).
Thank you for the quick reply can you give me the guide using windows? Tnx in advance
Sent from my LT28h using xda premium
Mangtas_666 said:
Thank you for the quick reply can you give me the guide using windows? Tnx in advance
Sent from my LT28h using xda premium
Click to expand...
Click to collapse
Extract the stuff from the zip. Connect Phone and make sure you can adb to it and run the bat file that was in the zip.
Mangtas_666 said:
Thank you for the quick reply can you give me the guide using windows? Tnx in advance
Sent from my LT28h using xda premium
Click to expand...
Click to collapse
Follow steps 2 thru 6 in this guide
http://forum.xda-developers.com/showthread.php?p=29713958
This will setup your pc with drivers and ADB to allow you to run .bat files from a Windows command prompt.
You have to unzip your file to get the .bat file.
After setup and unzip just double click .bat file where it was unpacked.
~Jaramie
from my LT28at rooted & eating an Ice Cream Sandwich
Is it normal that at the process it stated chmod failed?
Sent from my LT28h using xda premium
Mangtas_666 said:
Is it normal that at the process it stated chmod failed?
Sent from my LT28h using xda premium
Click to expand...
Click to collapse
Do you have root?
~Jaramie
from my LT28at rooted & eating an Ice Cream Sandwich
Yes am rooted
Sent from my LT28h using xda premium
Will my 'cpu master' app still work? Should I uninstall it first?
EDIT: uninstalled cpu master first. All went well
~Jaramie
from my LT28at rooted & eating an Ice Cream Sandwich
They do the same thing more or less. One will have to be disabled for the other to work.
popfan said:
They do the same thing more or less. One will have to be disabled for the other to work.
Click to expand...
Click to collapse
But daemons are more resposive. The state change times compared to an app, is much less.
Sent from my LT28h using xda premium
I must have ADB on my brain cuz when I read use terminal and run su then cpu I used windows(it was late @ night)
Luckily I use the android terminal for ubuntu on my Ion so when Windows terminal failed I figured It out. Might want to update the OP with 'use android terminal app'
Well I was able to set 2 different govs, core 0= performance core1= PowerSave
But when setting min/max freqs they seemed to be tied together. I can set both min & max but not different for the cores. I hope I am missing something. While the governors should help with better battery I want to limit core1 to 1ghz
~Jaramie
from my LT28at rooted & eating an Ice Cream Sandwich
I wish I could tell you for sure, but since I don't have a rooted device at this time I cannot use it. You can read the original forums posting and find out.
I'm gonna try this with both cores 1.5 ghz in performance mode. I wonder if it will make a difference at all in battery life. The cores should still only run when their needed. Just at full blast for a shorter period of time. :laugh:
ToledoJab said:
I must have ADB on my brain cuz when I read use terminal and run su then cpu I used windows(it was late @ night)
Luckily I use the android terminal for ubuntu on my Ion so when Windows terminal failed I figured It out. Might want to update the OP with 'use android terminal app'
Well I was able to set 2 different govs, core 0= performance core1= PowerSave
But when setting min/max freqs they seemed to be tied together. I can set both min & max but not different for the cores. I hope I am missing something. While the governors should help with better battery I want to limit core1 to 1ghz
~Jaramie
from my LT28at rooted & eating an Ice Cream Sandwich
Click to expand...
Click to collapse
No you can set them separately for both the cores.
###########################
#-CPU Editor - smokin1337-#
###########################
1. Governor - CPU0
2. Governor - CPU1
3. Max Frequency - CPU0
4. Max Frequency - CPU1
5. Min Frequency - CPU0
6. Min Frequency - CPU1
7. Force Dual Core
8. OnDemand Profile
9. Change I/O Scheduler
10. Change Cache Size
11. Clear All Settings (Disable)
Press X to EXIT
Click to expand...
Click to collapse
popfan said:
I wish I could tell you for sure, but since I don't have a rooted device at this time I cannot use it. You can read the original forums posting and find out.
Click to expand...
Click to collapse
I was wondering if you might still have the original cwm zip file? I think it might be easier to install after new flash. The original thread download links are dead.
Thanks
~Jaramie
sent by my ION
Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
I don't think that there's an option to do that. But ticking the option every boot isn't all that hard.
Sent from my Desire HD using xda app-developers app
Agreed...but if there is a better way then I'd be very keen to learn of it.
tedrogers61 said:
Agreed...but if there is a better way then I'd be very keen to learn of it.
Click to expand...
Click to collapse
+1 same question on Jellytime R15 !
jean019 said:
+1 same question on Jellytime R15 !
Click to expand...
Click to collapse
On the JT R15 developer thread, someone has noted that it is a known issue.
I'm not sure whether they mean it is a known issue that the HW Overlay box is unchecked after reboot, or whether the graphical issues with checking Disable HW Overlays solves is an issue.
However, people are talking about it, and that pleases me.
tedrogers61 said:
Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
Click to expand...
Click to collapse
+1 :'(
Also looking for a permanent solution for my Inspire 4G, is frustrating to run the camera or play a video and have the phone restart cause I forgot to switch the setting last boot.
This will work!
http://forum.xda-developers.com/showthread.php?t=1904827
Sorry wrong place
sorry wrong place
please remove
Anyone try this ?
Permanent Disable Hw overlays Enjoy Script
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Code:
#!/system/bin/sh
(while :
do
sf=$(service list | grep -c "SurfaceFlinger")
if [ $sf -eq 1 ]
then
service call SurfaceFlinger 1008 i32 1
break
else
sleep 2
fi
done
) &
:fingers-crossed: enjoy
sgatechwork said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Code:
#!/system/bin/sh
(while :
do
sf=$(service list | grep -c "SurfaceFlinger")
if [ $sf -eq 1 ]
then
service call SurfaceFlinger 1008 i32 1
break
else
sleep 2
fi
done
) &
:fingers-crossed: enjoy
Click to expand...
Click to collapse
Always make sure you give credit to the original dev. I wrote this script
titanic_fanatic said:
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
:laugh: opps!! Credit Goes To @titanic_fanatic :silly:
script didn't work on my TX 4.3. please help
shaktishekhar said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
:fingers-crossed: enjoy
Click to expand...
Click to collapse
Thanks man! i was just looking for the shell cmd but this works ! *on android 7.1.2 initd. d needed to be emulated....i dont beleive its the default "load on boot" protocol any longer but emulation via kernel auditor seems to do the trick. Doesnt matter as long as i dont have to manually set check the option. Appreciate the work.
titanic_fanatic said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
Dear @titanic_fanatic, can I kindly ask you if you can adapt your script to make the Skia GPU renderer on Android Oreo applied on boot without it resetting every time? Thank you for the original idea anyway, it was brilliant, I use always your script
Why should I do that? Can you please explain it? ?
remained said:
Why should I do that? Can you please explain it? ?
Click to expand...
Click to collapse
Please how can I enable 4x MSAA using a shell script on android?
titanic_fanatic said:
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
Still works on Galaxy S5 Lineage OS 16 SmartPack kernel (oc to 2.6gHz btw) and manager. Thanks! Bookmarked this notably good post .. :good:
Works fine on a Poco M3 running A11. I've attached a basic Magisk module with titanic_fanatic's script, since that'd probably be easier to use for most people.
What does it do :
This scripts attemps to make your phone battery dures more time or your phone more responsive and smoother by modifiing some governor's parameters.
It will set CPU min freq at 268MHz and max at 1200MHz, the governor in the script name, BFQ scheduler and apply tweaked tunables for battery or performance.
Prerequies :
A custom kernel supporting the governor you want : HellBoy, Kiss or SuperSick
How to use :
First install SManager
Download the scripts and extract the zip somewhere in you sd card
Launch SManager, explore to the scripts, select the one you want, check "Is script", "Su", "Boot" (if you want)
In Arguments, write b or p within you want battery or performance optimisations
Click save
Click Run
Download :
MediaFire Link
Credits :
[REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Configs
[SCRIPT] CM10 Tweak Pack alpha v0.21, added smartassV2 presets (Updated 011113)
[Kernel] [PrimoU] 2013/05/21 Titanium-KISS
Thanks to Lloir, maxwen, simonsimons34, 1ceb0x, ckpv5, shubhamchamaria and all contributors for making One V an amazing phone!
You are a gentleman and a scholar. Been looking for something like this for ages. No matter what I did, it just wouldn't work lol. This is perfect!
good job! :good:
Hey dude what you mean with b and p arguments?
Sent from my HTC One V using xda app-developers app
arhimidis64 said:
Hey dude what you mean with b and p arguments?
Sent from my HTC One V using xda app-developers app
Click to expand...
Click to collapse
battery or performance...
how do i install the scripts plz let us know in detail.
i am getting some error
Neroga said:
You are a gentleman and a scholar. Been looking for something like this for ages. No matter what I did, it just wouldn't work lol. This is perfect!
Click to expand...
Click to collapse
Long time not seeing this thread x)
Thank you guys for downloading. Have you any feedbacks, idea to improve anything, it'll be welcome ?
I think i'll include a script for little undervolting in next release (if i do one)
Nishblueweapon said:
how do i install the scripts plz let us know in detail.
i am getting some error
Click to expand...
Click to collapse
First install SManager
Download the scripts and extract the zip somewhere in you sd card
Launch SManager, explore to the scripts, select the one you want, check script, root, set at boot (if you want)
In arguments, write b or p within you want battery or performance optimisations
Click save
Click Run
Yannis100 said:
Long time not seeing this thread x)
Thank you guys for downloading. Have you any feedbacks, idea to improve anything, it'll be welcome ?
I think i'll include a script for little undervolting in next release (if i do one)
First install SManager
Download the scripts and extract the zip somewhere in you sd card
Launch SManager, explore to the scripts, select the one you want, check script, root, set at boot (if you want)
In arguments, write b or p within you want battery or performance optimisations
Click save
Click Run
Click to expand...
Click to collapse
works with smartmax?
Nishblueweapon said:
works with smartmax?
Click to expand...
Click to collapse
nopey
Nishblueweapon said:
works with smartmax?
Click to expand...
Click to collapse
Hi, actually not, i didn't study how smartmax works, maybe in next update
What will happen if you run it once with argument b then argument p?
Sent from my One V using xda app-developers app
vamsi101 said:
What will happen if you run it once with argument b then argument p?
Sent from my One V using xda app-developers app
Click to expand...
Click to collapse
well b for battery and p for performance
u can only use once at a time
so if u run p after b ur just gonna get the performance tweaks
Seraz007 said:
well b for battery and p for performance
u can only use once at a time
so if u run p after b ur just gonna get the performance tweaks
Click to expand...
Click to collapse
Exactly, only one could be active at the same time, one governor with one of his optimisation
hi,
thanks for the scripts, :thumbup::thumbup:
just ask, what is the different of mmcblk0 and mmcblk1? i look into your script its only change scheduler on mmcblk0, is no need to change scheduler for mmcblk1 too?
sorry for my bad english
Sent from my HTC One V
Hey Guys!
Im making a script and its called Lagg Nullififer (Click Me)
Its pretty cool and it speeds up android, but i want to make a temporary mode and a permanent mode (init.d) so i want the .sh script to make files on SDCard/Lagg_Nullifier (or any other folder) and i want the files to have the text in them!
EG:
.sh script makes file in sdcard then copys to system/etc/init.d
Please, Please, Please help as i cant find how to do this ANYWHERE!, Thankz in Advance!
Please write what you really want - just make and copy files is easy, but i think, that it isnt all u want...
Nuck-TH said:
Please write what you really want - just make and copy files is easy, but i think, that it isnt all u want...
Click to expand...
Click to collapse
Its what i really want to do,
I want the .sh script to make a file on the sdcard with information on it, then i want the .sh script to copy it to system/etc/init.d
Why not just make script create file directly in init.d?
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
what about making a flashable zip that contains the script? it will extract directly to init.d
Sent from my Xperia Arc S using xda premium
---------- Post added at 08:43 PM ---------- Previous post was at 08:36 PM ----------
Pizza_Dox said:
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
do you have any experience with unix scripting at all? I can help you
Sent from my Xperia Arc S using xda premium
Pizza_Dox said:
Hey Guys!
Im making a script and its called Lagg Nullififer (Click Me)
Its pretty cool and it speeds up android, but i want to make a temporary mode and a permanent mode (init.d) so i want the .sh script to make files on SDCard/Lagg_Nullifier (or any other folder) and i want the files to have the text in them!
EG:
.sh script makes file in sdcard then copys to system/etc/init.d
Please, Please, Please help as i cant find how to do this ANYWHERE!, Thankz in Advance!
Click to expand...
Click to collapse
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
wedgess said:
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
Click to expand...
Click to collapse
exactly
Sent from my Xperia Arc S using xda premium
I dont want to make a flashable zip, i want it to be like superchrager to make the files in init.d, , Heres what im trying to do for my mod, Thing is its really good, Honestly, Go try it out, If u dont like it just reboot
Here:
http://forum.xda-developers.com/showthread.php?t=2319774
Im trying to get 2 options to come up and say install in init.d or testdrive, testdrive will inject tweaks for current sesion and when u reboot they go away, and init.d will keep those tweaks and things,
Also if u want u can Be my partner in Lagg Nullifier,
wedgess said:
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
Click to expand...
Click to collapse
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Pizza_Dox said:
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Click to expand...
Click to collapse
I checked your script a while ago, and it needs a lot of improvements, you should add user privilege check to the script, and add a line to mount system with read/write permission. And also you should make the script a bit more aggressive and give the user some choices to pick. Unfortunately I don't have much time to do it myself, but I'll try to.
Anyway to make the script create another script in init.d with text in it it's really simple, here's an example:
echo #put your first command here# > system/etc/init.d/99LagNullifier
echo #put your second command here# >> system/etc/init.d/99LagNullifier
">" overwrites any old text in the file
">>" adds to the existing file
Sent from my Xperia Arc S using xda premium
Pizza_Dox said:
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Click to expand...
Click to collapse
Oh OK and not being smart but do u know wat each line of your script does. Because I have seen many users creating scripts and although the desired effect works there are parts which are not needed or the creator does not have a clue what they do. They just cram in awhole load of things which look or sound good. IM NOT SAYING THIS IS YOU.
I'm not at a PC rite now so can't look at your script. But seen as u don't want to make it a flashable zip, I would suggest something that maybe u could run via script manager or terminal like lupus menu. With a couple if options like set on every boot. Or run until reboot and say a check to make sure other init.D's do not conflict with yours. Just some suggestions.
Lol @Themike_10452 the below will probably confuse the hell out of him
inspire yourself with this code
clear ##clear the screen
echo ""
##check for root privilege
id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%% *}`
if [ "$id" = "0" ] || [ "$id" = "root" ]; then
echo "Root permission: Yes"
else
echo "Root permission: No"
echo ""
echo Please run the script with SU permission
sleep 3
exit 69
fi
if [ ! "`which busybox`" ]; then ##check for busybox
echo "Busybox found: No!"
sleep 3
exit 70
else
echo "Busybox found: Yes"
fi
echo ""
busybox mount -o remount,rw /system ## mounts system as r/w
#
#
#your actions here#
#
#
line=====================
m1k3="=== Themike10452 ==="
echo $line
echo $m1k3
echo $line
echo ""
echo Done!
echo ""
echo -n "Reboot now? (Y,N)"
read input ##read user input and store it in "input" variable
case $input in
y|Y) echo "" ##if answer is "y" or "Y" then ...
echo Your phone will now reboot
sleep 2
echo ""
echo ========== POOF! =========
sleep 1
reboot ;;
*) echo "" ##any other answer then ...
echo "So reboot manually later "
sleep 2
exit ;;
esac
Sent from my Xperia Arc S using xda premium
Omg, THANKZ alot!, , only problem is I'm not on PC, so I'll continue stuff latter
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Omg, THANKZ alot!, , only problem is I'm not on PC, so I'll continue stuff latter
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
alright hit thanks at least
Sent from my Xperia Arc S using xda premium
---------- Post added at 10:37 PM ---------- Previous post was at 10:30 PM ----------
wedgess said:
Lol @Themike_10452 the below will probably confuse the hell out of him
Click to expand...
Click to collapse
I'll try to clarify things as much as I can this is Unix after all
Sent from my Xperia Arc S using xda premium
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Pizza_Dox said:
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
benefit from it as much as you can, I added some colors to make it look clearer
Sent from my Xperia Arc S using xda premium
Themike_10452 said:
I'll try to clarify things as much as I can this is Unix after all
Sent from my Xperia Arc S using xda premium
Click to expand...
Click to collapse
Oh u came back and edited it much easier for him now
Pizza_Dox said:
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Good but I would still however look up some bash so u know exactly what's going on and how to fix it if u run into problems.
Ok I looked through your script quickly there... as mike said there is still alot of work to do. this is not ment as destructive criticism but constructive, to help you make it better, which i'm sure is what you want.
It can be cleaned up quite a bit. It looks like you took alot of other peoples scripts/tweaks and put them together with a lot of sleeps, which certainly will not be good... unless u run them in the background. Because device wont boot for a long time with them all, I think there is 3/4mins where script pauses. It will be fine in boot.d as it wont affect boot time but in init.d seems like a NO NO. also thigs like
Code:
/system/xbin/echo 1 > /proc/sys/vm/oom_kill_allocating_task
can simply be
Code:
echo 1 > /proc/sys/vm/oom_kill_allocating_task
or even better, I think its a good idea to create a variable for busybox say BB. I noticed on LuPuS script at the start certain commands would not work unless I had busybox before each command. I run my kernels busybox from /sbin, So would be
Code:
BB=/sbin/busybox
-- this way
Code:
$BB echo 1 > /proc/sys/vm/oom_kill_allocating_task
As I also mentioned u should place a check so your script will make sure any scripts already in init.d will not conflict. And if they do give the user option to overwrite or keep their current script or back it up.
edit - Crap u said u wanted it to be universal. So maybe better to check for busybox.
Code:
if [ -e /sbin/busybox ]; then
BB=/sbin/busybox
elif [ -e /system/xbin/busybox ]; then
BB=/system/xbin/busybox
elif [ -e /system/bin/busybox ]; then
BB=/system/bin/busybox
else
echo "No busybox found!"
fi
Thanks alot, for all the help guys! I'll get on working and just to clarify I took the base commands from Lenarox, Juwe11 & many others, tested them & modified alot to find the best combo and I added some of my Own Tweaks!,
Also with the whole sleeps thing I already know that it's not Good In init.d and so o was making it to
Just inject all commands
Also in the script their were alot of sleeps because this way it gives each tweak to settle in
Sent from my R800i using xda app-developers app
Ok I tried testing this:
(Thanks mike)
Code:
case $input in
y|Y) echo "Would You Like to Reboot Now?"
echo "Your phone will now reboot"
sleep 2
echo ""
echo "========== POOF! ========="
sleep 1
reboot ;;
*) echo "If You Dident Reboot Then..."
echo "Reboot Manually!"
sleep 2
exit ;;
esac
And it dosent work in smanager... Need some help with it,