yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] youngstacks74:
thanks man
[G1 Android Development] alritewhadeva:
This is excellent! You are definitely becoming my favorite android developer :)
[G1 Android Development] Thats BS:
I agree. At least it seems a lot faster but maybe I'm too mesmerized by the color to notice things like time. ;)
[G1 Android Development] m0nst3rr:
Hey guys, when i type in su

it tells me sh: su: not found

and why i try using the command i get

sh: flash_image: not found

this also shows up if i try doing this through the adb shell, any help?
[G1 Android Development] PSP_Hacker:
Wiping prompt please (!!)

Anyone can accidentally select the wipe option if they meant to apply an update. Being how the trackball is, it can scroll down accidentally if the ball is rolled just enough... therefore wiping the data and cache partitions.

Please make a prompt like this:

------------------------------------------

Initiate wipe/factory reset?

[Y] Yes

[N] NOOO!!!
[G1 Android Development] mrcrs:
or you can slide the KB out and press the appropriate buttons accordingly.
[G1 Android Development] kizer:
I can't speak for anybody, but I'm going to guess the roller ball issues is just and issue for those that can't flip out their keyboards. ;) Meaning unless I'm wrong the roller was intended for a device that doesn't have a keyboard.
[G1 Android Development] Crackbone:
He has been since the first iteration of his ROM.

It's been by far the most solid one I've tried. Just solid all around and now this, wow. :)

Making he happier with my G1 everyday. :P
[G1 Android Development] nolageek:
The rollerball issue is an issue for people with or without a keyboard. The people without a keyboard have no choice but to use it, and it is a risk - I've wiped twice by accident already lol (The second time was literally 30 seconds after the first time - I've learned my lesson now and use the keyboard.:)

The point being - it's VERY easy to accidentally wipe right now - and it will be more of an issue once people without keyboards are using this recovery image.
[G1 Android Development] cyanogen:
I'm working on it now :rolleyes:
[G1 Android Development] cyanogen:
Posted 1.2 which will prompt for confirmation (press HOME) before wiping data. Also renamed fix_permissions.sh to fix_permissions- seems that some people were running it from /system/bin instead if they had one of my ROMs installed.
[G1 Android Development] Thats BS:
Nice. You really implement suggestions fast. Thanks once again!
[G1 Android Development] TheDudeOfLife:
Hoooray!!! Now I don't have to make a new recovery!

Cyanongen, you make me happy.
[G1 Android Development] pshadey:
Thats when you know your good^^^^^^^^^
[G1 Android Development] Chedderknight:
nothing but epic awesomeness from cyanogen
[G1 Android Development] TheDudeOfLife:
Well, I think cyan knows how I feel. This is not a competition it's a community.
[G1 Android Development] Stryder5:
Much respect for you to acknowledge that :D

On another note, download link isn't working for me :(
[G1 Android Development] eleme:
Gah! 1.2 came too fast! No worries, I've flashed it now. :)

<3
[G1 Android Development] Abolfazl:
Screenshot of v1.2 :D
[G1 Android Development] malaeus:
so, noone has answered the question yet, how do we trigger scripts such as fix_permissions from the console!, every time i use it in terminal emulator i end up with issues such as broken apps (g1 thinks its not there, but it is and it eliminates the icon and access to the app, i have to find it in the market, install it, uninstall it, install it, then when it disappears after the second install, i have to install it again!. whats going on? will that be fixed by using it in the recovery console. and whether it is or not, how do i use it in the recovery console... sorry ive just asked this 5 times now, and havnt got one response.
[G1 Android Development] nolageek:
Thank you for saving me from myself! :) Love the prompt before wipe. :)
[G1 Android Development] xidominicanoix:
fjdklfjadkls; you are awesome Cyan

fix_permissions works perfect now in recovery terminal :D
[G1 Android Development] Stryder5:
I'm getting a lot of errors while trying to flash it now :( They all read "(out of memory) though. any ideas?
[G1 Android Development] nolageek:
Running CM 3.4 here with Hero 1.2 and when I flashed the recovery.img I got some error like this:

mnt: unable to write (out of memory)
mnt: able to write block after 1 retries.

I don't remember the exact error. I rebooted and went into recovery with seemingly no issues, but wanted to post about it here.
[G1 Android Development] Abolfazl:
I took a chance wiping and it worked!
[G1 Android Development] usmc2k:
flashed v1.2 n tried to run a nandroid back up n got an error stating it couldnt back up
[G1 Android Development] xidominicanoix:
check to make sure its not a problem with your sdcard

