yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] DreamcastDC:
Ok this is really wierd, I keep getting copy.sh: not found, same with data.
[G1 Android Development] SpyderMS:
I could be wrong, but I think he created some scripts that does all that for you, according to the front post of this thread...

Would save a lot of typing :)

If this is finally working for people now, I think I'll give it a shot myself...
[G1 Android Development] LucidREM:
if you already have the links they don't have to be re-entered
[G1 Android Development] LucidREM:
i didn't put the scripts in the ADP version yet .. wanted to shake the bugs out
[G1 Android Development] mrgzg1:
hey adp1.1h doesnt seems to work it returns corrupt boot.img

pls modify it

i dont hav data plans in india so i cant use rc33
[G1 Android Development] LucidREM:
not sure what that's from .. just using JFs Build Environ
[G1 Android Development] tr.slate:
updates?

Hey Lucid

Thanks for doing this, I tried doing it manually before but screwed it up somehow, but your file worked perfect this time. Much appreciated.

Moving forward, what is going to be the protocol on keeping those who have installed this version updated? When JF releases an updated, will you reconfigure it for us and post it here? Or maybe you can give us noob instructions for doing it ourselves. Just curious cause when the big one hits I want to be able to grab it within a reasonable time. No worries, just trying to help us all know what to expect.

Thanks again.
[G1 Android Development] LucidREM:
yes .. i will be modifying whatever JF throws out there .. i use the modified update RC33 for myself so then i just upload it to my server and DONE!
[G1 Android Development] tannyfiles:
ok..so i managed to make the ext2 partition using the ubuntu live cd...

i wiped out my G1 and installed the modded firmware by lucid...once done..i went to the terminal and typed su..

it asked for some permission and i clicked on yes...

after that when i typed in copy.sh data it said

copy.sh: not found..cud nebudy tell me what that means???am i done moving the data on my SD???
[G1 Android Development] LucidREM:
try this:

#ls - l /system/bin

perhaps you downloaded the old update.zip without the copy.sh
[G1 Android Development] tannyfiles:
dude just download the modified file again...it gives no problem while the adp is gettin updated...it mayb a corruptd downloaded file..!!!
[G1 Android Development] tannyfiles:
well it does show up alot f things...how am i to figure out if i am done doing the procedure or not...am sorry for being so ignorant...but cud you plz help me out wid dis..!!!
[G1 Android Development] LucidREM:
if you find yourself lacking the copy.sh download the copy.txt file to your SD and then do this on the phone:

$su

#mkdir /data/local/bin

#cat /sdcard/copy.txt > /data/local/bin/copy.sh

that should work
[G1 Android Development] LucidREM:
when you "ls -l" the /system/bin you should see the file "copy.sh" so if you don't see it then it's not there
[G1 Android Development] tannyfiles:
ok so it did not return anything..

do i believe that it has been done??

can i just replace apps instead of data there in the commands??
[G1 Android Development] LucidREM:
what did not return anything?
[G1 Android Development] tannyfiles:
this...!!!
[G1 Android Development] LucidREM:
you put the copy.txt onto the /sdcard? once it's copied you can run the copy.sh script
[G1 Android Development] tannyfiles:
ohhh ok...thnx man..!!i ll try it in a while..n reply back...!!!
[G1 Android Development] LucidREM:
only other way would be re-download the ZIP to make sure you have the right one and flash the phone again .. i actually just updated the copy.sh to include and "undoapp" option and "undodata" option
[G1 Android Development] tannyfiles:
when i try running the copy.sh script...it says permission denied...!!!i guess i ll just download the new modded version you just uploaded and try it out...!!!
[G1 Android Development] LucidREM:
if you're using ADP1.5 check the first post .. the codes are now:

lucid app

lucid data

lucid dalvik
[G1 Android Development] MALIC20:
not enoug space

i have flashed and flashed and ran the

lucid app

lucid data

lucid dalvik

i even did the

lucid applink

lucid datalink

lucid dalviklink

my phone storage says i have 73mb of internal storage but when i go to the market it downloads the app and dose not install them it say insufficent storage

i partitioned my sd card corectly i have 7gb fat-32 and 1gb ext2 what can i do im going insane over here trying to figure this one out please lucidrem on any one help me out please
[G1 Android Development] MALIC20:
dont know what happened but i now have a2sd. at first i could not download any apps at all then i did

lucid undoapp

lucid undodata

lucid undodalvik

then

lucid app

lucid data

