[Q] Do I require Adb? - Samsung Galaxy Nexus

hi
I have installed galaxy nexus toolkit . It has option of backing up my phone and I was going through few posts which allows me to backup via ADB . I have few questions regarding this.
1. Are two methods I mentioned (via toolkit and ADB different?
2. If I backup and then do restoration , will the state of my app will be restored ? Like Game scores or levels passed ?
Thanks

I would advise you to drop the toolkit, and follow this (http://forum.xda-developers.com/showthread.php?t=1830108) guide. It'll require you to install adb and fastboot, so you will be in complete control of your device and will also empower you to fix anything which *may go wrong.

To actually answer your question, 1. yes the toolkit just inputs the adb backup command for you and 2. yes that is usually the meaning of the word backup... (some apps like cut the rope do however check whether it's the same installation, and these will ignore data that have been copied directly)
But please take the time to install adb yourself and get comfortable with the commands yourself, that way you will also be able to fix any problems that may arise yourself.

Drop the toolkit.
and there is a nandroid function on the toolkit, will be a better option......................................
And once again, drop the toolkit..
http://forum.xda-developers.com/showthread.php?t=1812959

re
adb backup -apk -noshared -all -nosystem
I am trying this command to backup my app data . But it is not working it just list all the commands available. My Adb is installed perfectly . Because SD card PULL command worked

adithyavr said:
adb backup -apk -noshared -all -nosystem
I am trying this command to backup my app data . But it is not working it just list all the commands available. My Adb is installed perfectly . Because SD card PULL command worked
Click to expand...
Click to collapse
you forgot to name your backup file, which is done by the paramater -f
Code:
adb backup -f C:\name_of_your_backup.ab -apk -noshared -all -nosystem
you can name the output anything you like and put it to any folder you desire. just specify those after "-f" . don't forget to enable usb debug in your phone and i would recommend to check "stay awake" as well during the procedure.

i tried with the exact code "adb backup -f C:\name_of_your_backup.ab -apk -noshared -all -nosystem" but it still just lists all the commands there. For some reason it is not recognizing the command . It did for pull .
Funny thing is in that complete listing I cannot see backup command anywhere ? this might help but I installed adb AIO which was available . Can that cause problem ?

adithyavr said:
i tried with the exact code "adb backup -f C:\name_of_your_backup.ab -apk -noshared -all -nosystem" but it still just lists all the commands there. For some reason it is not recognizing the command . It did for pull .
Funny thing is in that complete listing I cannot see backup command anywhere ? this might help but I installed adb AIO which was available . Can that cause problem ?
Click to expand...
Click to collapse
what version of adb do you have? check with command "adb version". you need adb version 1.0.29 or newer to have adb backup and restore function.
btw, if you have the toolkit from mskip, adb has been renamed to adb-toolkit and that one is at least 1.0.29 as i recall.

oh mine is adb 1.0.26 . Can you guide me to the proper adb download . Also if I install android sdk , will I get the adb ?

adithyavr said:
oh mine is adb 1.0.26 . Can you guide me to the proper adb download . Also if I install android sdk , will I get the adb ?
Click to expand...
Click to collapse
you can grab the latest version from google. it's a big download (~390Mb) so if you only need adb or fastbook then i would just use those bundled with the galaxy nexus toolkit. unzip the downloaded file to anywhere you like, and the adb command can be found in sub-folder "platform-tools". that's all you need.

adb backup -f C:\backone.ab -apk -noshared -all -nosystem
I downloaded the latest ADB it did back up perfectly .but in C:\ there is no file called backone.ab

adithyavr said:
adb backup -f C:\backone.ab -apk -noshared -all -nosystem
I downloaded the latest ADB it did back up perfectly .but in C:\ there is no file called backone.ab
Click to expand...
Click to collapse
nothing comes up if you type the following in your computer?
Code:
dir c:\ /a:h
i can only speculate that windows recognise ".ab" file as system file and hide it. you can name your backup with any extension you like, and people often use ".bak" instead. output your backup to a folder instead of the root direction may also help (-f c:\backup\whatever_name_you_called.bak, for example).

I searched my system and found out that it is stored in Local/AppData i wonder why. Btw , I just unlocked my device . It said said it will wipe my data out . But surprisingly my device is still with same theme and apps . Had no factory reset done !. I have double checked in the fast boot and it shows my phone status as unclocked

Latest ADB and fastboot, sort of, at least i know the one i included supports adb backup..
https://www.dropbox.com/sh/p1wn5ywy6bd14hb/MvP3wpoNfx?m

adithyavr said:
Btw , I just unlocked my device . It said said it will wipe my data out . But surprisingly my device is still with same theme and apps . Had no factory reset done !. I have double checked in the fast boot and it shows my phone status as unclocked
Click to expand...
Click to collapse
This is known to happen with devices bought directly from the Google Play Store. To the best of my knowledge no one ever figured out why.

LOL
Sent from my i9250

bk201doesntexist said:
LOL
Sent from my i9250
Click to expand...
Click to collapse
Why lol ? What's so amusing ?
Sent from my Galaxy Nexus using xda app-developers app

bk201doesntexist said:
LOL
Sent from my i9250
Click to expand...
Click to collapse
I LOL'd

Related

How To Use ADB On Mac With Htc Hero

I've spent hours trying to workout how to use adb
I'm using Amon_RA's recovery image and want to run a BART backup but it forces you to use adb, which i can't workout
help please!!!
Did you download the Android SDK for OS X?
Please give us some more information, such as the steps you've taken and any errors or other information you get from the Terminal.
yes i have downloaded the sdk from the website
but everytime i even check what devices are connected etc it fails
i open terminal, drag the tools folder into it, it then ses its created a directory
when i try to put in the commands "adb devices" or "bart" however, it ses there is no such command
do i need to put my phone into recovery, or mass storage or something
im stumped
You need to add the tools directory to PATH variable on your computer
Here's how you do it (the alternative way is easier):
Run this in Terminal
Code:
cd
nano .bash_profile
a text editor will open. add this:
Code:
export PATH=${PATH}:/path-to-android-sdk/tools
where you replace "path-to-android-sdk" with the real path.
Alternatively you could run this command in the terminal:
Code:
echo -e "\nexport PATH=${PATH}:/path-to-android-sdk/tools" >> .bash_profile
What you have done is to tell the shell to also look inside the tools directory when entering a command
Oh, in addition to Repp's suggestions, I know in Linux (and I dunno about everyone else) I need to be root to run adb properly. So maybe become root on the Mac. To do so, you need to be an Admin user, not a regular user, and at the Terminal, type
Code:
sudo -s
and then enter your user password when prompted.
okay ive done that, i dont know if it came back with the right response tho
i tried the first method and got into the text editor, i then typed what you said and it returned no response, i dont know if this is correct?
if so what do i do next?
Rather than altering your path, you can also navigate to the sdk/tools directory and run adb like so:
Code:
./adb devices
But you have to be inside the directory where the "adb" command lies.
Also, see my note above regarding root users.
Aah sorry. Just save and exit (press Ctrl+X and answer yes to whether or not you want to save). You could also try the alternative way.
craig0r said:
Oh, in addition to Repp's suggestions, I know in Linux (and I dunno about everyone else) I need to be root to run adb properly. So maybe become root on the Mac. To do so, you need to be an Admin user, not a regular user, and at the Terminal, type
Code:
sudo -s
and then enter your user password when prompted.
Click to expand...
Click to collapse
I have always used it as normal user and it has worked. Don't know why you would need to be root
how dyou get into the directory?
i usually just drag the tools folder into terminal.
is this correct?
DaNiEl FrEnCh said:
how dyou get into the directory?
i usually just drag the tools folder into terminal.
is this correct?
Click to expand...
Click to collapse
At the Terminal type
Code:
cd /Users/YourUserName/path/to/android_sdk/tools/
./adb devices
Repp said:
I have always used it as normal user and it has worked. Don't know why you would need to be root
Click to expand...
Click to collapse
Yeah, it's weird, but it works for me.
You change directory in the terminal with the command cd. So if I wanted to go to the Desktop directory I would write:
Code:
cd ~/Desktop
(~ is like a shortcut for your home directory which is the same as the directory /Users/your-username)
Did any of the methods work (they should )?
to repp, ive done that, all i need to know now is how to use the bart backup function from Amon_RA's recovery image, in adb
craig0r said:
Yeah, it's weird, but it works for me.
Click to expand...
Click to collapse
And it doesn't if you're not root?
DaNiEl FrEnCh said:
to repp, ive done that, all i need to know now is how to use the bart backup function from Amon_RA's recovery image, in adb
Click to expand...
Click to collapse
And it worked?
Unfortunately I have never done that so I can't help you there
how can i check if it worked?
Just run adb from any directory which is not the tools directory.
For example:
Code:
cd
adb devices
where the first line (cd) changes directory to your home directory (the command cd without a path does that) and the other one should list connected devices. As long as it doesn't say
Code:
-bash: adb: command not found
or anything like that, you should be fine
EDIT: If you want to use adb, you don't have to do the "cd" part first. This time only
its working now i can seee what devices i have
Code:
Dans-MacBook:tools Dan$ ./adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
HT98DL900002 device
but the main reason i want to use it, is to use it with Amon_RA's recovery
i neeed to do a BART backup so i can switch from the 2.1 rom from lox too 3.0 from modaco
I have never used BART, but unless I'm mistaken, it does almost the same thing as a nandroid backup (?). You could try that instead. Don't know about Amon_RA, but it's possible from MoDaCo's fastboot (linked to and explained how to install here)
other than that, there's nothing I can do
Repp said:
And it doesn't if you're not root?
Click to expand...
Click to collapse
That's right. Probably something to do with permissions in /dev/. It doesn't bother me enough to go hunting the problem down.

[Q] Temporary Nand Unlock

How do you gain temporary nand unlock? All i wanted to do is copy 2 files into the /system/xbin/bb which doesnt seem to work with root explorer despite super user permission, copy paste just wont work.
Any ideas how to copy paste these 2 files without going to full s-off? Would the adb method work? or any other apk that can do the job?
Thanks in advance for those who can help and any tips is very much appreciated.
In recovery with adb.
TheGhost1233 said:
In recovery with adb.
Click to expand...
Click to collapse
any links to it? a guide perhaps? thanks for the tip.
Make a nandroid before messing with the system partition.
Then:
Code:
adb remount
adb push <file_name> /system/xbin/bb
This is what i think it is just looking at the basic adb commands, here is some more info about moving stuff to the system partition.
TheGhost1233 said:
Make a nandroid before messing with the system partition.
Then:
Code:
adb remount
adb push <file_name> /system/xbin/bb
This is what i think it is just looking at the basic adb commands, here is some more info about moving stuff to the system partition.
Click to expand...
Click to collapse
btw, how do i get to adb with recovery?
You do know that adb is part of the android sdk and not some function/app on the phone?
To get adb working (i hope you already installed it) just boot in to recovery, connect the usb cable, and launch adb via command prompt or terminal.
TheGhost1233 said:
You do know that adb is part of the android sdk and not some function/app on the phone?
To get adb working (i hope you already installed it) just boot in to recovery, connect the usb cable, and launch adb via command prompt or terminal.
Click to expand...
Click to collapse
many thanks! i will try this tommorow.
Use the update.zip I attached in this thread, you don't need to worry about adb then.
http://forum.xda-developers.com/showthread.php?t=885506&page=2
Sent from my HTC Desire using XDA App
Ghettonine said:
many thanks! i will try this tommorow.
Click to expand...
Click to collapse
Ok I did my best, read alot about adb and followed some tips but I just cant seem to get these things working. I need a DETAILED step by step procedure.
I feel such a noob today, can anyone please help?
Basically, I just wanted to copy "ifconfig" and "route" from "/system/xbin" to "system/xbin/bb" and thats it! Im s-on by the way and dont want a full s-off just to copy paste 2 files.
I tried rebooting in recovery with adb and run some commands on "adb shell", many things came out and I have no idea what it ment.
Well many things came out is not such a great description. So i have no idea if something is wrong or something happened which you did not expect.
Boot again in to recovery and connect adb.
The type "adb devices" this should output something like:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
HT##########
If this does not happen you don't have a connection and most likely have driver issues (only if you are on windows). If you do get a connection next thing to do is mount the system partition as read/write. To do this type "adb remount".
The output should be "remount succeeded"
Next type "adb shell"
This should give "#" as output .
Since you know where the files are and where you want them to go type "mv /system/xbin/ifconfig /system/xbin/bb" and hit enter, you don't get any conformation about this. Next type "mv /system/xbin/route /system/xbin/bb"
To check if they go moved correctly type " ls /system/xbin/bb", now you should see the files listed.
Next type "exit" to end the adb shell.
Then type "adb reboot".
If this doesn't work you need to give more info about the errors you get or maybe someone else has a better description.
A completly other method is, if you are able to copy the files to your computer, useing the .zip mercianary linked to, just make sure the system/app folder is empty and that you make the system/xbin/bb folder and place the files in there. Then just follow the instructions.

ADB backup not working?

OK so when I type in adb backup -f C\Backups\gnexbackup.ab -all -nosystem
it looks like it does it's thing and backs up everything, but then when I go to the folder (Backups) I don't see that .ab file... what's up?
I am using takju 4.1.1 unlocked bootloader, but no root
same problem
works, but does not fix broken system apps
start cmd with admin
go to location of adb.exe
C:\>cd C:\adb
check adb
C:\adb>adb devices
List of devices attached
0123456789ABCDEF device
connect only one device!
if "adb devices" returns anything else, something is wrong, try '>adb kill-server' and retry and/or redownload newest adb at thanks Snoop05
C:\adb>adb backup -all
confirm at phone with password, no password leads to failure during restoring process, its a known bug (adb v1.0.32 and below)
file C:\backup.ab will be created
restore with
C:\adb>adb restore backup.ab
confirm at phone with password
wait till done
works for me, all user apps and data are restored, but it did not fix my broken google services and deleted calendar storage (accidents happen )
This function is not reliable. Some apps work, others dont. Only use this if you dont have any other options, e.g. broken phone or some malfunction.

[GUIDE] Backing up a phone with broken display

I have seen several of threads asking about how to recover data from a phone that has a broken display.
Backing up a phone with broken display
Prerequisites
Rooted phone with broken display/digitizer/etc. Display is nonfunctional for whatever reason.
ADB for your platform. Downloads for Windows, Mac, and Linux can be found at my dev-host.
Drivers installed (Windows), rules file set up (Linux + Mac). Drivers for windows can be found here. Rules file for Linux can be found here.
Recovery file attached to this post. (twrp.img)
External sdcard with at least 2 GB free space inserted in your broken phone.
openrecoveryscript.txt file attached to this post.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Backing up your broken device
Extract the ADB zip somewhere convenient.
Move the twrp.img recovery file into the ADB extracted directory.
Move the openrecoveryscript.txt file into the ADB directory.
Open a command prompt / terminal window in the ADB directory.
Windows: Windows Key + R => Type in "cmd" then click "RUN".
Linux: Open a terminal window by selecting it from your applications.
ALL:
Code:
cd /path/to/ADB/directory
Pull the battery from your phone, place it back in and boot into recovery (VolUp + Home + Power).
Connect your phone to your computer
Make sure that the following command returns "XXXXXX recovery" before proceeding to the next step.
Code:
./adb devices
Expected output:
Code:
List of devices attached
XXXXXXX recovery
Now to install TWRP recovery to your device. Type the following commands ( after each line). Linux users: Make sure you prepend each command with "./", as in "./adb ...". ALL Make sure you type the commands in CAREFULLY.
Code:
adb push twrp.img /tmp/twrp.img
adb shell dd if=/tmp/twrp.img of=/dev/block/mmcblk0p18
Wait until the last command above returns an output similar to below before proceeding to the next step:
Code:
12916+0 records in
12916+0 records out
6612992 bytes (6.3MB) copied, 1.094278 seconds, 5.8MB/s
Now pull your phones battery and reboot into recovery once again.
Run the following command to make sure your phone has booted into recovery completely.
Code:
adb devices
Expected output
Code:
List of devices attached
XXXXXXX recovery
Type the following to set up a script that will backup your phone to your external sdcard.
Code:
adb push openrecoveryscript.txt /cache/recovery/openrecoveryscript
Reboot your phone once more. This time, TWRP will begin backing up your ROM.
Wait for the backup to finish. You will know it is finished when you feel your phone reboot once more.
Optionally, you can check the state of your backup by running the following command and reading the last couple lines of it's output.
Code:
adb shell cat /tmp/recovery.log
Click to expand...
Click to collapse
Click to expand...
Click to collapse
That's it! Your entire system (/system, /data, /cache, and boot) will be backed up to your external sdcard. Just pop the sdcard in your replacement phone and you're good to go.
Enjoy and donate to the TWRP devs! This would not be possible if TWRP did not use the OpenRecoveryScript scripting engine!
Or you can use skip's unified toolkit.
I literally just used it. Moving the backup to my new device right now.
loserskater said:
Or you can use skip's unified toolkit.
I literally just used it. Moving the backup to my new device right now.
Click to expand...
Click to collapse
Whatever floats your boat :good:
Sorry, had to
Sent from my SGH-I747 using Tapatalk 2
Actually, this process might directly meet my needs.
You mentioned that the recovery image and script were attached to the initial post, though I must be missing something in that I don't see where they might be. Perhaps you could offer a pointer, please?
- ooofest
Ah sorry, you can find the files here
http://forum.xda-developers.com/showthread.php?t=2353828
Don't use the twrp.img from there though...go to the twrp website and download the latest .img file for your phone (d2att)
Sent from my S3 on Sense 5 (you jelly?)
CNexus said:
Ah sorry, you can find the files here
http://forum.xda-developers.com/showthread.php?t=2353828
Don't use the twrp.img from there though...go to the twrp website and download the latest .img file for your phone (d2att)
Click to expand...
Click to collapse
Thanks - I downloaded the appropriate files, but wonder if this can be used on a stock phone.
That is, I was able to push twrp.img to /tmp/twrp.img, but cannot write in the next step:
Code:
adb shell dd if=/tmp/twrp.img of=/dev/block/mmcblk0p18
/dev/block/mmcblk0p18: cannot open for write: Permission denied
This is a stock AT&T phone, in recovery mode, never been rooted.
- ooofest
You need to be rooted for this to work.
CNexus said:
You need to be rooted for this to work.
Click to expand...
Click to collapse
Ya know . . . I need to read things more carefully. Was so excited to see something that might possibly help. Sorry about that.
It's been awhile since I looked into rooting the Galaxy S III and will look around, but don't recall that this can be rooted from recovery, unfortunately. And, it seems that USB Debugging is not turned on when it boots to the lockscreen.
Hm.
- ooofest

[Q] Stuck on Google Boot screen, Can still access CWM. How to proceed?

Okay so my father was about to flash to my rom. We Wiped data, cache, delvik, and installed rom. Said it worked and rebooted the phone. Phone tossed us into the CWM again and we tried flashing again and it gives us error #7. Soooo, We did NOT make a backup and every time we try to reflash the rom it gives us error 7. We can't get the Phone to be detected by the computer so we can at least grab his data. The thing here is we can't afford to lose the data on the phone (I know, should have made a backup). Any advice on how to proceed would help significantly. I've never seen this kind of issue in my years of rooting android phones. It just sits at the Google screen and doesn't go anywhere.
Phone is Verizon Galaxy nexus running (was) MIUI
Update: Tried flashing back his previous rom (MIUI) and I'm getting the error 7 again. Even though that past rom worked perfectly. This is all very frustrating.
What data do you want to keep? Internal storage won't be wiped when flashing ROMs, and as for app data, contacts, SMS, etc, as long as you can enter CWM, you can pull them out of the phone with "adb pull".
Sent from Samsung Galaxy Nexus @ CM11
AndyYan said:
What data do you want to keep? Internal storage won't be wiped when flashing ROMs, and as for app data, contacts, SMS, etc, as long as you can enter CWM, you can pull them out of the phone with "adb pull".
Sent from Samsung Galaxy Nexus @ CM11
Click to expand...
Click to collapse
Well the problem is I don't have the Nexus adb installed onto the PC, so I can't connect to the nexus through USB. Can I install adb and everything without being in the rom? also I'm trying to get the Titanium backup folder and the photos.
If you can get into recovery, that means you can use adb. Just install the driver (if you are on Windows) and adb should work.
tonychau77 said:
If you can get into recovery, that means you can use adb. Just install the driver (if you are on Windows) and adb should work.
Click to expand...
Click to collapse
What's the command for pulling pictures and Titanium backup?
Hitmanthe3rd said:
What's the command for pulling pictures and Titanium backup?
Click to expand...
Click to collapse
adb pull [remote file] [local file]
You can pull the whole folder from your phone. The folder of Titanium Backup should be /sdcard/TitaniumBackup or something similar. For photos it is in /sdcard/DCIM
tonychau77 said:
adb pull [remote file] [local file]
You can pull the whole folder from your phone. The folder of Titanium Backup should be /sdcard/TitaniumBackup or something similar. For photos it is in /sdcard/DCIM
Click to expand...
Click to collapse
I tried to install ADB for Nexus and it failed and I ran into many roadblocks. Can you link me a W8 64bit guide I can follow?
Hitmanthe3rd said:
I tried to install ADB for Nexus and it failed and I ran into many roadblocks. Can you link me a W8 64bit guide I can follow?
Click to expand...
Click to collapse
I don't know much about those drivers because I use Ubuntu (just for my phone). But you can refer to this thread.
http://forum.xda-developers.com/showthread.php?t=1583801
tonychau77 said:
I don't know much about those drivers because I use Ubuntu (just for my phone). But you can refer to this thread.
http://forum.xda-developers.com/showthread.php?t=1583801
Click to expand...
Click to collapse
I got ADB installed but cannot get the pull command to work. It's adb /pull and it's in a 0 folder and then Titanium backup and in the Tina user folder . What would be the command?
Hitmanthe3rd said:
I got ADB installed but cannot get the pull command to work. It's adb /pull and it's in a 0 folder and then Titanium backup and in the Tina user folder . What would be the command?
Click to expand...
Click to collapse
"adb pull /storage/emulated/0/YOUR-DIRECTORY/YOUR-FILE C:\" or something like that.
Sent from Google Nexus 4 @ CM11

Categories

Resources