yashsingh1/xdaforums huggingface dataset:
[Droid Eris Android Development] Amon_RA:
Does your rom have apps to sd enabled?

It's clearly mentioned in the first post : "Please make sure that your ROM supports apps2sd if you plan to use the ext-features! (/system/sd MUST be available in the ROM)"
[Droid Eris Android Development] kcasner:
Is there more than 1 ROM released? I'd assume it did have apps2sd enabled, as with ext3 it works as I clearly mentioned in my post.

I don't see anywhere in the first post if there is a different ROM with this enabled, how to check if it's enabled, or how to enable it. I'll search some; it's possible I missed it, i'm not an android expert.
[Droid Eris Android Development] Amon_RA:
... Which custom ROM are you using? Did the dev of your custom ROM enable apps2sd or not? And why are you trying to backup apps on your sd if you don't even know if it's supported by your custom ROM or not?

I advice you to contact the guy who made the custom rom and ask him if it's supported or not if he didn't mention it.
[Droid Eris Android Development] jamezelle:
no roms for the eris support apps2sd at the moment, its not really needed. we have 512mb to work with :)
[Droid Eris Android Development] Amon_RA:
Ok :-) So people shouldn't use the ext backup.
[Droid Eris Android Development] jamezelle:
Correct, but i would leave it in the image just incase we need apps2sd for bigger roms. ;)
[Droid Eris Android Development] gohamstergo:
clearly by my post count im new but...

with official 1.5 i only have 159mb of total internal space usable for apps, of which i only have about 10mb free. isnt this what apps2sd is for? to allow sd card space to be used to store apps on?
[Droid Eris Android Development] jamezelle:
Is was referring to the whole mtdblock not just the data partition being 512mb. apps2sd is really mainly used for space constraint phones like the G1 and the Sapphire. As it slows down the phone having to read the apps from the sdcard instead of the nand(internal memory). How many apps do you have installed? if you have used 150 mb in market apps i think it time to delete some old ones :o.
[Droid Eris Android Development] gohamstergo:
most apps arent a problem since they are 1-2mb, some games tho take up to 7mb for me (Like flight director is currently showing 7mb). its not a very big issue as i do delete stuff when i need space. was just thinking itd be a nice option :)
[Droid Eris Android Development] toastcfh:
@ amon

good work on the recovery. i just rooted and flashed it to my wifes eris. got a question for her though. can she get the care bear recovery? :p
[Droid Eris Android Development] billakid:
hey I have a rooted 2.1 eris but how do u install this?? just put it on sd ??
[Droid Eris Android Development] ajavgeek:
Hi,

I have non-rooted 2.1 leak and would like to have rooted one. What are my options?

Thx
[Droid Eris Android Development] gohamstergo:
think it would be possible to allow backups to be renamed? not necessarily in recovery, but anywhere. currently, when you rename them, they no longer work. if you name them back to their original names, they work again.
[Droid Eris Android Development] M4knor:
Has anyone actually tried this on leaked 2.1 yet?
[Droid Eris Android Development] Amon_RA:
Renaming works fine, just don't use spaces or special characters.
[Droid Eris Android Development] gohamstergo:
hmm perhaps i was mislead. was posting on behalf of this thread. they still seem confused.
[Droid Eris Android Development] FireSokar:
Amon_Ra is it possible to make your Recovery when flashing .zip from SD to look in a folder IE sdcard/roms Reason I ask is I store about 5 roms on there and was hoping for a lil cleaner root.
[Droid Eris Android Development] nickespi:
How come when i try to recover the nandroid I made it wont let me and says, I need to use adb? is there a thread on how to load the recovery?
[Droid Eris Android Development] Amon_RA:
Something went wrong, please check the recovery log right after you got the error : /cache/recovery/log
[Droid Eris Android Development] AOD13:
Also, if you have renamed the nand backup folder, make sure there are no spaces in the name.
[Droid Eris Android Development] MrDJ:
Stupid Noob Question