lucid dalvik

rebooted and now it works its wierd but im not complaining!
[G1 Android Development] nxhefner:
Is anyone else having an issue with WiFi?
[G1 Android Development] bdaboy338:
how do i undo this process?
[G1 Android Development] deadite66:
just upgraded from JF 1.43 UK to ADP1.5 and it worked perfectly o/
[G1 Android Development] LucidREM:
Possible Change

i am testing out the unionfs method of apps2SD versus the link method everyone has been using up until this point .. i just felt a post was in order to let people know i may be switching how i process the SD mods in the future .. guess we'll see how it all goes .. currently running it on RC33 and only a couple minor hiccups
[G1 Android Development] magnus0322:
Thank you!!!

Lucid...

I appreciate your hard work. I had used your A2SD mod for RC33. I now switched over to ADP1.5.

I followed the instructions in your script text file and now have everything working great. Keep up the good work!!!
[G1 Android Development] DroidDev:
lucidrem i dont know how but i skipped the undo actions and it works i have installed 35 apps and still have 60mb avail....:confused: any insight as to why??
[G1 Android Development] eagle001:
Thanks for the good work; worked like a dream.

So if I understand correctly, any upgrade form now on can be any JF image? Only if I perform a wipe, I have to run the scripts again (and use your modified image)?
[G1 Android Development] LucidREM:
Testing One Two Three

ok .. so anyone feeling lucky?? i want to test out the conversion from the normal method of apps2SD to the unionfs method .. if you would like to be my test subject please raise your hand

ok .. so raising the hand doesn't work well when i can't see you .. so try sending a PM to me instead .. this should be a seamless conversion minus the need to uninstall and install apps that may force close on you .. the end result as i have seen thus far is a more stable environment for the apps
[G1 Android Development] memphisraynz:
LucidREM,

I have recently updated to your 1.5 and implemented apps to sd.

I just got a HTC 3in1 adapter so i can listen to music and charge at the same time. I trie to use the 3.5mm headphone jack and it didnt work.

I looked through some forums and it seems to be a known problem, and that it has been solved under the DUDE's edition. Just wondering if you know about the issue or if you have plans to implement the fix into your version.

Cheers
[G1 Android Development] LucidREM:
i'm not sure .. first i've heard about this .. but if it has to do with the symlink of the files then the fix would be to unionfs to the SD instead .. i put together an ADP1.5 update.zip file to do exactly that .. change from symlink to unionfs .. if you wanted to find out from DUDE if that's the fix you can PM me for the link to the new update.zip
[G1 Android Development] eagle001:
@LucidREM:

Does this require a new app2sd move from a (new) image, or is it a patch onto your present config?

Does this change the consequences in regards to not having to create symlinks again after updating the image to a new version? I mean, is it easy upgrading to a new jf version in the future with symlinks or unionfs?

Thanks.
[G1 Android Development] LucidREM:
i made an update.zip to remove the symlinks and then unionfs instead of linking .. if you read thru MarcusMaximus' thread there's tons of info .. bottom line that i have seen is the phone is more stable .. a few minor glitches like having to uninstall and reinstall some programs .. but overall less hang ups from having stuff on the SD .. i have /data/app, /data/app-private, /data/data, /data/dalvik-cache all moved to the SD and am having less trouble than before
[G1 Android Development] gimiento:
great! when are you going to post it? thanks for all the work.
[G1 Android Development] custom374:
Hey I read in your first post that you should use a 2/4/8GB class 6 sc card. What about a 16GB class 6? Would it work good?
[G1 Android Development] hiroots:
i need help. i just flashed modded 1.5 app2sd rom. i allowed su always have access. then i typed the complete comm. list. i reboot and my screen freezes/no memory. i used partition manager 10 and followed kay's tut. what am i doing wrong? am i supposed to have apps on my fone first, then do the comm list? or only type parts of the comm list. i really need your help guys, its been 3 days and i always come up with the same result.
[G1 Android Development] G1Dennis:
What do you mean with the complete comm list?
[G1 Android Development] zerolgk5:
excuse me, my noob is hanging out...