other people had an issue like that and after reformatting their card it worked again

(backup your data first from the sdcard)
[G1 Android Development] Stryder5:
I got similar errors all over the place. Rebooting into recovery didn't work. It took me to the fastboot screen instead :confused:

Still able to boot up normally though so that's a good sign...
[G1 Android Development] NeoBlade:
Just flashed this recovery image and tested it. Really like it ^_^ I echo the constructive suggestions that others have mentioned as well, as having the ability to run a NAND backup via the recovery image would be amazing.

Great work Cyanogen.
[G1 Android Development] Crackbone:
Amen.

Been pretty great around here since the pissing matches stopped.
[G1 Android Development] cyanogen:
I'm not in competition with anyone, TheDude's stuff rocks, and so do most of the other custom ROMs. We all kind of play off of each others work, there is a good dynamic here.
[G1 Android Development] funbacon:
I like using trackball :D. Good job. Must have stuff.
[G1 Android Development] pascanu:
+1 Would LOVE to be able to restore a nandroid backup through recovery.
[G1 Android Development] carlosjcar:
It would certanly be nice if this motivated Haykuro to return to the game!

The things that can be acomplished!!!

Maybe an all Original Open sourced Build with an all Original UI that would make Rosie feel Obsolete.
[G1 Android Development] carlosjcar:
What about the option to boot into a Full distro like Debian.

Can that be done?
[G1 Android Development] cjlyrix:
hangs on g1 screen when i do a2sd through recovery.. its fine.. all i did was take the battery out... went back into recovery... wipe... and update.. but i do love it... umm.. can i make a request? f* it lol... with the a2sd.. would u be able to do an options of symlink, unionfs, and aufs setup? :) i dont know if thats possible.. i cant get adb to work on anything so i cant even mod my phone to what i want :(
[G1 Android Development] dwelw:
great work, now I have to decide which version do I want to flash.
[G1 Android Development] mianosm:
Flawless, thanks again. = )
[G1 Android Development] rsxtypes72:
hey cyan great work as usual. just wanted to say i updated from 1.1 to 1.2 and apps gone. used recovery to fix ext and apps are back but had to reinstall since most are giving me a force close. where did i go wrong?
[G1 Android Development] obijohn:
For anyone having a problems mounting an sd card with only one partition (just fat, no ext2/3 partition), you must mount it with this command in the recovery console:

# mount /dev/block/mmcblk0 /sdcard

'mount -a' won't work because it tries to mount /dev/block/mmcblk0p1 on /sdcard and /dev/block/mmcblk0p2 on /system/sd, and /dev/block/mmcblk0p1 and *p2 only exist when there are 2 partitions on the card.

'mount /sdcard' (without specifying the correct dev) doesn't work either but doesn't show an error. The card will still not be mounted.

Also, 'shutdown' entered at the console assumes 2 partitions on the card so you will see a couple of very brief messages that they couldn't be unmounted right before the screen turns off, but this shouldn't cause a problem with the fat partition.
[G1 Android Development] prettyboy85712:
Great update!!! Thank you. :)
[G1 Android Development] schnogg:
AWESOME

Thanks for this - it's built on a solid foundation and a great improvement.
[G1 Android Development] nolageek:
What would this do that Alt-X can't?

Can we make the recovery menuhave an option that makes me coffee in the morning? :)
[G1 Android Development] malaeus:
please someone, ive asked 6 times now. just give me an answer.

seriously, i dont mean to be an asshole, but this is kinda getting annoying.

can someone please just give me an answer, i need to know if there is a special command to run the fix permissions script from the console, and when run from console if there are any differences from that or doing it from terminal emulator once booted. i have been having issues running it from terminal emulator it seems to remove apps. however the app is still on my SD, but it will not let me run it at all. treats it as a zip to be extracted rather than an .apk no matter what program i use to install packages.

also, should the fix permissions be run after every update? including themes? and is there a point where running fix perm would cause any technical issues?

thank you, again, i dont mean to sound like some n00b with no forum etiquette. but once you have asked a question several times in a row on the same thread, it kinda gets rather bothersome.
[G1 Android Development] kdmorris:
I had the same problem yesterday after pushing a2sd from recovery. A phone call came in while I was at the HTC logo, and the call app came up. After taking the call, I saw that the phone was fine but Launcher and Rosie were on SD and unavailable. I jumped into ADB to debug, and found the /system/app symlink was broken.

