yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] dcman008:
SD card formatted to fat, but still wont back up.

Before the re-format it would error right away.

This time it took a few seconds before the error popped up.

Could that fact that I did the update this time in xp and not ubuntu be the issue?

Anyways here is a new recovery log.

Starting recovery on Fri Jan 2 02:42:33 2009
Android system recovery utility
Build: JFv1.3
I:Set boot command "boot-recovery"
Fixing execute permissions for /cache
Command: "/sbin/recovery"

ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1
ro.build.id=TC4-RC30
ro.build.version.incremental=116143
ro.build.version.sdk=1
ro.build.version.release=1.0
ro.build.date=Fri Oct 31 19:00:53 PDT 2008
ro.build.date.utc=1225504853
ro.build.type=user
ro.build.user=android-build
ro.build.host=undroid11.corp.google.com
ro.build.tags=ota-rel-keys,release-keys
ro.product.model=T-Mobile G1
ro.product.brand=tmobile
ro.product.name=kila
ro.product.device=dream
ro.product.board=trout
ro.product.manufacturer=HTC
ro.build.product=dream
ro.build.description=kila-user 1.0 TC4-RC30 116143 ota-rel-keys,release-keys
ro.build.fingerprint=tmobile/kila/dream/trout:1.0/TC4-RC30/116143:user/ota-rel-keys,release-keys
rild.libpath=/system/lib/libhtc_ril.so
wifi.interface=tiwlan0
ro.com.google.clientid=tmobile-us
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=true
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.config.notification_sound=F1_New_SMS.ogg
ro.url.legal=http://www.google.com/intl/%s/mobile/android/g1-legal.html
ro.config.ringtone=BirdLoop.ogg
ro.config.sync=yes
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.modversion=JFv1.3
ro.factorytest=0
ro.serialno=HT840LC25268
ro.bootmode=recovery
ro.baseband=1.22.12.29
ro.carrier=TMUS
ro.bootloader=0.95.3000
ro.hardware=trout
ro.revision=128
init.svc.recovery=running
init.svc.adbd=running
adb.connected=

Home+Back - reboot system now
Alt+L - toggle log text display
Alt+S - apply sdcard:update.zip
Alt+W - wipe data/factory reset
Alt+B - nandroid v2.1 backup
(courtesy of infernix
and brainaid)
I:Set boot command ""
I:Set boot command ""
Performing backupnandroid-mobile v2.1
.mounting system and data read-only, sdcard read-write
....mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: No such file or directory
Error mounting sdcard read-write
umount: can't umount /sdcard: Invalid argument

Error running nandroid backup. Backup not performed.
[G1 Android Development] JesusFreke:
did you try fat32 instead?
[G1 Android Development] dcman008:
I just tried fat 32 and still not working. do you want the log from this try?
[G1 Android Development] Razor1973:
So do I. If only I knew what it was! :)

Can I post a photo of it or is it so secret you must install v1.3 in order to see it? :D
[G1 Android Development] JesusFreke:
Do you have any other sdcards laying around that you can try?
[G1 Android Development] JesusFreke:
It's a fractal that I generated a number of years ago. Full version can be seen here:

http://www.jesusfreke.com/fractals/variations on a square - arcs.jpg
[G1 Android Development] gospeed.racer:
Man, I have read and read and I am still clueless. When the "downgrading and upgrading Android for Dummies" book comes out, I am all over it! :p

I just want to make sure I am getting my steps correct. If I downgrade to RC29 on my non-rooted G1 using Koush's method, do I simply follow your directions to install v1.3 rc30 and I am done? Or will I need to go through the Modded recovery and boot images as well. Or are there other steps in the middle somewhere that I am totally missing? The most confusing part for me is the test keys- "To install these updates, you need to have a recovery image that uses test keys". By downgrading to RC29 first, is this now a non-issue?

Sorry for being so newbie-ish, this whole Android thing is very new to me and it seems like every tutorial expects you to have good working knowledge already. The only reason I want root available is in case Tmo decided to screw everyone out of Cupcake. Just a little CYA. I am quite confident that the development you guys do will surpass Tmo in both function and timeline.
[G1 Android Development] dcman008:
How odd worked like a champ with my brothers SD card.

Guess my sd card is ****e.
[G1 Android Development] pdspatrick:
ok....I got my phone working again...here is what I had to do

tried flashing the nbh and update.zip via fastboot....didnt work...complained about some files missing from the archives....didnt go any farther with this...