Out of curiosity, is there a way to move select apps to the phone and keep the majority on the sd card? I've noticed certain apps aren't running as well sinced I moved them to the sd. Keep up the good work, btw. I don't think the whole process could have been made any easier, so thanks!
[G1 Android Development] djdeviance:
Quick question. If I want to move from my 16g card down to my 8g card. How would I move the data from the partitioned segment of my 16g onto my 8g? or would I just have to resort to reinstalling all apps then moving to SD again?
[G1 Android Development] djdeviance:
Also does a 16g card no class and 8g card class 6 make a difference in phone performance?
[G1 Android Development] Asswipe44:
Good work Lucid, when is your next RC33 update.zip coming out? Also, how does unionfs differ from standard symlink?
[G1 Android Development] LucidREM:
the unionfs simply merges the two locations instead of linking .. i created a few scripts to assist people but currently i have a couple people testing my ADP1.5 update.zip .. i made the changes on my RC33 manually and it's been working fine .. i have apps, data and dalvik-cache on the SD without problems
[G1 Android Development] goldfish524:
I'm sorry for the noob question (because I am a noob) but which steps am I suppose to follow if I've already rooted my phone with JF cupcake 1.5?

Btw, I've been lurking here for a while now. Love the work/help you guys put in here. Thanks a million.
[G1 Android Development] Ryanmo5:
Personally i think you should stay with the method you started out with lucid, works far better in my opinion.
[G1 Android Development] LucidREM:
i think there can be built in support for both methods .. but we'll see .. i have tested the unionfs and have had far less troubles than before .. minus a few minor troubles like the wallpaper issue .. once i get the RC*1.5 i'll know a little better
[G1 Android Development] Ryanmo5:
I am using the new method now and have found no bugs or problems whatsoever so ignore that last comment haha. Thanks for the hard work man its appreciated!
[G1 Android Development] memphisraynz:
Quote:

Originally Posted by Darkrift

can you detail what you did? I would like to edit my current build to get it working.

you have to make your HeadsetObserver to handle h2w UEVENTS with SWITCH_STATEs higher than 1.

it's actually pretty simple fix in frameworks/base/services/java/com/android/server/HeadsetObserver.java

see https://review.source.android.com/9780

I found this info from here - http://xdaforums.com/showthread.php?t=511704&page=4

Hope this helps
[G1 Android Development] question.com:
if i already had my apps on the sd, what do you recommend? i flashed your method and it seems to have workedm but a few apps keeps force closing (browser)
[G1 Android Development] LucidREM:
with apps and such already on the SD you should be able to use JFs update.zip as he inserted support for the EXT2 partition
[G1 Android Development] question.com:
only thing i want to know is, can i just flash to your js build, run the scripts, and everything should be fine? im guessing it will make the links to the apps

just noticed this when i was running the scripts

$ su

# lucid app

busybox cp -a /data/app /system/sd

rm -r /data/app

ln -s /system/sd/app /data/app

busybox cp -a /data/app-private /system/sd

rm -r /data/app-private

ln -s /system/sd/app-private /data/app-private

# lucid data

busybox cp -a /data/data /system/sd

cp: target '/system/sd/data/com.android.browser/databases' is not a directory

rm -r /data/data

ln -s /system/sd/data /data/data
[G1 Android Development] LucidREM:
ok .. then it seems you have an error there .. so you should be able to:

rm -r /system/sd/data/com.android.browser/databases

but i'm not 100% sure the outcome .. but somehow it looks like a folder became a file
[G1 Android Development] question.com:
ill try right now and see what happens

update

thanks for that, worked great. your the man!!!
[G1 Android Development] paperskye:
Bricked phone for the second time. Doing a factory wipe and starting over again...
[G1 Android Development] cidica:
nice mod lucid. working great here so far :)
[G1 Android Development] paperskye:
I am an idiot and need help....

Okay, I did a factory wipe.

Then I did the two updates for 1.5 from this post and rebooted, no problems yet.

Then ran lucid app, lucid data and lucid dalvik without any errors.

I reboot and I get stuck at the Android loop for the third time.

The SD card is a FAT32 / EXT2, with the EXT2 being about 600MB using Paragon.

Can anyone help me? I know it is probably something small and retarded that I am doing wrong...
[G1 Android Development] iso67:
hi, what is happening to me? After wiping and flashing, when I run the telnet command su, it stack in the black screen and after few second it says

"Activity Su request (in application superuser permission) is not responding" force close or wait

and from here I can't go on. if i say close I wont have the # prompot on terminal!

what is my problem?
[G1 Android Development] question.com:
i think 600 mb is too much. i have 495MB and its plenty. i have like 60 apps/games installed. i suggest formatting your ext2 partition, and starting fresh. and ehat two updates are you doing? it should only be one (unless you needed to flash to the newest radio). the radio should only be flashed once.
[G1 Android Development] cidica:
My ext2 is sitting at a gig and I've yet to have issues
[G1 Android Development] paperskye:
I have only heard that 1.5 GB+ would be troublesome. I tried reformatting the card before.

