yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] 2uk3y:
Gigadroid,

Plz take a look of modification that i made.

This code will show if device is exist or not, also for fastboot.

Hope can add to your code. TQ ;)

insert this before :menu

SET chkDevice=false
SET chkFastbot=false

put this inside :menu and replace line 32 untill line 35

echo.
if NOT "%chkDevice%"=="true" goto devices
adb devices | FINDSTR /IL "device" >nul
IF %ERRORLEVEL% EQU 0 adb devices
IF %ERRORLEVEL% EQU 1 echo List of devices attached : NO DEVICE
if NOT "%chkFastboot%"=="true" goto fastbot
fastboot devices | FINDSTR /IL "not sure, plz edit" >nul
IF %ERRORLEVEL% EQU 0 fastboot devices
IF %ERRORLEVEL% EQU 1 echo List of fastboot devices : NO DEVICE

above code will replace this line.......

echo If a code is below ADB is working properly:
adb devices
echo If a code is below fastboot is working properly:
fastboot devices

put this after :menu

:devices
echo Checking list of attached devices...
set chkDevice=true
ping 123.45.67.89 -n 1 -w 5000 > nul
goto menu

:fastbot
echo Checking fastboot...
set chkFastboot=true
ping 123.45.67.89 -n 1 -w 5000 > nul
goto menu

and some UI adjustment....

echo ############################## Backup ##################################
echo # #
echo # 1. Set path #
echo # 2. Backup all without system apps #
echo # 3. Backup all with system apps (unsafe) #
echo # 4. Backup app and device data (not the APKs themselves) #
echo # 5. Backup apps #
echo # 6. Backup device shared storage / SD card contents #
echo # 7. Backup a single app #
echo # 8. Restore #
echo # #
echo ################################################################################
echo.
echo ############################### Tools ###################################
echo # #
echo # 9. Install Drivers #
echo # 10. Unlock Bootloader (only Galaxy Nexus, will wipe all data) #
echo # 11. Install CWM/ CWM Touch (only Galaxy Nexus, more devices coming soon) #
echo # 12. Root your phone (requires custom recovery) #
echo # 13. All in one (only Galaxy Nexus, will wipe all data) #
echo # #
echo ################################################################################
[Android Software/Hacking General [Developers Only]] Gigadroid:
Thanks,

I have included it in the new release.

Sorry, I had problems with my PC, so only a few changes.

You no longer need to install the Android SDK.

I found the error.

ADB has saved data from me, so it did not work on other PCs.

You forgot adb.bat to move into platform-tools.

Could you make a new video with the latest version?

It does not need Android SDK.
[Android Software/Hacking General [Developers Only]] AndyCr15:
Ahh, that's why I got the error. Silly me.

I've added some annotations for now, how's that? When I next do some filming, I'll see if much has changed and perhaps record again, if that's okay? :)
[Android Software/Hacking General [Developers Only]] Gigadroid:
Yes, it's okay.

AlbertoBN made a nonfunctional mockup for me.

When a version with GUI appears you could record again..
[Android Software/Hacking General [Developers Only]] ikillyou233:
v1.2.2 works for captivate (galaxy S variant) running cm9
[Android Software/Hacking General [Developers Only]] rolfen:
Version 1.2.2 : on my Xperia P - adb found,but ,,devices attached: NO DEVICE,, (version 1.2.1 devices found) :angel:
[Android Software/Hacking General [Developers Only]] Gigadroid:
This can happen because it looks for a zero in the outputted code.

Try it anyway, but as I recognize your older posts, it will not help you.
[Android Software/Hacking General [Developers Only]] rolfen:
Yes...now I looked at the forum and same problem already solved by others in Xperia P...: http://xdaforums.com/showthread.php?t=1420351&page=35

At least it's not just for me..problem will probably Xperia P..
[Android Software/Hacking General [Developers Only]] n0j0e:
Ok, works now direct from your files v1.2.2.

Option 4 works.

Option 5 doesnt work. No backup popup from my One S!
[Android Software/Hacking General [Developers Only]] cmajetic:
PROBLEM: at the end of the backup it says "shared storage" on my phone, is this the end or what shall i do now?? it's 5 minutes now

lol @ the video with the adb.bat, just open it without admin rights and there will be no bug and it will work
[Android Software/Hacking General [Developers Only]] 2uk3y:
5 min its normal for me... if not mistaken, it's depend on shares storage that u already used.... bigger shared storage, longer need to wait ;)
[Android Software/Hacking General [Developers Only]] Marijuana Legal:
I am developing a gui for abt both for windows and mac that I hope to release as soon as possible, written using Delphi (FireMonkey).
[Android Software/Hacking General [Developers Only]] Gigadroid:
AlbertoBN is also working on a GUI, but only for Windows i think.