Replace the modified init.rc and mountd.conf with originals (which I didnt backup...do'h!..so i got to recreate them) via adb push

tried flashing the nbh file to the sdcard via adb push (still didnt wanna work...do'h!)

then I realized that I could now try flashing update.zip again, so I tried copying it to my sdcard from my reader, but it never came up with the same md5sum (dont buy readers from dealextreme....), so I had to do an adb push again....and again....and again....until it worked.

reboot into recovery...and it magically flashed!

what I wanna know is why I had to do this....it doesnt seem to make any sense...all i did was format the sd card, then it refused to work at all...android has some ways to go with its usb/sd card interfaces....md5sums rarely match...just the simultaeous failure of all my hardware made it particularly fun...I guess thats the fun of jailbreaking phones, eh? I dont remember it being this difficult on my dash....

(edit: forum hates my formatting)
[G1 Android Development] JesusFreke:
You don't flash them with fastboot. you put them on the sdcard named DREAIMG.nbh and boot with camera+power. the bootloader sees the file and asks if you want to apply it :)

both of those files are only stored in memory. so you just changed them in memory, not on flash. you have to modify the actual recovery image and then reflash the recovery image to change those files.

How do you flash an nbh file with adb push? *confused* :)

Does your usb cable have a ferrite bead on one/both ends? If not, get one :). Corruption when moving files to the G1 without one is quite common. I haven't had any issues after using a cord with one though.

I don't know what the problem was. But at least you got it working eventually :)
[G1 Android Development] jashsu:
Are you in the habit of disconnecting the usb without properly unmounting? Or perhaps are you using a usb cable without a ferrite core? I have never encountered a MD5 mismatch or any data corruption over USB.
[G1 Android Development] pdspatrick:
Yea...i just figure its best to just chalk it up as something caused by solar flares

All i had to do was:

adb push '/home/patrick/Desktop/init.rc' /system/init.rc

and

adb push '/home/patrick/Desktop/mountd.conf' /system/etc/mountd.conf

to get my sdcard working again....didnt need to reflash to get it to work...

All I know is that i have JF1.3 on my phone now...and thats all I care about :p

You should explain deeper about the fancy usb cables im supposed to be using...ive never heard of that...perhaps a link is in order?
[G1 Android Development] JesusFreke:
Ah, nevermind. I was thinking of a different set of files. Ignore that bit I said about them being only in ram :D

Ferrite bead:

http://en.wikipedia.org/wiki/Ferrite_bead
[G1 Android Development] xcallibur:
Thanks man... Now I just have to figure out how to do that:D... I guess I have some reading to do... Used to be a linux junkie, just getting back into it...

Keep up the good work and continuous prompt support. :cool:
[G1 Android Development] pdspatrick:
My cable has that bulge....and it is still acting dumb....hmm...guess im gettin a lil off topic tho...

after playing around with 1.3 it doesnt seem much different, but I know once i mess with it things will be much easier....thanks for the 1.3 and your help JF :D
[G1 Android Development] Ryanmo5:
Thanks very much for this, great job i was hoping you would incorporate the backup in your next version and here it is!!
[G1 Android Development] Phromik:
In case you haven't noticed JF, the screenshot application doesn't work with v1.3. ADP1, RC30 and RC8 all have the same problem. Thought you should know. Please fix ;)
[G1 Android Development] manup456:
It worked on RC30 but now i get screenshot.raw file not found! this is the message i keep getting. Anybody have an idea why?
[G1 Android Development] Phromik:
JF probably moved a file screenshot depended on. It'll get fixed, don't fret.
[G1 Android Development] Ryanmo5:
A few questions JF, i want to delete setting and voice command shortcuts from the start menu, is this possible? Thanks for putting terminal emulator and superuser in update. As far as amazon, myfaves and im is there a way to delete them from V1.3? Thanks man!!
[G1 Android Development] Stericson:
to get screenshot working, install, select always when the superuser app asks for permissions then reboot the phone. It will work then.

Stericson
[G1 Android Development] jashsu:
Hum. Something seems amiss with Superuser. When I call su from Term.apk, Superuser is reporting that a bunch of other processes are requesting permission:

User ID: 10001

android.process.acore

android.process.media

com.android.term

/system/bin/sh

Term's userid should not be 10001 though. Need to investigate further. Is it a byproduct of installing Superuser in /system instead of /data?
[G1 Android Development] Ryanmo5:
Yeah im getting those as well as

android.process.im