Anyhow, push Launcher.apk and Rosie.apk (and their .odex files) back to internal memory from SD, rebuilt the symlink for /system/app to point to /system/sd/app; reboot; and everything was fine once again.

I'll second the request for alternative a2sd support! unionfs is fantastic!
[G1 Android Development] Abolfazl:
Move fix_permissions.sh to anywhere on your phone

When in recovery run "sh /sdcard/fix_permissions.sh" (if it is in your sdcard)
[G1 Android Development] malaeus:
so i just run the same normal script? thats it, thank you thats all i wanted to know. just making sure there wasnt a difference with how the consoles acted, or if there was a key name for instance, just typing fix_permissions then hitting enter could start it.

and cyan said there was a new copy included with either v1.2 recovery or v3.4 ROM, is that the same copy i have from his fix_perm script?

thank you, i am not very comfortable with programming, always afraid im going to $#*@ something up so i wanted to make sure what was what before i did it.

how about the other questions? how often to use it, and if there is a "too much" limit. and why does it make many of my apps (especially paid ones ive noticed) disappear?

thank you so much
[G1 Android Development] Abolfazl:
Oops.. I just found fix_permissions in /system/bin

All you need to do is run "fix_permissions" from anywhere in the terminal or recovery
[G1 Android Development] Ooglez:
Very nice. I just nandroided, wiped, and flashed a new ROM without opening the keyboard! Great work.
[G1 Android Development] beagz:
Wow! that was painless. I went from jf 1.42 recovery to yours without a single hitch!!

Thanks for making things so easy. I love the new interface.
[G1 Android Development] tehseano:
Any chance of changing the background, so the text is easier to read? Plain black would be better than the weird radar look it has. Also, thanks for the whipe confirm!! I can't even count the number of times I accidently clicked whipe yesterday because my trackball is so lose now lol. Thanks a ton Cyanogen! Great work!
[G1 Android Development] bigballa:
thanks for the nice recovery system

good update...

wonder if its possible to do multiple updates at once...

so doing a theme update and a rom update dont take so long

but good stuff so far

example

update1.zip = rom

update2.zip = theme for the rom

thank you though

EDIT:

thanks for the trackball support

dont have to open up the keyboard anymore :D

dont really rmr if this was implemented in previous recovery images
[G1 Android Development] alritewhadeva:
Just keeps getting better and better :) special thanks for the prompt before wiping! It would be cool if you could prompt before everything though, my trackball tends to move around a lot and plenty of times i've selected the wrong choice :(
[G1 Android Development] lexi1986:
Guys can someone help me.

If i flash the recovery.img to my G1 and boot it after that in Recovery it works great. But after the Phone has started again and then power it off en Try to get in the Recovery Menu the Phone goes black en reboots itself. Is there someone who can help i am Noob with android so far. Also if i do cat /sdcard/cm-recovery-1.1.img > /system/recovery.img i get an error: No more space left on device
[G1 Android Development] cyanogen:
Probably a good idea. I'll add it in the next version.
[G1 Android Development] alritewhadeva:
Awesome :) Glad you took my suggestion!
[G1 Android Development] cyanogen:
I can probably glob for update*.zip, and prompt you to pick one if more than one is found.

Nandroid restore would be another good feature, one thing at a time though. I'll make a TODO in the first post.
[G1 Android Development] KPeriod:
Trying to run "fix_permissions" in the recovery console gives:

On a newly flashed 3.4 rom with latest recovery console.
[G1 Android Development] Stryder5:
I had to redownload the file, then reflash (took me 3 tries in all) to perform it without any errors. O.o

Well, works like a charm now :D
[G1 Android Development] mimic1011:
I did the apps to sd but its not showing on my pull up
[G1 Android Development] mikedmeyer:
Pretty cool, nice work.
[G1 Android Development] cyanogen:
You need to run a ROM that does AUFS/UnionFS or finish setting it up manually (there are other threads for this).
[G1 Android Development] Abolfazl:
Try going into terminal and running

su
a2sd
[G1 Android Development] malaeus:
any word on why running the permissions fix makes my phone believe that many apps are no longer installed? and i have to find them in markey (gone from my downloads) install them, uninstall them, install them, and install them again to get them recognized by the system. and yes, this is after a reboot. or two.

