Monday, September 9, 2013

[MOD][SCRIPTs][TWEAKs]Fly-On Mod™V4.0 Beta4/Feel The Smoothness on your SGY

 * 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
 * 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.
Introduction :

Hy guys,Fly-On Mod is a Mod that combines many script,binary and other tweaks in one package which is aimed to improve Android system's Smoothness,reduce GUI lags and of course some useful battery life improvements and tweaks!

Features and Improvements :

- Full memory management.
-Linux kernel tweaks and improvements for better performance and battery life.
- Entropy generator engine used to reduce lags.
- Zipalign apps in "/system" and apps in "/data" every 48 hours which result in less RAM usage.
- Sqlite optimizations and faster database access.
- CPU governors tweaks and improvements for better performance and battery life.
- Increased SD Card read-ahead cache to 2048 KB .
- Ad blocking.
- Build.prop tweaks and improvements.
- Cleans log files and tombstones at every boot.
- Many other tweaks for better performance and battery life!


Requirements :

- Android 2.3.x (Gingerbread) or higher.
- Kernel with init.d support.
- Root and newest busyBox version.
-Custom recovery(like CWM or TWRP).
- At least 4MB of free space in "/system".

How to install :
Before Flashing please do a nandroid backup to avoid any incompatibility issues.
1. Download the Fly-On Mod main pack and sqlite pack according to your phone's Android version.
2. Rebooting into recovery mod.
3. Install and sqlite_xversion.
4. Reboot and feel the smoothness!

In the package :

+/system/etc/init.d/ scripts :
-ram_manager: It's a complete memory manager
-92cleaner: Cleans log files and tombstones at every boot.
-09sdcardspeedfix: Set SDCard readahead speed to 2048 KB.
-darky_zipalign: Zipalign apps in "/system" at every booting.
-zipaligndata: Zipalign apps in "/data" every 48 hours.
-98fly_engine: Contains various tweaks and improvements. (3G/VM/sysctl/kernel/battery life tweaks etc.)
-sqlite_optimize: Optimizing database of apps every 48 hours.
-93kill_media_server: Kills media server when unused to save battery .
-94Governor_tweaks: Tweaks for CPU governors,It's aimed on better performance and battery backup.

+/system/xbin/ :

+/system/etc/rngd/ :

+/system/lib/ .

Frequently asked questions:

Q: Can I use Fly-On MOD™ with my device?
A:Fly-On works on all Android devices(Samsung Galaxy,Sony Xperia,HTC,Google,LG and all other OEMs) with Root,busyBox and init.d support.

Q: Should I patch my services.jar?
A:If you are using Fly-On's RAM config in top of Android 2.3 you'll not need to patch them,but since Android 4.0 OOM values are hardcoded into the services.jar so you'll need to patch them to have 100% RAM management.

Q: How to patch services.jar
A:you can either patch them using supercharger V6 script before installing Fly-On Mod or use magic patching tool by zeppelinrox(thanks to him),Visit his thread.

Q: I'm coming from an old version should I uninstall my version before installing new one?
A:No,Just new version over old one, the installation package will do everything.

Q: I feel very comfortable with my current old version,why should I update to never version?
A:Even If you feel very comfortable with your old version you should update to get latest improvements and bugfixes.

Q: What is EXT4 tweak?
A:It's a tweak that disables EXT4 journalism which increases I/O speed.

Q: Can I use EXT4 tweak?
A:In order to use this one you'll need your phone's file system to be on EXT4.

Q: Can I use INT2EXT+ with Fly-On Mod?
A:Yes It's totally compatible.

Q: Can I use Fly-On MOD™ with any other MOD that uses init.d scripts,binaries and Tweaks?
A:No,you can't as they will conflict ,so choose one of the them.

Q: And when I install a newer Fly-On version should I re-install my RAM Configs/EXT4 tweak?
A:No need.

Q: What is the best kernel to use with Fly-On?
A:No one is the best,Use any custom kernel with init.d support.

Q: What is entropy generator engine?
A:It an engine used to reduce lags by keeping a section of the Android file system (/dev/random) full of random bits so that the system does not have to wait for the file system to generate them.

Q: So for better performance/battery Entropy generator must be on or off?
A:No,It just off by default to let users have their own choices.

Q: Can I use Supercharger V6 with Fly-On Mod?
A:Yes,but If you are using Fly-On RAM manager delete It first.(Keep Fly-On main package installed).

Q: But If I have an older version what to do to uninstall Fly-On?
A:Update your version to V4.0 A6 first then Flash the uninstaller.

Q: Do I need to mount /system or /data before flashing?
A:No need to do that as the installation package does everything.

Q: There are many sqlite zips,which one should I pick?
A: Depending on your phone's Android version,like if you are running Android 4.0.x Ice Cream Sandwich flash sqlite_ICS.

About Entropy Generator :

+To monitor available entropy type in terminal :

+To turn entropy on type in terminal:

+To turn entropy off type in terminal:

+To uninstall the Mod,type in terminal:


Note also:

- Don't use any Task Killer with this Mod!
- Don't use Fly-On Mod with any other tweaking script as they will conflict!
- If you want to use Fly-On Mod in your ROM or your Mod ask for permissions first and give me credits!
- If you have any question ask me in the thread instead of PMs or I will not reply!
- Read well the thread before posting any newbie questions and do not ask for an already answered question!

Some users feedback :

