yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] BombaMyte:
Make a note (finding this out stopped a useless post from being, well, posted): Make sure your phone has sufficient charge BEFORE restoring. Here's my nandroid.log for show...

nandroid-mobile v2.1

Searching for backup directories, matching cm392, to delete or restore
or compress

Error: not enough battery power
Connect charger or USB power and try again

EDIT: BUT something else just showed up. Looks like a problem with the MD5SUM. Check it out...

nandroid-mobile v2.1

Searching for backup directories, matching cm392, to delete or restore
or compress

Looking for the latest backup, will display other choices!

Default backup is the latest: /sdcard/switchROM/cm392/nandroid/cm392-CBDMRS12-20090730-1804

Other available backups are:

Using G1 keyboard, enter a unique name substring to change it and <CR>
or just <CR> to accept: Accepting default.

Restore path: /sdcard/switchROM/cm392/nandroid/cm392-CBDMRS12-20090730-1804

error: /sdcard/switchROM/cm392/nandroid/cm392-CBDMRS12-20090730-1804/nandroid.md5 not found, cannot verify backup data

EDIT2: NVM, I figured it out. Going to take my nap now, LOL! :p
[G1 Android Development] overground:
OK...Thank you so much, devsk for the hard work you've put into this. I don't know if it's been requested yet, but it seems like the next logical step. In the next version, can you add flags to separate the nandroid form the EXT backup? Example to only restore nandroid portion:

sh /system/sd/switchrom.sh -n -r <build name here>

Example to restore only EXT data:

sh /system/sd/switchrom.sh -e -r <build name here>

I think you can see where I am going with this...thanks.
[G1 Android Development] rondey-:
So if this only backs up /system/sd/app* and /system/sd/dal* what about this script in particular now?

This script is moved to /system/sd/switchrom.sh, will that no longer be there if we were to wipe the ext2/3/4 partition?
[G1 Android Development] devsk:
If someone wipes their ext2/3, they will lose the script. But backing it up is of no use because to restore it, they will need the script in /system/sd....:D
[G1 Android Development] devsk:
Yup, I see that. I will see what logical extension can be made.
[G1 Android Development] rondey-:
Ok which would also mean userinit.sh for my compcache would need to be backed up seperate if I were to wipe the etxt3 partition
[G1 Android Development] devsk:
I think we need to understand that the original purpose of this script. It was for switching between ROMs. If I start backing up user modifications and data as well, we get into this dirty land of overwriting potentially newer files with older files during restore. The usage will get complex if I start putting in options for each data item separately.

Actually, you should never wipe ext2/3 partition. Whoever recommends that is not doing anybody any favors.

But, we need to see if we can come up with a logical bundling of some files which this script can backup and restore safely and perhaps optionally.
[G1 Android Development] voxluna:
In recovery 1.4, the splash1 and 2.img files no longer get backed up. I assume this is because nandroid was updated to version 2.2. Those files are static, so I agree with that choice... I'm just pointing out the difference, FWIW.
[G1 Android Development] voxluna:
@devsk: Suggestion

It seems right after "Storing compressed nandroid backup" I got a screen blanking timeout, although it wasn't immediately obvious. IIRC there's some kernel or sysctl.conf option to modify this, but all I can google at the moment applies to "setterm".

I don't know if this is practical or within the scope of the script, but is there a way to show activity like the nandroid dots do in CM's recovery console?

Just a thought.
[G1 Android Development] devsk:
Actually, if we can tell what percentage of the backup is done, then that would be useful. And that's hard to do! Otherwise, dots filling the screen are of no use. Imagine two pages full of dots after compressed backup went for 20 minutes...:D

But its a good suggestion. Let me think about it.

Did your screen not wakeup after touching it or moving the scroller?
[G1 Android Development] voxluna:
Exactly -- dots in and of themselves are not terribly useful. Maybe a spinning slash? As long as it's actually linked to activity going on.

Not the trackball, no. I was wary to press other keys, but the volume control did wake it. OTOH, I've only done it it a couple times with compression and once without.
[G1 Android Development] devsk:
Good news: The following code works in recovery's shell.

i=0;while true;do echo -ne $i%;echo -ne '\b\b';i=$((i+1));sleep 1;done