I flashed both the radio file and the JFv1.5 just to be safe, but still got stuck at the dreaded Android loop.
[G1 Android Development] paperskye:
Another successful bricking....
[G1 Android Development] Asswipe44:
Force Close Experience

To everybody that's been having problems with this Apps2SD mod, I think the only way to fix any problems, specifically forceclosing, would be to #copy.sh undodata. I have finally gotten my phone to where I want it in terms of theme, apps, and data, but not without my fair share of bricks (I think I've had to start over 4 times and when I say start over I mean from flashing the dreamimg.nbh). All in all, I think it takes a lot of time and patience if you're as picky as I am. My advice to anybody doing this would be to set up the links, ie. copy.sh data and app at the very beginning and only then begin installing apps. I've done this the past two times and the only reason it wasn't successful the first time was due to some acore stopped working error. That being said, once you start having **** force close on you, try the undodata option. If even then there are glitches and force closes, your only viable option is to factory reset and start over.

I hope this universally answers all related questions, like "my ....... force closes, what can I do?" In my experience, it's just not possible to fix the G1 once it starts behaving like that..
[G1 Android Development] f4phantomii:
....unless you are like me and have way more apps installed than the phones internal memory can hold.

Thus I can't move apps back to internal mem prior to trying the unionfs method.

I've been trying to figure out what to do for about a week now. I'm back down to 11mb of internal memory even will all my apps moved to the SD card.

I'm ready to try the unionfs method, but it doesn't seem like any of the simple ROM package updates (Dude, JF, LucidREM) support this yet.

Am I wrong?
[G1 Android Development] LucidREM:
have you moved dalvik-cache yet? i gained 15M with that one
[G1 Android Development] lisalover1:
If I update this without using the wipe option for updating, will all the personal data be erased on my phone? Also, let me clarify what I should do:

1. I copy the update.zip to the root of my SD Card.

2. I restart my G1, hold down the HOME+POWER buttons, and select only the update option.

Is this correct? Also, this is the modified version of the cupcake update, right?
[G1 Android Development] t1h5ta3:
ok, so its late, i went and did the new spl. all was good, was running tje jf1.5, decided what the hell, id try doing your version on the reflash, got distracted while reading, then started to type in the scripts for the early stuff, it wasnt working, then in a fog i read the newer instructions ( have had a2sd on 1.43 and on 1.5) and just started to go line by line. i noticed that one of the scripts took forever and was rolling tons of code, didnt think much of it.

well now it doesnt matter what i try, i cant get apps to sd to work. ive wiped etc, tryed hykuro's, dudes etc... none of the a2sd will work.

i think i some how screwed up the data or delvac files?

help?
[G1 Android Development] Asswipe44:
Correct. None of your data will be erased as long as you follow your procedure.
[G1 Android Development] mfrey0118:
Ok obviously I am missing something. I've tried every apps to sd and cache to sd method out there and they all work for about a week then I start getting force close and have to wipe and reinstall update and start over. Doesn't matter if it's JF, Dude, or Haykuro's builds with latest spl and radio, it still happens. So now I read this thread and I am supposed to do...what exactly? what is this "lucid" txt file? Am I supposed to copy that to the root directory of sdcard? How to I run the script? I can't convert it to sh file it only saves as .txt file in Windows. Should I go to my ubuntu partition?

You say here are the new commands for 1.5 (which is what I have) what OLD commands were there??? All I see on this post is a lot of dates and revisions to the file and

#copy.sh app

#copy.sh undoapp

#copy.sh data

#copy.sh undodata

What? Can someone give me STEP BY STEP how to handle this lucid file and ALL COMMANDS I NEED TO TYPE IN TERMINAL EMULATOR NOT ADB? PLEASE?????

I currently have Haykuro's latest build.
[G1 Android Development] LucidREM:
$su

#cd /sdcard

#wget http://xdaforums.com/attachment.php?attachmentid=182816&d=1241537591

#mount -o rw,remount /dev/block/mtdblock3 /system

#busybox cp lucid.txt /system/bin/lucid

#chmod 755 /system/bin/lucid

