yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] jmanley69:
As far as Linux... get VMWare player for free and download ubuntu and you're set real fast. Also if you notice what I said about doing a tar instead id using Linux.

As far as symlinks. You're right there "shouldn't" be any... but if you're backing up something why not do it right just in case? We have no idea what future versions of apps2ad sill do. It may happen that a file MUST reside on internal memory and therefore you'd need a symlink.

As far as the rest...

Actualy... each app gets its own user id and mismatches in those can cause problems with some apps. And each file in Linux gets attributes to tell the OS who is allowed ti read/write/execute it. If those get messed up it can cause problems.

So... we have a responsibility aa educators to give the best instructions possible. And not give instructions that ultimately would result in a backup that is missing vital information and would lead to a complete reload to fix the problems.

There are many reasons why Google decided to restrict apps to internal memory and we will never know all of them... this may very well be one of the problems they saw happening.
[Hero CDMA Android Development] jmanley69:
So... Amon-Ra's recovery does have tar (using BusyBox)

Therefore, the best way to backup the ext partition on the sd card would be (assuming that it's ext3 and you're using Amon-Ra's Recovery) :

Boot into recover (adb shell reboot recovery)

when recovery comes up, go to the shell (adb shell)

Then, issue these commands:

mount -o ro -t ext3 /dev/block/mmcblk0p2 /system/sd

cd /system/sd

tar -c -f /sdcard/extback.tar *

Mount the SD card on your PC as removable storage

Back up the sdcard (PC's OS doesn't matter)

Turn the phone off, swap the cards, reboot into recovery (manually), format, partition, and convert ext2->ext3 the sdcard, put all the stuff back onto the card... and in the shell (within recovery)

mount -o rw -t ext3 /dev/block/mmcblk0p2 /system/sd

cd /system/sd

tar -x -f /sdcard/extback.tar

reboot
[Hero CDMA Android Development] tg2k:
failing on adb push

I'm trying this now and every time I try to use adb push to copy files to the new SD card (step 8), it copies a bunch of files and then eventually returns to the DOS command line. Then the phone reboots. I yank out the battery quickly so I don't have to see it fully boot...then put it back in and boot into recovery mode. When I then adb shell into the phone, the /sdcard directory is empty of everything I copied.

I have verified that if it successfully copies some files, that I can list them using adb shell. But once something fails and the phone reboots, the whole SD card is blank and I have to start all over. I don't see any way to make this complete.

Is this a protocol issue? A bum SD card? Something else? Is there any other way to get the files onto the SD card? I tried inserting the card into my computer and it just asked if I wanted to format the card (I said no of course).
[Hero CDMA Android Development] jmanley69:
I'm not sure why you're doing adb push or adb pull anything. Just mount the SD card and use your PC's OS to copy the files off and back onto the sd card. Also, if your computer thinks the sdcard is not formatted, you probably haven't formatted it from the recovery menu.

As far as files being copied onto the sdcard, showing up, but then disappearing on reboot... that sounds like the card wasn't dismounted properly. This happens in Windows, Linux, and Mac anytime you mount a volume (i.e. USB flash or SD card or any external drive), copy stuff to it, and unplug the external media without using the PC's OS to dismount the drive. Just about all operating systems use write cache on external media so that the user doesn't have to wait forever for operations to finish. The thinking is that the user will not likely write something and immediately remove the drive.
[Hero CDMA Android Development] tg2k:
I used sdparted to do the partitioning. I thought it succeeded, but maybe not. I will try it again. It appears that even my Knoppix Live DVD can't recognize the new card so it would seem something went bad with it. If I can get sdparted to work properly then at least I should be able to copy things without using adb.
[Hero CDMA Android Development] tg2k:
Got it working after much hassle

This time around, after using sdparted, I shut down the phone (I wish I knew of a way to do so from recovery mode other than yanking the battery) and put the SD card into my computer. Some trial and error revealed that my computer renders the SD card useless every time I do this. I don't know if it is an incompatibility with my SilverStone FP35B Card Reader, or if the card reader (which is very new) has a hardware problem. It's not a Vista compatibility issue, because when I put the card into my Vista laptop, it worked, so long as I hadn't put it into my main computer first. I guess I'll find this out once I try a fully FAT32 SD card in it.

So, I moved my backup to my laptop, re-ran sdparted, and then I was able to copy the files to the new SD card and complete the procedure.

After doing the copy I discovered that you can actually access the SD card as a USB drive from recovery mode. The answer is here, basically:

adb shell
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file

Apparently this enables the USB mode from recovery. I didn't try it though.
[Hero CDMA Android Development] jmanley69:
Which "how to" where you following?

I'm not sure what recovery image you're using, but Amon-Ra's has a menu option on the phone's display to enable usb... no need to do anything from the command line for this.

Amon-Ra also has a partition option (no need to use any command line tools for this either)
[Hero CDMA Android Development] tg2k:
This thread, as much as I could.

I think I used Cyanogen's 1.4 recovery. I probably don't need Amon Ra's anymore, but it would have been very helpful yesterday ;-) . It seemed to me (with the less sophisticated recovery) that a lot of little steps were left out. For those reading this thread, I found the latest Amon Ra recovery for HTC Dream (aka T-Mobile G1, which is what I have) here. I found a wiki for HTC Magic users here that has its own link to the recovery image.
[Hero CDMA Android Development] noel_leon:
Worked a treat with Amon Ra 1.3.2.

I combined the first post with jmanley69's instructions .

Thanks to jmanley69 and esoteric1311!
[Hero CDMA Android Development] falconne:
I also agree with jmanley69's instructions, especially if you don't have a microsd card adapter handy, and tar is a good idea to preserve permissions. Also, you avoid having to reboot the phone with an empty ext partition.

The problem I had though was that it seems busybox's mount can't mount an ext4 partition, at least while in recovery. However, you can create the partition as ext2, mount that, restore your tarball and finally upgrade the partition to ext4 (because upgrading preserves the data on the ext partition), if that's what you want. All this is easy assuming you use the sdparted shell script.
[Hero CDMA Android Development] Wasney:
After hours of trying I have finally decided to post. This is my situation. My phone will only boot with my sd card in it. Without it, or with another card it sticks in a boot loop. The only way I am able to use another card is if I go into recovery and restart my phone deleting my rom. This would be fine...except I want to use my new 16gb class 6 card. I have tried both methods posted here, in Ubuntu and Windows 7. They run fine, but my phone still stays in a bootloop without the original sd card.

Anyone have any ideas what I can do? I am close to just formatting and starting from scratch. I have backups of the important stuff...its just going to be a pain to reinstall all of my apps, my rom, and rom customizations.
[Hero CDMA Android Development] jmanley69:
Are you able to boot to recovery without your original sd card? These steps should really be done in recovery since nothing in that boot image requires the apps directory on the sdcard.
[Hero CDMA Android Development] Wasney:
Yes I can, I have done all of this while booted in recovery. Can boot to recovery without card. Its just I can only fully boot with my original card....NO matter what way I copy files from that to the new one it doesn't boot.
[Hero CDMA Android Development] jmanley69:
have you moved the davlik-cache to your sd card (the original one) as part of apps2sd?
[Hero CDMA Android Development] Wasney:
Yes. I also tried moving that to the new card and it wont boot, without or without it.
[Hero CDMA Android Development] jmanley69:
I'm pretty sure that security attributes may be an issue here. What method did you use to "move" the data to the new card?
[Hero CDMA Android Development] Wasney:
I followed this, since I am using Ubuntu. except instead of ext3 I used ext2
[Hero CDMA Android Development] jmanley69:
Try using the tar method... while this guide was a good starting point, but after further inspection, I realized that tar would be the proper way to do it since it's included in Amon-Ra's recovery image via Busybox. Tar will keep all the attributes of all the directories in tact, and I don't believe that the cp will do this (I spoke without investigating fully).

http://xdaforums.com/showpost.php?p=5050350&postcount=21
[Hero CDMA Android Development] jmanley69:
I should note... that since I don't have the cache moved to my ext partition on my sd card, I am only 90% sure that that directory is mapped under /system/sd. If not, you will need to locate that directory and tar it up as well.
[Hero CDMA Android Development] Wasney:
I attempted it and still no luck. I did notice something though...This command:

tar -c -f /sdcard/extback.tar *

Does not create a tar anywhere that I can find. So, when I can to this command:

tar -x -f /sdcard/extback.tar

It says: tar: can't open '/sdcard/extback.tar': No such file or directory
[Hero CDMA Android Development] jmanley69:
Right before you do the tar to create extback.tar, do an ls /sdcard ... do you see anything? If not, try mount -a and then do ls /sdcard and see if anything is there now. Regardless, after the tar to create extback, do an ls /sdcard and verify that it's out there.
[Hero CDMA Android Development] Wasney:
This time I was able to see a tar...but it is a empty file. I really do not know what I am doing wrong.
[Hero CDMA Android Development] jmanley69:
I suggest you use the latest Amon-Ra recovery and use the nandroid backup option that backs up your sdcard's ext partition.

Then, once you've copied all the data over, and partitioned your card, use the restore option.
[Hero CDMA Android Development] Wasney:
I wonder if there is a program I can use to make a copy. I am able to just mount both sd card on my ubuntu box. Is there a way to just make a duplicate card out of the first? Then I can just resize the partitions.
[Hero CDMA Android Development] Wasney:
So...I don't know if I should thank you...or be mad at myself for not trying this to begin with...Lol. Worked, first try.
[Hero CDMA Android Development] digitalscars:
how should i partition my 8gb class 6 class?

should i use the stock

swap 32MB

ext2 512MB

fat32 remainder ??

or should ext2 be higher, little confused on what to do there.
[Hero CDMA Android Development] posguy99:
You have no reason to change the defaults.
[Hero CDMA Android Development] Wasney:
Agreed, I use the defaults with my 16gb.
[Hero CDMA Android Development] jayp146:
Is this still the best guide for swapping SD cards? I'm on the verge of switching from a class 2 2GB to a class 6 8GB SDHC.
[Hero CDMA Android Development] theresthatguy:
Someone should add this to the guides sticky wicki.
[Hero CDMA Android Development] thedudejdog:
done :D

curse that limit
[Hero CDMA Android Development] riggsandroid:
Does doing the nandroid+ext backup, not backup the ext partition sufficiently?

Or is this method still the best way to swap cards?
[Hero CDMA Android Development] smw6180:
I did an a2sd swap yesterday.

Did a nandroid/ext backup.

Copied card to computer.

Powered off phone.

Switched cards.

Partitioned new card.

Copied back from computer to SD card

Restored nandroid

Worked like a champ.
[Hero CDMA Android Development] jonnythan:
This method predated the "nandroid+ext" option in the recovery ROM. It's now obsolete.
[Hero CDMA Android Development] itrackit:
Glad I found this. I'm going to do the same thing this week went I get my new sd and needed to confirm these exact steps. thanks.

edit: Just confirmed, did exactly the above steps and like the post above "worked like a champ"
[Hero CDMA Android Development] mfgarcia:
Thanks smw6180, with so much info posted at this topic I was a little bit mixed up about what to do.. followed your easy steps and YES, worked like a charm ;)
[Hero CDMA Android Development] craig198:
wish I found this post 3 days earlier. lol
[Hero CDMA Android Development] bcarter2000:
Worked like a charm....Many Thanks!
[Hero CDMA Android Development] sugar0:
isn't there an easy way ?? this seem quiet long and i think all do many mistakes :)
[Hero CDMA Android Development] vidsid:
Look like 5 posts before this one ^
[Hero CDMA Android Development] sugar0:
i did a nandroid backup and now it's stuck on boot logo screen ! HELPPPPPPPPPPPP

