ADB issues - G1 Q&A, Help & Troubleshooting

I've been trying to back up by ext 3 partition (in particular the /system/sd folders) using ADB pull/push and am having trouble.
ADB appears to lock-up if the amount of data is too much. It will start pushing but hang during part of it if I try to push the entire /sd folder. If I do it subfolder by subfolder it works ok until I get to the dalvik-cache.
So 2 questions. 1 do I need dalvik-cache copied over or will it be recreated without issue. 2 why am I having trouble?

Related

how to backup app partition

is there a way for me to backup my ext2 app partition on my sdcard with a windows machine? im running cyans 4.0.2 and i love it! but i would like to be able to backup the partition 'just in case' but i only have a xp desktop. thank you!
need to backup your ext partition?
the following commands will backup/restore your ext partition to/from a folder named sdbackup in your current directory. these must be run while phone is booted, not recovery.
to backup your ext partition: adb pull /system/sd/ %CD%\sdbackup
to restore back to sdcard: adb push %CD%\sdbackup /system/sd
When you star a thread with "How..." in the title you must start this thread in Dream Q&A sub forum !
Thread moved
You can also use Ubuntu.
title sounds more like this thread would be instructions rather than a question.
Another way that does not require adb would be to enter the following in terminal emulator
Code:
cd system
cp -r sd /sdcard/(name of folder you wish to backup to)
Than just plug the usb into your windows box, mount the sd card, and copy the folder.
hcphs said:
need to backup your ext partition?
the following commands will backup/restore your ext partition to/from a folder named sdbackup in your current directory. these must be run while phone is booted, not recovery.
to backup your ext partition: adb pull /system/sd/ %CD%\sdbackup
to restore back to sdcard: adb push %CD%\sdbackup /system/sd
Click to expand...
Click to collapse
Will this allow me to move my partition to a different SD card without re-installing all my apps (via nandroid)?

Switching SD Cards

I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Go to the recovery console
mount /sdcard
mkdir /sdcard/ext
cp /system/sd/* /sdcard/ext/
the copy the ext folder to your new card, put it in your phone and go back to recovery
mount -o rw /dev/block/mmcblk0p2 /system/sd
cp /sdcard/ext/* /system/sd/
I've probably made a couple of mistakes with mounting the partitions correctly, so you may have to mount /sdcard on the second batch of commands.
Anartic said:
I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Click to expand...
Click to collapse
Use Adrian's method
awesome, i've been wanting to know how to do this myself so this will definitely come in useful.
B-man007 said:
pretty sure the adb command is
adb pull /system/sd/*
then use adb push to get it back on the new one.
that should get everything on your ext partition. (note: do this while phone is booted into the rom. else you will need to mount the ext partition)
(if you need clarification, dont mind asking)
Click to expand...
Click to collapse
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
david1171 said:
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
Click to expand...
Click to collapse
easiest way i have done this is do a switchrom backup, make sure its saved to your old sd, get your new sd partitioned correctly, and copy the switchrom folder from your old sd to your new one, then do the normal steps to restore a switchrom backup... this will restore your rom to the exact moment it was when you saved it. had me back up and running in 10 minutes after a new sd was here.
Thanks so much for the help guys, I just noticed that I left my USB cord at work :/, so tomorrow I'll get back to you guys about this.
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
ya i started my response and saw you already answered so i was like mehhhh
i wrote my own script to do all this stuff below for me, and its done through the recovery.
Back up apps
Remove app_s folder
Reformat ext3 partition
Restore apps
Enter Recovery
SwitchRom Backup/Restore
Clear Dalvik-Cache
adb push while booted works fine for me, it just slows the crap outta the phone for a good 2-3 minutes, but it works fine. i use push because adb install hasnt always worked 100% for me (i have ~130 apps, and some of them don't install.)
anyways ill edit out my post to stop confusion
i have no more then 40 apps so adb install doesn't really flunk out on me
the only thing i don't like is the protected apps that show up in the fugly system default app icon and the long name.

[Q]It shows there is no free space in system/lib in JP6!

Hi!
I flashed JP6 yesterday, and I want to do internet browser fix and One Click Lag Fix.
But when I copied libwebcore.so to /system/lib or Install EXT2 Tools, It always no free space /system/lib
Now I can only use update.zip to put the files into /system/lib, but OCLF still can not work.
Any help?
thanks!!
+1
Sent from my GT-I9000 using Tapatalk
I notice 2 things with JP6 (installed from Kies via registry mod). Not sure if everyone else is the same.
1. cp command is missing, but mv & rm are present
2. /system is mounted read only
So to make sure the internet browser fix works fine, you'll need to make sure your a.) phone is rooted, b) remount the /system as read write, c.) and then install busybox to use the cp command (if you're installing libwebcore.so by command line, otherwise you can use the file manager to copy files).
There is only about 10MB free space on /system with JP6 (with 803 pit, I believe).
Check this with:
df -h
Also, /system is mounted read-only so you have to remount it as rw before making any changes.
mount -o remount,rw /system
+1 and whenever I try to move an app to sd from the menu in settings>applications>manage applications>app name>Move to SD
It throws an error "Failed to move application. Not enough memory."
I wiped my entire phone clean and still it throws the same error. My internal memory (16 gb) has 10 gb free. The app that I'm trying with is Instant Buttons.
The dev has included move to sd option. Yet it does not work.
ive only got 300kb free in my /system partition on JP6. considering moving modules off to /data and adding it to the path to free up some space. its unworkable like this.

[Q] Internal sdcard problem

Hi All,
I messed up using adb to push a file to my internal SD card - I did something like this:
adb push afile.txt /sdcard
I thought it would place the file into the sdcard folder, but instead it over-wrote /sdcard with the file - ie the sdcard folder was gone, I was left with a file named sdcard in the root of my phone.
So, I renamed that file, and created a symlink, like this:
ln /mnt/sdcard sdcard
Mostly, everything's OK, but I'm getting some weird behaviour, FCs, Android Bookmarks won't display my gmail accounts bookmarks.
<Edit> Reinstalled ROM, and issues gone away.
However, can anyone confirm that the /sdcard folder is just a symlink to /mnt/sdcard?
Is that all I have to do ?
</Edit>
Russell

[Q] /storage/emulated/0 missing

After upgrading to trickdroids 4.2.2. based release I have some problems. Only with Grooveshark so far. It crashes every time I run it.
Here is a pastbin for it.
http://pastebin.com/VEHkWvZQ
I understand that
/storage/emulated/0/: to my knowledge, this refers to the "emulated MMC" ("owner part"). Usually this is the internal one. The "0" stands for the user here, "0" is the first user aka device-owner. If you create additional users, this number will increment for each.
/storage/emulated/legacy/ as before, but pointing to the part of the currently working user (for the owner, this would be a symlink to /storage/emulated/0/). So this path should bring every user to his "part".
My app that is crashing since upgrading to 7.? is Grooveshark it requires storage in
/storage/emulated/0/Android/data/com.grooveshark.android.v1/files/cache/player
I have no
/storage/emulated/0
I do have
/storage/emulated/legacy/
How would I make the link to this.
I have tried this but it fails
ln -s /storage/emulated/legacy /storage/emulated/0
link failed Read-only file system
Can somebody help with the commands needed to make this link that is required.
I've got the same problem. Have u solved it? if yes, how?
I've struck similar problem after accidentally deleting internal storage. I had no /sdcard in storage.
Apparently you need to run ;
mount -w -o remount rootfs /
Then ;
ln -s /data/media/0 /sdcard
You can check with ;
ls -l -a /sdcard
I have /sdcard0 now in /storage which appears to be the correct description. I use X-plore file manager and it can now see the internal storage correctly.
However CM File Manager (CM11) indicates internal storage should be at /storage/emulated/0 where as mine is /storage/emulated/legacy. Of course I can create a bookmark in CM File Manager to the folder and can see the storage.
All my apps and phone appear to function normally but i can't help wondering if the structure I have in /root for my internal storage is not quite correct. If anyone can tell me the folder and symlinks I should have it would be of great use.
I've tried recreating symlinks with succes so that CM File Manager can see the internal storage at /storage/emulated/0 but the moment I reboot the phone it's back the to the way it was. Have yet to find a simple explanation for what controls the folder structure in /root and why I can't get the symlinks I create to stick.
Update 5Feb - Did another factory reset and flashed CM11 M2. Everything OK now. Maybe needed a couple of resets to sort the ghosts in the machine.

Categories

Resources