yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] LucidREM:
Data2SD

the problem most people are having with moving /data over is that sooner or later something happens that creates an error .. trying to move and/or delete files on that section you get a "stale NFS" report .. there is a method of using e2fsck to fix the error but i think most people have found that leaving /data on the phone does not significantly reduce free space and keeps things running smoothly
[G1 Android Development] LucidREM:
Back To JFv1.51

you should be able to go back without issue .. if you use my all-in-one USA JFv1.51 file it will flash the radio and everything .. if you need the EUR or ADP then the radio is not included in the update.zip
[G1 Android Development] stellarman:
Thank you for the explanation. I will probably just leave it on the phone as you suggest.
[G1 Android Development] VGPOP:
Thank you very much!

I'll try it when I go home today.
[G1 Android Development] LucidREM:
Away From My Keyboard

anyone seeking information from me .. there may be little to give .. i am going to be "offline" for a little while .. son's going thru another surgery etc .. life happens .. just don't worry .. as soon as things settle down for me i can check back on things .. i just won't be responding quickly as usual .. i'm sure everyone will find help from others here
[G1 Android Development] droid240:
i got the new update but no longer have the -au option for the volume controls, anyone know how to get it back? i have v1.51.12
[G1 Android Development] LucidREM:
-au

it's still there
[G1 Android Development] LucidREM:
New Thread

so more and more ROMs are negating the need for my script to include Apps2SD so i am wondering if there are tasks people would like to see performed by the script and/or an app which are tedious and time consuming to type into Terminal that could be done with the touch of a button

any input is always appreciated

http://xdaforums.com/showthread.php?t=553416
[G1 Android Development] enomther:
Hey LucidREM,

I still think your script is very viable and as time wears on, more and more things will come to light that good scripting will make easier.

While you're right on the apps2sd side of things, I still think your script does several good things, in fact here's a quick list of things I'm going to be wrapping (with expsetup) in the upcoming v1.7 series of my ROM's:

1) remount /system functionality

2) sdsplit functionality

3) ext upgrading

4) odex'ing data/app's option

5) obtaining the SPL functionality

6) cleaning out of ext partition functionality

While I'll be wrapping these, they will still be noted as LucidREM Script Functions ;) - So I encourage to continue to find new/creative things to add to your script and I encourage others to share ideas for consideration with LucidREM on potential script functionality additions.

~enom~
[G1 Android Development] kb7sqi:
I'm still providing your script in my Roger's build. :) It's simply a more upto date version of Virtudude's V3 mod. The build don't do auto apps2sd, etc. Your script was the first way I installed my apps2sd when starting out. I even bought your version from the market to provide support & say thanks. Thanks again!
[G1 Android Development] grivad:
Seems like the new app version on the Market is force closing immediately on open, using Cyanogenmod 4.0.4... any ideas? Tried uninstalling and re-installing, no dice.
[G1 Android Development] LucidREM:
Cyanogenmod

i'll have to look thru it .. i haven't seen any errors on TheOfficial .. is this running a different firmware? the 1.6 just came out and i haven't had the chance to test it out
[G1 Android Development] wilnotdie:
as far as I know, Cyanogen 4.04 is using 1.5

The experimental Cyanogen builds 4.1+ are using 1.6
[G1 Android Development] LucidREM:
Script Fix

i just found out my server IP changed somehow .. the new address is: 96.0.187.175

# lucid -m3

# cd /system/bin

if you have TheOfficial you may need to use another location:

# cd /data/expstick/bin

or

# cd /system/sd/expstick/bin

# rm lucid

# rm lucid.lib

# wget http://96.0.187.175/system/bin/lucid

# wget http://96.0.187.175/system/bin/lucid.lib

# busybox chown 0:0 lucid

# chmod 744 lucid

# lucid -u
[G1 Android Development] LucidREM:
New App

for those who like the easy way to download the script .. i just updated the app with the new server info (they just sprang that on me without telling me first .. how rude) .. so you should be able to use the app to download the script
[G1 Android Development] mfrey0118:
Just curious as to why you changed from 755 to 744 and added a separate .lib file...
[G1 Android Development] LucidREM:
New Script