I could use it for Mac.

I still need a new name for this tool, any ideas?
[Android Software/Hacking General [Developers Only]] Marijuana Legal:
Alberto is italian? I'm from italy. Actually i write code only for windows based of your source code, for mac i use script sh. actually it's not ready but finally ready i post source code and executible. I'm use your logo image. For name i know... but the name ultimate backup tool is good but will specific name for android or android ultimate backup tool

Sorry for english...
[Android Software/Hacking General [Developers Only]] Gigadroid:
He is from Israel.

I could use it until Alberto has completed his work.

Then the user could vote for the best design.

But I think that Albertos tool will be better because we work more closely.

He knows how it should look like and how the buttons should be arranged.
[Android Software/Hacking General [Developers Only]] x5c0d3:
Thanks for this! I will try it out with my Fujitsu M532 Tablet.
[Android Software/Hacking General [Developers Only]] Marijuana Legal:
this is first gui but final gui change use tabcontrol component for backup and utilitis, support touch screen the file adb.exe etc is embedded resource in executable no dependence 1 executable file. Spash screen your logo is trasparent for start program, image in form is reduced, wget deleted i use indy component Menubar for download driver for phone. if you are suggestions i am here to listen and to improve ...
[Android Software/Hacking General [Developers Only]] Gigadroid:
Sounds nice, maybe we should should form a small team.

I'll Alberto ask if he agrees with me.

Can you give me a link of Menubar.

I can not find it.
[Android Software/Hacking General [Developers Only]] Marijuana Legal:
this is classic TMainMenu but in firemonkey is different for my is best for menu win/mac os

example youtube: watch?v=wlydK5kvhBw
[Android Software/Hacking General [Developers Only]] Gigadroid:
I tried the tool with the LT18i (Xperia Arc S).

No matter what I do, it does not work.

Maybe the command is blocked by Sony or I'm just too stupid.
[Android Software/Hacking General [Developers Only]] Marijuana Legal:
i have xperia neo v try restart server, and adb devices... i have unloock bootloader
[Android Software/Hacking General [Developers Only]] rolfen:
Xperia

Gigadroid: Thanks ... probably, this is a same problem with my Xperia P .

it's a shame :(
[Android Software/Hacking General [Developers Only]] Vysse:
If nobody else has done it I will be working on a nice GUI using VB.Net using this. I won't bother rewriting anything so most credit will go to you.

Edit: Lol should've read directly above. Will continue anyways. Mine will require dependencies and such but its fun for me anyways.
[Android Software/Hacking General [Developers Only]] mitcoes:
Why not a Linux version, at least a Ubuntu one

As Android is a Linux OS, and as a Linux desktop User, it is difficult to find root programas and utilities for Linux desktop even for Ubuntu - the linux desktop with more market share.

Please is not so difficult to make a deb package with the XDA tools
[Android Software/Hacking General [Developers Only]] Gigadroid:
Sorry, but right now I only have time for the Windows version.
[Android Software/Hacking General [Developers Only]] marinos35:
Hi, I've been playing with adb backup and my Razr

Because I was having problems with single packages backup I checked everywhere if my syntax was wrong and found this

The irony is that I run to a syntax error that you had for single package

adb backup ^<%App%^> f- "%Pfad%"

The above is from the :single part of your code and as you would already noticed it should have been -f

I'm just informing you so you can fix it. Great app by the way

PS: I had also made a bat (only for the backup command though) that I may release, so if that happens please don't think later that I stole your code :p

It would had saved me some time if I had run here sooner. Who am I trying to fool, I'm a .bat addict :D

PS2: I don't know if the problem was the programs that I selected but Motorola razr seems to also have problems with single backups with the output size being 41bytes unencrypted, 549bytes encrypted
[Android Software/Hacking General [Developers Only]] Gigadroid:
Yes, I know that there is a problem.

I thought I had fixed it.

If you tell me that you don't steal my code, then I must believe you. My tool is open source. You can use some parts, as long as you do not copy and paste.

