yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] dandarandan:
I have a question regarding apps on system/app.

Hi Lucid,

I've searched this 70+ page thread and this (quote above) was the only thing that came close to answering my question so I figured I'd better get a definite answer.

Before installing your build I was using JF's latest RC9 build. I had also moved 8 of my apps to the */system/app* directory to protect them from a wipe. I wiped the phone a few times recently because I'm enjoying messing around with it and this kept my 'core' apps right there so I didn't need to re-download or run a nandroid restore.

When I installed your builds it wiped my apps from the */system/app/* directory, leaving only the default apps. This is not a major issue because I can quite quickly push them back from my PC to the system partition but it made me wonder:

1) When you release the next update I assume this will wipe my core apps once again - is there any way I can prevent this?

2) Does moving the apps to the SDHC card protect them from being wiped in this way and/or when using *alt-w* in recovery?

When I say 'core' apps I mean things like PhoneFinder, GPSTracker and SIMchecker; apps that will help me find my phone if it gets lost or stolen - so I'm really interested in having these apps somewhere where they can't easily be wiped (or manually removed as in the case of simply removing the SDHC card!).

I would really appreciate it if you (or anyone else for that matter) can answer my questions or point me in the right direction for answers even =D)

Dan

P.S. Sorry about all the parentheses!
[G1 Android Development] G1Dennis:
UPDATE:

Sow, since nobody had an idea yesterday i decidet to start messing around a bit and i now wish i didn't. I definitly made things worse.

Here's what i did:

Since Lucid said my partition might not be big enough (500M would be), i thought: "maybe i did the partitioning wrong". So i decided i should do it again. Create new partitions, wipe phone, flash the MOD version again, use terminal and type: su -- copy.sh app

So i used ubuntu live-cd for the partitioning. But when i tried to format my SDcard (8GB SDHC) i got an error and i needed a new basic partition. Ubuntu said the standard was MSDOS partition. After i did that I made a new "extended partition" with a "logical" ext-2 partition of 1000 Mbit. Then i made a primary partition of ± 6.400 Mbit Fat 32. Formatting now went smooth. But, after the formatting i unmounted my phone from my PC and the phone said: "SD card unreadable". And when i looked under settings-> SD card and phone storage -> i see: Total space: unavailable, available space: unavailable, unmount/eject SD card, not touchable.

The weird thing is, when i mount the phone to the PC i still can use the SD card's FAT 32 partition. Sow, the computer still recognizes the SDcard but the phone doesn't.

Well, that start me thinking: "how can this be? Maybe i did it wrong? Let's try it again!" So now i tried it again using my 16GB Sandisk card. Stil 'the same problem. Then i tried again with a 1GB card. Also didn't work.

Ok, i now have 3 Micro-SD card's unreadable to my phone!!!!:)

Great work not?!!! haha,

call me stubern but i'm determened to get this working. Can someone please help this fool??? What do i need to do to get my SD-card readable to my phone again?

Thank you very much:D
[G1 Android Development] LucidREM:
each time you use an update.zip it writes over the /system section of the phone .. each time you ALT+W it writes over the /system as well as /data/ sections of the phone .. if you put your apps on the SD (/system/sd) the only thing you lose during a wipe of the phone is the /system/sd folder and the links to the SD within the /data section .. these can be recreated to link back to the SD .. just don't use my script to recreate the links .. i am going to be modifying the script for links only but running the whole script will write over the existing apps
[G1 Android Development] LucidREM:
i actually didn't say it wasn't big enough .. 500M is more than enough .. but some people have had problems with partitions larger than 2G and have had to make it smaller

one thing you do not want to do is mount the card to the computer thru the phone .. if you are utilizing apps to SD then you could end up with trouble .. windows does NOT recognize the EXT2 partition .. it is possible that windows has caused an error on the EXT2 partition trying to mount it thru the phone .. improperly unmounted cards will not work right .. you cannot just disconnect from the computer without unmounting

also .. i just noticed you said you made an extended partition .. both of these partitions MUST BE made primary and nothing else .. you MUST make the FAT32 first on the card .. the EXT2 is second .. but both are primary partitions
[G1 Android Development] theorion:
If i may "Budge in" I purchased a while back a tool called Paragon Partition something, cant remember atm since im on my laptop. But i used that to partition my sd card, after having botchied it up, i had to use it one time, and one time only, through the phone to get the entire sd partitioned into one fat fat 32, then my sd card reader would accept it, and i just slammed it in there. Afterwards i created the fat 32, and made an ext2 with 1.5gb Worked FLAWLESSLY ever since :P. I Hope you manage to get yours working!

Sidenote: I did have to whipe the phone, since i used apps 2 sd, and mounting the card on the phone corrupted the data that a LOT of the apps used, also some of the internal android apps started force closing / locking up, or not even starting! But one whipe fixed this! thx to wi-fi and a backup tool, i only had to use the data conx once to actually enter the gmail process.
[G1 Android Development] G1Dennis:
Both Lucid and theorion thank you for your reply. I now see i did two things wrong. I need to partition not with an extended partition but use only primary partitions and i need to unmount the MicroSD card from the phone and use a cardreader??? when partitioning/formatting.

There's only one problem: I have an older Notebook with a cardslot and it wont recognize SD-cards higher then 4GB. Do you know if it wil useing a cardreader?

And i still don't understand why my notebook

does

recognise my SD/card when mounted tru the phone, but my phone does not when unmounted from computer. any idease?

I might try the paragon tool. Do you know wich one you used?

Again thanks for helping! Gues i can use it! :o
[G1 Android Development] kizer:
Yeah that would be nice if your script would create the link seperate too.

Maybe copy.sh createapplink

Or something of the sort or worst case just update the very beginning thread with the ln -s stuff so we can just retype it. However having it in a script thats hard to forget is slick and honestly I've used your script a few times without even thinking because it just seems to work very well.
[G1 Android Development] vicmanf:
Had the same issue

Go here

http://code.google.com/p/android-wifi-tether/

from your phone and download "signed_andTether_0_97rc2.apk"

this new tether should work for phones with apps2SD
[G1 Android Development] PitchDarkShadow:
after i flashed my g1 with jf rc33. my phone wint load anymore, it stays on the G1 screen
[G1 Android Development] M3 SMGII:
I also installed all my apps on my SD card. I used a 2gb memory for testing.

Now I want to use my 8gb memory card, but if I insert my 8gb card all my apps doens't work and market also not.

How can i copy all my apps from my 2gb card to the 8gb card or how to install all the apps back to the phone and to do the "busybox" commands again?
[G1 Android Development] songoku119:
I wouldnt worry about it too much. You can always just redownload them as they will be in your download list when you go back to the market. If its a necessity to retain apps for some reason, get a program like Astro that will backup all your UNPROTECTED apps to a directory on the sd card. Any other paid or protected apps your going to have to redownload. Take note though that these will all reinstall as non-market apps and as such you will not get update notices for them.
[G1 Android Development] LucidREM:
check the thread for doing that .. step by step directions are pretty easy using linux .. copy to the desktop and then back to the new card
[G1 Android Development] cronin4392:
alright so i followed the directions on the first page, and when i typed:

b. #copy.sh app

c. #copy.sh data (OPTIONAL)

i got a message that said something like:

blah blah blah is read only and that it couldnt do the action, but then another line came up which said "MOVE (something) DONE"

does that mean it worked correctly?

edit:

whole process ****ed up my phone...
[G1 Android Development] M3 SMGII:
Which thread is it? I do not have Linux, only Windows:o

Do you mean the thread for installing apps on my sdcard?I already did that.

Now the thing I want is eveything from my old sdcard to my new sdcard and there are 2 options:

1)copy everything to my computer and then to my new sdcard (doenst work, I tested it)

2)put all the apps back on my phone and then insert my new sdcard. Then run de linux commands again with terminal emulator.
[G1 Android Development] G1Dennis:
Succes

Hello Lucid,

Just wanted to let you know that i got it working!

Thank you for the help.

Greetings!

Great work.

P.S.

Wil this also work when we update to 1.5 / cupcake?
[G1 Android Development] LucidREM:
shouldn't be a problem .. i hear JF is going to put out the root'd version and then i'll be able to modify it for APPS to SD
[G1 Android Development] LucidREM:
this is my post:

http://xdaforums.com/showthread.php?p=3522300

isn't the search feature wonderful ....................................
[G1 Android Development] M3 SMGII:
ok thx!:D

But I do not use Linux, how to do it in Windows?
[G1 Android Development] LucidREM:
read the thread and ask them .. i really don't know if there is a way .. windows (FAT) systems do not use permission settings like linux (EXT) so there may not be a way to do this .. if you know for sure there is enough space on the phone you could try "copy.sh undoapp" but it will fail and possibly crash your phone if too many apps are installed
[G1 Android Development] M3 SMGII:
hmm, I wont try it then, I know i will brick my phone then because I'm noob:D
[G1 Android Development] Minker17:
Easy question that I'm sure has been asked dozens of times. Can I flash this strait from JF RC33 WITHOUT wiping?
[G1 Android Development] LucidREM:
yep .. this is JF RC33 with the modified files for the second partition .. no wiping should be needed unless you start talking about themes etc that could have other modifications and such

just remember that you should have the card formatted properly before flashing this version .. also 1.5 should be coming out soon
[G1 Android Development] Strapt:
ok sorry to bother you about this but I have a question about the partioning part of the card. do you absolutely NEED to have the fat32 first and then the ext2 second?

reason why I ask is because when I make it with the ext2 first and the Fat32 second then my comp will recognize the card when I plug it in .. BUT when I have the fat32 first and the ext2 second then my comp says that I must format it to open the card.

and i just attempted to install the JF 1.42 MOD with a formatted card in fat32 so I could get the update copied to the card from the comp and its hanging at the G1 screen .. lol. .. ohhh man

so really it comes to .. how do i get the updates needed to this thing if I cant get my comp to recognize the card due to how its formatted? or my backed up apps for that matter from the comp to the card? Thanks for any help on this

oh and a side note . after I apply your MOD update what will it say under kernel/build??
[G1 Android Development] LucidREM:
my update.zip is identical to JFs as far as the info is concerned .. i only added the stuff for apps to SD

not sure why your card is not recognized but yes .. the FAT32 must be first and the EXT2 must be second .. they must both be primary partitions (did i mention that?) .. you can't have extended or logical etc .. the phone pulls the first partition into /sdcard and the second into /system/sd and it is looking for specifically formatted sections

my best guess is your partitions are not being produced right if the computer only recognizes FAT32 on the second one .. it should be the other way around .. only on the first one
[G1 Android Development] Strapt:
Hmm I am going try some other options with the partitions. But another thing that I didn't quite get from your original post about the wipe. I currently am back on the jf 1.42 RC33 if if I go to your mod do I need to wipe the phone before I flash my phone? Reason why I ask is I got some error message about some process force closing when I booted up ... may have also had something to with me having an all fat32 card (was gonna try to partion it after but it didn't work).
[G1 Android Development] Minker17:
Well, everything seems to have gone well. 62mb free!

Sorry to ask (again). Apps downloaded form here on out are automatically installed to the SD?

The cache I moved, what cache was that exactly?
[G1 Android Development] LucidREM:
cache? not sure

with the link set all apps now go straight to the SD
[G1 Android Development] Asswipe44:
JF 1.5

first off, thanks to lucid for this modification to JF's build. I ran into some snags initially and only recently found out that the best way to format the sd card is through a gparted live cd. Now I have 80 apps with 62mb free, very happy!

Anyway, just wondering if it's worth updating to JF's new 1.5 build as ive heard some issues with certain apps as well as latitude not working.

If I do choose to update, how do I go about doing this? I don't want to ruin the appstosd already set up on my phone; can I just flash my phone with the update.zip without wiping or do I have to start all over?

Noob question: I'm running JF 1.42_RC33, what would be the advantages in updating to JF's ADP? Wouldn't it be better to wait for JF to release 1.5 on my build, then update?

Sorry for so much questions..
[G1 Android Development] bdaboy338:
i went to get a class 6 sd and the clerk told me that they stop selling them coz not much device uses them.

i have a class 4 8gb, can i use that to do this?
[G1 Android Development] davil124:
yeah bdaboy338 but we cant assure u dat it wont lag...
[G1 Android Development] Stryder5:
I would like to know this as well.

On a different note, let's say my sd card got corrupted and most of my apps aren't working so I wish to reformat it. What will happen to my phone since I have apps and cache moced?

Alternate situation, can I wipe the card then restore everything via ndroid backup?
[G1 Android Development] bdaboy338:
one more thing, im running JF 1.5, is it the same procedure to do it with that rom?
[G1 Android Development] Stryder5:
You can buy Class 6 cards on newegg :)
[G1 Android Development] azn624:
I am currently using a class 4 8gb and is it ok to use it and how much better would the class 6 be?
[G1 Android Development] azn624:
I moved all my apps to the sd, but after that, how do I get to them.
[G1 Android Development] Stryder5:
Just use them like normal.
[G1 Android Development] antempire4:
Lucid,

Are you planning to release an update of your mod for 1.5?
[G1 Android Development] karloe:
JF's ADP1.5 is A2SD capable, no "update" needed.

(and, looking at the thread title, an update is imminent :O )
[G1 Android Development] Dcandvolcom1:
How would I know what class my SD card is?:confused:
[G1 Android Development] Asswipe44:
it usually says it on the packaging your card came with. for example, my transcend 8gb has an 8gb sd logo and right next to it is a number 6 circled to signify the fact that its class 6. as far as i know, there are 3 possible classes: 2, 4, and 6. If its class 4, there should be a circled 4 next to the logo. in parallel, if your card has no number next to the size logo, its most likely a class 2 (the g1 comes with class 2)
[G1 Android Development] bdaboy338:
can computer manager in vista make the partitions on the sd card, if not, where can i get an app to partition the card? ANYONE!!
[G1 Android Development] azn624:
I used paragon partition manager with my vista...could dl the trail or dl through torrents
[G1 Android Development] Asswipe44:
just a quick observation. if you use appsinstaller to install apks from your sdcard, it somehow still seems to be installing to the actual phone memory rather than the ext2 partition on the sd card.

anybody got a workaround for this?
[G1 Android Development] bdaboy338:
i moved theapps to the sd card. i have a class 4 card and it lags. if i do a wipe will it go back to storing the apps to the phone?
[G1 Android Development] G1Dennis:
ADP JF's 1.5

Yesterday i updated to 1.5. But now it seem i no longer have app's 2 SD. Phone storagememory dropped immidiatly from 61 to 45 Mbit. When i try: # copy.sh i get: "copy.sh: not found"

I did not have to wipe the phone when updating to 1.5.

Thanks for replying.

Gr. Dennis

Holland
[G1 Android Development] Dantehman:
Thats because you dont need to run these commands when using 1.50, JF has already added this functionality into his ROM see this from JF site and then follow this for the Apps to SD Card feature, follow the

Setup in 5.0.1

onwards to do so

:cool::D
[G1 Android Development] Dantehman:
Additionally with JF 1.50 try having a look at this;

http://xdaforums.com/showthread.php?p=3627492

and installing the app :D:D:D
[G1 Android Development] G1Dennis:
Thank you,

I followed the instructions, but how do I get my allready installed app's on phone memory, to SD?

Thanks for replying
[G1 Android Development] Dantehman:
You could *try* the Apps2SD app in the market/off here but im not sure what this will actually do so best to wait till it has been confirmed by another source
[G1 Android Development] LucidREM:
if you're running RC33 i would wait for the 1.5 to be released .. the ADP is the developer's version that has some stripped down features
[G1 Android Development] LucidREM:
i will be posting an Apps2SD ADP1.5 update.zip tonight
[G1 Android Development] antempire4:
Thats great news. I love this thread and really appreciate your work.

Thank you.
[G1 Android Development] Asswipe44:
is it possible to move dalvik to the sd card? also just wondering if that improves phone performance/reduces lag for anybody out there with a class 6 sd. if so, it seems like a good feature to implement in lucids script.
[G1 Android Development] jleake:
just wanted to say I finally got this to work. I'm an idiot and finally realized what I was doing wrong, thanks for the instructions.
[G1 Android Development] LucidREM:
ADP1.5

so ADP1.5 is out (waiting impatiently for RC etc)

JFv1.50_ADP1.5_REM

i made a small change to the script file .. now named "lucid" instead of "copy.sh" as i think the word "copy" was confusing some people .. the apps are actually moved and not just copied .. so with the link in place it's a one time deal .. no double scripting needed

so here's the deal:

* lucid app

* lucid undoapp

* lucid data

* lucid undodata

* lucid dalvik

* lucid undodalvik

let me know if there's any trouble .. but this does have the modified files to retain apps on SD .. just update and go .. don't forget the radio update .. check the post#1 for that info .. and if you don't already have the 1.43 recovery.img file you can find it here

JFv1.43_Recovery
[G1 Android Development] Androidandy:
modified adp1.5 rom

Well Lucid, you have done it again, a simple way of putting apps, data etc to sd.

Ive gone from 23mb to 73mb of free internal memory :D

Edit: Spoke too soon, browser force closes, I'm testing other apps.

Ok I wiped and flashed Lucid's rom again. I tried the browser worked before moving apps, ok

I then moved apps, this worked ok.

I then tried data and this error came up

memory has improved to 45 mb

browser tried to force close, but I let it wait a few seconds and for the moment it still works.

I'll keep trying my applicaions to see if any other erros are thrown up, but for the moment it seems to work

Andy
[G1 Android Development] FuMMoD:
would it be a bad idea to use this for Haykuros ADP1.5?
[G1 Android Development] LucidREM:
looks like there's a file that won't let you copy over it .. is that the Terminal app?
[G1 Android Development] Androidandy:
Yes that is the terminal application. Ive been playing with the phone, it seems to have settled down and is working ok. 46mb free internal memory. I havent used Dalvik. My card is a class 2 but was working fine on previous 1.1 version with apps and data to sd
[G1 Android Development] LucidREM:
class6 would be a good upgrade .. with a quality card you could clear off another 15M with the dalvik .. i haven't heard of any problems with it .. unless there's some thread out there i haven't seen
[G1 Android Development] G1Dennis:
just to besure

Hey Lucid,

Thank you for your work. I'm definetly going to try this. But i have a question before doing so (sorry if it's a stupid question).

When i updated from RC-9 to Dev 1.5 i firts needed to instal a new radio from android. JF said: "This build is based on the official HTC ADP1.5 image. You should install the 1.5 radio from that HTC page before using this build."

Do I need to re-instal de recovery img 1.43 or is the ota-radio-2_22_19_26I enough? Thank you for replying.

Greetings

Dennis,
[G1 Android Development] LucidREM:
there are three components .. the recovery image is there in case you didn't already have it .. the ADP1.5 does not contain the recovery image .. from what i can gather the recovery image is only flashed once and you shouldn't need it after that

the radio update is a must .. if you already updated the radio to the new then that does not need to be done again

the ADP1.5 update.zip file is what updates the phone .. now my version has my script thrown in there .. from what i've been reading thru the last few days JF with the aid of others has actually built in the apps2SD within the update.zip so all you really need is my script .. kudos to them for that one .. buried somewhere deep inside the boot.img from what i'm told

so if you do not want to flash the phone again and already have the ADP1.5 running you should be able to just download my script file and save it in the appropriate location and then run it
[G1 Android Development] Androidandy:
When I need to change my SD card for a class 6, can I just partition the new card and install into the phone. Will the phone then rebiuld and populate the new sd with all he folders etc, or do i need to copy files over to the new card?

Andy
[G1 Android Development] LucidREM:
since there are no apps or anything stored on the phone from the SD so there will be nothing to repopulate .. you would need to copy the files over from the old card to the new card .. there's a whole thread about how to do that one here somewhere
[G1 Android Development] AMANTEGA:
when I try to write "lucid app", the answer is "Ext2 not Mounted".

What's the problem, please? I have the Fat32 and the Ext2 partitions.
[G1 Android Development] LucidREM:
that's a new test i put in there because of all the trouble with people's partitions .. when the EXT2 is created there should be a "lost+found" folder on your SD card .. this script is testing for that folder .. if you are completely sure you have the EXT2 mounted properly you can just

mkdir /system/sd/lost+found

and then the script will work .. i will have to ask "Mr Fix-It" MartinFick if his script formats the EXT2 with or without the "lost+found" folder .. my apology for any inconvenience .. some people were trying to move the apps without the EXT2 properly mounted and therefore caused problems on the phone .. i just wanted a test in there to make sure the card was visible
[G1 Android Development] AMANTEGA:
Thanks for your quick solution. But the new answer is "mkdir failed. Read-only file system.:(