the 744 was just a typo .. 755 should still work .. but 744 also worked (i did it on my own phone) .. the separate .lib file is just to manage the script better .. the smaller file sizes download easier/faster .. the core 'lucid' file typically does not change and (for me anyhow) can make it slightly more stable should something go wrong in the coding .. i'm still tweaking some things and making modifications .. if you use the '-u' or the app from the market it'll do everything for you
[G1 Android Development] mvanwyk83:
I'm using the app from the market but when I type lucid in the terminal it says

Cannot open system/sd/expstick/bin/lucid.lib.

I have root and busybox and I'm running the official 1.6.

What's am I doing wrong?
[G1 Android Development] LucidREM:
Lucid Script

very strange .. so you clicked "Download Lucid Script" in the app and then typed "lucid" in Terminal .. that's all? if your sdcard is there and there's no error messages during the download it should work
[G1 Android Development] mvanwyk83:
This is what it does in the LucidREM app from the start...

I pick the recovery image..

Click the update button to start

[: not found

Downloading Recovery Imag

Wget: not found

Download complete

*then I click download lucid script button

Remounting /system as read-write

[: not found (5x)

Downloading lucid

Wget: not found (2x)

Copying file to /system/bin/lucid

Changing /system/bin/lucid rights

Now you can enjoy all benifts of script.....type lucid in terminal...

*then I go to terminal and type..

Su

Lucid

[: not found

Can't open /system/sd/expstick/bin/lucid.lib

This is what it does everytime I try. Any ideas??
[G1 Android Development] LucidREM:
Lucid Script

what version is the app? 1.60.23 is the latest .. those error messages mean something is not downloading properly .. you must have access to the internet to perform the download

if you do not have the latest that may be the issue .. otherwise i would look at your internet connection .. if you have TheOfficial enomther's latest version (2.2.1) then you should already have the script without the use of the app
[G1 Android Development] mvanwyk83:
I had to flash back to a 1.5 rom and then flashed amon ra v1.2.3 recovery which was my whole intension from the start. Then I flashed back to official 1.6 drc83 with the 2.2.1 expansion and everything is working great. Your app is working great and I can't thank you enough for taking the time to answer to my posts. Your previous posts over the past year have helped me a lot with getting started with rooting my phone, gettings apps to sd and again thanks!! Lucid you rock man!!!
[G1 Android Development] lotherius:
dalvik-cache

There seems to be some confusion on my phone as to whether or not the dalvik-cache is on the SD card. When I run lucid -s, it says /data/dalvik-cache is NOT linked, but it says there is 42.5M in /system/sd/dalvik-cache.

Then when I do an ls -l in /data, it shows dalvik-cache is not symlinked to the SD Card like the other directories are. But, if I try to establish the link in lucid, it says "Nothing was done. /system/sd/dalvik-cache is FOLDER". Also, if I manually enter the /data/dalvik-cache directory and type "pwd" it does NOT show that I've been redirected to the sd card directory as it does for the other apps folders.

So.... is it linked or isn't it? WHy is there an SD folder (with lots of files) if it isn't linked - and yes, I did wipe the ext3 before I installed TheOfficial and have never had dalvik-cache setup for the SD Card.

I then figured "okay if it is not linked"... then deleted the folder from the SD card manually (as it had ADVISED I do), then did lucid -dc -sd again. This time it says "rm failed for /data/dalvik-cache, Device or resource busy"...

Of course, now the directory on the SD CARD is empty, and I'm getting force closes. So.... is it linked or isn't it? Seems like it depends on what part of Android you ask! If it *is* linked, and this is normal, perhaps the lucid -s needs clarified to not list it is UNLINKED.
[G1 Android Development] LucidREM:
dalvik-cache

it is possible to have a folder on the sdcard and on the phone at the same time .. the reason the script stops is that it will not decide for you which one you wish to keep

# rm -r /system/sd/dalvik-cache

will remove the folder and all contents .. if there is a dalvik-cache on the card then somewhere along the lines it was copied and the link was broken .. if you know for a fact the info on the sdcard is sound you can do

# lucid -dc -ln

and it should re-establish the link .. if the info is NOT sound you may run into trouble .. alternatively .. if you are running TheOfficial then do not mess with anything .. the dalvik-cache is not linked for a reason and this is normal with that ROM

the "-s" will show if it is linked .. and also if the folder exists .. that is normal to see that it exists on the sdcard and also not linked by symlink
[G1 Android Development] mdavidf:
Media and SD

I linked my media files to the SD card using, "lucid -m -sd"

When I go to assign a Ringtone, all of the ringtones are listed once (not a problem, but adds to the mystery). However, when I go to assign an Alarm or Notification, they're all listed twice.

I've gone through, twice, and deleted all ringtones, notifications, and alarm tones and pushed them /system/sd/media/audio/(appropriate folders), but the same thing happens.

Can someone please explain to me what I'm doing wrong? Should I push the tones to /system/media/audio/(appropriate folders)? Thanks.

EDIT: Also, if it matters, all of my tones are also stored on my SD Card under a directory called /sdcard/noises/media/audio/(ringtones/notifications/alarms/ui). I was smart enough to NOT name the director /sdcard/media/audio....however, I think if this was the cause then my Ringtones would also be showing up twice.
[G1 Android Development] LucidREM:
lucid -m -sd

you should only be seeing double if they exist on the sdcard .. if you're running enom's ROM you shouldn't need to move the media file to the second partition .. it will actually prevent the update from processing (as i found out)

# find /sdcard -name *.ogg

this will show all files of a certain type .. likewise:

# find /sdcard -name *.mp3

would show just the mp3 file type .. try it out and see if there are files in two locations .. also do:

# lucid -s

and make sure the symlink exists as well .. as stated .. enom's update may fail if you have media moved to the second partition
[G1 Android Development] LucidREM:
Media

yes indeed .. the phone will pick up audio from any folder (reboot sometimes required)
[G1 Android Development] mdavidf:
I was keeping my tones in /sdcard/media/audio/...and it worked fine, except for some delay and I wanted to try something different (because I'm just that way ;) )

Yesterday, according to the result of (lucid -s) the /system/media was NOT linked; however, after I appled (lucid -m -sd), they obviously became linked.

The searches you suggest show each tone in two different places:

/sdcard/rings/media/audio/...

/system/sd/media/audio/...

I still think it's strange that the Ringtones don't show up twice, only the Notifications and Alarms.

Anyway, I'm sorry Lucid, I'm still a little confused. According to (lucid -s), the symlink did NOT exist prior to running (lucid -m -sd), but if I'm reading your post correctly, you're saying the symlink should've existed if I'm running Enom's ROM (which I am). Is this correct?

What do I need to do? Remove the symlink? Remove the tones from /system/sd/media/audio/...and place them in /system/media/audio/...?

I'm just experimenting...that's how I learn, trial and error...obviously I errored...:o

I know you're helping me on two different threads today and I really appreciate it...thanks.

Good to know, I thought I was safe as long as I didn't use the /media/audio/(alarms/notifications/ringtones/ui) structure.
[G1 Android Development] LucidREM:
TheOfficial

with enom's ROM there's no symlink .. the ringtones are deleted from /system/media and placed in /sdcard/ringtones .. there's no real need to symlink and it would also disrupt the removal of the sdcard .. something enom has been working hard to preserve .. thus the reason there's one single ringtone left in /system/media in case the sdcard is removed
[G1 Android Development] mdavidf:
Thanks for your help, again...fortunately, I ran Nandroid Backup before running the symlink script yesterday; so, I restored it and all of my tones are back to normal.
[G1 Android Development] lb fam:
Zip align

So are we good to go with with zip align with the commands "# lucid -z" or is there something else that needs to be done to ensure all apks are zip aligned?:rolleyes:
[G1 Android Development] LucidREM:
All Set

i was troubleshooting .. just make sure you have v1.60.37 and you're all set

# lucid -z
[G1 Android Development] lb fam:
Thanks for your quick reply *worked like a charm:)
[G1 Android Development] cephaus:
is anyone else having problems running "lucid -u"?
[G1 Android Development] LucidREM:
Script Update

you would have to be a little more specific when you say "problems" .. can you narrow it down a little?
[G1 Android Development] cephaus:
it gets stuck at "downloading lucid.txt"
[G1 Android Development] LucidREM:
Change In Server

which version do you have? my server IP was changed about a month back .. it may not be registering the proper address .. check the OP or use the app to download and it should all be sorted out
[G1 Android Development] LucidREM:
New Script Option

so i added a brand new option "-ring" .. this little puppy will check the existence of ringtones in /system and /sdcard and if you do not already have them .. you do now .. this came into the v1.60.67 script

also note: i will try to keep adding more ringtones from the OTA releases from any and all android phones .. the existing ringtones must reside in one of these folders (let me know if any ROMs keep them elsewhere):

/system/media/audio/ringtones

/sdcard/media/audio/ringtones

/sdcard/ringtones
[G1 Android Development] LucidREM:
New Ringtones

i have now added in more ringtones .. total of ninety-nine (99) now including Hero, Sapphire, Dream, Nexus

v1.60.70
[G1 Android Development] BloodyWasHere:
# lucid -app Mms crb43

lucid, what does this option do? what does it download?
[G1 Android Development] LucidREM:
/system/app

this is for the /system/app folder .. you can select various apps and pull the OTA release versions .. this is specifically for anyone who has modified things like Mms.apk and such:

# lucid -app Mms crb43

# lucid -app Maps crb43

there is a whole list
[G1 Android Development] BloodyWasHere:
COOL, any idea where i can get a hold of this list? i know the readme txt in the op has all the commands, but the new ones arent included
[G1 Android Development] LucidREM:
/system/app

you can also choose rc29 instead of crb43 (rc30, drc92, also) .. here is the list so far:

[ $U2 = "AlarmClock" -o $U2 = "Browser" -o $U2 = "Gmail" -o $U2 = "IM" -o $U2 = "Maps" -o $U2 = "Mms" -o $U2 = "Music" -o $U2 = "MyFaves" -o $U2 = "Phone" -o $U2 = "Street" -o $U2 = "Talk" -o $U2 = "Vending" ]
[G1 Android Development] BloodyWasHere:
Total Awesomeness man, Thanks,
[G1 Android Development] LucidREM:
Lucid Script v1.60.75

*FIXED*

the flash recovery options were not functioning properly after the rebuild of my coding .. this has been fixed for anyone wanting the latest recovery images
[G1 Android Development] larrygates:
Move Dalvik Cache back to internal Mem

After trying

#lucid -dc -g1

I get the message dalvik is symlinked, when it says that it isn't after running

#lucid -s

I'm using cyan 4.2.11.1 with linux swap and 10 MB RAM hack. Not sure why I can't move it back.

Also, I couldn't get any lucid scripts to run in recovery. Couldn't mount system/bin

tried

#remount system/bin

failed

#remount system

failed

Not sure how to move dalvik back, as I'd like a speedy phone.
[G1 Android Development] LucidREM:
mount system

i'm pretty sure in recovery you use:

# mount system

i'm not 100% sure but i seem to recall cyan using the union method for apps2SD which is not compatible with symlink
[G1 Android Development] prash:
This has been without a doubt most useful script I've used for android. Thanks for all your work and keeping it updated! I love the ringtones options. One thing though, ever since Cyanogen moved the ringtones to sdcard I've always had them in /audio folder on my sdcard. Seems like this may not be supported by the script?

I have:

/audio/alarms

/audio/notifications

/audio/ringtones

/audio/ui

And it seems to be picked up by system just fine.

This is great because currently I've been manually adding all the various android ringtones I find in system dumps and such online into one place, but if the script does the work for me I'm all for it!
[G1 Android Development] LucidREM:
ringtones

i can definitely add that location into the script .. stay tuned
[G1 Android Development] LucidREM:
ringtones

ok .. v1.60.78 will now check the location of ringtones in these places:

/system/media/audio/ringtones

/sdcard/audio/ringtones

/sdcard/media/audio/ringtones

/sdcard/ringtones

if you have any info on other phone dumps with other ringtones let me know .. so far i only have 99
[G1 Android Development] prash:
This is exactly why I think you're awesome :D thanks! Time to lucid -u then. I have access to Samsung Behold audio files if you want those, let me know (although some of them might be doubles of what we already have too)
[G1 Android Development] JAguirre1231:
You ONLY have 99

Thanks I love this script
[G1 Android Development] toddflygare:
apps2sd

Ok i am sorry to do this but i am kind of a noob. i understand everything but i think there is something that i am just not getting with all of this. no matter what recovery and rom i am using when i try to run the script or the apps2sd program i always get an error telling me that there is no room on the device. I do have it partitioned, but do i only need fat32 and ext2? i do have those but i also have been including a linux swap, should i not? please if someone can help me i would appreciate it very very much. i read alot of the posts but i didnt see anything like this.
[G1 Android Development] LucidREM:
RA-ION

no room on the device would indicate trying to write to /system rather than to the sdcard .. i do not know that the RA-ION supports apps2SD .. you would need to check with the dev in charge of that ROM
[G1 Android Development] NeeceeBabe:
PRoblemmmmm......

Hi can someone please help.... I want to root my phone so my apps can go on my sd card, N also a question do the apps run from the sd card as well with this config?

I Have the HTC Hero.
[G1 Android Development] Vlad83:
Lucid can you please update the readme.txt to the latest features such as lucid -z, etc... Thank you.
[G1 Android Development] LucidREM:
New Script

so v1.61.02 is now pushed out there .. use "-u" for anyone who needs to get a hold of it .. there are a few major/minor adjustments .. major because the coding changed .. minor because it doesn't do much differently

1) removed the second "lib" file back into one single "lucid" file

2) recoded a LOT to reduce the file size

3) added a file for the list of ringtones to be stored on the sdcard