EDIT: i wiped to deafult and now it boot but the usb is bricked and dont want to read the SD card (i also formatted it twice) HELPPPPPPPP^2
[Hero CDMA Android Development] l0nEr:
Hey, does clockworkmod ROM manager does Nandroid+ext when it backups?

If so, i can just use ROM manager to backup before moving into the new card right? thanks!
[Hero CDMA Android Development] Vandelay007:
No...that does not do a backup of your SD card. ..I would back your card up on your computer
[G1 Q&A, Help & Troubleshooting] citizen-erased:
Ok I'm a long time cyans build user

I never had any problems what so ever using he's builds everytime there perfect

I don't have my fone service at the moment but I use my brothers sims

Which of course he also has a white G1

He let's me use he's sim so I can use my gmail and update and stuff

But one day I notice I had foreclose on the sign up pop up window

And I just pretty much ignored it

And now I had applyed. The cyans build 4.2.4 everything worked perfectly.

But two things my browser and gmail

Ill try to use my gmail app .. but when I try to .. it just trys to sync but a window pops up

Foreclose and I have to close it cuz there's no option of course

And my browser sumthings will just auto will close by itself

And I have tryed to ask cyan for help but he never responds its not because he's mean or sumthing but I bet he has a life and does way toooo much for the community so I just wait

