This script will setup cron jobs for you. Please unzip Z_cron and run cronsetup.sh as root
How it Works
* Sets up /etc/cron.d folder
* Places file in /etc/init.d to start cron on boot
How to Use
* I have a little how-to here
https://github.com/swarlesbarkely/android-scripts
* Place scripts you want run in minutely/hourly/daily folders
* I use it mostly for renice-ing processes
Ex. 0 * * * * busybox renice -6 -u u0_a82; --> helps keep Lux from getting killed so easily. You can find the right uX_aXX by using OS Monitor
https://f-droid.org/repository/browse/?fdfilter=os monitor&fdid=com.eolwral.osmonitor
Any questions? Google it. If that doesn't work, just ask and I'll try my best to help.
If you have a useful cron script, please share! Full credit will be given!
TO DO:
* Make it recovery flashable
CREDITS FOR SCRIPTS
Credit is also given at the head of each script
DHO -- 00sqlitespeed
7175 -- fs_sync_mode, mounts, mtu_fsio, nfc_down
swarlesbarkely said:
This script will setup cron jobs for you. Please unzip and place Z_cron in /sdcard then run cronsetup.sh as root
How it Works
* Sets up /etc/cron.d folder
* Places file in /etc/init.d to start cron on boot
* Comes with trim.sh built in (automatic fstrim -- not really necessary on 4.3+ but live your dream. I used it more as a learning experience.)
How to Use
* I have a little how-to here
https://github.com/swarlesbarkely/android-scripts
* I use it mostly for renice-ing processes
Ex. 0 * * * * busybox renice -6 -u u0_a82; --> helps keep Lux from getting killed so easily. You can find the right uX_aXX by using OS Monitor
https://f-droid.org/repository/browse/?fdfilter=os%20monitor&fdid=com.eolwral.osmonitor
Any questions? Google it. If that doesn't work, just ask and I'll try my best to help.
TO DO:
* Make it recovery flashable
Click to expand...
Click to collapse
what is this all about?
what is cron bro?
aliesz said:
what is cron bro?
Click to expand...
Click to collapse
Cron allows your phone to run shell commands at given time intervals (every minute, hour, week, etc.). This sets up the necessary folders and files to do so.
swarlesbarkely said:
Cron allows your phone to run shell commands at given time intervals (every minute, hour, week, etc.). This sets up the necessary folders and files to do so.
Click to expand...
Click to collapse
Could you please illustrate us with examples on how can we benefit from this thing?.
Thanks!.
sergialess said:
Could you please illustrate us with examples on how can we benefit from this thing?.
Thanks!.
Click to expand...
Click to collapse
Anything you can do in terminal you can do with cron. Reboot and clear cache every night, run fstrim, renice a process so it isn't killed as easily... So just lookup stuff to do in terminal emulator if you're looking for ideas. I personally use it to renice and clear Lux's compatibility list.
swarlesbarkely said:
Anything you can do in terminal you can do with cron. Reboot and clear cache every night, run fstrim, renice a process so it isn't killed as easily... So just lookup stuff to do in terminal emulator if you're looking for ideas. I personally use it to renice and clear Lux's compatibility list.
Click to expand...
Click to collapse
Nice.. pun intended lol. Fstrim and renicing are really good examples, I also use cron to maintain fast mounts (noatime,etc), internet sysctl stuff, keeping nfc permanently turned off. I feel like it's more important than init.d to be honest.
7175 said:
Nice.. pun intended lol. Fstrim and renicing are really good examples, I also use cron to maintain fast mounts (noatime,etc), internet sysctl stuff, keeping nfc permanently turned off. I feel like it's more important than init.d to be honest.
Click to expand...
Click to collapse
Would you mind sharing? I'm thinking about getting a little collection going.
swarlesbarkely said:
Would you mind sharing? I'm thinking about getting a little collection going.
Click to expand...
Click to collapse
Yeah sure man, I attached the cron scripts I made and the init.d script to start cron.
New zip is up! Includes minutely, hourly, and daily folders now along with some built in scripts. I also got rid of trim.sh as it is pointless on modern Android and I don't like a lot of extra stuff. Let me know what you think.
Just found a bug. Will fix it later today. Forgot to chmod everything in the folders.
EDIT: All good to go. Everything should work fine now.
New zip is up. Now you should be able to run cronsetup.sh from any directory and z_cleanup removes everything in /data/anr instead of just traces.txt. Does anyone want fstrim put back in? I guess it could be handy for older android versions.
Should i modify timezone?
I don't think so but Idk for sure. I never have and it's always gone at the right times for me.
Sent from my Nexus 5X using Tapatalk
Related
Tuxility in the market http://www.appbrain.com/app/tuxility/com.grimmvarg.android.tuxility
News: I have discovered that editing the settings.db is not very usefull and might make your system unstable. I have therefor decided to choose a less generic way of letting users access edit system settings, like wifi sleep time etc.. Should be done in a day or two
The userbase has grown a lot these last days, which means a lot more feedback. No big bugs as of yet, but please post any issues you find, so I can fix them And off course feature requests!
Tuxility
Hey guys!
Im creating an app for the Samsung galaxy s, Ive only been working on it for a few days, but a few features have found there way into it:
- Flashing a kernel without pc, while phone is on. ( ref: http://forum.xda-developers.com/showthread.php?t=765724)
- Back up your current kernel
- Phone codes (view battery stats and various tests of hardware)
- Backing up and restoring /efs
- Reboot to Recovery, Download and standard mode
- Cleaning battery stats
Features to come:
- Toggle Mediascanner on/off
- Editing system settings
- Full System information
- Change system Font
- Sensor dump (for fun)
- Improved GUI, with colors and an icon
- Place backups on external_sd if it exists (thanks _renaud_)
- Add tools for calibration of screen/battery etc..
Requirements:
- Root
- A Samsung Galaxy S (all variants) running Android 2.1 and up.
Why am I releasing this?
Well for one to share the kernel-flashing feature (thanks to supercurio for this). Also to get feedback on what works and not. But more importantly to get feedback on what to add or change about feature and code (which is located here, yes I know my github tree is suboptimal ). I'm used to Java but pretty new to android. So any feedback on the code is appreciated
NOTES ABOUT THE KERNEL FLASHING
I hacked together a filechooser to pick the zImage you want to flash. And you can flash only zImages or Tars including zImage.
The filechooser sets /sdcard/download/ as starting DIR so i suggest you unpack your zImage there. Bakups are stored in /sdcard/.tuxility/backup
And the notice of no responsibility
I take no responsibility if my app breaks your phone, (not that it should, but now i said it) and you try this software at your own risk. On a related note, the code and the app is released under GPLv3. I will however, do all i can to help
Logging is on, so have a look in logcat if something is not working and let me know
I hope someone will find this usefull, and find the time to give me som feedback
Known issues:
The settings file seems to be located elsewhere on the galaxy tab. So if anyone with a tab wants to help me out finding this, that would be great
If flashing kernel fails, and log show "not enough space on device" remove any folder in /cache named "2010-*" that contains a zImage. This is fixed irelease 1.2, I thought that /cache was cleaned at boot, but this was not the case.
The way that all this work
The backup features are pretty straight forward, using a system shell I give a cp/cat/tar command wherever it is suitable. For instance /efs needs to be tared to keep uid and permissions.
For reboot i issue the "reboot <mode>" as root
The kernel install uses the procedure from this thread http://forum.xda-developers.com/showthread.php?t=765724 and copies a binary file to /apps and uses it to install the new kernel image.
All backups are stored in /sdcard/.tuxility/backup
A SMALL WARNING
Just like anyone will tell you, remove all lagfixes when flashing a new kernel if you are not _sure_ that the new kernel you are flashing support your old lagfix, ktnx
CHANGELOG
V1.2
- Huge code cleanup
- Now using flash_image to flash kernel, thanks to koush!
- no more screen distortion after flash
- No forced reboot after flash
- Better execution controll
- Added phone codes
- Removed edit settings.db (this is to risky, no replacement on the sketch board)
- Starting on feature to fetch latest kernel
V1.1
- Install kernel from tar archive
- Finally have an icon
- A bit more restructuring of code
Android Market will not allow me to use sub 1 versions.. :/
V0.21:
- Restructured the menu, for later additions
- Added remove batterystats
- Backup Kernel now sets date in filename
- Improved filechooser, will not install files with a file extension
- Big cleanup of code
GrimmVarg I will follow your work very closely !
Wow, this is good. CWM doesn't backup the kernel, and with this app, one can easily do it. Would be absolutely wonderful if it can be included in the CWM recovery menu.
Thanks and will try it soon.
Is it somewhat like this?
http://forum.xda-developers.com/showthread.php?t=775154
Regards
miro666 said:
Is it somewhat like this?
http://forum.xda-developers.com/showthread.php?t=775154
Regards
Click to expand...
Click to collapse
Yes and no, Its the same concept but different features, except the Secret codes list which I havent implement and the wiping of batterystats. I used SGStools my self before I started on Tuxility, its a very usefull app.
I am making tuxility mostly to get all the features that i need in one app, as I feel that most of these utility apps both overlap on features and miss a few essential features, like flashing a new kernel for instance. So my goal is for Tuxility to be a feature full alternative that cover all common needs, and in addition has specialized features for a give rom/kernel.
Thus feature requests are most welcome
Can you publish this to Android Market?. Further updates are easier that way. Thanks for making this.
hacksome said:
Can you publish this to Android Market?. Further updates are easier that way. Thanks for making this.
Click to expand...
Click to collapse
Yeah. As soon as I get an icon and rewrite the code for executing shell commands i'll push to market
please flash,
pda
modem
csc
withtout pc, send .apk
thanks
Yeah Mr....
great idea ... bring sgstools, spareparts and some features missing in cwm together ... absolutely welcome!!!
gwaan doin this great job!
My20 said:
please flash,
pda
modem
csc
withtout pc, send .apk
thanks
Click to expand...
Click to collapse
c0llal0 said:
Yeah Mr....
great idea ... bring sgstools, spareparts and some features missing in cwm together ... absolutely welcome!!!
gwaan doin this great job!
Click to expand...
Click to collapse
Yeah, If its possible it would be nice. Ill look into it later. Right now Ive been getting help by mikebeecham to make an icon for the app as i plan to release it to market tonight. But I want to implement the possibility to maipulate the settings.db first. So.. yeah. Hoping to get it done while my girlfriend is at the theater
Install and backup kernel works fine.
Really nice
Just wanted to let you know i used this to flash Supercurio's VooDoo lagfix kernel. Easy and painless!
Thank you for this tool.
Sent from my GT-I9000 using XDA App
Thanks for the super cool all in one app..
looks fantastic - definitely going to give it a whirl!
Just wanted to throw this out there.
This app works on the Galaxy tab as well. trying to view settings causes a FC however backing up the kernal worked
looks great.
backup also csc and eventually modem would be very nice.
socksfelloff said:
Just wanted to throw this out there.
This app works on the Galaxy tab as well. trying to view settings causes a FC however backing up the kernal worked
Click to expand...
Click to collapse
Glad to hear it! Could you tell me if if backing up settings.db work? Might be that this file is located elsewhere on the tab. And if so I need to do some digging to find as I dont own a tab my self
zoubidou said:
looks great.
backup also csc and eventually modem would be very nice.
Click to expand...
Click to collapse
Yeah, after i get settings maipulation to work and get a little bit better look an the app, ill be looking to try and both backup and install full firmware
i just tried a kernel update.
i used speedmod version 11 cwm.
i stated wrong file format. sorry for that.
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
FAQ
What is apps2ext?
Code:
Apps2ext (previously called apps2SD) moved all user installed apps to a secondary ext partition on your sdcard.
This method had the advantage of being straight forward and simple, However, it had the drawback of being difficult to set up.
This method is no longer officially supported by CyanogenMod.
Please see the forum for device specific work-arounds if you really want apps2EXT on CyanogenMod.
Why did I include a apps2ext script to the rom?
Code:
Even though we have 1GB space of internal memory and a lot of the G2 users believe that is enough.
The more apps that are installed, the slower our phones can get after time.
Apps2ext takes all of that stress from our internal storage and diverts it to our sd-ext partition if there's any.
This results in our phones never have to worry about slowing down just because of the number of apps that we have installed.
What is swap?
Quoted from Cyanogenmod Wiki
Code:
Swap is, in short, virtual RAM. With swap, a small portion of the hard drive is set aside and used like RAM.
The computer will attempt to keep as much information as possible in RAM until the RAM is full.
At that point, the computer will begin moving inactive blocks of memory (called pages) to the hard disk, freeing up RAM for active processes.
If one of the pages on the hard disk needs to be accessed again, it will be moved back into RAM, and a different inactive page in RAM will be moved onto the hard disk ('swapped').
The trade off is disks and SD cards are considerably slower than physical RAM, so when something needs to be swapped, there is a noticeable performance hit.
Unlike traditional swap, Android's Memory Manager kills inactive processes to free up memory.
Android signals to the process, then the process will usually write out a small bit of specific information about its state (for example, Google Maps may write out the map view coordinates; Browser might write the URL of the page being viewed) and then the process exits.
When you next access that application, it is restarted: the application is loaded from storage, and retrieves the state information that it saved when it last closed.
In some applications, this makes it seem as if the application never closed at all.
This is not much different from traditional swap, except that Android apps are specially programed to write out very specific information, making Android's Memory Manager more efficient that swap.
Requirements:
- HTC G2 / HTC Desire Z
- S-OFF
- SDCard
Recommended Requirements:
*Only need this is you plan to use sd-ext and swap*
- Sd-ext partition at least 1024MB
- Swap partition at least 256MB
I DO NOT RECOMMEND USING ANY KIND OF SUPERWIPE
The rom has it's own built in wipe
Installing Process
- Backup your previous rom
- Repartition your sdcard ONLY if you want sd-ext and/or swap enabled
- Download the rom
- Wipe everything (data, cache, dalvik-cache, battery stats)
- Flash the rom
- Once flashing process is complete it will auto reboot!
Working
- Everything should be
Not Working
- Nothing, but tell me if anything is broken
Issues
- None at the moment
REGARDING ISSUES
Post the issues on http://pastebin.com/
- Please give me a logcat if you have an error, I can not help you if there's no logcat of the issue
Credits:
- HTC (Making HTC G2/Desire Z)
- Google (Android OS)
- Cyanogenmod (Source)
- SparksCo (Sd-ext, swap, kernel, cycling bootanimation, symlink scripts and sysctl tweaks)
- SparksCo (Kernel)
- Rambooster script (Credits to Darkky)
- Sdcard increase script (Credits to brainmaster)
If I missed anyone, let me know and I'll add you to here
Download link:
CM7-PyroMod-Stable-V2.3.7
checksums md5: I will provide one later
If you love my roms, donate and hit that thanks button!
Much appreciated!
Great stuff. Congrats on your first ROM! Just i dont think its ok that you have GAAPS installed already. Just a heads up.
Changelog
Version 2.3.7:
Rom
- Compiled from CM Source (Credits to SparksCo)
- Added kernel script (Credits to SparksCo)
- Added sysctl tweaks (Credits to SparksCo)
- Added cycling bootanimation (Credits to SparksCo)
- Working audio (Credits to SparksCo)
Theme
- Stock theme
- Stock font
- Stock audio tones
- Nice FOUR looking bootanimation (Credits to SparksCo)
Kernel
- Custom kernel (Credits to SparksCo)
EDIT: badass dude. Keep it up!
travisd4est said:
Any screenies??
Click to expand...
Click to collapse
Like I said in the OP, it's stock themed for right now
Okay blah I'm downloading and will give a spin this morning. I'll update you on what I think.
Update: This rom is pretty stable. Everything is working perfectly even the wireless tether. No FC's now its time to test the battery life. For just the begin this rom is great. Now its time for some themes! lol
313dash said:
Okay blah I'm downloading and will give a spin this morning. I'll update you on what I think.
Click to expand...
Click to collapse
Thanks, let me know what you think about it
Congrats on your first rom.
siulmagic said:
Congrats on your first rom.
Click to expand...
Click to collapse
Thanks, also thanks for helping me a little
Cause Myjbarr is being a complete douche about me forgetting to asking for his permission to use his rom as a base, he has to remember did he even ask cyanogen to use his rom as a base?
I don't think so
So for everyone, blame him for killing my rom
blahbl4hblah said:
Cause Myjbarr is being a complete douche about me forgetting to asking for his permission to use his rom as a base, he has to remember did he even ask cyanogen to use his rom as a base?
I don't think so
So for everyone, blame him for killing my rom
Click to expand...
Click to collapse
Lol...
Sent from my Desire HD using Tapatalk
blahbl4hblah said:
Cause Myjbarr is being a complete douche about me forgetting to asking for his permission to use his rom as a base, he has to remember did he even ask cyanogen to use his rom as a base?
I don't think so
So for everyone, blame him for killing my rom
Click to expand...
Click to collapse
Why do I always have to take the blame....??? Its never anyone elses fault. Its always my mistake. Shame on me, for not handing over my rom to you so you can call it yours. Also it "mjybarr" and not "myjbarr".
meXdroidMod GingerMex Ghost Chile TEST
mjybarr said:
Why do I always have to take the blame....??? Its never anyone elses fault. Its always my mistake. Shame on me, for not handing over my rom to you so you can call it yours. Also it "mjybarr" and not "myjbarr".
meXdroidMod GingerMex Ghost Chile TEST
Click to expand...
Click to collapse
blahbl4hblah said:
Cause Myjbarr is being a complete douche about me forgetting to asking for his permission to use his rom as a base, he has to remember did he even ask cyanogen to use his rom as a base?
I don't think so
So for everyone, blame him for killing my rom
Click to expand...
Click to collapse
why does it have to be a blame game at all, guys? Seriously, we are all big boys and girls. If someone makes a mistake, they need to own up to it and fix it, not blame anyone else. All that does is cause bad feelings in the community. You guys are both awesome, and I believe we can all get along in peace, and learn from and help one another, to the benefit of the whole community. Sound like a plan, guys?
mjybarr said:
Why do I always have to take the blame....??? Its never anyone elses fault. Its always my mistake. Shame on me, for not handing over my rom to you so you can call it yours. Also it "mjybarr" and not "myjbarr".
meXdroidMod GingerMex Ghost Chile TEST
Click to expand...
Click to collapse
Question... is your rom based off of CM? If it is, why shouldn't he be able to say the same thing you just did... The best way to get great roms is by sharing and expanding. That is why CM is so great, it is a contribution from many people!
Durkbeef said:
Question... is your rom based off of CM? If it is, why shouldn't he be able to say the same thing you just did... The best way to get great roms is by sharing and expanding. That is why CM is so great, it is a contribution from many people!
Click to expand...
Click to collapse
Yeah he's rom is based off of CM, but it doesn't matter anymore actually. I'm already working on a new release based off CM#17, along with the chance of better things
blahbl4hblah said:
Yeah he's rom is based off of CM, but it doesn't matter anymore actually. I'm already working on a new release based off CM#17, along with the chance of better things
Click to expand...
Click to collapse
sounds like a great plan good luck, bro, and cant wait to see where this will go from here. Still keeping the increased vm and apps2sd, I hope?
jmwils3 said:
sounds like a great plan good luck, bro, and cant wait to see where this will go from here. Still keeping the increased vm and apps2sd, I hope?
Click to expand...
Click to collapse
vm yes, but apps2sd of course but different haha
blahbl4hblah said:
vm yes, but apps2sd of course but different haha
Click to expand...
Click to collapse
ok, cool means one less zip to flash for CM, sounds like a definite plus to me.
jmwils3 said:
ok, cool means one less zip to flash for CM, sounds like a definite plus to me.
Click to expand...
Click to collapse
I'll leave it at this, you'll flash ONE thing and that's it
No need to worry about going into terminal for apps2sd
blahbl4hblah said:
I'll leave it at this, you'll flash ONE thing and that's it
No need to worry about going into terminal for apps2sd
Click to expand...
Click to collapse
wow... if that works, thatll be quite the feat indeed. We will still need to go into terminal emulator to move the apps though, i assume?
THIS APP REQUIRES ROOT!
READ FAQ! Read that FAQ BEFORE you try app!
Premium version is now ON SALE! -50% off of the price! Enjoy!
Some Android users suffer from poor performance after some days/weeks of heavy usage. This is due to a well-known TRIM bug affecting these devices (there are reports that some Galaxy Nexus devices also have affected memory chips). Users with -discard mount option are NOT affected!
The source of the problem is that internal storage is not properly TRIMmed when needed. You can find lots of information on XDA - http://forum.xda-developers.com/showthread.php?t=1971852 and http://forum.xda-developers.com/showthread.php?t=1929021 for example. It is also well-known fact that running fstrim Linux tool from time to time fixes the issue until internal memory runs out of free blocks. Other solutions like mounting with -discard or disabling fsync may be slow or dangerous.
LagFix is a user-friendly implementation of fstrim utility. It allows you to select which partitions to trim (you should leave defaults unless you know what you are doing) and run the process easily.
Please note that fstrim output depends on kernel and device. It works fine unless you see errors. You might see big amounts of bytes, zero amount or repeating amount. All are fine! Read fstrim manual to understand why all these outputs are valid.
It is also advised to reboot your device after the TRIM process so that kernel could reinitialize block data.
There are two versions of LagFix:
Premium version (v1.5.1) - no ads + ability to auto-run trimming on specified schedule. The best choise!
Free version (v1.5.1) - trims your memory with one click, has ads, no schedule.
Warning! Premium version comes from different publisher! This is because Google does not allow to publish paid apps from my country. Send your rage to Google Both versions are legit, don't worry.
Release notes:
v1.5.1
+ Added CWM SuperUser support;
+ Added android.permission.ACCESS_SUPERUSER permission;
* Fixed disabling scheduler;
+ New notification icons.
v1.5
Full rewrite, dropped RootTools lib, made my own. No more problems!
v1.4
+ Device compatability detection is now completely reworked
* Fixed a crash
Earlier changelogs:
v1.3
+ New UI
+ Added Info screen
+ Added device compatability detection (looks like it should be improved further)
+ Renamed Donate version to Premium
* Fixed scheduling dissappear after reboot (Premium version)
* Some other bug fixes
v1.2 premium
* Added auto-trim functionality which runs on specified schedule. Click Schedule button and you'll see the options. Setup the way you want and click Install. The button will change to Uninstall to remove auto-trim if needed.
* Added detection if your device supports TRIM - run it once and you will know.
* Fixed some bugs.
v1.1
* Fixed chmod not working on some custom Sense ROMs.
* Added Android 2.2+ support.
* Fixed crashes.
* App is now multi-threaded.
* Updated UI a bit.
* New icon.
* App is renamed.
P.S. If your ROM mounts /data with -discard then this app is NOT needed!
P.P.S. Free version is now attached for those, who do not have market for some reasons.
Excellent!
Thanks for this. only a day ago i pushed a load of music to my OneX and have been suffering ever since.
I'll give this a go and report back!
To be clear, should I now be able to fill the phone storage to almost capacity with this running? (not currently possible as it just slows down and heats up, draining the battery)
update: enabled the defaults and it said it was successful with some large numbers trimmed. rebooting now
zombiefly said:
To be clear, should I now be able to fill the phone storage to almost capacity with this running? (not currently possible as it just slows down and heats up, draining the battery)
Click to expand...
Click to collapse
You run this app every time your device becomes SLOW AS HELL. It does not work in background since it would impact performance. Previously I used backup/restore solution once a week to fix lags. So in my case I will now run this app once a week.
Wow, just used this on my gnex, and all I can say is: thanks!
I was originally running with the discard Mount option, but it turns out it wasn't doing anything as your app trimmed a quite big number. (I have since removed said Mount option)
Also, I used to have issues with an app that set settings on boot not actually doing so, but after this app it works again. And my phone feels snappy again.
Thanks for this app.
Sent from my Galaxy Nexus using Tapatalk 2
geoffcorey said:
Wow, just used this on my gnex, and all I can say is: thanks!
I was originally running with the discard Mount option, but it turns out it wasn't doing anything as your app trimmed a quite big number. (I have since removed said Mount option)
Also, I used to have issues with an app that set settings on boot not actually doing so, but after this app it works again. And my phone feels snappy again.
Thanks for this app.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I'm glad my app helped! May I ask to do me a favour and rate app in Play Store? That would be nice
AuxLV said:
You run this app every time your device becomes SLOW AS HELL. It does not work in background since it would impact performance. Previously I used backup/restore solution once a week to fix lags. So in my case I will now run this app once a week.
Click to expand...
Click to collapse
thanks. This is brilliant
the problems i talked of in my earlier post appear to have gone now after running Lagfix. My Phone is back to it's usual speed.
I was also using the emergency restore rom image method, glad I don't have to do that anymore, was a major pain.
I was looking into an app i use called settings profiles as I wanted to run lagfix after every usb dismount, unfortunately it doesn't support running applications, which is a shame. Is there any other way of hooking this in to run automatically after (un)mounting as a usb drive?
zombiefly said:
I was looking into an app i use called settings profiles as I wanted to run lagfix after every usb dismount, unfortunately it doesn't support running applications, which is a shame. Is there any other way of hooking this in to run automatically after (un)mounting as a usb drive?
Click to expand...
Click to collapse
LagFix trims /data partition, it has nothing to do with /sdcard which is mounted/unmounted. I will add scheduler in the future releases.
i'll give this a try on Nexus 4 since it's affected too by the slow down write performance if free space left less than 4GB. well done and thanks for keeping it free!
chrone said:
i'll give this a try on Nexus 4 since it's affected too by the slow down write performance if free space left less than 4GB.
Click to expand...
Click to collapse
I hope to hear your report if it will help in Nexus 4 case since I dont have one to test myself.
works great! :good:
Hey,
Work great on Nexus 10 AOKP
But not work on HOX on Renovate rom with Trip Kernel. I think Sense kernel is the probleme or other.Root acces is OK
# fstrim -v /data
sh: <stdin>[32] : /data/data/com.grilledmonkey.lagfix/files/fstrim : can't execute : Permission denied
# fstrim -v / cache
sh: <stdin>[35] : /data/data/com.grilledmonkey.lagfix/files/fstrim : can't execute : Permission denied
Thanks for your work
AuxLV said:
I hope to hear your report if it will help in Nexus 4 case since I dont have one to test myself.
Click to expand...
Click to collapse
Just updated my post above. It works! I chose all /system, /data, and forgot the other partition.
Much appreciated dude!! :good::good:
Care to adding fstrim for Nexus devices to your app name?
Doesn't work on Bindroid Sense 4+ ROM. Access denied and doesn't ask for root acces.
AlexNne said:
Hey,
Work great on Nexus 10 AOKP
But not work on HOX on Renovate rom with Trip Kernel. I think Sense kernel is the probleme or other.
# fstrim -v /data
sh: <stdin>[32] : /data/data/com.grilledmonkey.lagfix/files/fstrim : can't execute : Permission denied
# fstrim -v / cache
sh: <stdin>[35] : /data/data/com.grilledmonkey.lagfix/files/fstrim : can't execute : Permission denied
Thanks for your work
Click to expand...
Click to collapse
Thanks for report, looks like chmod was not executed successfully. I'll look into this issue and add a fix in next version.
You can try to fix it manually if you are familiar with Linux console:
Code:
# su
# chmod 777 /data/data/com.grilledmonkey.lagfix/files/fstrim
Kroutnuk said:
Doesn't work on Bindroid Sense 4+ ROM. Access denied and doesn't ask for root acces.
Click to expand...
Click to collapse
Does not ask for root? This is very strange... I'll look into it too. Sorry for such problem - I don't have Sense ROM so I couldn't test...
AuxLV said:
Thanks for report, looks like chmod was not executed successfully. I'll look into this issue and add a fix in next version.
You can try to fix it manually if you are familiar with Linux console:
Code:
# su
# chmod 777 /data/data/com.grilledmonkey.lagfix/files/fstrim
Click to expand...
Click to collapse
Thanks !
I forgot the chmod
Fix manually with terminal emulator with chmod 777 and is OK.
Renovate Rom with Trip kernel 002 and Sense + are OK for fstrim
Nexus 4 16GB Storage Performance Over Time & TRIM
Before and after filling up the storage (coming from 5GB and filling it up to 1.2GB space available):
SW from 10 MBps to 4 MBps ~ 60% loss
RW from 1 MBps to 0.39 MBps ~ 61% loss
Did a reboot and the performance is getting better (1.2GB space available, deleted some files left with 2.2GB space available but the performance is more less the same):
SW from 4 MBps to 9.89 MBps ~ 147% gain
RW from 0.39 MBps to 0.51 MBps ~ 31% gain
Using the fstrim app (LagFix for Nexus 7 and HTC One X) and reboot (2.2GB space available):
SW from 9.89 MBps to 9.9 MBps ~ 0.1% gain
RW from 0.51 MBps to 1.07 MBps ~ 110% gain
:good::good:
i see a future request is in order, daily/weekly midnight crontab?
Odp: [APP] LagFix for Nexus 7 & HTC One X
Looks like it works on OrDroid 12.5.1, which is Sense Rom, no errors...
Wysyłane z mojego HTC One X za pomocą Tapatalk 2
It's working on ViperX JB, which is a sense based rom. It brings some smoothness, or Its a placebo effect, Im not sure )
tried it manually and then the app and now it worked i tried and in antutu the I/O is still at 896....and i get only 12828 points in antutu :/ ...hm i try it again with the trimming...
Hi guys, I found this really cool thread, I will now share with you guys
WELCOME TO THE FUTURE , SKYNET IS HERE .
SKYNET IS NOT JUST A BUNCH OF SCRIPTS PUT TOGETHER TO SPEED UP YOUR PHONE.
IT IS AN EVOLUTION OF UNIQUE CODES ARRANGED TO BRING SKYNET TO LIFE.
TO BE MORE PRECISE,
SKYNET IS SIMILAR IN LOOK COMPARED TO NITRO VISION.
BUT DON'T BE FOOLED BY ITS' SIMPLICITY.
UNDERNEATH IT IS VERY COMPLEX AND INTRICATE.
SKYNET IS VERY SIMPLE TO USE, YOU JUST SET IT AND SKYNET WILL HANDLE EVERYTHING ELSE.
SKYNET WILL PROVIDE POWER WHEN YOU NEED IT FOR WHATEVER THE DEMAND IS. SKYNET IS THE MILESTONE OTHERS CAN ONLY DREAM OF REACHING.
IF YOU WANT THE BEST, FASTEST AND MOST ADVANCED APP FOR YOUR DEVICES,USE SKYNET.
IT WORK ON GB/ICS/JB/KK/LP/MM - CM7/CM9/CM10.x/CM11/CM12/CM13
=============* 2 - FEATURES *=============
This mod does All, Absolutely no limits.
External Link ( Thanks to Víctor Rodríguez )
* Powered by Skybox ( Box Control Tool )
* Check Su Binary
* Backup init/hosts/boot
* Check Root
* Check Cores Onlines
* Check Default / Directory Mount
* SELINUX Permissive By Default
* INIT.D Activator
* GPU Rendering
* DNS Configuration
* Fstrim Recovery
* Auto Backup Skynet
* BootAnimation
* Clean System ( Battery / Dalvik )
* Block ADS
* Full EntropyNess
* Fstrim / Clean Junk Files / Drop Memory Auto At Different Intervals
* Remount All Relatime and Ext4 Partitions
* 3 Preconfigured Programs for Performances at your Choice ( Battery / Balance / Game )
* Extra Features : Xtreme Renice / Mediakill / Scaling+ / WifiSleep / Zram / KSm / Kill Google Apps / Touchscreen / NetBoost/ LMK Vision
Link : http://forum.xda-developers.com/android/software-hacking/android-l-booster-1-soon-t3030796
Tested and worked on zenfone 5!
I m using it. I will leave a feedback here tomorrow
How to be sure that it is activated ?
On the main thread there is written that after installation devices will reboot itself to optimize the system. It did not happened to me...
Ghi98 said:
I m using it. I will leave a feedback here tomorrow
How to be sure that it is activated ?
On the main thread there is written that after installation devices will reboot itself to optimize the system. It did not happened to me...
Click to expand...
Click to collapse
I don't know, I din't test it yet
Difference between l speed?
is this similar to L speed? L speed was good for short term and made some improvements, using it in long run will cause different bugs and strange behaviours.
Ghi98 said:
I m using it. I will leave a feedback here tomorrow
How to be sure that it is activated ?
On the main thread there is written that after installation devices will reboot itself to optimize the system. It did not happened to me...
Click to expand...
Click to collapse
Im testing it so check if it's active you have to use terminal emulated and type "su" to gain root privilages then type "menu" this is open the sky net config screen after that just config as you like
jiyaad1 said:
Im testing it so check if it's active you have to use terminal emulated and type "su" to gain root privilages then type "menu" this is open the sky net config screen after that just config as you like
Click to expand...
Click to collapse
what should be general configure mode?
Sent from my ASUS_T00F using XDA-Developers mobile app
zsk.khan said:
what should be general configure mode?
Sent from my ASUS_T00F using XDA-Developers mobile app
Click to expand...
Click to collapse
i really dont know about that because it differs from user to user and device to device as for mine i activated kill media server and set sky net to battery instead of balanced.......its upto you on what config you want to use
felt a performance boost otg, tho battery is draining a little faster(tho i may be some app that kept running on background, Star Wars Uprising and Spotify for some reason even when not being used keep the cpu running at its full, forcing me to manually close them on the running apps screen...)
yes i also feel abit more responsive than usual so its a positive sign, dont forget you need to activate it in terminal by select option 4
Is this support cm13 base ROM ?
kuranzi said:
Is this support cm13 base ROM ?
Click to expand...
Click to collapse
Yeah
I am among the unlucky ones..
"screen freeze after bootloader unlock"
so I need to keep bootloader locked..
so.. will it work if I relock bootloader after installing zip
Works on ressurection remix? Any improvements?
ORIGINAL THREAD HERE: https://forum.xda-developers.com/axon-7/development/2-15-2017-axon-7-msm-8996-cpu-vm-ram-t3557392
This mod was originally created for the Axon 7, but due to several requests, I've modified a version for the HTC 10, please see below, and post questions or comments in the original thread above. Please state you are a HTC 10 user if you have feedback in that thread, to consolidate user feedback and speed up response time.
Custom tuning for a device is always a necessity. "Canned" settings will get you by, but they are certainly never optimized for a specific device. In fact, Linux typically takes a general approach to find harmonic balance in default settings that will, for the most part, work in an acceptable manner for just about any device. There are a lot of resources available on this device, so we should utilize it in a manner appropriate to squeeze out as much battery life and performance as possible without sacrificing much of those outputs, don't you think? This is going to fix that for you.
Here is what is required of you before you begin:
1. Must be rooted
2. Must have the HTC 10 OR a device running the Snapdragon 820, as this modification is not so much device specific, but hardware specific. The important aspect being the snapdragon 820 and the RAM disk size.
3. Must have write protection disabled. If the HTC 10 requires write protection to be disabled, see the code and instruction below:
Using adb shell:
Code:
adb reboot disemmcwp
Using Linux terminal (from your phone, for example):
Code:
reboot disemmcwp
Let's begin.
Getting right to it, here's what I've done:
- modified parameters of the interactive governor, and quite extensively at that (search some of my threads if you want a little bit of a breakdown of the general approach I take)
- reconfigured input_boost parameters
- reconfigured vm parameters (again, the device has a lot of RAM resource, this will utilize it and give you a far better user experience. Basically, I've adjusted dirty_ratio, dirty_background_ratio, swappiness, and other parameters of the virtual machine.)
- disabled zRAM for 6 GB variants (RAM compression, again, not needed on this device really, this mod will save you CPU cycles and power) this will not apply to HTC 10 users, you will still have zRAM enabled.
- remapped minfree parameters for LMK (low memory killer) again only for 6 GB variants
- Tuned CFQ scheduler for flash storage devices
- Tuned "core_ctl" module (needs kernel support, I recommend freeza's latest version of BeastMode. For those wondering, yes, you can still use this mod with the stock kernel. It won't break anything.) again this will only apply to devices that support core_ctl at the kernel.
In a nutshell, that's what we're looking at here. I can guarantee you this will have a significantly positive impact on your device. Turbo time, homies.
How to install????
Easy. First, the file we are replacing is found in /system/etc... it is the "init.qcom.post_boot.sh" file - this file is basically shell scripts, which are applied at boot via this particular shell file.
All you have to do is download the file to your device, open up a file explorer (must have root capability), navigate to the /system/etc folder with said file explorer, mount your /system as RW (read write), delete your stock "init.qcom.post_boot.sh" file, and replace it with mine.
After you've successfully done this, change the new file's permissions to rw-r--r-- (0644), and then reboot!
Or, if you are brave, you can do it manually via a terminal app and get your fingers wet... if you choose to do that, see below:
Make sure the file is located on the root of your internal sdcard in /sdcard, open your terminal app (again, must have root) and type the following commands, hitting enter after each one (be careful to pay attention to the spacing).
Code:
su
Code:
cd /
Code:
mount -o remount,rw /system
Code:
cd /system/etc
Code:
rm init.qcom.post_boot.sh
Code:
cd /sdcard
Code:
mv init.qcom.post_boot.sh /system/etc
Code:
chmod 0644 /system/etc/init.qcom.post_boot.sh
I don't want credit, don't need you to give or offer donations, this is purely for the community in the spirit of Linux ideology. All I ask is for you to hit the thanks button :good:
That's pretty much it, guys. Enjoy!
DOWNLOAD
warBeard_actual said:
ORIGINAL THREAD HERE: https://forum.xda-developers.com/axon-7/development/2-15-2017-axon-7-msm-8996-cpu-vm-ram-t3557392
Hello everyone, I would like to provide this mod to the HTC 10. If somebody could grab me the STOCK file: init.qcom.post_boot.sh found in /system/etc I will modify it for you guys and post it here with instructions on how to install.
It will provide you a good boost in battery life without sacrificing performance.
Thanks!
Click to expand...
Click to collapse
Thanksss :angel:
I little bit more tuning can't be wrong I guess. Here you go. Just uploaded the respective file needed to do the trick.
5m4r7ph0n36uru said:
I little bit more tuning can't be wrong I guess. Here you go. Just uploaded the respective file needed to do the trick.
Click to expand...
Click to collapse
I'll have this done tomorrow night. Thanks for getting me the file
Hey guys, file is up, with instruction on how to install.
There were actually a lot of typos in the stock file from HTC
I cleaned up the file from redundancy, fixed a few things while adding my modifications to the file. For those wondering, YES the file is supposed to much smaller as a lot of unneeded code was removed that was specific for other SoC's.
Enjoy, feedback is welcome, but I can guarantee your experience will be postive results.
Phone booted, will be testing over the next few days
warBeard_actual said:
Hey guys, file is up, with instruction on how to install.
There were actually a lot of typos in the stock file from HTC
I cleaned up the file from redundancy, fixed a few things while adding my modifications to the file. For those wondering, YES the file is supposed to much smaller as a lot of unneeded code was removed that was specific for other SoC's.
Enjoy, feedback is welcome, but I can guarantee your experience will be postive results.
Click to expand...
Click to collapse
"The file we are replacing is found in /system/etc... it is the "init.qcom.post_boot.sh" file - this file is basically shell scripts, which are applied at boot via this particular shell file" - I could not find this file in /system/etc... Does the type of rom that I'm running matter. currently running ResurrectionRemix 5.8.3 (7.1.2) w/ tabp0le kernel
5m4r7ph0n36uru said:
I little bit more tuning can't be wrong I guess. Here you go. Just uploaded the respective file needed to do the trick.
Click to expand...
Click to collapse
Aloha,
Just to be clear.. So if I download this zip and flash through TWRP I will be on 7.1? I'm currently on stock with Majestic.
Mahalo
Sent from my HTC 10 using XDA-Developers Legacy app
devilman30 said:
Aloha,
Just to be clear.. So if I download this zip and flash through TWRP I will be on 7.1? I'm currently on stock with Majestic.
Mahalo
Sent from my HTC 10 using XDA-Developers Legacy app
Click to expand...
Click to collapse
No
Read the OP
Mike Grace said:
"The file we are replacing is found in /system/etc... it is the "init.qcom.post_boot.sh" file - this file is basically shell scripts, which are applied at boot via this particular shell file" - I could not find this file in /system/etc... Does the type of rom that I'm running matter. currently running ResurrectionRemix 5.8.3 (7.1.2) w/ tabp0le kernel
Click to expand...
Click to collapse
Well, I should have probably told you that CM-based ROMs don't have this file. Lol.
If you are an experienced user, you can add this to init.d
Using this without any problems, on top of ex kernel modifications and using PNP tweak v23. Do all of these play nicely together?
Sent from my HTC 10 using XDA-Developers Legacy app
warBeard_actual said:
Well, I should have probably told you that CM-based ROMs don't have this file. Lol.
If you are an experienced user, you can add this to init.d
Click to expand...
Click to collapse
I'm not an "experienced user" per-say but basically we take your edited init.qcom.post_boot.sh file and move into init.d (I'm on LOS ROM) folder and re-name and set permissions correctly?
I have re-named to 01init.qcom.post_boot
I'll upload a screenshot shortly to show what I have done.
Also, will it matter the kernel and write protection?
I'm assuming that I don't need to bother with it since I was able to move and edit this file?
MrRob0t said:
I'm not an "experienced user" per-say but basically we take your edited init.qcom.post_boot.sh file and move into init.d (I'm on LOS ROM) folder and re-name and set permissions correctly?
I have re-named to 01init.qcom.post_boot
I'll upload a screenshot shortly to show what I have done.
Also, will it matter the kernel and write protection?
I'm assuming that I don't need to bother with it since I was able to move and edit this file?
Click to expand...
Click to collapse
Yep, should be good. Make sure you leave your original stock file in /system/etc however... and line out any conflicting code in that stock file.
init.d loads during boot, as opposed to post boot, so any conflicting code with be overwritten after the .sh file executes (around the time you start seeing your lock screen)
warBeard_actual said:
Yep, should be good. Make sure you leave your original stock file in /system/etc however... and line out any conflicting code in that stock file.
init.d loads during boot, as opposed to post boot, so any conflicting code with be overwritten after the .sh file executes (around the time you start seeing your lock screen)
Click to expand...
Click to collapse
Original stock file. Does that mean the file that you edited or do i need to put the original file that was not edited. Using los based rom so original doesn't exist. Thank you
Mike Grace said:
Original stock file. Does that mean the file that you edited or do i need to put the original file that was not edited. Using los based rom so original doesn't exist. Thank you
Click to expand...
Click to collapse
Using LOS, you're good to go, as the file doesn't exist in /system/etc
Toss it in /system/etc/init.d and remove the .sh extension, good to go.
Delete