Sorry, but I can't work on my tool for the next five days.
[Android Software/Hacking General [Developers Only]] Thatgrass:
is an unlocked bootloader needed?
[Android Software/Hacking General [Developers Only]] Gigadroid:
No, it's made for this case.
[Android Software/Hacking General [Developers Only]] Thatgrass:
Awesome, i will try it and report back :D
[Android Software/Hacking General [Developers Only]] Pleiadez:
In the pastebin code that you posted, it says that SMS data is not backed up. Is this still the case with the latest update? Also, is it not recommended to backup everything (including the applications) since that option says unsafe? Thank you for putting this together :D
[Android Software/Hacking General [Developers Only]] n0j0e:
The backup procedure is the normal way from Googles Android 4.x and has nothing to do with this script. Search for 'adb backup' on Google Android reference site's. Ergo, no Google adb backup updates, no SMS backup. ;)
[Android Software/Hacking General [Developers Only]] Pleiadez:
Thank you for clearing that up :good: . Are there any good SMS backup applications for stock Android that you recommend?
[Android Software/Hacking General [Developers Only]] n0j0e:
Nope, i read and delete all SMS. :cool:
[Android Software/Hacking General [Developers Only]] Thatgrass:
It works charming on my Gnex
[Android Software/Hacking General [Developers Only]] stuart0001:
Sms backup and restore :thumbup:
[Android Software/Hacking General [Developers Only]] pbelcl:
on my HTC One X i have an simmilar problem:

Option 5 worked ONE Time and then no Option (5, or 4) worked.

An restart of my device did not solve the problem.

on pc i see "adb found" but on my device the start screen did only come for ONE Time.

and the .db file is empty (0 Bytes)
[Android Software/Hacking General [Developers Only]] fab0123:
Hello,

I have a mtk6577-based smartphone which I would like to root.

As I don't have the recovery files I would like to backup the boot image.

Can this be done with this app?

Can I also backup the rom without rooting?

Thanks for your help!
[Android Software/Hacking General [Developers Only]] Gigadroid:
No, sorry you can't backup the boot image and your ROM with this tool.
[Android Software/Hacking General [Developers Only]] TheMaurice:
Hey I want to know if the Option "Backup Apps" also backups the app data?

Greetings form Maurice
[Android Software/Hacking General [Developers Only]] RaptorNismo:
I can confirm functionality of Mac version on Debian (as I expected) - thank you eyrienne! :)
[Android Software/Hacking General [Developers Only]] Gigadroid:
No, you need to choose Option 4 to do this.
[Android Software/Hacking General [Developers Only]] Jo_90:
Not working with xperia mini pro

Hello,

I ve tried to use it but does not bring up the screen to back up my phone.

Thanks for ur effort
[Android Software/Hacking General [Developers Only]] Gigadroid:
What's the name of your phone?

It looks like their are problems with Xperia devices from 2011 and the One series.
[Android Software/Hacking General [Developers Only]] TheMaurice:
Ok,

and i got a few more questions :P

What's Option One Backing up?

Is it possible to backup everything besides the sd data? So that only the Apps and its Data is backed up (Also the apps from sd-card)?

And do I have permission to translate it in German so you can upload it here?
[Android Software/Hacking General [Developers Only]] RaptorNismo:
You don't need Debian package. Download newest Android SDK tarball for Linux, unpack, place script to right place, edit few things, start ADB server as root, connect phone, and go :)

I can upload my modified version implemented to newest SDK, if you are interested. :)

Odesláno z mého GT-I9100 pomocí Tapatalk 2
[Android Software/Hacking General [Developers Only]] Gigadroid:
Apps and device data, apps and SD card contents.

To back up only the apps and their data you choose option 4 and 5.

You have the permissions to translate my tool.

To each name of a part add a "ger".

Like: From ":backup" to ":backupger"

Send me the finished file as PM.
[Android Software/Hacking General [Developers Only]] TheMaurice:
Should I add ger to the goto tasks too?

Also i got more questions:

1. Does Option 5 also backup sd card apps?

2. When I backup everything without sysem apps i get a 144mb ab file. could this be? I got a few gb on sd card.

3. Does the restore option add the missing files to sd card or does it delete the sd card and write the saved content on it?

BTW Option 5 dont work for my htc sensation all stock s-on and no root.

