Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 (edited) Whats the concept of app2sd? What are the advantages? How it works? I know that apps are installed on sd.. but it frees some memory? If yes, How much? Thanks Edited June 28, 2010 by Charlton22
Guest liquid_it Posted June 28, 2010 Report Posted June 28, 2010 (edited) Usually user apps are installed in /data/(app), which is a portion of Liquid flash memory (ie: the so called "rom", not ram), and it's limited to 200MBytes (more or less). In the same partition android will save dalvik-cache (the vm cache, for each installed app) and user data (in data/data) which contains settings, dbs, etc.. You can easly understand how quickly you can use all the given space.. So the trick is to create an ext2 partition on the sdcard, and mount it as the device boots up, making the /data/app directory just a "link" (a symlink) to the ext2 partition. If the sdcard is quick enough (a class 6 is perfect to me) you won't notice lags or slowdowns in phone boot or applications start. On a class 6 I moved even dalvik on sd, with no slowness at all. Obviously you'll need a custom packed boot.img, with a modded init script which mounts the ext2 partition and symlinks the directories to it. (Malez & Phh boot.img do it smoothly) edit: .. and yes it frees up some memory, but just flash memory, not ram. think about apps2sd like an external drive on your pc were you can move & install your programs when your hd is going to be full. Doing so you'll free your main hd, not your ram.. Edited June 28, 2010 by liquid_it
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 Usually user apps are installed in /data/(app), which is a portion of Liquid flash memory (ie: the so called "rom", not ram), and it's limited to 200MBytes (more or less). In the same partition android will save dalvik-cache (the vm cache, for each installed app) and user data (in data/data) which contains settings, dbs, etc.. You can easly understand how quickly you can use all the given space.. So the trick is to create an ext2 partition on the sdcard, and mount it as the device boots up, making the /data/app directory just a "link" (a symlink) to the ext2 partition. If the sdcard is quick enough (a class 6 is perfect to me) you won't notice lags or slowdowns in phone boot or applications start. On a class 6 I moved even dalvik on sd, with no slowness at all. Obviously you'll need a custom packed boot.img, with a modded init script which mounts the ext2 partition and symlinks the directories to it. (Malez & Phh boot.img do it smoothly) edit: .. and yes it frees up some memory, but just flash memory, not ram. think about apps2sd like an external drive on your pc were you can move & install your programs when your hd is going to be full. Doing so you'll free your main hd, not your ram.. AAA i understand.. Thanks alot for the detailed explanation... I'm using the SD card that came with my acer device... What class is that? Is that fast enough?
Guest liquid_it Posted June 28, 2010 Report Posted June 28, 2010 I'm using the SD card that came with my acer device... What class is that? Is that fast enough? should be a class 2, not so fast, but it will work.. just try it!
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 should be a class 2, not so fast, but it will work.. just try it! Thanks, SD CARD This is for nokia... This is good for me or it has to be for ACER LIQUID? Thanks
Guest liquid_it Posted June 28, 2010 Report Posted June 28, 2010 It looks ok. You can use any micro sd/sdhc card up to 32GB. BTW, have a try with stock microsd before buying one..
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 It looks ok. You can use any micro sd/sdhc card up to 32GB. BTW, have a try with stock microsd before buying one.. Yepp i'll i'm just watching some prices... Thanks
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 So.... I followed PHH instructions... Hint: to force APP2SD for all apps, do, in a shell (connectbot, adb shell, better terminal, or whatever.) and as root (ie after su), pm setInstallLocation 2 I gave SU Access... wrote "pm setInstallLocation 2" and got a long text... So what should I do now?
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 So.... I followed PHH instructions... Hint: to force APP2SD for all apps, do, in a shell (connectbot, adb shell, better terminal, or whatever.) and as root (ie after su), pm setInstallLocation 2 I gave SU Access... wrote "pm setInstallLocation 2" and got a long text... So what should I do now? I would appreciate your help... Thanks...
Guest liquid_it Posted June 28, 2010 Report Posted June 28, 2010 (edited) So.... I followed PHH instructions... Hint: to force APP2SD for all apps, do, in a shell (connectbot, adb shell, better terminal, or whatever.) and as root (ie after su), pm setInstallLocation 2 I gave SU Access... wrote "pm setInstallLocation 2" and got a long text... So what should I do now? Wait.. This is Froyo "internal" app2sd feature! If you are testing this, I assume you are running FRF50, the Froyo beta release for Liquid! If so, I can't help if you don't provide us the "long text".. BTW this command just sets the default install location of apps you are going to install to sdcard. If you are not on froyo, well *that* app2sd (using "pm setInstallLocation 2") is not possible. You should use the hack I wrote about, the easyest way is using LCR 1.7 and enable app2sd from malez recovery. Please refer to LCR topic and wiki to find out how.. Edited June 28, 2010 by liquid_it
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 Wait.. This is Froyo "internal" app2sd feature! If you are testing this, I assume you are running FRF50, the Froyo beta release for Liquid! If so, I can't help if you don't provide us the "long text".. BTW this command just sets the default install location of apps you are going to install to sdcard. If you are not on froyo, well *that* app2sd (using "pm setInstallLocation 2") is not possible. You should use the hack I wrote about, the easyest way is using LCR 1.7 and enable app2sd from malez recovery. Please refer to LCR topic and wiki to find out how.. Its a long text.. I cannot write it.. :lol:
Guest akira.pwr Posted June 28, 2010 Report Posted June 28, 2010 Wait.. This is Froyo "internal" app2sd feature! If you are testing this, I assume you are running FRF50, the Froyo beta release for Liquid! If so, I can't help if you don't provide us the "long text".. BTW this command just sets the default install location of apps you are going to install to sdcard. If you are not on froyo, well *that* app2sd (using "pm setInstallLocation 2") is not possible. You should use the hack I wrote about, the easyest way is using LCR 1.7 and enable app2sd from malez recovery. Please refer to LCR topic and wiki to find out how.. I'm using the last version of froyo/eclair of PHH, i tried to put the code with connectbot, but sometimes appear "killed" sometimes appear "action denied", su never ask permissions...
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 I'm using the last version of froyo/eclair of PHH, i tried to put the code with connectbot, but sometimes appear "killed" sometimes appear "action denied", su never ask permissions... yess i saw your discussion on xda.. Myne worked fine.. got su request and gave access Wrote "pm setInstallLocation 2" and a long text was shown... I don't know what I have to do now
Guest akira.pwr Posted June 28, 2010 Report Posted June 28, 2010 yess i saw your discussion on xda.. Myne worked fine.. got su request and gave access Wrote "pm setInstallLocation 2" and a long text was shown... I don't know what I have to do now Reading long text at the beginning i read error, then it show me all commands i can put, so i think the operation was failed and system tells me what i have to write, don't you agree?
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 Reading long text at the beginning i read error, then it show me all commands i can put, so i think the operation was failed and system tells me what i have to write, don't you agree? Yep... Error - Unknown command "setinstalllocation"
Guest akira.pwr Posted June 28, 2010 Report Posted June 28, 2010 (edited) Yep... Error - Unknown command "setinstalllocation" In this case you haven't wrote correctly, i wrote setInstallLocation 2 as i saw in commands, try this, maybe it is case sensitive. Edited June 28, 2010 by akira.pwr
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 (edited) Yep, linux is case-sensitive "setInstallLocation not fround" Should I create any folder on the Memory card? Edited June 28, 2010 by Charlton22
Guest akira.pwr Posted June 28, 2010 Report Posted June 28, 2010 "setInstallLocation not fround" Should I create any folder on the Memory card? In xda phh answered me about this, but i don't remember what... Can't we try with adb commands?
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 In xda phh answered me about this, but i don't remember what... Can't we try with adb commands? Any expert can help us with this? Im trying to install App2SD on phhroyo latest rom.. and I'm stuck at "setInstallLocation not fround" Please help.. Thanks
Guest nameless' Posted June 28, 2010 Report Posted June 28, 2010 http://forum.xda-developers.com/showthread.php?t=706672 Maybe could help
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 In xda phh answered me about this, but i don't remember what... Can't we try with adb commands? Finally mine worked! for Help contact me here.. Thanks
Guest Charlton22 Posted June 28, 2010 Report Posted June 28, 2010 Hey man, did you solve? Yes so.... open ConnectBot, delete your old hosts, insert a new user... It will open a new page.. write su -- Press Enter write pm setInstallLocation 2 -- Press Enter -- <-- Case Sensitive... Exit ConnectBot. Go to settings, Applications, Manage Application, select any application & Move to SD. 80% of the apps can be moved to SD. Good Luck. Reply if successful or not. Thanks
Guest akira.pwr Posted June 28, 2010 Report Posted June 28, 2010 (edited) Yes so.... open ConnectBot, delete your old hosts, insert a new user... It will open a new page.. write su -- Press Enter write pm setInstallLocation 2 -- Press Enter -- <-- Case Sensitive... Exit ConnectBot. Go to settings, Applications, Manage Application, select any application & Move to SD. 80% of the apps can be moved to SD. Good Luck. Reply if successful or not. Thanks Great, it seems to works, but after doing it, i rebooted and it is stuck in a loop boot. For sure i've bring the wrong app, to sd... Edited June 28, 2010 by akira.pwr
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now