com.android.mms
[G1 Android Development] jashsu:
I was able to get Term showing as its own unique UID. adb in and remove Term and Superuser from /system/app. Download them from the Market (or adb install from your local sources). You may have to manually insert /system/bin/su.
[G1 Android Development] JesusFreke:
This is actually a bug in the SuperUser program. It does a "ps", and then searches for any process that matches the name of the user id, which in this case is "app_1". so it also matches anything like "app_10" "app_19", etc.

I'll talk to Koush and put out a new set up updates, probably tomorrow, to fix this issue (and a few others that have popped up).

Again, Thanks for looking into it/pointing it out, Jashu.
[G1 Android Development] jashsu:
Yeah i'm looking at the code now. Line 137:

public static int getUidForPackage(String packageName) throws Exception

{

// parse the uid given a package name (which should be visible in ps)

Process p = Runtime.getRuntime().exec("ps");

InputStream reader = p.getInputStream();

Thread.sleep(200);

byte[] buff = new byte[10000];

int read = reader.read(buff, 0, buff.length);

String str = new String(buff);

String pattern = String.format("app_(\\d+).*?%s", packageName);

Pattern regex = Pattern.compile(pattern);

Matcher match = regex.matcher(str);

if (match.find())

return Integer.parseInt(match.group(1)) + 10000;

throw new Exception("Unable to determine uid for package");

}

Ahh the joys of bleeding edge hacking :D
[G1 Android Development] Koush:
Ahh, ****, whoops! Luckily the bug is purely cosmetic :-p

Current regex:

String pattern = String.format("app_%d+(.*?)\n", id);

Fixed regex? (someone confirm, I'm testing this now as well):

String pattern = String.format("app_%d (.*?)\n", id);
[G1 Android Development] JesusFreke:
I think it would be better to include a ^ anchor at the beginning also, to prevent it matching a process name with "app_1" in its name. So you have to add the MULTILINE flag too.

String pattern = String.format("^app_%d+\\s(.*?)\n", id);

Pattern regex = Pattern.compile(pattern, Pattern.MULTILINE);
[G1 Android Development] im.l0ltn:
Try reformatting the SD card with gparted in linux or download the gparted live. I was having the same problem and reformatting in windows wasn't working so i tried it in linux with gparted and it did.
[G1 Android Development] JesusFreke:
I think I've found the problem. Apparently you can format an sdcard with a fat/fat32 *without* a partition. And the backup util doesn't like this :).

I'll be putting out a new update, maybe tomorrow, that has a fix for this, along with a few others that have come up.
[G1 Android Development] Razor1973:
Great! Please don't include Koush's auto-rotating browser for now. I have found some minor problems (2 links here) with it that most people won't care about (I personally don't), but some people will and by leaving the native browser and letting them manually replace it, you're allowing them to make a choice. Thanks!
[G1 Android Development] Mi|enko:
Hey, I'm using an ADP1, and I've been opening and then flipping all night long. I just tested it again, and it works fine. I can leave it open, flip/flip back, close, flip/flip back. I'm not seeing the problem that you'er is describing. To top it off, I can even do it when I have the address bar up, or when I have the bookmarks open. Is it possible that this isn't an issue with the browser itself?

Sorry to chime in. I don't know enough about it, but thought I'd let you know that my experience wasn't meshing with yours. :-) Might save alot of trouble.
[G1 Android Development] pdspatrick:
mine throws in myfaves into that list when i run su from terminal...i just always allowed because i dont care what the myfaves app does...i think its just giving root to the process tree perhaps....
[G1 Android Development] parrothd:
Is it me or does busybox vi no longer work with 1.3? It creates the file, but doesn't save the changes....

I copied the original busybox and vi works...
[G1 Android Development] eLv./.G1:
cant telnet into phone after v1.3 update.

After the update I used terminal emulator and typed su.then gave access in new super user app. Then typed telnetd. Which all went as normal but when I use telnet app and try to to telnet in using phone ip and port 23 the screen just hangs and I get a message telling me telnet isn't responding force close or wait. This used 2 work fine. Any ideas??
[G1 Android Development] parrothd:
You need to copy the old telnetd from the previous packages and use that one, the one that comes with 1.3 doesn't work...
[G1 Android Development] dwang:
I'd rather you not include auto-rotate for the browser. I personally don't like that myself.
[G1 Android Development] netlag:
Thanks for the update JF and team. 1.3 update running nicely!
[G1 Android Development] eLv./.G1:
still no root