Means %age is doable. I now need a separate process to calculate how far are we...:D That's some trickery with 'du' and 'df' or may be I can use some historical data from earlier backups.
[G1 Android Development] Shaquiel Harris:
Ok guys let me just get this straight. Im on JacxRom and im going to use this to make a backup. once i make this backup im going to go to Drizzy 2.8 hero but i have to wipe the ext3 before flashing will this mess me up when i want to go back to JacxRom? Will i lose something from the JacxRom? :confused:
[G1 Android Development] Amdathlonuk:
delete please
[G1 Android Development] devsk:
Not if you do everything to the letter. Backup with a name like JACxROM-1.1, wipe ext partition, flash drizzy's, use it, get bored with the lag, restore JACxROM-1.1....:D
[G1 Android Development] Shaquiel Harris:
Oh.. :] ok this app is awesome lol. and whenever i save the script to my sdcard, i cant rename it to /system/sd/switchrom.sh it saves as systemsdswitchrom.sh.. :confused: or do i use something like root explorer and move the switchrom.sh to system/sd.. ?
[G1 Android Development] Shaquiel Harris:
anyone guys.. :o
[G1 Android Development] Chahk:
Do you have ADB set up? That's the easiest way to copy files to your Ext partition.
[G1 Android Development] devsk:
Just have it on your PC, in a shell or CMD prompt if you are on windows, go to the directory where you downloaded it in and do an adb push like

adb push newswitchrom.txt /system/sd/switchrom.sh

You may have to specify the full path to adb if its not in your path.
[G1 Android Development] Shaquiel Harris:
i have it on my desktop so its adb push desktop/newswitchrom.txt /system/sd/switchrom.sh? do i rename the newswitchrom to something? and yes i have ADB set up.
[G1 Android Development] devsk:
No. No.

Best for you would be to cut the file from Desktop in explorer and paste it on your sdcard drive. So, you have a file in your sdcard called newswitchrom.txt.

Then, type 'adb shell' in CMD prompt and press enter. Inside adb shell, 'ls /sdcard/newswitchrom.txt' should show a valid file. If not, you did something wrong. Then, do 'mount /system/sd', then 'cp /sdcard/newswitchrom.txt /system/sd/switchrom.sh'.
[G1 Android Development] Shaquiel Harris:
ok. i did that. when im trying to mount it says my device or resource is busy what should i do? do it from the recovery? and thanks for helping me
[G1 Android Development] devsk:
That's fine. If you are not in recovery, the /system/sd is already mounted. You can see what's mounted by doing 'busybox df' from within the 'adb shell'. If its already mounted, there is no need to remount.
[G1 Android Development] devsk:
BTW, if you can see the file in /system/sd/switchrom.sh with 'ls /system/sd/switchrom.sh' from within 'adb shell', you are good to go!
[G1 Android Development] Shaquiel Harris:
ok i put ls /system/sd/switchrom.sh after i copyed it over it showed me this

# ls system/sd/switchrom.sh

ls system/sd/switchrom.sh

/system/sd/switchrom.sh

am i good now?
[G1 Android Development] devsk:
Yup! Ready to boot into recovery and make your first complete backup...:D
[G1 Android Development] Shaquiel Harris:
i got an error.. ]:

Error occurred during nadroid backup...

Have a Look at "system/sd/nandroid.log" to find the cause.