But now I can for help here maybe u guys could help

Right now I just updated to 4.2.5 and still same thing .. everything is great but those things

Keep happening ... any help is welcome thanx

Here's my gtalk if u wanna contact me faster. Deadstar.ws@gmail.com

If u can if ur not busy thanx a million guys
[G1 Q&A, Help & Troubleshooting] Houka420:
You may get a better response if you post in the correct section. Q&A instead of development.
[G1 Q&A, Help & Troubleshooting] citizen-erased:
thanx

That's right crap ... sorry for noob mistake. Ill just make another in Q&A forum ... I'm planing to wipe my build again tho .. I just had done it friday
[G1 Q&A, Help & Troubleshooting] wizern23:
i'm having the same problem myself. can you use logcat right after you get the force close and post it here. i'll post mine later on.
[G1 Q&A, Help & Troubleshooting] he3:
foreclosure

When you signed up did you pick a balloon or option ARM?
[G1 Q&A, Help & Troubleshooting] citizen-erased:
option

no it just. I get a foreclose when ima sign in to gmail account so I can sync my numbers and etc etc. Right ..

Well sumthings I would get a foreclose balloon or a wait button ... so yeah I would press wait and it would go away .. but that happened a few times .. until one day it just said foreclosed completly and I had to wipe the newly build 4.2.4 ... that's when I saw my gmail didn't work anymore
[G1 Q&A, Help & Troubleshooting] terence_oh:
hahaha it's probably packaged into a CDO now
[G1 Q&A, Help & Troubleshooting] dragon4000:
This used to happen to me as well... All I did was to re format my ext partition, wipe and re flash the rom. Ever since, its been working flawlessly. Hope its helpful.
[G1 Q&A, Help & Troubleshooting] citizen-erased:
partitions