Hey sorry, I am pretty new to this. On the Eris, what is the advantage of creating the partition to the SD card?
[Droid Eris Android Development] ihtfp69:
wrong place for this question. It's so you can move your apps and/or your cache to your sd card. leaves you with lots of space on your phone.
[Droid Eris Android Development] `mods:
I have recently found out that my trackball is messed up on my phone. Oddly enough it is only for the up and down directions. 98% of the time it dosnt work but once and awhile it works for one or two swipes. I have tried cleaning the ball with rubbing alcohol and a qtip with no sucess. I have insurance on the phone but if I go that route I want to put a stock Rom on tge device. The problem is that the recovery menu requires the use of the trackball to navagate the menu, thus I am unable to wipe and flash roms. Is there a way to use fast boot? Is there a diffrent way to fix the trackball? Suggestions? Thank you.
[Droid Eris Android Development] sunder74:
The trackball is pretty easily replaced...you can get them online for between 9 and 19 bucks...They're also instructions for replacing it if you google 6 screws total i think.
[Droid Eris Android Development] Raikalo:
EDIT: This post is irrelevant, because I just realized that I'm using the v1.6.2 recovery anyway.
[Droid Eris Android Development] borgey420:
where are the flashing instructions for this? I just got a eris with rooted official 2.1. All my experience is with the Droid so I am basically a noob to the Eris because it's SOOO different
[Droid Eris Android Development] vantagejuan:
I've already posted this solution in the forum you linked to. The problem is that they were renaming the folder directly under the "nandroid" folder in the directory and this folder can not be renamed.

to make your backups usable again after renaming or deleting the folder, you just have to search your recovery.log for "serialno=" and recreate a folder directly under nandroid and name it exactly as the string of capital letters and numbers that follows "serialno=" in the log. There will be lower case letters right after the string with no spaces in between, and you can not include those or it won't work. Once you've created the new folder, move your renamed backups to the new folder and you can restore them again.
[Droid Eris Android Development] hoban_eris:
I would also love this feature.

I was digging around and jcase told me that clockworkmod's recovery gives this option. As it is open source (located here: http://github.com/koush/android_bootable_recovery, I poked around a bit in the code and saw that it includes a file "extendedcommands.c" which implements "show_choose_zip_menu()" which executes

char* file = choose_file_menu("/sdcard/", ".zip", headers); to choose the zip file.

It looks like this:

// pass in NULL for fileExtensionOrDirectory and you will get a directory chooser
char* choose_file_menu(const char* directory, const char* fileExtensionOrDirectory, const char* headers[])
{
char path[PATH_MAX] = "";
DIR *dir;
struct dirent *de;
int numFiles = 0;
int numDirs = 0;
int i;
char* return_value = NULL;
int dir_len = strlen(directory);

char** files = gather_files(directory, fileExtensionOrDirectory, &numFiles);
char** dirs = NULL;
if (fileExtensionOrDirectory != NULL)
dirs = gather_files(directory, NULL, &numDirs);
int total = numDirs + numFiles;
if (total == 0)
{
ui_print("No files found.\n");
}
else
{
char** list = (char**) malloc((total + 1) * sizeof(char*));
list[total] = NULL;

for (i = 0 ; i < numDirs; i++)
{
list[i] = strdup(dirs[i] + dir_len);
}

for (i = 0 ; i < numFiles; i++)
{
list[numDirs + i] = strdup(files[i] + dir_len);
}

for (;;)
{
int chosen_item = get_menu_selection(headers, list, 0);
if (chosen_item == GO_BACK)
break;
static char ret[PATH_MAX];
if (chosen_item < numDirs)
{
char* subret = choose_file_menu(dirs[chosen_item], fileExtensionOrDirectory, headers);
if (subret != NULL)
{
strcpy(ret, subret);
return_value = ret;
break;
}
continue;
}
strcpy(ret, files[chosen_item - numDirs]);
return_value = ret;
break;
}
free_string_array(list);
}

free_string_array(files);
free_string_array(dirs);
return return_value;
}

I realize that that uses various other functions not found in Amon_RA's recovery, but they are all included in the same file. Could someone with better C coding kung-fu than I have take a look at ripping out and injecting this code into Amon_RA's recovery if he doesn't have the time?
[Droid Eris Android Development] hoban_eris:
Can someone test this?

I did some work merging in the feature from clockworkmod's recovery to install a zip from anywhere on the sdcard. It should be working, but I don't have a build environment set up to test it. Could someone please do so for me and report back?

I've attached a patch that can be applied to the desirec branch of amonra_bootable_recovery. It needs to be renamed to .patch (so just remove the .txt extension I added to be able to attach it to this post).
[Droid Eris Android Development] mrhousto:
Switchrom

How do you install switchrom on this? I use to have a HTC Dream and I used switchrom regularly on RA-dream-v1.5.2 for the Dream. On the eris, I pushed the switchrom.sh to /system/sd but there is no 'Go to console' in the recovery menu. Am I missing something? :confused:
[Droid Eris Android Development] saintdice:
So when are we gonna get a Care Bear? ;)

Eris running Eris Lightning Bolt (CyanogenMOD build)
[Droid Eris Android Development] :
Will anon RA ever be flashable or installable on leak v3 Eris. If so, Someone should write an app to install it without root access, is that possible? Other phones "one click app" for rooting like on the Evo 4G doesn't require root. Or am I wrong thanks.
[Droid Eris Android Development] :
Oh wait they don't have root to begin with. Yea....
[Droid Eris Android Development] Erisftw:
Is there any way you don't have to use the trackball to scroll, due to all the trackball issues i and others are having, this would be helpfull.
[Droid Eris Android Development] Hungry Man:
I don't believe there is :( There's a trackball fix, search the forums for "trackball" and you'll find it.
[Droid Eris Android Development] Erisftw:
No way in hell im taking my trackball out.
[Droid Eris Android Development] Duffman3005:
Well if your rooted then your voiding the warranty anyways... Though the process took me less then 5 minutes, I was just in it for the different trackball color.
[Droid Eris Android Development] Erisftw:
I don't know what just happened but it now magicly works.
[Droid Eris Android Development] Abrasher:
thanks

a million times thank you
[Droid Eris Android Development] Abrasher:
Loving it

I love it, can't wait for an update
[Droid Eris Android Development] hallstevenson:
When in the "apply zip from SD card" menu, how is the sorting or order of ZIP files determined ? It's not alphabetical nor 'date modified'. What order is it using, if any ?
[Droid Eris Android Development] hallstevenson:
** Bump **
[Droid Eris Android Development] scary alien:
I'll try to take a look at this tonight...I've got a early Christmas present for those having trackball problems: http://androidforums.com/eris-all-things-root/214240-amon_ra-1-6-2-custom-recovery-trackball-not-required.html

I just need a little more time to finish my tweaks...:D

Huge thanks to Amon_RA for all of his help yesterday! He's awesome.
[Droid Eris Android Development] hoban_eris:
What about another feature?

Good work!

While you are at it and since you'll be recompiling/releasing anyway, would you mind taking a look at my patch here:

http://xdaforums.com/showpost.php?p=6696965&postcount=51

If it works for you, would you mind including it in your update? Thanks!
[Droid Eris Android Development] scary alien:
I think so...looks like its just some tweaks to the recovery.c file, right? Can you send me or post your modified recovery.c file so I can do an sdiff on it too (makes it easier for me to visualize all of the changes).

Or, if your recovery.c file was created off of the base 1.6.2 recovery.c, then I could just use yours and incorporate my changes in it (since I just did them yesterday, its still fresh in my mind :)).

Thanks and cheers!

edit: I just saw your other post regarding this (http://xdaforums.com/showpost.php?p=6694984&postcount=50), so I realize now that there's a couple of extra things...let me take a look. I want to get the no-trackball-required feature out there for folks, but I would certainly be happy to work on this too!
[Droid Eris Android Development] hoban_eris:
That patch should apply cleanly to the base 1.6.2 recovery.c for the Eris. I would recommend using git to apply my patch to the tree you can find on github and then add your edits and commit them so that your changes and mine are in two separate patches in case there are problems (easier to troubleshoot that way).
[Droid Eris Android Development] scary alien:
Man, another thing / tool I'll have to learn (git patching), lol! :p

Can't be much harder than all the other stuff I've had to learn in the last couple of weeks :D.

Cheers!
[Droid Eris Android Development] scary alien:
hoban_eris,

Any chance you could give a me a quick tutorial on the proper git commands regarding your patch? I'm really a novice with git (I'm a good copy and paster :D) and I figured I might get this done quicker with your tutelage...

I just got the new alternate scroll-up function to work by using the green CALL key/button :D. Add that to the alternate scroll-down function (although I think it now makes more sense to switch these two), now all I need is to see if I can make an alternate selection/confirmation function to replace the trackball-press. So, I'm getting pretty close...

Let me know. Thanks!
[Droid Eris Android Development] hoban_eris:
sure, before I do though, I need to remind myself where the git repo for this recovery is...If you can respond before I find it great, otherwise I'll find it and respond back with the git-fu in a bit.
[Droid Eris Android Development] scary alien:
This should be it...(this is what I've been using, but I downloaded it manually to replace my bootable/recovery -- didn't / don't know how to do it with git :eek: :D):

https://github.com/packetlss/amonra_bootable_recovery/tree/desirec

Thanks!
[Droid Eris Android Development] hoban_eris:
Thanks for being so quick with the response!

I'll get it noted down soon, gotta quickly go exercise with my wife.
[Droid Eris Android Development] scary alien:
hallstevenson,

Amon_RA's recovery.c uses the readdir() function for the "Flash zip from sdcard" menu option.

Since, as you've already seen, its not sorted alphabetically or by modification date, its probably by the inode order in which the file is stored in the (yaffs) filesystem.

I can also tell you that there is no sort or manipulation of the order of the files gleaned from the readdir() call.

Hope this helps. Cheers!
[Droid Eris Android Development] hoban_eris:
git-fu

git clone https://github.com/packetlss/amonra_bootable_recovery.git amon_ra

then copy my patch to the new dir "amon_ra" that's created,

then you should be able to "git apply <name of patch>" or "git am <name of patch>"

then add your work to the file(s) in the amon_ra directory,

then "git commit -a" to commit your changes to your local git branch

then "git push" to push the changes to amon_ra's git branch if you have write access.
[Droid Eris Android Development] scary alien:
Quick question: should I be using https://github.com/packetlss/amonra_bootable_recovery/tree/desirec as the path for the git clone? (or does the patch contain information about the proper tree?).

Thanks!

(I used your command, but I was just wondering how it knew to use the 1.6.2 desirec version...)

edit: I diffed the recovery.c from the git clone with a pristine 1.6.2 copy of recovery.c and there are differences (must be the 1.7.0.1 version???)
[Droid Eris Android Development] hellaFAME_HTCEris-2.1_VZW:
this recovery is the absolute standard for eris i guess right..? well...

it doesnt work for me, well i can flash it and get it on my phone as the recovery fine, but i have the scroll ball [hardware issue i guess] that came up then people dont say much about t now? anyway i cant use this recovery because of that, lame so options? i use clockworkmod but options with this recovery even though i cant scroll, ..?:confused:
[Droid Eris Android Development] scary alien:
Lol! This is exactly what I am working on (this very minute :D).

I've got a version flashed on my phone that uses the volume-UP toggle for scrolling-up through menu items and the green CALL key for scrolling down (i.e., so you don't have to use your trackball for scrolling / navigation (although I'm still working on finding a substitute for a trackball-press)).

I'm working with hoban_eris right now to incorporate some additional file selector/navigation features in it.

Coming soon...:)
[Droid Eris Android Development] hoban_eris:
Haha, oops! I pasted the wrong repo. I'm pretty sure you gave the right URL.

I thought that I was using 1.6.2 but really it was whichever version was in there in June when I pulled the code down. Good luck!
[Droid Eris Android Development] scary alien:
hoban_eris,

Just a quick update...

1. Since the recovery.c I retrieved with the git clone doesn't match my known 1.6.2 version, can you suggest a different URL?

2. I don't think I'll have write access to the Git (there's at least two "Read-only" references on the web page).

3. I've successfully tested vol-UP toggler to replace trackball scroll-up, green CALL button to replace trackball scroll-down, and the red end/power button to replace the trackball-press! w00t! So, I think I've got all my changes nailed-down... Now, I'll just have your stuff to incorporate.

I might crash soon...I stayed-up way too late this weekend due to having to handle some DST time change stuff at work on Sunday morning plus working on this :p.

Cheers!
[Droid Eris Android Development] scary alien:
Mine didn't have a .git suffix...oh, heck, I'll just try it :D

edit: will this work if your patch is based off of a different version? (or this the whole point of having the git?)

2nd edit: nope...didn't work with "https://github.com/packetlss/amonra_bootable_recovery/tree/desirec" ....
[Droid Eris Android Development] scary alien:
hoban_eris,

I'll try to manually incorporate the changes from your patch (and the details in your post just prior to where the attachment was posted). Might take me a couple of days to work on this, but I will give it my best effort.

Thank you for working with me last evening to try to get the source patched. We'll figure this out.

Cheers!
[Droid Eris Android Development] hallstevenson:
Are you taking this over from Amon ? If so, I'd bump the version number up to 1.7.0 or something. If this is truly an "alternate" version and Amon is maintaining his version, you did it right by just appending to the version.
[Droid Eris Android Development] scary alien:
Lol! I don't know about "taking over" :) -- I just tweaked the 1.6.2 version...I don't really know the protocol for doing this (I don't really have any "git-fu" (term courtesy of hoban_eris :D) to know how to (or have permission to) update the github). I'm a little new to this, but, I'm willing to learn...

I was going to change the version number to 1.6.3, but I didn't want to assume anything...or step on any toes. I've got some additional changes I want to play with that hoban_eris suggested/provided, so this (with hoban_eris' changes) might end-up being the next version that I'll merge in with my alternate key changes...

I can email Amon_RA and packetlss back and ask about what the proper thing to do is...or can you suggest anything? I appreciate any feedback you can provide.

Thanks!
[Droid Eris Android Development] hallstevenson:
I would take the advice or suggestion that Amon (and packless ?) give. I only commented so that others users didn't run into any confusion. They may hear "Amon's recovery doesn't need the trackball now" and they download the version in the first post of this thread and guess what ? The trackball is needed... People don't read the whole thread normally, remember ? :D
[Droid Eris Android Development] scary alien:
Yes, thank you for this excellent advice!

I was torn about creating another thread regarding this, since I thought that those with trackball issues should be aware. But I don't want to break protocol or split threads (or disrespect Amon_RA in any way)...
[Droid Eris Android Development] doogald:
Just to put it out there and be clear in case anybody gets confused, this is the MD5 hash of the actual .img file after you expand it from the .zip file, not the MD5 hash of the .zip file that you download.
[Droid Eris Android Development] scary alien:
Thank you, doogald! Excellent clarification (I'll update my post, too).

Cheers!
[Droid Eris Android Development] doogald:
Well, I figured it out myself when I downloaded two different times and got the wrong hash...
[Droid Eris Android Development] hellaFAME_HTCEris-2.1_VZW:
yay for scary_alien

hey scary_alien, youre the sh*t, thanks for the no trackball recovery, now im not stuck with clockworkmod and no options! and i dont have to care that my trackball sucks and doesn't work!!!!!! yay!:D:D
[Droid Eris Android Development] scary alien:
Thanks man, I appreciate the encouragement!

Hopefully, more/better minor tweaks coming this weeked... ;)
[Droid Eris Android Development] Amon_RA:
I'm updating all recoveries to v2.0.0 which includes a filebrowser etc... (see N1/Desire v2.0.0 recovery for more details). Don't ask for an ETA, it'll be released when finished.
[Droid Eris Android Development] orkillakilla:
Awesome. This will be an awesome feature! Can't wait. Keep up the great work!
[Droid Eris Android Development] scary alien:
RA,

Thank you again for all of your recent help...you were very kind in helping me out. I've already heard from several users with trackball issues than are now back on "track ;).

Cheers!
[Droid Eris Android Development] USSENTERNCC1701E:
Lost recovery :o

Not too sure what this means or what exactly I did. I fixed it, so this is purely academic, just wondering if there has been anyone else completely "lose" recovery.

I was trying to flash the posted beta from terminal emulator on the phone. I got a long page full of error messages and ultimately it said flash recovery unsuccessful. So I rebooted into recovery to see what I'd done, and I just got the skating androids for like 15 minutes before I pulled the battery. I booted normally again, tried to reinstall 1.6.2 Amon using jcase's 1 click eris root, still no recovery. So I downloaded ROM manager and let it install CWM, then chose the alternate recovery option, it reinstalled Amon for me. I'm on a campus computer right now, but I will try to recreate later.
[Droid Eris Android Development] USSENTERNCC1701E:
Damn, couldn't recreate, I didn't even download a new copy of flash_image or among, just re-ran

/data/local/flash_image recovery /data/local/recovery.img

I had extracted and renamed the image.

Oh well it works now, Amon's recovery is of course amazing and scary alien's mods sound like quite a boon, thank you both.
[Droid Eris Android Development] scary alien:
Don't know what could have happened... I usually just flash my recovery from my PC via adb commands. I am working on make a phone-only installation method using Gscript. I worked on this last evening and didn't have any issues other than making sure flash_image had proper execute permissions and to "allow" it to run from the SuperUser app request. I'll post a link or instructions here when I finish them.

Thanks for the kind words and I hope my tweaks help out those in need. Amon_RA deserves all the credit...I just wanted to contribute and give back a little where I could.

Cheers!