:(
[G1 Android Development] devsk:
Did you reboot into recovery?

Are you running adb shell or alt+x from the recovery menu?

Post the contents of the nandroid.log.
[G1 Android Development] Shaquiel Harris:
yes i was in recovery

was using alt+x

how do i post the nandroid.log?

and ill try it by adb right now.
[G1 Android Development] Shaquiel Harris:
same error in adb :(
[G1 Android Development] robpet2:
this looks like a good script... will try this out on the next flash !!
[G1 Android Development] devsk:
'cat /system/sd/nandroid.log' in adb shell from a CMD window. Then, cut&paste from that window into here.
[G1 Android Development] Shaquiel Harris:
mk. i know whats wrong i just read it i need more space lmao :p
[G1 Android Development] Shaquiel Harris:
once i make it is there anyway i can drag the back ups from my sd onto my desktop or something? and then put them back when i want to go back to that firmwire?
[G1 Android Development] Shaquiel Harris:
and i only have 42 mbs left i dont know how this is close to being possible.. i think it may have been from that Backup for root users does anyone know how to delete what you backed up from that application?
[G1 Android Development] Exilim809:
if i wipe my ext 3 partition , in oder to go from cyan to hero, wouldn't da delete da script ? would i need to do anything exta to restore bak to cyan after i wipe ext3, and flash hero ?
[G1 Android Development] devsk:
you have a wrong notion of wipe of ext. You just need to selectively remove app* and dalv* folders after mounting the system with 'mount /system/sd' in recovery. There is no need to remove your userinit.sh or this script or to format the ext partition.
[G1 Android Development] acidwashg1:
your script is amazing. a vital resource for rom-aholics. as a newbie, I have to post and tell you this. I've tried 5 different roms because of your script. my cyanogen stable rom was starting to lag a little, so I decided to try cyanogen's 3.9.6 experimental build last night. I stored my stable build. I guess I was one of the few lucky enough to have a phone that would not boot with cyanogen 3.9.6, haha. I restored my stable build and everything was back to normal! shortcuts and everything! restoring seemed to temporarily solve some of the lag issues I was having too. now I'm on cyanogen 3.9.7, no lag =)
[G1 Android Development] rastacre:
Man This is awesome!!

Great script. Easy concept and very well executed.

If I may... :)

I would add a function that:

if the script is called just with:

./switchrom -r

the list of bookmark is shown and a user input to select which one to restore.

It would make things much much easier considering the fact that typing long command in the recovery console can be a pain in the arse.

Anyway it's just a cosideration/suggestion, the script is great as it is.

Again Good Job

Cheers
[G1 Android Development] overground:
Devsk has already implemented the list feature with the -l flag, but I understand what you're saying. I think what we need first is the ability to separate the EXT data from the nandroid. I'm sure he's hard at work getting that in there.:)
[G1 Android Development] devsk:
This is a good idea! Although, most of the time I run through adb and typing is not an issue.
[G1 Android Development] dweller88:
thanks for this script, I just updated cy recovery 1.4 and am testing swapping from

JACMyTouchskiv2.5 to JACxROM1.3
[G1 Android Development] mfrey0118:
This might seem like a dumb question...but when I am typing the commands in recovery, how do I know the exact syntax of the ROM? Where the dashes are, the numbers and periods and spaces, etc...I mean, if I type "lucid -v" in LUCID script the ROM name appears...is that exactly how I must type it?
[G1 Android Development] rastacre:
you can give any name you want to your bookmark, doesn't really matter.

after you create a backup, if you then run

sh switchrom.sh -l

it'll list the bookmarks on your SD card with the names you gave your bookmarks. These are then the name you can then use to restore the bookmark you want.

cheers
[G1 Android Development] mfrey0118:
lol...sorry I just saw this. :D
[G1 Android Development] devsk:
There was a suggestion made above for '-r' option to provide the list and user could choose, which will reduce the amount of typing as well as typing mistake. Its coming in the next version.
[G1 Android Development] parrothd:
I think there's a bug in the newswitchrom.txt file..

.

/ # sh /system/sd/switchrom.sh -s backup1

sh /system/sd/switchrom.sh -s backup1

Storing ROM backup1, proceed? (y/n) y

y

Storing app data...

Storing nandroid backup...

Error occurred during nandroid backup...

Have a look at "/system/sd/nandroid.log" to find the cause.

/ # cat /system/sd/nandroid.log

cat /system/sd/nandroid.log

nandroid-mobile v2.1

Usage: /sbin/nandroid-mobile.sh {backup|restore} [/path/to/nandroid/backup/]

- backup will store a full system backup on /sdcard/nandroid/HT842GZ38180

- restore path will restore the last made backup for boot, system, recovery and

data

/ #
[G1 Android Development] parrothd:
Worky Worky with 1.4 recovery image only...not 1.3.. :)

Thanks!
[G1 Android Development] devsk:
you found it yourself...:D
[G1 Android Development] truthkilla:
Can I switch from a Hero Rom to a non Hero Rom? Example going from XHero to XRom and back without any problems.
[G1 Android Development] Chahk:
Yes.

10 char.
[G1 Android Development] devsk:
what's that '10 char.' thing?
[G1 Android Development] Frank Black:
i know i may get heat for this but i couldn't find anything similar in this particular thread...how to i rename to system/sd/ from the console?
[G1 Android Development] devsk:
Rename is a bad word here. You can't rename a file and change its folder location. This is what happens when you use linux too much....:D

If you have 'adb' working, go the folder where you saved the file and just do 'adb push newswitchrom.txt /system/sd/switchrom.sh'. If you do this when booted into recovery, you might have to mount the /system/sd before the above command with something like 'adb shell mount /system/sd'.
[G1 Android Development] Chahk:
XDA requires your posts be at least 10 characters long. :)
[G1 Android Development] Shaquiel Harris:
mk guys i know i posted here before and im still a little confused about this but i got it somewhat down now i hope :]