Sounds awsome guys thanx for the replys today

But here's the thing

I always hated todo partitions even tho their necassary ...

But I don't have any sort of partition wat so ever any kind

I alwaysed stood by cyans builds easy stuff cuz I don't have a pc of my own

But everynow and then I would use my friends .. but yeah ..

Umm anyone without parttions plz help

Or anyone who's knows what's the problem ...
[Touch Pro2, Tilt 2 Themes and Apps] Tref:
Recently I installed dot Fred's TaskSwitcher and assigned it to my left softkey. After running it for a few days I decided I didn't need it and uninstalled it. I was surprised to see that it didn't revert the Registry values back to what they were before the install. After going in to the Registry to restore the original values I found that when done the softkey would bring up the Outlook Calendar instead of Pocket Informant's. So I started tinkering and discovered something cool about Pocket Informant.

Seems you can create shortcuts to your custom Views and save them as links in the filesystem. And those shortcuts can be assigned to the softkeys. So now I have my left softkey assigned to my custom weekly view and the right key to PI's Contacts. Now, instead of having to go into PI and choose a view other than the one it starts with I can use the softkeys to open my most frequently used ones.
[General Questions and Answers] skrki:
Alright, since my google search returned the whole 2 (two!) relevant results, and the search here around 10 irrelevant, I thought I'd drop this on the community, in hope for some help. :D

I've upgraded my

64bit OpenSuSE to 11.2

the other day, downloaded the Android SDK, set up the environment variables, and fired up the "android" script that is supposed to download and install a platform, so I could access my device through adb shell.

Here I ran into a problem: Half of the buttons I click in the SDK updater don't seem to work, it will not save the settings, it will not remember the URL I type in (had to use http), and when it reads the http repo, it will not download and install what I have cheked! What happens is, I click the button, it appears to stick down for a while, then pops back up as if I never clicked it, and nothing happens.

My first question is, has anybody tried this on SuSE 11.2? I have had no problems on 11.1, for instance.

Second, does this need any "special" Java configuration to work properly? I have tried both the openJava (now built-in into SuSE), and Sun Java latest (SDK and JRE). I don't think so, but asking just in case...

I'm pretty much stuck. If anyone has this working, or better yet, if anyone knows where I could download platforms outside of the updater, please be so kind and share. Thank you!

P.S. Oh, and the optional third question: Is there a way to trigger the download from console? That would probably help to figure out what goes wrong...
[General Questions and Answers] skrki:
EDIT: Not Java problem, but updater problem. It does not show any of the SDKs, it shows only APIs, which can only be added if a valid SDK exists.

Can anyone confirm this?

It seems I need an external link to SDK 1.6 for Linux (for example). Can't anyone share?

Thanks!

Still stuck...