And i cant send u a pm :( i dont know why but it wont send the message and its not at sent items
[Android Software/Hacking General [Developers Only]] Gigadroid:
1.I can't test it because i have a GNex :(

2.NO, perhabs it's because you can't backup your apps.

3.Haven't test it.

Backup SD card contents and create a new file, then restore.

If the file was deleted, it deletes the SD card before it writes something.
[Android Software/Hacking General [Developers Only]] scandiun:
C'mon, there's no such full backup without ClockWorkMod. This is just adb and does not work.

See for more info

http://code.google.com/p/android/issues/detail?id=34311
[Android Software/Hacking General [Developers Only]] Gigadroid:
It's no secret that this tool uses ADB.

It has been made to simplify the process.

I know that it doesn't work on some devices, but it works for many.
[Android Software/Hacking General [Developers Only]] Gigadroid:
Delete
[Android Software/Hacking General [Developers Only]] Gigadroid:
New version is out ;)

Now with full S2 and S3 support and german translation (thanks to TheMaurice)
[Android Software/Hacking General [Developers Only]] tobyau:
1. Could I back up data in the /data??

2. Could I back up only one app data??
[Android Software/Hacking General [Developers Only]] SergioHC:
Tested ok on nexus s

Just tested OK on a nexus s with normal mode, no root, android 4.1.1 (standard OTA), vodafone ES. :o
[Android Software/Hacking General [Developers Only]] Axe Homeless:
I am really sorry to bother you but I have two questions:

1. I doenst work with my Nexus 7 (complete stock) at all.

I have to keep it stock because it has a small hardware defect and is getting replaced, but I would like not to have set up everything again, and the last time, Googles Backup didnt even pull my apps from the market.

It just says: No device attatched. I have tried everything, downloading the SDK, activated USB-debugging, set the password, even tried turning everything off and on again. Nothing. My PC sees it, I can transfer everything etc.

So is there a new version who roks or am I just doing something completly wrong?

Because 2:

It works almost with my SGS2 CM10 nightlies.

My phone gets recognized perfectly, everything starts like you said but then it just keeps stopping at something called "shared storage" or something and takes literally hours until an error shuts down everything.

The backup then is 9GB big, which seems odd to me because I only have 1gb used on system and 3-4gb used on internal. Does it back up my micro-SDcard too? My external one. Because that should not happen I presume. Or should it in case someone loses their phone and wants literally EVERYTHING restored? If so, could you implement an option not to back the external card up or should I just put it out?

Again sorry to disturb you, great job anyway, I presume from all the happy people here:)
[Android Software/Hacking General [Developers Only]] Gigadroid:
1. Which data? /data/data or /sdcard/Android/data?

2. I think you can't and I can't try it because if I backup a single app package it creates a 1KB file on AOKP JB-Build 4.

No problem:

1. Have you checked Google USB Driver in your SDK?

2. You should remove your microSD, I can't implement a option to exclude the card.

By the way, I'm working on a new menu layout.
[Android Software/Hacking General [Developers Only]] tobyau:
1. I want to back data which is in /data/data so i want to know UBT can back up it or not.

2. NVM. I want to bcak up a single app package because backing up all apps need long time.

anyway, thanks for your help
[Android Software/Hacking General [Developers Only]] Axe Homeless:
Oh, thank you very much for your work and for the support, I really appreciate it.

1. The android SDK manager says that option "Google USB Driver" under "extras" ist installed, "for windows, revision 7, C/Users/Appdata/android/extras/google/Usb-Driver" or something like that. Still no connection.

2. Oh thanks that explains this. And propably pretty handy come to think of it, saving my external data and backups also in another backup (we have to go deeper).

Thank you so much.
[Android Software/Hacking General [Developers Only]] Gigadroid:
Yes it can.

Hmm, strange.

There should be no problems with a Nexus device.