Originally Posted by bennybaz View Post
Using Alpha6 - Best cure for my old SGS1 running 4.2.2. Thank you, works even better than SC V6
Originally Posted by l0lh4rd View Post
The script is great!!!!!!!!!! Really feeling comfortable at 312MHz-156MHz/Smartass V2/noop, which under these settings without the scripts would make me miserable
Originally Posted by ronnieryan View Post
Version 8 has awesome boot time, only 38 seconds for me
Originally Posted by KnightlyNinja View Post
this version is awesome. ram usage is very low 150 mb only.Superb work haha
Originally Posted by KnightlyNinja View Post
great. this is one of the best tweak available in xda. it improves smoothness , battery and performance. Almost does the work of a good kernel. Hoping to see more improvements in future.

great work sir.

Originally Posted by sad25kag View Post
Working great and faster on MIUI rom.


Sent from my GT-S5570 using Tapatalk 2
Originally Posted by Chemical SidePearl View Post

Here is a talking sentence between me and my friend that is watching my phone flying with cm10.1....

Friend: Have you ever heard the definition of INSANITY ???

Me:Yup,it's the new Fly-ON mod by @slaid480.

Sent from my GT-S5570 using xda app-developers app

Originally Posted by pykfree View Post
I put this script in PAC 4.2.2 ROM.. working fine.. it give more performance on my phone.. thank's dude 
Originally Posted by tcris45 View Post
Ty man for those awesome tweaks
Originally Posted by golfgtiedition30 View Post
Instaled on rom stocklite problems its working well :thumbup:
Originally Posted by nizar.nasani View Post
well i test it on the last cm10.1 by biel after new flashing today and still for now no problems and works perfect and thnx btw

The main goal of using scripts and tweaks:

Scripts and tweaks are used :
-Improve Performance and GUI Smoothness.
-Improve Battery Life.
-Tweak and Optimize the Android engine!

Useful Info About Tweaks:


The Low Memory Killer is a constant debate between more free RAM and more multitasking capabilities as free RAM (more than 60MB free) is actually wasted RAM.
The Low Memory Killer is actually a feature in the Android OS used to improve memory management.

This is an important feature due to the perennial problem of having low free memory causing lagginess and slowness in launching apps. When you have free memory lingering around the number of 40MB or less, the Android OS just lags like hell.

What this would mean is, you would want to tweak the LMK to not have the situation of it having less than 40MB (or even close to that).
The modern Linux machine in the Android ecosystem relies on a mechanism called Low Memory Killer (LMK) to consistently free up RAM. This is due to Android's internal mechanism of caching apps (and never fully exiting them) when you press the back button. This is to enable faster app switching and provide a seamless experience for apps usage model. Android also, by itself will also constantly look for often used apps to cache them for faster app opening. This will happen even before your system fully boots.

Now, when you mention LMK, the most obvious thoughts that come up are minfrees and Out Of Memory (OOM) groupings. Yes, those two are integral parts when it comes to LMK. The issue here is that no one actually mentioned that there are two LMK systems in Android, that being:
- Linux LMK
- Android Dalvik VM LMK

-This has been a touchy subject here in XDA for most people who debate about it. Most recently,Some Scripts included a way to disable journalism on these partitions:

/system (System is read only, it's safe to remove journalism. However, you will not see speed increase by removing it as you're not writing onto /system 99.99% of the time unless you're using Titanium backup to remove system apps or copying init.d scripts to it)
/cache (Cache can be rebuilt on the fly. Data corruption on it is not game breaking)
/data (All of your data on your phone is here. Removing journalism can risk data corruption. Read more below)

On whether we need journalism or not, I will pose this situation:

Journalism is required to maintain data consistency in events that could lead to data corruption. Data could get corrupted in a number of situations:
- Misbehaving app that constantly writes without syncing/committing data to the disk
- Power loss due to forced reboots or bootloops when data is partially written/committed into disk

-Memory leaks:

If you found out that your Android is laggy after sometime and a reboot will make it faster, then you're experiencing memory leaks. "free" is a command to show your currently free memory. It will not necessarily be the same value as your phone's free memory.


Busybox is required to perform all of your superuser activities in your android phone. There are some problems associated with this when ROM developers decide to use a certain version of Busybox that are incompatible with the binaries that we use in our phones.

Minfree is part of the Kernel used to multitasking and It differs from a Phone to another because of the RAM available in users space.

-Network Tweaks:

There are some Tweaks that are used to increase the speed of your Network browsing,downloading and uploading

-Build.Prop Tweaks:
Those Tweaks can generally be found in Build.prop /system and they are used to optimize overall system speed and battery

-SD Card Speed Fix:
This is a Tweaks that Has the goal of increasing the read-ahead speed of your SD Card,and that by improving your SD R/W speed.

-Smoothness Tweaks:
Well with the Linux Kernel there is a possibility to add some Tweaks to optimize the GUI Smoothness.

-Entropy generator engine:
This engine can reduce lag by keeping a section of the Android file system (/dev/random) full of random bits so that the system does not have to wait for the file system to generate them. 


Zipalign is a tweak used to optimize Android application (.apk) files. The purpose is to ensure that all uncompressed data starts with a particular alignment relative to the start of the file. Specifically, it causes all uncompressed data within the .apk, such as images or raw files, to be aligned on 4-byte boundaries. This allows all portions to be accessed directly with mmap() even if they contain binary data with alignment restrictions. The benefit is a reduction in the amount of RAM consumed when running the application.

Well,what I can say is that I shared those useful Info after some research and my experience with Linux/Unix,and those some of My main Target that I use to find some of the useful info:

-XDA Forums


-Thanks to Darky for the base zipalign script.
-Special thank to pikachu01, zacharias.maladroit,collin_ph and juwe11!
-Big thank to zeppelinrox,Exit_Only and Ryuinferno !
-Big thanks to BSDgeek_Jake for the great hosts file.
-voku1987 and mcbyte_it.
-My Friend Maroc-OS For the big Help!
-Big thank to nolinuxnoparty for designing Fly-On logo!
-Any XDA Member That helped Me out in This Project!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...