i have 2 sdcards now :D one is a 2gb and the other is a 1 gb.

i want to use this so that on my 1gb i will have like a cyan or xhero rom and on my 2gb im going to always run hero. Im sorry for always posting questions here i really am but this still confuses me alot. if anyone can give me a little run down on how to set this up id greatly appreciate it.
[G1 Android Development] devsk:
Not getting much time to spend on this script but you got lucky...:D I found this to be useful, so its done in 1.1.

Next up is choosing specific parts of the backup.
[G1 Android Development] EZ14U2NV:
this is growing so quickly and i'm about to start using it to try out new roms however i have a couple questions really quick please don't shoot me anyone... does this backup ext2 AND linux-swap data as in the userinit.sh and everything? and has anyone noticed slowdowns or irregularities in switching roms... from any angle?
[G1 Android Development] devsk:
linux swap partition doesn't need to be backed up because it doesn't contain anything which survives a reboot.

slowdowns or irregularities? Nope! Conceptually, its restoring the whole phone to a state which it was in when you backed it up. So, only slowdowns and irregularities would be the ones which were present when you backed up.
[G1 Android Development] rastacre:
Good Job man :)

I appreciate the effort and the quick enhancement... :D

Cheers
[G1 Android Development] PlatinumMOTO:
do we still need the nandroid backups in the nandroid backup folder because I deleted them and now my restore doesn't work from the script.
[G1 Android Development] devsk:
What version of the script are you running? What version did you use to make the backup? What error are you getting?

This script stores a copy of whatever it needs to restore the complete ROM, so nothing is lost. Your nandroid backups are also present in /sdcard/switchROM/<rom_name> directory.
[G1 Android Development] PlatinumMOTO:
well I think what happened was I was using your first script where you put in in the sdcard directory instead of the /system/sd/ and then I had backed up 4 roms using that one but then I got your new one and backed up 2 roms using it and then deleted the nandroid backups they were taking about 968mb so I figured I didn't need them.

But the log error was no backup found.

and I was trying to restore a backup I did with your newest script.
[G1 Android Development] devsk:
Do you have some error messages? If you were doing it from adb, just cut&paste into this thread.

I can understand the error happening if you try to restore the older backup with newer script. You need older script to restore older backups. (you can do it with newer script also but you will need to manually move some stuff). But the error you got was with newer script and backup was made with newer script, which should not happen. Did you delete anything inside /sdcar/switchROM folder manually or using nandroid script?
[G1 Android Development] Frank Black:
how do you attach the script without adb? I'm at work and don't have admin priveleges to do the whole adb setup right now lol.
[G1 Android Development] devsk:
save it in /sdcard (if you are in windows, that means copy the file to the drive of your SD card). And then, copy using a teminal emulator inside 'su',

$ su
# cp /sdcard/switchrom.txt /system/sd/switchrom.sh
# ls -al /sdcard/switchrom.txt /system/sd/switchrom.sh
[G1 Android Development] overground:
Try this:

1. Place script at root of sdcard (renaming to switchrom.sh)

2. Type this in terminal:

su
mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
busybox cp /sdcard/switchrom.sh /sytstem/sd/switchrom.sh
chmod 755 /system/sd/switchrom.sh
exit
exit

From there just follow the instructions in the first post.

EDIT: Or do what devsk said above....seems a lot easier:)
[Touch Pro, Fuze General] Skyen:
Hej

First sorry for my english.

I have so many errors on my htc touch pro and i dont know what to do now to fix it. So plz help me.

