Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
rickylcp
Old
(Last edited by rickylcp; 16th August 2010 at 12:43 PM.) Reason: posted to inappropriate session
#1  
Senior Member - OP
Thanks Meter 12
Posts: 148
Join Date: Mar 2008
Location: Hong Kong
Default [APP] Apps2NAND - fast data access - choose what to move! [added support for Froyo]

I think this better to be posted to Galaxy S I9000 Android Development.
So I posted it once more at here:
http://forum.xda-developers.com/show...17#post7694817

Board Admin, please feel free to delete this.

Hi all,

I took so many from here. It's time for me to contribute little to the community.

The lag issue of Galaxy S bother many ppl.
I tried many different method.
Yes the lag issue was improved and Quadrant score is higher.
But there are always some weird things happen... like sudden lag/black screen.

After I upgraded to firmwre I9000ZSJH1, the lag issue is improved a lot!
But still, there are rooms for improvement.
So I wrote a cmd which will help to generate a .sh file, which will move apps data stored under /data/data/ to the internal NAND memory (/dbdata/data) for faster access.
The Galaxy S built in 1xxMB of fast access NAND memory. It is a waste if we don't utilize them.

However, it is impossible to move all apps' data to the tiny NAND memory.
So here is a tool for you to customize what app's data you want to move.
Recommand to move the core Android apps and the apps that you use frequently.
Like Dialer, Contacts, Dolphin Browser, Facebook, Astro File Explorer......

Steps :

1. open [1.app.list.xls] and edit colume A and B.
colume A should be the data folder name of the apps you want to move.
colume B is the name of the apps (optional)
2. after you've done, simply "copy & paste" everything onto a notepad and save it as [2.apps.list.txt]
3. fireup the [3.Apps2NAND.cmd]
4. within few sec, a file [App2NAND.sh] will be created.
5. use Gscript to load and run the App2NAND.sh file. (the script requires root access. so make sure you have it!)


For experienced user :
Step 1 actually is just for user to manage the apps more clearly.
A user with little cmd knowledge may know the script only requires [2.app.list.txt] to work with.
You can skip Step 1 and directly go to Step 2 to edit the file.
The format should be { app data folder name + <tab> + app name }


Remarks :
Apps that moved to NAND may not be restore with Titanium Backup.
App link will be broken by doing so.