#lucid app
[G1 Android Development] mfrey0118:
Wow that was fast. I will try this tomorrow. Thanks LucidREM. I assume that if I currently have the ln -s symlink method that I should wipe and format the ext2 partition first? While I have your expertise at my disposal, should I reduce my ext2 partition size? Is 1 GB too much? Have you found the best way to move caches?
[G1 Android Development] LucidREM:
well the "ln -s" symlink method is the same thing i use .. just automated .. you shouldn't need to wipe anything at all .. but i have been recognizing some very small errors moving /data/data over to the SD by any method .. 1G should be a good size .. and i wouldn't really try moving caches .. i gained 15M by moving the /data/dalvik-cache
[G1 Android Development] mfrey0118:
OK so you don't even bother trying to move the webView, market caches, etc?

Hey man, I know you're busy with real problems, not this newbie crap and I appreciate you helpin' the little guys :D
[G1 Android Development] lovethexi23:
Problem.......................

Ive followed all the instructions and updated by phone to the jf update listed in this post and tried to type in the commands..........but it keeps saying

copy.sh not found

What the hell am i missing???
[G1 Android Development] Androidandy:
You dont use Copy

If you read the first page, it says use Lucid as the commands
[G1 Android Development] xSeri:
Thanks for all your work. I got my SD card working in a matter of minutes.
[G1 Android Development] LucidREM:
New LUCID Script File

ok .. so for anyone who does NOT wish to flash / re-flash etc .. just do this:

$su
#mount -o rw,remount /dev/block/mtdblock3 /system
#mkdir /sdcard/tmp
#cd /sdcard/tmp
#wget [url]http://files.lucidrem.us/jf/system/bin/lucid.txt[/url]
#cat lucid.txt > /system/bin/lucid
#chmod 755 /system/bin/lucid
#chown 0:2000 /system/bin/lucid
#lucid

this should remount /system as writable .. create the tmp folder (unless it exists already) .. download the newest script file .. copy it to the bin folder and set the permissions .. and when you type "lucid" it should display the appropriate commands that can be done

there is a built in script to update itself .. type "lucid lucid"

there is a built in script to mount /system .. type "lucid sys"

otherwise .. follow the prompt for the available options .. ie:

#lucid app sd (moves + links apps to /system/sd/app)

#lucid app int (moves apps back to /data/app)
[G1 Android Development] thefunkygibbon:
wow thats nice and easy to follow. thanks for your work on this.

out of curiosity, does this use the new "improved" method of apps2sd which is described a few posts down or is this still using the normal symlink method? I assume you still dont touch the davlik at all?

and is there no point in running this if you've previously run your older methods?
[G1 Android Development] LucidREM:
this is still symlink method .. i've found problems with the unionfs method with which i am not comfortable .. with this script all future changes to the script can be acquired by typing "lucid lucid" .. you can move dalvik-cache with this script:

#lucid dalvik sd

the script does not need to be run if you already have symlinks .. this new script will actually check for symlinks before attempting to move files .. i'm attempting to build in safe guards so people don't "accidentally" lose files while trying to do something with the linking process
[G1 Android Development] Lakers3408:
I tried this with an error " cannot create /system/bin/lucid: read-only filr system

I went from JF RC33 1.42 to JF ADP 1.5... I had the apps to sd under 1.42 and had no problems going to 1.5.

What I want to DO is UNDO the #copy.sh data it lags my phone to much.
[G1 Android Development] Lakers3408:
Disregard previous post...

Did a whipe and was able to do as instructed and I also moved Dalvik and Cache by

#mkdir /system/sd/dalvik-cache

#busybox cp -a /data/dalvik-cache /system/sd/dalvik-cache

#rm -R /data/dalvik-cache

#ln -s /system/sd/dalvik-cache /data/dalvik-cache

#reboot

My memory went from 45mb used to only 3mb!! :D

My question is by doing ALL this did I UNDO the #copy.sh data which I was trying to accomplish in the first place?
[G1 Android Development] gimiento:
Worked perfectly, thanks!
[G1 Android Development] LucidREM:
if you had the copy.sh script file it would just be "copy.sh undodata" to move back to the phone .. once you wipe it deletes /data completely so you are now starting from scratch

ls -l /system/sd

this shows the folders on the EXT2 partition .. you can then one-by-one delete each folder you no longer need .. ie:

rm -r /system/sd/data
[G1 Android Development] jmotyka:
Ok I got to the part where I do chown 0:2000 and I get no user found and when I did cat lucid.txt /system/bin/lucid it ran thru the script and then told me no such file or directory. Thanx in advanced