Sony to Extend its AOSP Program to Other Devices

Sony will be offering its users the possibility to use AOSP ROMs as an alternative to the … more

Project Ara Smartphone Will Run Modified Android L with Hot Swapping

Project Ara is a very exciting topic–both for hardware and … more

Streamline Android Theme Customization with Graphic Porter

I dont have a custom theme on my Android phone, and the reason for this is because … more

Boost the Brightness of Your Sony Xperia Z1’s LED

I think the last time anyone has ever used a physical torch to find their earphones, … more
Post Reply

[FIX] UPDATED - Real fix for the "stalling/lagging" problem

13th July 2010, 06:09 AM   |  #1  
OP Member
Flag Amsterdam
Thanks Meter: 3
 
37 posts
Join Date:Joined: Jan 2008
I have made a custom kernel to mount an ext3/ext4 partition on the sdcard at the boot time.

to be able to use it:

-- you need an external sdcard: partitioned as follows:
- partition 1 (fat32) / for your storage needs
- partition 2 (ext3/ext4) / for program database

This implies that instead of making a symlink to the /dbdata directory, you will make a symlink to the ext3 partition on the sdcard.

Advantages:

-- you have the freedom of creating that partition for your needs ( mine is 1gb)
-- after applying the lag fix posted on the forum I still had that lagging after a while, but now my phone is flying

And here it is:

Prerequisites:

-- an external sd card partitioned in 2
-- the ext3 partition must be the 2nd one, otherwise this won't work, so Partition 1 ishould be fat32, and partition 2 ext3 or ext4
-- use gparted or paragon hard disk manager to make the partitions and format them (just google how to do this)

How to:

-- download the tar file attached to this post, this includes the modified kernel which supports ext3/ext4 and automounts the ext3/ext4 partition when you restart your phone
-- put the phone in download mode, just like updating the firmware
-- fire up Odin and attach the phone to the USB

-- choose only the PDA section and put the downloaded tar into there ( do NOT choose repartition or something else otherwise you will loose settings)
-- it should finish within 5 seconds and wait till the phone is booted

when booted (assuming you already have busybox)

adb shell
su -
busybox cp -rp /data/data /disk/
busybox mv /data/data /data/data.bak
busybox ln -s /disk/data /data/data

to fix market issues:
busybox mv /system/media /disk/
busybox ln -s /disk/media /system/media
reboot

when booted you should see your 2nd partition of your external sdcard is mounted on /disk and your program database in residing in it.

If you do it like this you won't loose any personal data or settings.

Remember this does not depend on any specific firmware, so you are free to try it to on any firmware

If you want to try out the kernel with ext4 support I have attached it below. The same steps should be taken to mount the 2nd partition as ext4, but create the partition as ext4.

My personal experience and benchmark results are showing ext4 is faster than ext3. But ext3 is there for many years and ext4 is stable stated from kernel versions 2.6.3x.


Download v3 (ext3):

http://www.multiupload.com/5QAVQBU6GB

Download v4 (ext4):

http://www.multiupload.com/Z8TGXRRNCS
gr, Mimo from Holland

for the ones who like watching instead of reading Oblivia made some great video tutorials:

Part1: http://www.youtube.com/watch?v=a7fDBJOzQw8
Part2: http://www.youtube.com/watch?v=S26ny2UGBBU
Last edited by mimocan; 11th August 2010 at 07:44 PM. Reason: added download link
13th July 2010, 06:47 AM   |  #2  
Member
Thanks Meter: 2
 
65 posts
Join Date:Joined: Jun 2010
Well first thanks. Will try it when I flash the new firmware

Sent from my GT-I9000 using Tapatalk
13th July 2010, 07:31 AM   |  #3  
dahool2008's Avatar
Member
Thanks Meter: 0
 
37 posts
Join Date:Joined: Nov 2008
More
Thumbs up
tested...runs completly smooth now. after opening many apps - also smooth. with the old stalling fix-i get after many apps open little lags. but this is great.

good work done.
13th July 2010, 07:36 AM   |  #4  
OP Member
Flag Amsterdam
Thanks Meter: 3
 
37 posts
Join Date:Joined: Jan 2008
Thumbs up
thanks for testing dahool,

next step will be putting apps onto this partition and testing the speed.

am really glad that you see improvements.

Quote:
Originally Posted by dahool2008

tested...runs completly smooth now. after opening many apps - also smooth. with the old stalling fix-i get after many apps open little lags. but this is great.

good work done.

13th July 2010, 07:41 AM   |  #5  
dahool2008's Avatar
Member
Thanks Meter: 0
 
37 posts
Join Date:Joined: Nov 2008
More
Question to anybody who did former use app2sd on a other android mobile. did it drain the battery if the sd card is constantly used? like with this fix here.

a big top is-i has only a class2 16gb sd card and it runs completly smooth with this fix. (opened bis apps like copilot and many games-no lag anymore)
13th July 2010, 07:43 AM   |  #6  
Junior Member
Thanks Meter: 0
 
5 posts
Join Date:Joined: Jul 2010
Hi Mimo, great job!
I just have a question regarding the SD card. Could you please tell us which card (brand, class) that you are using? I am thinking of buying a new one and would like to be sure that I don't mess it up

Regards,
Fredrich
13th July 2010, 07:44 AM   |  #7  
dahool2008's Avatar
Member
Thanks Meter: 0
 
37 posts
Join Date:Joined: Nov 2008
More
@Fredrichc I have a really cheap Toshiba 16gb Class2 and everything is smooth. Don't think you have to pay for a expensive Class 6 card for this fix here.
13th July 2010, 07:51 AM   |  #8  
Junior Member
Thanks Meter: 0
 
5 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by dahool2008

@Fredrichc I have a really cheap Toshiba 16gb Class2 and everything is smooth. Don't think you have to pay for a expensive Class 6 card for this fix here.

Awesome, thank you for the quick reply!

Regards,
Fredrich
13th July 2010, 08:00 AM   |  #9  
Senior Member
Thanks Meter: 933
 
2,403 posts
Join Date:Joined: Sep 2008
I don't think there is any read-speed difference with the higher class card anyway is there? Isn't it the write speed only that the classes reference?
13th July 2010, 08:04 AM   |  #10  
dahool2008's Avatar
Member
Thanks Meter: 0
 
37 posts
Join Date:Joined: Nov 2008
More
Attention: There is a bug in this fix. When i want to install from market i get "there is not enough space for this installation". Can reproduce this on two mobiles.
i think it's a permission error on /disk - compare this to normal permissions on /data/data
Last edited by dahool2008; 13th July 2010 at 08:18 AM.

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

Advanced Search
Display Modes


Top Threads in Galaxy S I9000 Android Development by ThreadRank