I unfortunately can not help you :(
[Android Software/Hacking General [Developers Only]] Axe Homeless:
I tried installing the drivers from the UBT for the GNEx (because hey, what do I have to lose) and it removed mine and then it sayd: Yeah, no android device detected, (and something with adb, cannot remember what exactly). Guess my N7 is not recognized as an android device, no Idea why :(

Maybe it will work some day :)
[Android Software/Hacking General [Developers Only]] Valley73:
Check Device Manager

I've just had this and when I looked in Device Manager it listed my N7 as no drivers installed even though I could access the file system fine.

Installed the drivers through Device Manager and UBT now recognises it :good:
[Android Software/Hacking General [Developers Only]] Steve46xda:
Hi guys! How can I restore an adb backup on my brand new Galaxy Nexus without rooting it?!?!
[Android Software/Hacking General [Developers Only]] Gigadroid:
Go into your Settings, then select developer options.

Set a desktop password and enable USB Debugging.

Then connect you GNex to your PC and start the UBT.

Now select an option and wait until the backup has finished.
[Android Software/Hacking General [Developers Only]] Steve46xda:
This is how to backup a non-rooted phone...I need to know how to restore that backup on another non-rooted phone!
[Android Software/Hacking General [Developers Only]] Gigadroid:
Backup it on the old device and then connect your GNex and just select restore.
[Android Software/Hacking General [Developers Only]] scalda:
Hi

Not sure if you will be able to help but i really would like to back my gingerbread device up as i finally just got a new phone running jellybean and theres some games on my gingerbread phone that i would really like to keep playing without starting over again.

Is there any way to be able to back up my old phone and then restore to my new phone useing UBT??

Thanks in advance

Scalda
[Android Software/Hacking General [Developers Only]] Cintulek:
Hey!

I just can't open the .sh file for Mac... Trying different methods, but they aren't working. Help!
[Android Software/Hacking General [Developers Only]] Gigadroid:
No, but you could install your games and move the contents of /Android/data from your Gingerbread to your Jellybean device.

I don't know if that will work, but you have nothing to lose
[Android Software/Hacking General [Developers Only]] Gigadroid:
Have you typed the right things at the begining of the script?
[Android Software/Hacking General [Developers Only]] scalda:
Hi

i will give this a go

scalda

Edit: tried what was said with no luck i am pretty stuck really
[Android Software/Hacking General [Developers Only]] Cintulek:
I think yup:

#!/bin/bash
# =========================================================================
# Configuration
# =========================================================================
# 1. Configure where your ADB binary is installed
export AdbCmd="/Users/Cintulek/Downloads/android-sdk-macosx/platform-tools"
if [ ! -f ${AdbCmd} ]; then
"Exiting now: Could not find adb command"
exit 100
fi

# 2. Configure your backup file
export BackupDir="/Users/Cintulek/Desktop/Bakapy"
if [ ! -d ${BackupDir} ]; then
mkdir -p $BackupDir
fi

# 3. Configure your backup file name (e.g: backup_20120828.ab)
# e.g: export BackupFileName="backup_$(date +%F).ab"
export BackupFileName="backup_$(date +"%Y-%m-%d_%H-%M").ab"

# 4. Make sure this script is executable
# chmod u+x backup_android_to_mac.sh

# =========================================================================
# Do not change below here ( Credits go to Gigadroid from xda-developers)
# =========================================================================

But I cant make this file "executable"...
[Android Software/Hacking General [Developers Only]] Gigadroid:
Then you have to root your device.

Look at this: http://xdaforums.com/showthread.php?t=1259427

@Cintulek

I told eryenne your problem already.

He will answer you.

Sorry, I have no experience with Mac OS.
[Android Software/Hacking General [Developers Only]] Axe Homeless:
hey, its me again, hope you can help me, have the same problem I had with the N7 toolkit.

I can backup all the stuff, but I cannot restore it.

It takes me to where I can put in my Password, I do, it says that the restoring process is starting (I guess, its in german and says wiederherstellung wird gestartet) and something like 2 seconds later it says restoring process finished.

And of course, nothing has been restored.

Why doesnt it restore? Is it because they are different models of the tablet? If so, What the **** google, I cannot even use it to get the stuff to my replacement unit?
[Android Software/Hacking General [Developers Only]] eyrienne:
need root rights or use sudo

Hi there

You might need root permissions on your mac or you user needs to be superuser.

Try this on you terminal

sudo chmod 777 <path to your script>

And see if this works then.

Another way might be using the bash command before the script, like this

bash <path to your script>

or (I think sh is an alias for the bash on the mac also)

sh <path to your script >

If this last works any output from the commands might not be visible as the shell executes the script on a subprocess.

Otherwise I need to know how you are calling the script.

Hope this helps

Eyrienne

[/B]
[Android Software/Hacking General [Developers Only]] Gigadroid:
The only problem I had with Nexus devices one time, was that it has created 1KB files.

I have played with the drivers and then all has worked.

Don't ask me what I've done.
[Android Software/Hacking General [Developers Only]] Cintulek:
Hi.

I always logging to terminal by "sudo -s", so I have root permision all the time. :P

I cant run this, when I type "sh <path to script>" it only says:

bash-3.2$ bash /Users/Cintulek/Desktop/backup_android_to_mac.sh
/Users/Cintulek/Desktop/backup_android_to_mac.sh: line 74: syntax error near unexpec'ed token `in
'Users/Cintulek/Desktop/backup_android_to_mac.sh: line 74: `case $input in

This same on "sh"...