First it was sooo slow, then i make backup with Sprite and updating to the new rom from htc.com, first it was very fast, but not after i restore my Sprite backup. :(

Now i have these errors:

Sometimes some sms messages is gone. just gone like it self deleting them.

Its very slow again so i try to uninstall my programs but cant. All programs i restored is not on the Remove Program list.

The screen rarely changes when i open and close the keypad. sometimes it help to soft reset.

The music player dont work in touchFlo. cant play or change song or anything. Can only play music if i open the file.

Sometime i dont get sms when the screen is off. then when i turn it on i get the sms. sometimes i wait 20 min on a sms then i turn it on just for look at then i get the sms.

Its a little strange but every day exactly 23:59 every day my phone lights up :D dont know why.

that is all the errors i have.

These is thing i like to have:

I realy need the stock part From the new TouchFlo

Keypad light to stay on longer. now it turns off after a few sec.

Hotmail only shows the last 10 emails. (now its 50)

Only save the last 10 sms i have send.

I realy close to install these rom on it:

http://xdaforums.com/showthread.php?t=530882)?

But im new to this, so i dont know if there is a better rom.

Is there a rom with danish language?

What if i need to get it repared, and i have that rom on it?

Im a little lost here so i thanks for all the help i can get.
[Touch Pro, Fuze General] xibit1987:
Hey du,

Jeg kan hjælpe sender lige pm
[Touch Pro, Fuze General] Skyen:
Tak du :) Det er gjordt. jeg vil lige sovet lidt. så må vi snakkes senere.
[Touch Pro, Fuze General] Skyen:
plz can i get some help?
[General Questions and Answers] Risingsunn:
First I just want to say thank you to all the hard working developers here that have made customizing my new-to-me Tilt a blast. Your work is appreciated.

Second I am trying to find an email client that can log into OWA and download/upload email, contacts, calender etc. The company I work for has external access for OWA but had OTA and OMA blocked and disabled so I cannot use those.

Before I switched to my Tilt I had a Palm based Treo and used Chatter email with the OWA plugin. Set up was a breeze and it worked well. Now I want to move up but haven't been able to find anything for WinMo that fits the bill. Any help would be more than appreciated, thank you
[G1 Q&A, Help & Troubleshooting] isaacwaller:
Hello,

How can I make a ROM that overclocked the processor to 512 high 127 low? I think you add it in init.goldfish.sh, but what code would you add?

Thanks,

Isaac
[Touch Pro2, Tilt 2 Windows Mobile General] coscom:
I was reading the user reviews of the Fuze on another website when I noticed one saying that the Fuze requires you to press the power button to reactivate the screen each time you need to press a phone number button on the screen while you are on the phone. Is this a requirement on the TP2? As someone who has to deal with phone trees and other automated phone systems alot for business calls I was thinking that I should ask about this as it would be extremely inconvenient.
[Touch Pro2, Tilt 2 Windows Mobile General] ohyeahar:
The proximity sensor will automatically turn on the screen if you move your face away from the device during a call. There's a big button to bring up the keypad to use. If the keypad is deployed and you put the device back to your face, the screen will turn off. But if you turn the screen back on, the keypad will still be deployed, so that's pretty useful.
[Touch Pro2, Tilt 2 Windows Mobile General] coscom:
Thank you very much for this information, it in nice to hear that this problem was resolved on the TP2. I was also wondering if it is possible to run the speakerphone with the TP2 in face up so one could type on the dialpad on the screen while hearing the responses from the phone call? I'm guessing this is possible as my old 8525 does it fine but I just thought I should confirm it. Thanks in advance.
[Touch Pro2, Tilt 2 Windows Mobile General] D3StRoY:
During a call, you can also take out your stylus, it will start notes.. makes it available to write on the screen during a phonecall.
[Touch Pro2, Tilt 2 Windows Mobile General] ohyeahar:
Yes, there's a large button during a call for you to tap to switch to speakerphone as an alternative to putting the device face down on a table. Dialpad works the same in speakerphone mode as in normal mode.
[G1 Q&A, Help & Troubleshooting] derfolo:
Crap.

After spending two days rewriting Phone.apk to stop the quick screen timeouts and finally getting it installed and working happily on my phone, I drop the frickin thing in a puddle!

So I tried all the crazy stuff. Bathed it in alcohol, let it dry by an air conditioning vent overnight, left it in a bag of rice overnight. It sorta works, but at max brightness it is about like 10-20% on your screen, and you can see "bubbles" in the background. I will probably buy a replacement LCD screen, but it's hard to tell if there isn't more wrong with the phone at this point. I need this thing working right away, so this old one is officially becoming a backup phone.

My question: Do I get a new MyTouch 3G in two weeks, or buy another G1? I really love the G1's physical keyboard, but I also like the increased performance of the MyTouch. Any suggestions are appreciated.
[G1 Q&A, Help & Troubleshooting] firehawkws7:
That bones man, sorry to hear that. If you decide to wait and want the performance, Just wait for the hero and order an unlocked one. No 3G, but IMO worth the loss for the other gains.
[G1 Q&A, Help & Troubleshooting] h.nocturna:
... The Sony Ericsson X3... :p