4) now utilizing certain scripts from the outside pre-loaded in ROMs

i am still working on a proper readme and explanation of everything the script can accomplish
[G1 Android Development] nicknowsky:
http://android.lucidrem.us/

thats about the handiest page ever!!!
[G1 Android Development] LucidREM:
ANDROID

yep .. tho i have not been up-to-date on some of the files
[G1 Android Development] LucidREM:
New Ringtones

so the script now does more than just ringtones .. the option has been named "rem" now instead of "-ring" .. it's a little easier to type without the "-" being included

# lucid rem

so this will activate the media updater .. it will pull alarms, notifications, ringtones, ui, and very soon, backgrounds .. i have included files from the media pack handed out by AmonRA .. all files are in ogg format and png .. the script will search various locations and if the files do not exist they will be added .. if you already have the media pack you will have duplicates due to the mp3 format

that being said .. enjoy:

alarms: 18

notifications: 66

ringtones: 133

ui: 7
[G1 Android Development] raphy3:
Edit: nm, found a solution from olearyp.
[G1 Android Development] mfrey0118:
Good stuff, Lucid...beer cometh...
[G1 Android Development] rumsey:
Lucid I'm having some issues doing nandroid backups, my data.img file just expands until it fills up the entire sd card (greater than 2gb). I believe it has something do with the links I have to my sd card since there seems to be some infinite loop happening. You can see a screenshot of the problem at: http://xdaforums.com/showpost.php?p=5544710&postcount=1186