i still cant telnet into phone from telnet app. tried reinstall from market after parrothd said v1.3 telnet doesnt work but im getting error reading port when trying to connect. do i have to enable telnet in superuser app?? if so how?? the app isnt automatically opening.any help would be sweet.
[G1 Android Development] Marmle:
Sorry for the noob question but do i need to reflash the keys again? i have the modded 1.1v of rc30.

Thanks
[G1 Android Development] Cjunior:
can somebody help

i just get the g1 it has the rc 30 v1.0 i want to use auto rotation and every thing but i am new to this can anybody help me i try but i keep gating erro messages
[G1 Android Development] netlag:
I am using telnet emulator downloaded from exchange.

Run terminal emulator

at $ type su

Popup asks for permission.

scroll down and choose yes

should be # then.
[G1 Android Development] parrothd:
Oops...

I thought you were trying to telnet into the phone, (ie..from laptop to phone) If that is what you are trying to do make sure your executing the telnetd you copied copied over (/data/local/bin/oldtelentd) and not just telnetd which is link to busybox..
[G1 Android Development] netlag:
ahh... I see. I experienced the same issue as user. When accessing telnetd on phone it posted error too. That is why I went with the TE which I had on the phone already.

Never had any luck with telneting from the pc to phone... always just used adb, or for this specific I just mounted and file transfered (vista) to sd, so not sure about telnet to phone from computer...will try that later to see if it works.

thanks for the advice.
[G1 Android Development] Razor1973:
My bad. Sorry.
[G1 Android Development] eLv./.G1:
telnetd prob

thanks 4 info i only needed root on phone so i guess emulator is fine. not sure how to put old telnet onyo phone. thanks ppl
[G1 Android Development] Mi|enko:
No harm no foul man. :-)
[G1 Android Development] JBDynamics:
What are the differences between Jesus Freke's ADP1 and stock ADP1? I want to be able to run my apps from the MicroSD card, and I know how to do the procedure with modified RC30 v1.3, but I want to know if I can run apps from an 8gb MicroSD card in JF's ADP1 v1.3. Would I be better off running RC30 v1.3 than retaining ADP1 if I have T-Mobile in the USA?

Also, if I want to reload OE ADP1 with the engineering bootloader, is there a way to save the current firmware or do I have to download it?

Thanks for the Help Everyone! =)
[G1 Android Development] Razor1973:
You do? How?
[G1 Android Development] hmepas:
Yep. I mention that, before try i freed around 500mb on my sd.

UPDATE:

Just read the thread further and found solution with reformating. So I did. Reformat SD card by mounting it like usb-storage from the phone in Windows XP. No luck. Still the same error. After trying to do backup getting error and after reboot SD is completely empty (no error logs even). Reformated like FAT32.
[G1 Android Development] daeglo:
People please read the thread. This is my first post to this board and I know the answer. *NO I will not repeat it*

Think for a minute before installing telnet, however. I am not sure there is ANY need whatsoever to have a telnet server on this device once you have a root-enabled version. If you are experiencing problems with JF1.3's telnetd, you have an root enabled version. If you truly need to have network access to your device, you should consider something somewhat more secure, like ssh. There is a ssh server designed for embedded devices. I can't remember the name, but I think it has something to do with bears?

Please for the love of allah, do not be running telnetd as a standard method of connecting to your phone.
[G1 Android Development] daeglo:
Oh, and many thanks to JF, Chavron, and the many others who have transformed my G1 from a satanic device of T-Mobile to MY phone.
[G1 Android Development] JesusFreke:
Not planning on it :)
[G1 Android Development] JesusFreke:
Known issue. Fix is comming :p
[G1 Android Development] brandenk:
I tried going to the ADP1 after downgrading from OTA RC30 but I am having some issues such as the contacts not populating and then crashing. Im gonna go back to RC30 JKv1.3 since I had no issues what-so-ever with that one.
[G1 Android Development] momentarylapseofreason:
Was this with a custom theme or the stock RC30 ADP1 theme?

After writing the ADP1 and starting the phone, shut down and use ALT-W to wipe the phone. Also, are you using the memory card that came with the phone? There have been many issues with it.
[G1 Android Development] manup456:
Does ADP1 have more features than V1.3?
[G1 Android Development] brandenk:
I installed the ADP1 but I didnt reset the phone and was getting some wonky issues. I am also using a 2GB card that I got so that shouldnt be the issue. I would imagine it was not wiping after going from RC30 to ADP1 so I will try it again doing that.
[G1 Android Development] brandenk:
ADP1 is another version of v1.3 just like RC30 and RC8. Its what the dev phone has installed.
[G1 Android Development] Mi|enko:
Don't forget to mention that it comes without the T-Mobile bloat. :-)
[G1 Android Development] sino8r:
I wonder if there is a way to add some of cupcake's features like the virtual keyboard on to a modified version of rc30? Is anyone attempting this yet? Sorry, I am retarded when it comes to linux just got root access this morning and I feel like a noob all over again... btw, 1.2 is great!
[G1 Android Development] Razor1973:
*GASP* (You're in the 1.3 thread) :D
[G1 Android Development] sino8r:
Yup, I should have upgraded to 1.3 after flashing rc29 last night (early morning) but I must have missed it. Was just happy to get root access back! Will try v1.3 later tonight.
[G1 Android Development] rsfaze:
downgrade to RC29

use ROOT access exploit to install Recovery image

install V 1.3 from J.F

optional but I installed the eng boot loader after these steps.

J.F is the man!
[G1 Android Development] brandenk:
Worked perfect, once again PLBCAK
[G1 Android Development] gospeed.racer:
Thank you, I had some help via PM from diabolical28 and he made sure I was on track. I was able to git'r'done and also installed the boot loader as well. The only thing I skipped was busybox, but I doubt I need it.

Thanks for the help, especially diabolical28 for the encouragement I needed to try. It is much easier than it seems, and I think with some well written, clear instructions it would be even easier:p
[G1 Android Development] yochaigal:
I just installed the newest update to RC30... awesome.

Question, though: can I install a different modified RC30 (one that includes hebrew support... i guess they took some sdk fonts and included them) on the phone, then use your update again to bring the phone up to speed, but still keep the fonts?

or, can you point me in the direction of including sdk fonts WITHOUT reflashing?

thanks!
[G1 Android Development] Keyser.Soze:
I have updated to v1.3 and in order to avoid any potential issues I did a wipe and started over. Things are good but I can't seem to telnet into the G1 now. I tried to run the terminal emulator included in v1.3 and used command "su" and then "telnetd". With 1.2 I would be able to telnet into the G1 on my PC at this stage but with 1.3 all I got is this error msg:

Could not open connection to the host, on port 23: Connect failed.

I could get a ping response from the G1 though.

Can anyone give me some advice? Thanks in advance!
[G1 Android Development] parrothd:
Read the previous pages...
[G1 Android Development] jashsu:
Leads to:

http://xdaforums.com/showthread.php?p=3110130&highlight=telnet#post3110130
[G1 Android Development] dirr:
Jahsu, that's classic.

JF, you mention creating /data/local/bin for our own bins/scripts. I didn't see the bin dir there so I just made one and pasted a hello world script in there.

However, as you probably know chmod +x doesn't work, and chmod 777 lists it as executable yet still says 'not found' when attempting type the command. Is my path wrong? Is there a certain way that I'm supposed to make my scripts universal without dropping them in the system bin? Btw I don't want to cheat with adb, I only want to use the console to script on the fly.
[G1 Android Development] netlag:
Dialer reports..

Sorry, The Process android.process.acore has stopped unexpectedly.

Please try again - Force close button - reverts to main

I believe I left out JF's suggestion in from the first post when I processed the phone earlier this morning... if migrating from one class to another --- wipe first.

Well I previously had JFRC301.2 installed and migrated to JFv1.3_ADP1.

going to alt-w in the morning...

Will post result tommorow.

confirmed - wipe (alt-w (and then and then alt+l and alt+s for text and reload) removed error.

Tks again JF and Team for all the time you spent on this... and your followup too!
[G1 Android Development] damnitpud:
JF just wanted to say thanks for all the research and work you have been doing with the G1!

I upgraded to 1.3 tonight, i am charging my phone now so i can install the EngBootLoaderv2 to install the Blue Star Theme! Cant wait for more themes to come!

But i am wondering about the battery Charging screen. Its not a big deal but it looked pretty cool. I noticed after installing 1.2, anytime i plugged in my phone i didn't get the dimmed screen with the large battery showing the percent. Is this an RC30 thing or did you take that out to save space?

I would like to see that screen again(maybe in a future update?), for some reason i like to know what percent my battery made it to each night.
[G1 Android Development] tmrepp:
JF, have you tried "adp pull" on ImProvider.apk and gtalkservice.apk in /system/app on an RC30 device and "adb push" it to an ADP1 Device to see if you can maintain AIM/MSN/Yahoo/GTalk ability?

Is there any downside to deleting Email.apk on a ADP1 phone if I use GMail?