Easily Generate and Export Material Design Palletes

For many people, it can be pretty difficult to create a palette of complementary colors. … more

Android One Expanding to Bangladesh, Nepal, and Sri Lanka

At Google I/O 2013, Google proudly announced that the Android operating system was … more

Android 5.0.2 Fixes 2012 Nexus 7! Sony’s Making a Google Glass Competitor? – XDA TV

Android 5.0.2 Lollipop is available for the … more

Early Lollipop Ports for Micromax A116 and A117

It feels like it was only yesterday when Google announced the mysterious Android L.After … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[UTIL][DISCONT'D] CFLagFix 1.90 (ext2+ext3+resize+uninst support)

OP Chainfire

11th August 2010, 05:06 PM   |  #1  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 55,681
 
9,482 posts
Join Date:Joined: Oct 2007
Donate to Me
More
THIS TOOL HAS BEEN DISCONTINUED. IF YOU REALLY NEED A LAGFIX, USE VOODOO. HOWEVER, WITH LATEST ROMS I DONT PERSONALLY FEEL A LAGFIX IS STILL NEEDED, THUS I DON'T USE ONE, AND WILL NOT CONTINUE DEVELOPING ONE



About
Here it is, yet another LagFix tool. It's certainly not the first, but it does offer some things others do not (at the time of this writing).

This patch uses the ext2/ext3 image in /data method.

IMPORTANT NOTICE FOR FROYO USERS
(1) Use ext2. ext3 is NOT supported on Froyo, only Eclair
(2) The installation will fail if you apps installed to SD. Go to Settings -> Applications -> Manage -> On SD card. Click each app and click "Move to phone". In the end, the "On SD card" list should be empty. Reboot. Install CFLagFix. When the fix is installed, you can move apps back to the SD card if you wish.

Features
- Lots of checks to make sure the fix is possible
- This is not just based on a script, but a lot of commands are performed and their results rigorously checked to be what is expected
- You can select (from a set of presets) which folders you want to lagfix
- You can select how big the image should be (between 128mb and all the free space in /data minus 250mb, to prevent low storage space warnings)
- The actual moving of data from RFS to the image is done in a boot loop, while the files are not in use. This minimizes the chance of corruption during move (settings being lost, etc)
- Comes with e2fsprogs, and e2fsck is performed each boot to fix a corrupted image
- Comes with it's own busybox, so no need to install it, and no chance for conflicts
- If an ext2 image is used, it is tuned to not reserve any blocks
- If an ext3 image is used, it is tuned to not reserve any blocks and use journalling
- Also moves databases (safely)
- Uninstall option
- Resize option, resize your partition whenever you want, to whatever (possible) size you want
- "Full automatic" option, this will max out the image size while still preventing the low storage space warning, and will also reclaim the space from the backup folders and automatically resize the image to max again after that space is reclaimed. This generally results in an image of about 1.5 GB. It'll also leave some space in case the system still needs to write in /data but not in the image.
- Progress monitor ("educated guess" about progress, not exact, but pretty close, usually!)

A fair number of these seem to be unique at the time of this writing.

Notes
- e2fsck result is stored in /data/cflf/e2fsck_result.txt
- list of mounted directories is stored in /data/cflf/mountlist.txt
- if ext3 is used /data/cflf/imageisext3 file will be present
- my own test rom is JM2+root-with-update.zip+ClockworkMod

Known issues
- In case the image is heavily corrupted, e2fsck may take longer to fix it than the rest of the boot process. Theoretically this could result in data loss
- ext3 does not seem to be supported on Froyo ROMs JP1/JP2/JP3

Credits
- mimocan, ykk_five, RyanZA, and all others who have chipped in for various lagfixes
- cynogen, e2fsprogs built for ARM
- kalpik, busybox APK
- ofcourse the original authors of those tools as well
- myself, this is all based on ADB Magic code

Donations
Please feel free to donate: http://www.jongma.org/dx.php

Requirements
- Windows
- Microsoft .Net 3.5 framework
- Phone in USB debugging mode
- SuperUser

Before using ...
I strongly recommend using ClockWorkMod and making a backup of your ROM. Just in case Also, during any operation, I advise having your phone hooked up so I can draw power from the computer.

Usage
- Unzip the attached file somewhere
- Make sure your phone is connected in USB debugging mode
- Make sure you have SuperUser installed
- Run CFLagFix.exe

There are three tabs:

Install LagFix
This tab allows you to install the LagFix, and lets you configure some options.

I recommand leaving the "Full automatic" option turned on, if you do, just press "Install !" and everything will be arranged for you. If you turn this option off, you can configure some settings manually, but note that using this does not reclaim wasted space of the backup files.

Note that you can still select to use ext3 instead of ext2, even if in "Full automatic" mode.

When you press "Install !", the program will be finished quickly, but your phone may continue working for 30 minutes or so, and keep rebooting very often. If you have a lot of data installed, it may take even longer.

Do NOT even touch your phone until Android boots up again!

A lot of things are checked before the install will start. You will need about 50% free in /data for the operation to work, but it will check this before making any modifications on your phone.

Resize Partition
This tab allows you to change the current ext2/ext3 partition size. The slider will only let you select values that are actually possible, i.e., bigger than your current data usage and smaller than the total space that could be occupied by the image.

Clicking "Resize !" will reboot your phone and resize the partition. Again, this can take an awfully long time! Don't panic, just wait it out.

Uninstall LagFix
This will uninstall the LagFix. It will completely remove it. Before removing it, however, it will move all files out of the image and back into the normal filesystem again, so no data is lost.

Clicking "Uninstall !" will reboot your phone and perform the uninstallation. Again, this can take an awfully long time! Don't panic, just wait it out.

Note that uninstallation will only work if you are using less than 50% of the device's capacity, but again the program will check this before making any modifications on your phone.

You can only uninstall installations of CFLagFix 1.20 and newer !!

BETA
This is very beta, use at your own risk!

WARNING
This patch is NOT compatible with ANY other lagfix tools. Either undo those completely, or just don't use this. If you were using one of those, I'd personally recommend a complete reflash of the firmware before using this patch.

WARNING #2
Before trying 1.80, please see this post.

Download
<< 1.70: 632
Attached Files
File Type: zip CFLagFix-1.70.zip - [Click for QR Code] (1.52 MB, 2860 views)
File Type: zip CFLagFix-1.80.zip - [Click for QR Code] (1.52 MB, 4854 views)
File Type: zip CFLagFix-1.90.zip - [Click for QR Code] (1.52 MB, 9583 views)
Last edited by Chainfire; 13th December 2010 at 03:33 PM.
11th August 2010, 05:06 PM   |  #2  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 55,681
 
9,482 posts
Join Date:Joined: Oct 2007
Donate to Me
More
Changelogs
1.80, 15-08-10
- Redone some crucial parts of the patching procedure (for all install, resize and uninstall). Should fix all remaining issues!

1.70, 13-08-10
- Added /data/app-private/ folder
- Added progress monitor (estimates.... not exact)
- Moved /dbdata/databases to it's own partition, much faster for smaller read/writes

1.60, 12-08-10
- Updated codebase to ADB Magic 0.9, fixes issues with some weird pre-existing installations of busybox

1.50, 12-08-10
- Added "full auto" mode, "one click" solution for beginners
- Added ext3 support
- Added resize support
- Added uninstall support
- Fixed some issues
- Update scripts

1.20, 11-08-10
- Everything has been moved to /data/cflf/ , this - amongst other things - fixes issues with JP3

1.01, 11-08-10
- Adusted a permission error which could cause the system to be unable to create any new databases

Fix for 1.00 users: there isn't any yet. This is *beep* to fix manually. I would advise this "unpatch" method posted here: http://forum.xda-developers.com/show...6&postcount=29, then repatch with the latest version.
Last edited by Chainfire; 15th August 2010 at 01:33 AM.
11th August 2010, 05:16 PM   |  #3  
Member
Thanks Meter: 11
 
93 posts
Join Date:Joined: Feb 2005
More
CFLagFix.exe doesn't even run for me.

"The application failed to initialize properly (0xc0000135). Click OK to termiate the application."
11th August 2010, 05:19 PM   |  #4  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 55,681
 
9,482 posts
Join Date:Joined: Oct 2007
Donate to Me
More
Quote:
Originally Posted by lyno

CFLagFix.exe doesn't even run for me.

"The application failed to initialize properly (0xc0000135). Click OK to termiate the application."

You sure you have MS .Net 3.5 framework installed ?
http://www.microsoft.com/downloads/d...displaylang=en

The error message is a DLL initialization error... as CFLagFix doesn't explicitly use any DLLs, my guess would be the .Net framework.
11th August 2010, 05:24 PM   |  #5  
Member
Thanks Meter: 11
 
93 posts
Join Date:Joined: Feb 2005
More
Quote:
Originally Posted by Chainfire

You sure you have MS .Net 3.5 framework installed ?
http://www.microsoft.com/downloads/d...displaylang=en

The error message is a DLL initialization error... as CFLagFix doesn't explicitly use any DLLs, my guess would be the .Net framework.

Ah yes! I removed all .net frameworks on this works laptop to be able to install some old COM files. Will re-install and test.
11th August 2010, 05:32 PM   |  #6  
Senior Member
Flag JHB
Thanks Meter: 743
 
2,021 posts
Join Date:Joined: Jan 2006
This looks so awesome! Thank you!

Any chance for open sourcing this?
11th August 2010, 05:38 PM   |  #7  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: Jul 2010
installing now
Well im gonna give this a shot, have just installed the african jg8 and rooted,am doing this fix now.

Then ill try the 1.2 overclock on top, ill post a score shortly .
11th August 2010, 05:40 PM   |  #8  
Senior Member
Flag Helsinge
Thanks Meter: 20
 
1,309 posts
Join Date:Joined: May 2010
More
Not bad though i see one problem... it's windows only ^^
11th August 2010, 05:42 PM   |  #9  
Senior Member
Thanks Meter: 7
 
219 posts
Join Date:Joined: Jul 2010
Quote:

select which folders you want to lagfix

Sorry, bit of a noob here - what exactly do you mean by this? Why would we only want to 'lagfix' certain folders and not the whole thing?
11th August 2010, 05:42 PM   |  #10  
veenone's Avatar
Member
Flag Jakarta
Thanks Meter: 7
 
40 posts
Join Date:Joined: Feb 2008
More
just tried out your tool on my stock DXJF4 (with apps in it, not clean condition). With default size as well (around 1200 mb)
Actually I used mimocan's fix before but everything was wiped by mistake and everything went to default condition.

After the process finished, the Android displayed information about damaged internal SD, but everything was working. Is that expectable?

Now I got 2260 using Quadrant, leap from 1700 with mimocan's fix.


Nice job Chainfire!!
Can't wait to use JM2 / DDJG4

btw, can I post this on my blog? :P

:update :

whenever I open gallery, it always says no sdcard detected... do you know how to fix this? -> it doesn't recognize both my internal & external sd, but i can browse them properly in Estrongs/astro
Last edited by veenone; 11th August 2010 at 05:57 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes