I need help, SD-Card accidentally formatted - One (M7) Q&A, Help & Troubleshooting

I was not paying attention and the complete formatted SD memory ...
On the PC I have a nandroid backup of the stock ROM,
the device is rooted,
I come into the recovery too.
I need urgent help please!
I feel realy bad :crying:

If you have a nandroid and want to restore it, then you can push it on sd, but need to create folders first via adb
First check whether you have adb access with:
adb devices
Your device numbers shows, all good. If not try flashing another boot.img for yor ROM base, that has adb enabled. I trust you had USB debugging enabled on your device...
1. New folders (I name your nandroid folder stockbackup, name it how you like)
adb shell
mkdir /sdcard/clockworkmod
mkdir /sdcard/clockworkmod/backup
mkdir /sdcard/clockworkmod/backup/stockbackup
Part 2 - pushing Nandroid to sd
These commands not inside adb shell
adb push boot.img /sdcard/clockworkmod/backup/stockbackup
adb push cache.ext4.tar /sdcard/clockworkmod/backup/stockbackup
adb push cache.ext4.tar.a /sdcard/clockworkmod/backup/stockbackup
adb push data.ext4.tar /sdcard/clockworkmod/backup/stockbackup
adb push data.ext4.tar.a /sdcard/clockworkmod/backup/stockbackup
adb push data.ext4.tar.b /sdcard/clockworkmod/backup/stockbackup
adb push nandroid.md5 /sdcard/clockworkmod/backup/stockbackup
adb push recovery.img /sdcard/clockworkmod/backup/stockbackup
adb push system.ext4.tar /sdcard/clockworkmod/backup/stockbackup
adb push system.ext4.tar.a /sdcard/clockworkmod/backup/stockbackup
adb push system.ext4.tar.b /sdcard/clockworkmod/backup/stockbackup
Now your nandroid is on sdcard/clockworkmod/backup/stockbackup
If everything worked, restore your nandroid as usual.
Alternatively just download a custom ROM like for example TrickDroid and push this to your sd and install.
adb push TrickDroid_2.1.0.zip /sdcard/

Hello,
thank you for your effort
I've never done this before,
can you tell me where I need to enter the path of the backup on PC,
Here, for example:
adb push boot.img /sdcard/clockworkmod/backup/stockbackup

resolved
Managed to install the AIO Kit by sideload the TrickDroid ...
Accidentally discovered!:laugh:

Related

Help With ADB...please

Hey guys, i'm having a bit of a problem here. It might be a stupid problem that i am over looking, but i just cant seem to figure it out. I dont use ADB often, but i just installed cyanogens newest rom and it no longer comes with the advanced launcher. which i absolutely love. so heres my issue, I am trying to follow these directions:
Installation
- Plug your USB cable into the phone and your computer
- Make a backup of your original launcher: "adb pull /systemapp/Launcher.apk LauncherBAK.apk"
- Remount the /system filesystem: "adb remount"
- Unzip the advanced launcher "unzip Launcher_update_x.zip"
- Push the advanced launcher "adb push Launcher.apk /system/app/Launcher.apk"
- Remove the odex file "adb rm /system/app/Launcher.odex"
- Reboot your phone.
This is whats happening:
cd C:\android-sdk-windows-1.5_r3\tools
C:\android-sdk-windows-1.5_r3\tools> adb shell
#adb pull /system/app/Launcher.apk LauncherBAK.apk
adb: not found
#
I tried moving forward without backing up. this is what i get:
adb: not found
#adb remount
adb remount
#adb: not found
#
This is where im at. can sombody please point me int he right direction of whats going on here? thank you
As I understand it, when you type adb shell, youre in the android shell, and no longer use the adb commands, but you use the commands that youd use in console. ADB has different commands, which you can list by just typing adb.
SO,
plug it in
adb remount
adb pull /system/app/Launcher.apk LauncherBAK.apk
unzip Launcher_update_x.zip
adb push Launcher.apk /system/app/Launcher.apk
adb rm /system/app/Launcher.odex
reboot
That should work. Dont use the shell. The pros can feel free to correct me.
Hummeroid said:
As I understand it, when you type adb shell, youre in the android shell, and no longer use the adb commands, but you use the commands that youd use in console. ADB has different commands, which you can list by just typing adb.
SO,
plug it in
adb remount
adb pull /system/app/Launcher.apk LauncherBAK.apk
unzip Launcher_update_x.zip
adb push Launcher.apk /system/app/Launcher.apk
adb rm /system/app/Launcher.odex
reboot
That should work. Dont use the shell. The pros can feel free to correct me.
Click to expand...
Click to collapse
As far as I know this is right. Don't try to pull when you're in adb shell.
Hummeroid said:
As I understand it, when you type adb shell, youre in the android shell, and no longer use the adb commands, but you use the commands that youd use in console. ADB has different commands, which you can list by just typing adb.
SO,
plug it in
adb remount
adb pull /system/app/Launcher.apk LauncherBAK.apk
unzip Launcher_update_x.zip
adb push Launcher.apk /system/app/Launcher.apk
adb rm /system/app/Launcher.odex
reboot
That should work. Dont use the shell. The pros can feel free to correct me.
Click to expand...
Click to collapse
Right on! thanks so much Hummeroid.
Okay so I tried to do it without the shell and this is what i'm getting. So I'm stuck...Btw, I really appreciate all the help everyone's giving me.
C:\>cd androidsdk\tools
C:\AndroidSDK\tools>adb devices
List of devices attached
HT96LLV00999 recovery
C:\AndroidSDK\tools>adb remount
remount failed: Invalid argument
C:\AndroidSDK\tools>
Why are you doing in recovery, try it with the phone on.

How do I copy folder into system using ADB?

As stated in this thread, http://forum.xda-developers.com/showthread.php?t=787163.
I am new to ADB so I need some instructions.
adb shell
su
busybox mount -o remount,rw /system
I did all this. So what's next?
bump, help me please.
You can use adb push to copy
If you have already remounted system partition in read-write mode then, you can use
adb push folderonpc/filetocopy /system/folderonmobile to copy files on mobile.
However, you cannot use wild cards like * to copy all the files in one go. You have to copy one by one. You can use batch file to automate it.
Copying Files to or from an Emulator/Device Instance
You can use the adb commands pull and push to copy files to and from an emulator/device instance's data file. Unlike the install command, which only copies an .apk file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance.
To copy a file or directory (recursively) from the emulator or device, use
Code:
adb pull <remote> <local>
To copy a file or directory (recursively) to the emulator or device, use
Code:
adb push <local> <remote>
In the commands, <local> and <remote> refer to the paths to the target files/directory on your development machine (local) and on the emulator/device instance (remote).
Here's an example:
Code:
adb push foo.txt /sdcard/foo.txt
Taken from developer.android.com

adb problems.......

first of all iv been trying to root my legend for hours and this is geting very furstarting... i am using the guide here http://forum.xda-developers.com/showthread.php?t=845512
i have finaly managed to get adb to work and have made my goldcard after 2 days of intense work and now im trying to downgrade my phone to root it
i am geting the following error in adb
when i type adb remount it says remount failed operation not permitted i have looked all over the net and found no answer
in additon to that when im trying to use adb push i type the following
adb shell
$su
su
#adb push flash_image /data/local/
adb push flash_image /data/local/
i just get the same line repeated how to excute commands from adb? this is very confusing since im noob with rooting also the following lines i don't know how to excute them too
adb push flash_image /data/local/
adb push misc1-2.img /data/local/
chmod 755 /data/local/flash_image
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
/data/local/flash_image misc /data/local/misc1-2.img
please explain to me how to use theese thanks!
That one is relatively easy. You could also follow Paul's guide but I like my approach better
Connect your phone to your PC. Second you have to install VISIONary r13 into your phone and do the "temproot" procedure. After a successful "temproot" you should be able to adb shell and then su. Fire up command prompt and issue:
adb shell
su
...you should have root privileges now (showing #). Next thing is backing up misc partition and replacing it with one from hack4legend-v5.zip. Extract this zip somewhere and fire another command promt there. Now you should upload flash_image binary and misc1-2.img:
adb push flash_image /data/local/
adb push misc1-2.img /data/local/
...switch back to 1st command prompt and change permission of flash_image_binary:
chmod 755 /data/local/flash_image
...and backup your current misc partition:
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
Now flash misc1-2.img:
Code:
/data/local/flash_image misc /data/local/misc1-2.img
exit
...and you are set to downgrade retaining HBOOT 1.00.
Click to expand...
Click to collapse
Read better, you have to open a new terminal for pushing the files to the phone, you can't use adb push while you are in adb shell.
BTW you should avoid posting questions in development section.

[Q] how to format system with adb

so i've been looking around, search/google etc and i can't seem to figure out how to format this partition with adb. you might say, just go to it in recovery, but i'm using amon RA instead of clockwork (restore bugs).
so if anyone was to enlighten me in to what exactly i would write in the command prompt, that would be of great help... thanks!
you could adb push erase_image and run it from adb shell
erase_image can be found in a rom.zip under /system/bin
or you could use fastboot erase system
rattking said:
you could adb push erase_image and run it from adb shell
erase_image can be found in a rom.zip under /system/bin
or you could use fastboot erase system
Click to expand...
Click to collapse
fastboot erase system doesn't seem to work...=\
are you s-on or is there another reason fastboot erase isn't working?
anyways the method i mentioned with erase_image goes
extract erase_image from a rom's .zip it is in /system/bin
in recovery
adb push erase_image /tmp
adb shell
cd /tmp
chmod +x erase_image
./erase_image system
hope this helps..
I used this on a s-on phone before to correct filesystem corruption
rattking said:
are you s-on or is there another reason fastboot erase isn't working?
anyways the method i mentioned with erase_image goes
extract erase_image from a rom's .zip it is in /system/bin
in recovery
adb push erase_image /tmp
adb shell
cd /tmp
chmod +x erase_image
./erase_image system
hope this helps..
I used this on a s-on phone before to correct filesystem corruption
Click to expand...
Click to collapse
yes i am on s-on... i'll try that as soon as i flash a new rom!
rattking said:
are you s-on or is there another reason fastboot erase isn't working?
anyways the method i mentioned with erase_image goes
extract erase_image from a rom's .zip it is in /system/bin
in recovery
adb push erase_image /tmp
adb shell
cd /tmp
chmod +x erase_image
./erase_image system
hope this helps..
I used this on a s-on phone before to correct filesystem corruption
Click to expand...
Click to collapse
keep getting bad blocks... =\ can someone point me in the way of s-off? yes yes i've used search but maybe you guys know some secrets i dont.
You can't get s-off on your phone. The equivalent on the Nexus One is unlocking the bootloader.
Only a very small number of N1's have the ability to s-off...

Onemsomic's ICS 3.1RC no GPS lock!

I wanted to ask this in the actual thread but 10 post limit...
Anyway,
I can't get any GPS lock on my I9000, Onemsomic's ICS RC3.1, JVU modem.
I tried changing the NetworkLocation.apk by following this post http://forum.xda-developers.com/showthread.php?p=21351809#post21351809
but since I have absolutely no idea how to use ADB I couldn't do the "change mode to 0644" step.
Someone help a noob?
Thanks.
Well, first off, download the *.apk provided in that post and place it on the sdcard.
adb is a command line tool, so you must insert those commands on a terminal emulator (maybe you got one installed, if not, download one from the market, I can recommend "Android Terminal Emulator").
So, open your terminal emulator and go to the directory where you placed your *.apk. this example has been wrote with the *.apk in the sdcard folder:
Code:
su
cd /mnt/sdcard
adb start-server
adb remount
adb push NetworkLocation.apk /system/app/NetworkLocation.apk
adb chmod 0644 /system/app/NetworkLocation.apk
adb reboot
Note: I wrote this example following my common sense, so I'm not completely sure if this will work!
Cheers!
AurosGamma said:
Well, first off, download the *.apk provided in that post and place it on the sdcard.
adb is a command line tool, so you must insert those commands on a terminal emulator (maybe you got one installed, if not, download one from the market, I can recommend "Android Terminal Emulator").
So, open your terminal emulator and go to the directory where you placed your *.apk. this example has been wrote with the *.apk in the sdcard folder:
Code:
su
cd /mnt/sdcard
adb start-server
adb remount
adb push NetworkLocation.apk /system/app/NetworkLocation.apk
adb chmod 0644 /system/app/NetworkLocation.apk
adb reboot
Note: I wrote this example following my common sense, so I'm not completely sure if this will work!
Cheers!
Click to expand...
Click to collapse
I get a "device not found" error after adb remount. What should I do?
hadar.shamir said:
I get a "device not found" error after adb remount. What should I do?
Click to expand...
Click to collapse
Well I have been looking here and there, and I found that adb doesn't work directly on the phone, you must use adb from your pc. So, this is what you should do from now on:
Install Java SDK
Install Android SDK
Turn on "USB Debugging" in your SGS settings
Connect the Device to the PC
And finally, use the following commands (from the PC):
Code:
// Go to the folder where you put the *.apk
cd C:\users\exampleuser\Documents\ // or /home/exampleuser/Documents/ if you're using linux
adb start-server
adb remount
adb push NetworkLocation.apk /system/app/NetworkLocation.apk
adb chmod 0644 /system/app/NetworkLocation.apk
adb reboot
Note:
The text after the double-slash ( // ), must not be written in the console, they are just comments
You need to install the SDK's because there it is where the adb tool (and tools needed by adb) is found, so, good luck!

Categories

Resources