and should i run this after every update? and is there a diff between running in recovery or in terminal?
[G1 Android Development] phaze478:
Hey is there another spot I can download this? When I click the link I just get a page with some jumbled up letters
[G1 Android Development] david1171:
try right clicking on the link and click on save link as. that worked for me
[G1 Android Development] Abolfazl:
How does one go about editting the .img so it is to our liking?

I am looking to edit yours by changing the background, text, and adding some functions
[G1 Android Development] dansbmx25:
please help cyan

hey cyan i used your repair ext filesystems and moved apps to sd but now my sd card does not show up when i plug it into everything is there any way to fully partition it to fat32 from my phone. when i plug it in to my pc it says nothing is inserted and when its in my phone it removes sd and askes me to insert one to increase memory it happend after i tried your recovery utility please help my 16gb does not work at all.
[G1 Android Development] fdeschape:
This recovery is outstanding... easier to use and looks great
[G1 Android Development] uherrera:
amazing work. thanks a lot.
[G1 Android Development] dansbmx25:
really amazing stuff!!
[G1 Android Development] sacredsoul:
How to format at ext3 partition using the alt-x command?
[G1 Android Development] revwillie:
this rocks. I wanted ext3 on my JF 1.5 US and this made it easy.
[G1 Android Development] cyanogen:
I didn't actually include mke2fs, so you can't create the filesystem (nor can you partition- maybe I'll add that in a future release) but you can upgrade an existing ext3 partition by just typing "upgrade_fs".
[G1 Android Development] imbonez9:
OMG this couldn't be easier and alt x works!!! And as the people who've I've talked to on here know how much i love blue this is a dream come true... I LOVE YOU MAN!!! :) no homo
[G1 Android Development] Neromyr:
ok i try and push it from the terminal emulator that comes with your 3.3.8 and i get an error saying that there is no such file or directory when i double checked and the file is on the main folder of the sd card. am i doing something wrong?
[G1 Android Development] alleyezondisromo:
hey guys what am i doing wrong , i put the file in the root of my sd card and im opening up terminal and typing su and then the command exactly as you say but i get this in turn

usage: flash_image [-d] partition file.img

options:

-d delete the image file after a successful flash
[G1 Android Development] Auctionedllama:
It was has been made official that if you use this while trying to update to the new SPL, it will not install the SPL properly. I have tried it myself, and you have to downgrade back to one of JF's recovery images in order to install the latest SPL.
[G1 Android Development] alleyezondisromo:
oh sorry guys for the double post
[G1 Android Development] alleyezondisromo:
ive had the latest spl installed for a couple days now
[G1 Android Development] robpet2:
is it possible to go back from ext3 to ext2 with this recovery ???

and can a rom that sees ext2 see ext3 when using the move apps with the recovery ???
[G1 Android Development] davidst3r:
How do i restore my nandroid after i backed it up?
[G1 Android Development] laloch:
tune2fs -O ^has_journal /dev/block/mmcblk0p2
e2fsck /dev/block/mmcblk0p2

Edit: oops, forgot the second question. Well, it depends. If the ROM is mounting the partition with automatic FS detection, then yes, it can. If it's mounting with -t ext2, then no.
[G1 Android Development] ScottGood:
huh

[/QUOTE] Edit: oops, forgot the second question. Well, it depends. If the ROM is mounting the partition with automatic FS detection, then yes, it can. If it's mounting with -t ext2, then no.[/QUOTE]

How can we tell if its not listed in the rom specs?
[G1 Android Development] laloch:
Ask the maintainer or make a nandroid backup, install, and look into /system/etc/fstab
[G1 Android Development] mrpandainc:
How do I stop the phone from booting to recovery console.

I tried a Nandroid restore, going to console typing reboot, even updating an update.zip file to see if it would break this boot loop action into recovery.

I have the latest SPL running 3.3.8 + app2sd

I am using Recovery 1.1 as well
[G1 Android Development] alleyezondisromo:
can anyone help me ?
[G1 Android Development] robbie725:
WITH?:confused:

You are tying this, correct ... flash_image recovery /sdcard/cm-recovery-1.2.img

in terminal...? you did not rename the file did you? just asking!

I am by no means an expert but I believe that when you get a "usage" error it is telling you that you did not enter something correctly...

peace
[G1 Android Development] obijohn:
Sounds like you may have accidentally done a "fastboot flash boot recovery.img" during your restore. Just boot into the SPL/fastboot and retry your restore again.
[G1 Android Development] airmaxx:
thank you, this is a nice upgrade to the the older JF version I had. I havent tried the formatting script but that is a really nice addition.

:)Cheers!
[G1 Android Development] dicer42:
Nice work! Really like it a lot! Especially the fix_permissions script is handy in the recovery image.