Using -s with your script I can see that /data/app and app-private seem to be linked to /system/sd/app and app-private, but nothing else shows as linked. What does the -ln "restore link" function do, exactly? If I were to run lucid -a -ln what would it do in this situation? Do you have any idea what could be causing this loop? And lastly, what automatically mounts my ext partition as /system/sd?

Thanks for you consideration.

edit: I figured it out, and it was not a link issue.

2.0T /data/data/com.android.browser/cache/webviewCache
[G1 Android Development] LucidREM:
New Script

so i am working out the bugs, but the script is still functional for most things .. there is now a compatibility with CM5 where the second partition is mounted to /sd-ext instead of /system/sd .. there is now no real need to utilize the features of moving apps2SD because this is performed automatically by the ROM .. with the new FROYO features of easily installing apps onto the sdcard this part of the script is pretty much obsolete

ringtone count up to 133 right now .. still searching for more
[G1 Android Development] LucidREM:
Ringtones

now up to 182 ringtones including the myTouch Slide tones .. NOTE: all files are stored as OGG and not MP3
[G1 Android Development] LucidREM:
Lucid Script v2.00.36

so with all the modifications and changes going on i wanted to make sure anyone following this thread knew the OP had changed .. the script is now stored in /data/local/bin instead of /system/bin .. this will eliminate the loss of the script with each flash of a ROM (unless you ALT+W) .. for enom's ROM it should still remain in expstick/bin

there is compatibility with CM5 ROMs now and mount points at /sd-ext

the new menu structure makes it a little easier to execute what you want .. you can still bypass the menu by entering commands directly .. i added the Facebook patching on|off for the G1 to use FB Sync on CM5 etc

you can use the "-aud" option to move all audio from /system to /sdcard .. this one can save tons of space for themes etc (2.5M to 177.5k)

i am trying to keep up with myself and have been adding a Changelog entry in the OP (many have asked and now finally i am tracking my work)
[G1 Android Development] LucidREM:
LuciDROID

check the new add-on

# lucidroid -a // archive entire /data/data to sdcard

# lucidroid -d // delete specified archive by date

# lucidroid -v // view contents of archives (not functional .. yet)

# lucidroid -r // restore entire /data/data from sdcard