EDIT2: Solved it, my adb works again. But the updater app is crap ;) I installed the APIs, then shut it down, rebooted, then ran it again. Also, for some reason the buttons wouldn't respond to clicks, but if I click and then push Enter key, it works. Took me a while to figure this one out.
[General Questions and Answers] MountainX:
Hey, I'm getting ready to install Android SKD on openSUSE 11.2 from scratch. Could you list your steps and/or suggestions based on how you got it working? Thanks.
[General Questions and Answers] skrki:
How did it go?? Sry, just saw this... :o

Don't have time to do the steps.. actually, everything works just as the standard procedure suggests, with the exception of button clicks - as I said, each time I clicked a button, I had to press the Enter key (as if the click was just giving it focus, but not the actual command)

Feel free to PM me (or any other user), especially if the thread is a bit old, like this one.
[G1 Q&A, Help & Troubleshooting] citizen-erased:
Anyone here with the problem of the Gmail app foreclose right at the point you open it

That's if ur using build cyans 4.2.4 or 4.2.5

Plz any help is welcome

If u have same problem and if u can reach me faster. Here's my gtalk

Deadstar.ws@gmail.com

Thanks you
[G1 Q&A, Help & Troubleshooting] david1985:
im having the same issue it has been buggin me all day and hey what spl are you using?
[G1 Q&A, Help & Troubleshooting] wizern23:
i'm having the same problem myself. can you use logcat after you experience a force close. i'm going to post mine when i get a chance.

i have the haykuro death spl.
[G1 Q&A, Help & Troubleshooting] citizen-erased:
danger spl

Fudge guys .. I just barely finished wiping

And I'm using haykuros a.k.a danger spl

I don't know to use the log cat never had a chance or never neeeded to use it sorry guys

All I can say is that my app will only bring up a foreclose window and that's it nothing else

If u wanna hit me on gtalk go ahead plzz if u fix the problem
[G1 Q&A, Help & Troubleshooting] citizen-erased:
log cat

Log cat would be that app on the build right ??

Well I open it and yeah I choose it on gmail .. but nada it just takes me to gmail and it forecloses on me as soon I open it .. .. so no log cat info can be provided by me sorry guys
[G1 Q&A, Help & Troubleshooting] B-man007:
do adb logcat in windows....

Wipe and reflash the ADP recovery image and then flash cyan on top
[G1 Q&A, Help & Troubleshooting] citizen-erased:
thanx

Thanx for that info .. ill do it as soon I'm near a pc .. thanx

Even thos idk how to use adb .. ill have to learn it
[G1 Q&A, Help & Troubleshooting] mrnv45:
anyone ever got a process.google.gapps? it happens when i try to open gmail and when i try to sync from data sync. in setting..it would open then close just as fast!

i flashed a theme and for some reason only the theme...even with stock apps..revised apps and so on.. it gave me that FC.. its not doin it now cause i freshed wipe but does anyone know what that could be from? ima theme my phone and then if it does it i will get my logcat ready for yall! lol..
[G1 Q&A, Help & Troubleshooting] Pezplayer:
I've had the same issue since I started loading themes onto the

device. I was on 4.2.3.1 and it continued when I upgraded to 4.2.4. I

have a T-Mobile Mytouch3g and I'm running 32b. I wiped and flashed

the HTC_ADP_1.6_DRC83_rooted_base.zip and then flashed the cyano 4.2.5

and I was finally able to get my gmail working. I'm confident if I

start installing themes again I'm going to experience this issue
[G1 Q&A, Help & Troubleshooting] david1985:
same for me when i theme
[G1 Q&A, Help & Troubleshooting] citizen-erased:
wipe

I'm back guys thanx for all the replys

But maybe I should give more info on what I tryed todo while trying to fix my gmail app

-I wiped fresh many times and I could say straight out 4 times I swear

-I only used 2 themes .. 2.0 eclair theme and. Davids custome theme that I requested

+ I have no partitions

+I have not done anay hard stuff one my fone other than the basics

+I have. Dream

With danger spl

8 gigs sd

I have lastest build of cyans 4.2.5 and this problem started when I had flash 4.2.4 before that everything was fine
[G1 Q&A, Help & Troubleshooting] B-man007:
Did you have the Stericson's lockscreen?

Also, post the logcat with the code tags. I don't see any exceptions in the logcat
[G1 Q&A, Help & Troubleshooting] mrnv45:
nopr no stricson...

i used marks theme.. its always worked until 4.2.4 then i started havin issues