Two points I'd like to see in a future release:

1. Password protection! As far as I see the main "security" holes in getting to the data on the phone are usb debugging support (you can disable that) and the recovery consoles nandroid backup. I can't protect the later yet. Would be nice if you could set a password before being presented with the recovery options!

2. Backup of the ext2/3 partition! Nandroid backup is awesome to have, but you can't backup everything on the ext partition with it. So it is a nice backup tool, but the backup is just not complete. And more and more people start using the apps2sd hack. Might be useful to integrate that into the recovery menu as that's how I basically backup my data every couple of weeks.
[G1 Android Development] Nikeem24:
Great idea.....
[G1 Android Development] IronCross1788:
post the zip file

Can somebody post the zip file on the thread. I want to directly download it from my g1 (like I usually do with EVERYTHING :) )
[G1 Android Development] obijohn:
Excellent point. However, even if the nandroid backup was enhanced to fully back up the ext partition, restore is still going to be an issue since the fastboot/SPL doesn't mount the ext partition. This could be dealt with if a nandroid restore is included in the recovery image without having to boot into the SPL, and if that restore specifically handled the ext partition data.

This would be a great addition. Cyanogen I hope you give it some serious thought.
[G1 Android Development] NeoBlade:
Security in general I believe is seriously lacking on the G1 as other than the lock screen, there isn't much else protecting your emails, contacts, SMS, media etc from prying eyes. On my Nokia N95 there was software available that allowed you to set up a number lock on any application and setting you chose... I'm still waiting for such an application for the G1.

Back on topic though the recovery image is pretty sweet and I'm sure in the future new features would be introduced, as long as Cyanogen is motivated and happy to do so. After all, all of these mods are done in the dev's free time, so we should appreciate what we're given ^_^
[G1 Android Development] garsim:
hi all :)

i've two problems with the recovery 1.2 :(

i can't use any firmware that use Apps2SD (firmware loop at boot screen) and i must use only firmware with apps on internal memory! why?!

second: when i start "e2fschk" from terminal to check my ext2 partition, it gives me errors :( ...any suggestion to repartition my SD?!

thank you very much
[G1 Android Development] alritewhadeva:
Hm...sounds like you're going to have to format you're whole SDcard back to Fat32, and then add a partition (ext2) again. Or in other words, you have to re-partition your sdcard.Use paragon partition manager, or if you are on linux use g parted :)
[G1 Android Development] Puky70:
Hi,

is this one working on HTC Sapphire too. Has anyone test it?

Thx in advance

Regards

Puky70
[G1 Android Development] garsim:
i've used gparted to add new partition (ext2) with fat32 :)

:confused:
[G1 Android Development] rich0:
backing up sd partition 2

It seems like backup of apps2sd seems to be a topic under discussion. I typically backup my sd every time I use nandroid (before any firmware flash and about weekly). I backup my fat32 partition using tar (just about any file-level archive utility will be just fine - like zip). I backup the ext3 partition using dump - which is specifically designed to backup ext2/3 partitions. I just run dump with the sdcard mounted on another computer, but it could be run from recovery (on my system dump uses a whopping 77k of disk space and restore 114k - granted with dynamic linking).

Sure, tar will also work, and that won't consume more space. The advantages of dump is that it is extremely fast, can support things like incremental backups, and it is guaranteed to perfectly replicate an ext3fs (not to a bit level, but to a content level including all metadata).
[G1 Android Development] alritewhadeva:
Excuse my retardedness but what's "dump" and how can I run/get it?
[G1 Android Development] mrpandainc:
Everytime I tey to flash the recovery image it keeps telling me no such file or directory.

I do have the latest SPL as well as JF 1.51.

EDIT:

I restarted the phone then typed :

su

cd sdcard

flash_image recovery recovery.img

Then it worked without a problem.
[G1 Android Development] tanner2007:
1) what file system is apps on sd? ext2? ext3?

2)can you make it to link apps already on sd card? I have apps already on mine and usually just do the rm and ln commands

3) can u also make an option to move dalvik cache?