(I also include Linpack and Quadrant to the app list to cheat higher benchmark scores . You may remove it if you don't want to.)
Attached Files
File Type: zip Apps2NAND.zip - [Click for QR Code] (9.2 KB, 126 views)
 
rickylcp
Old
(Last edited by rickylcp; 18th November 2010 at 06:17 AM.)
#2  
Senior Member - OP
Thanks Meter 12
Posts: 148
Join Date: Mar 2008
Location: Hong Kong
Default Apps2NAND - fast data access - choose what to move! [added support for Froyo]

update 18 Nov 10:

Found some friends here still want to use this "old school" lagfix
1st of all, thanks to your support.

When I wrote this script, it was still the golden age of Eclair (2.1). So the script is definitely not prepared for Froyo (2.2).

However, just by changing few lines can make this script survives on Froyo. So here I updated a script for Froyo (apps2nand.Froyo.zip).

I haven't tested it since I am very satisfied with the [Spike Speedy Edition v3.0 OC], which comes with more advanced lagfix options (sztupy).
(I wrote something that even myself don't use now.... So it's really suprised and appreciated~)

But this script still has it merit ~~~~~~~~~ simple!
(and battery friendly, just a feeling~ no actually statistic~)

If you are interested in antique and brave enough, try it on Froyo. And let me know if any issues. I will try my best to fix.

================================================== =

update 18 Aug 10:
Now included Installation and Uninstallation for this script.
Tried several times on my i9000 and it works.

Please read and follow the readme.txt inside the zip.

One tricky part for this script : it will failed when SU permission is not allowed in time during the script is running.
I have pause the script with 10 secs for you to allow the SU on i9000.
Make sure you allowed it.

If you failed to do so, no worry. it won't change anything.
Just simply re-run the script again.


================================================== =
Hi all,

I took so many from here. It's time for me to contribute little to the community.

The lag issue of Galaxy S bother many ppl.
I tried many different method.
Yes the lag issue was improved and Quadrant score is higher.
But there are always some weird things happen... like sudden lag/black screen.

After I upgraded to firmwre I9000ZSJH1, the lag issue is improved a lot!
But still, there are rooms for improvement.
So I wrote a cmd which will help to generate a .sh file, which will move apps data stored under /data/data/ to the internal NAND memory (/dbdata/data) for faster access.
The Galaxy S built in 1xxMB of fast access NAND memory. It is a waste if we don't utilize them.

However, it is impossible to move all apps' data to the tiny NAND memory.
So here is a tool for you to customize what app's data you want to move.
Recommand to move the core Android apps and the apps that you use frequently.
Like Dialer, Contacts, Dolphin Browser, Facebook, Astro File Explorer......



For experienced user :
Step 1 actually is just for user to manage the apps more clearly.
A user with little cmd knowledge may know the script only requires [2.app.list.txt] to work with.
You can skip Step 1 and directly go to Step 2 to edit the file.
The format should be { app data folder name + <tab> + app name }


Remarks :
*** Apps that moved to NAND may not be restore with Titanium Backup. App link will be broken by doing so.
*** Please make a nandroid backup before apply this!
*** I am not responsible for any damage caused by this script.

(I also include Linpack and Quadrant to the app list to cheat higher benchmark scores . You may remove it if you don't want to.)
Attached Files
File Type: zip apps2nand.zip - [Click for QR Code] (69.4 KB, 367 views)
File Type: zip apps2nand.Froyo.zip - [Click for QR Code] (69.4 KB, 143 views)
 
lyno
Old
#3  
Member
Thanks Meter 11
Posts: 88
Join Date: Feb 2005
Is NAND where devices like HTC Desire and Nexus One store their Apps?
 
Jonas.M
Old
#4  
Member
Thanks Meter 2
Posts: 65
Join Date: Jun 2010
well this is almost what paul did some days after the phone got released...
 
sturmeh
Old
#5  
sturmeh's Avatar
Senior Member
Thanks Meter 2
Posts: 441
Join Date: Sep 2009
Location: Sydney
Quote:
Originally Posted by lyno View Post
Is NAND where devices like HTC Desire and Nexus One store their Apps?
Yes, which is why they needed APPS2SD in Froyo.
 
lyno
Old
#6  
Member
Thanks Meter 11
Posts: 88
Join Date: Feb 2005
So....when are you posting the script?

If you want I'll create a program that spits out the .txt file rather than do it in excel, copy paste etc.
 
rickylcp
Old
#7  
Senior Member - OP
Thanks Meter 12
Posts: 148
Join Date: Mar 2008
Location: Hong Kong
Quote:
Originally Posted by Jonas.M View Post
well this is almost what paul did some days after the phone got released...
yes. that's what Paul did as I mentioned in my script.

But he simply push everything to NAND which oneday, you will find out of space.

Using my script, you can decide what to move, depending on the frequency of the apps usage.
 
rickylcp
Old
#8  
Senior Member - OP
Thanks Meter 12
Posts: 148
Join Date: Mar 2008
Location: Hong Kong
Quote:
Originally Posted by lyno View Post
So....when are you posting the script?

If you want I'll create a program that spits out the .txt file rather than do it in excel, copy paste etc.

the script is updated and posted.


the excel is just for user to maintain their app list easily.
my script only works with the txt file.
you may skip the excel part if you like.

and thanks for your offer, lyno.
 
sturmeh
Old
#9  
sturmeh's Avatar
Senior Member
Thanks Meter 2
Posts: 441
Join Date: Sep 2009
Location: Sydney
Is it possible to make a script that automatically moves smaller apps to the nand?

I mean it's not worth moving large games, but anything under 2MB should be considered.

Maybe use some intellegent calculation, if all the apps under XMB use less than 50% of free space on nand, increase X until it is efficiently used up.

Also there is HEAPS of space to be freed in NAND, delete stock ringtones, and other.
 
wliu88
Old
#10  
Senior Member
Thanks Meter 3
Posts: 124
Join Date: Mar 2010
Location: Shanghai
seems great

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more