[MOD][SCRIPTs][TWEAKs]Fly-On Mod�V5.0 Special Ver/Feel The Smoothness!/Upd:5/08/15

slaid480

Inactive Recognized Developer
Oct 3, 2011
3,387
7,082
0
Meknes-Rabat
[MOD][SCRIPTs][TWEAKs]Fly-On Mod�V5.0 Special Ver/Feel The Smoothness!/Upd:5/08/15



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
 * 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.
 */
YOU CAN NOW USE THE NEW FLY-ON MOD APP : Click here

Index :
-Post 1 : Introduction to the Mod and general FAQ.
-Post 2 :Technical info and explications about Tweaking Android.
-Post 3 : Download links.
-Post 4 : changelog.

Introduction :

Hey guys, many of my friends (xperia users) asked for a special Optimized version of my Fly-On mod for your device, and so today I made an intial build based on the universal V5.0 Alpha4 for testing.
It's a WIP, that means im going to work progressivly on improving and optimizing this version of the mod for xperia devices.


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 Signed_Fly-On_Mod_V4.0-Alphax.zip 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" every 24 hours.
-zipaligndata: Zipalign apps in "/data" every 24 hours.
-98fly_engine: Contains various tweaks and improvements. (3G/VM/sysctl/kernel/battery life tweaks etc.)
-sqlite_optimize: Optimizing database of apps every 24 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/ :
-sqlite3
-zipalign
-Openvpn

+/system/etc/rngd/ :
-entro
-entropy
-rngd

+/system/lib/
-libncurses.so .




Frequently asked questions:


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 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 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.




How to use Fly-On Mod,after full installation :

+To manage entropy engine,type in terminal :


Code:
su
Entropy_engine
To check if the files are correctly installed type in terminal:

Code:
su
Fly-On
+To uninstall the Mod,type in terminal:

Code:
su
uninstaller

Notice also that:


- 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 :

Using Alpha6 - Best cure for my old SGS1 running 4.2.2. Thank you, works even better than SC V6
The script is great!!!!!!!!!! Really feeling comfortable at 312MHz-156MHz/Smartass V2/noop, which under these settings without the scripts would make me miserable
Version 8 has awesome boot time, only 38 seconds for me:D
this version is awesome. ram usage is very low 150 mb only.Superb work haha:):(:victory::silly:
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.

╔╦╦╦═╦╦╦╗╔╦╦╗
║║║║║║║║║║║║║
║║║║║║║║║╠╬╬╣
╚══╩═╩══╝╚╩╩╝
Working great and faster on MIUI rom.

░░░░░░░░░░░░▄▄
░░░░░░░░░░░█░░█
░░░░░░░░░░░█░░█
░░░░░░░░░░█░░░█
░░░░░░░░░█░░░░█
██████▄▄█░░░░░██████▄
▓▓▓▓▓▓█░░░░░░░░░░░░░░█
▓▓▓▓▓▓█░░░░░░░░░░░░███
▓▓▓▓▓▓█░░░░░░░░░░░░░░█
▓▓▓▓▓▓█░░░░░░░░░░░░███
▓▓▓▓▓▓@░░░░░█
▓▓▓▓▓▓█████░░░░░░░░██
█████▀░░░░▀▀███████

Sent from my GT-S5570 using Tapatalk 2
@slaid480

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

I put this script in PAC 4.2.2 ROM.. working fine.. it give more performance on my phone.. thank's dude :D
Ty man for those awesome tweaks
Instaled on rom stocklite v8...no problems its working well :thumbup:
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 :D


Credits:


-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!
-Google!


The source:


you can find my source on the Github: https://github.com/Slaid480/Android-Universal-Fly-On-Mod/tree/Beta
If you have any feature's request use pull request.




If you liked this mod,please rate this thread to 5 stars and press the Thanks button and if it's possible buy a coffee for me,it will help me to work, support and keep this project up to date!


Click here to donate!
 
Last edited:

slaid480

Inactive Recognized Developer
Oct 3, 2011
3,387
7,082
0
Meknes-Rabat
About Android tweaking

This Post is reserved for sharing various information about Scripts/Tweaks used to Tweak the Android system through the Linux kernel.

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:

-LMK:

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


-Journaling/Barriers:
-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:

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:
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:

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.

Credits::

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
-Goolge
 
Last edited:

slaid480

Inactive Recognized Developer
Oct 3, 2011
3,387
7,082
0
Meknes-Rabat
Change Log

Fly-On Mod™ V5.0 Alpha5 Special:(29/07/2015)
-Initial release.

Fly-On Mod™ V5.0 Alpha6 Special:(3/08/2015)
-Added initial AROMA installer support !
-New Killer script, to replace media killer script.
-Ram manager : Added KSM tweak.
-Improved the fstrim script.
-New fstrim binary.
-Updated Entropy binaries for better performance and battery life.
-Updated the zipalign binary.
-Minor fix to Fly_engine .
-Deleted I/O scheduler tweaks for now.
-deleted Touchscreen script as it was causing overheating issues
for some users; thanks to [email protected]
 
Last edited:

slaid480

Inactive Recognized Developer
Oct 3, 2011
3,387
7,082
0
Meknes-Rabat

slaid480

Inactive Recognized Developer
Oct 3, 2011
3,387
7,082
0
Meknes-Rabat
Thanks for the Mod, Im going to test it and report.
Waiting for your report :D

am having a locked bootloader s0 on stock odex rom
You need an unlocked bootloader.

Would this work on Note 4?

Sent from my SM-N910P using Tapatalk
This version is optimized for Xperia devices, look at my universal Fly-On Android thread.

This look interesting :D , will try it on nicki with CyanogenMod 12.1 build 20150729.
Thanks sir !!!
Every report is appreciated.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone