Cheers,
finally I've lost my patience and I'm going to unlock the bootloader and root my Z3 Compact. However I really don't want to loose all my settings and set up my phone completely again. I'm just too lazy But, as far as my experiences with other Xperias is concerned, all my data gets erased when I unlock my bootloader, doesn't it? So my question is: Is there an effective way (not Helium or the crappy Sony software) to backup my entire /data partition? Of course I know about "adb backup -apk -all -f xxxx" but for any reason that doesn't work for me. There's just no confirmation dialog on the phonescreen. Maybe Sony has disabled this functionality. So any idea would be appreciated.
Thanks
What I think you're looking for is this...
http://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
The non-root backup options are:
1. adb backup
2. Helium (which uses adb backup)
3. Sony PC Companion (which uses adb backup)
Thanks for your replies! As I mentioned "adb backup" doesn't work for me. Can anybody confirm that it works?
atlantix1 said:
Thanks for your replies! As I mentioned "adb backup" doesn't work for me. Can anybody confirm that it works?
Click to expand...
Click to collapse
Yes, it works. Enable USB debugging in Developer options, connect to PC, then:
Code:
X:\D5803>adb devices
List of devices attached
YT810V0Q7E device
X:\D5803>adb backup -apk -obb -all -system -f D5803-full.ab
Now unlock your device and confirm the backup operation.
X:\D5803>
Unlock screen when prompted, click 'Back up my data'.
Note: Call logs and SMS database are not backed up by adb backup. I've used SMS Backup & Restore for SMS, or Sony PC Companion works well for SMS and Call logs (actually, it's great for full backups.) There's also a Backup & Restore app on Xperia's that will backup SMS & Call log to the SD card.
cschmitt said:
Yes, it works. Enable USB debugging in Developer options, connect to PC, then:
Code:
X:\D5803>adb devices
List of devices attached
YT810V0Q7E device
X:\D5803>adb backup -apk -obb -all -system -f D5803-full.ab
Now unlock your device and confirm the backup operation.
X:\D5803>
Unlock screen when prompted, click 'Back up my data'.
Note: Call logs and SMS database are not backed up by adb backup. I've used SMS Backup & Restore for SMS, or Sony PC Companion works well for SMS and Call logs (actually, it's great for full backups.) There's also a Backup & Restore app on Xperia's that will backup SMS & Call log to the SD card.
Click to expand...
Click to collapse
Thank you for your short but detailed guide! It works perfectly! It was my fault, stupid me... I blocked com.android.backupconfirm, Of course then there was no confirm dialog. Sorry that I didn't thought about it earlier...
Related
Hello guys,
I have the following problem with the stock backup app. Whenever I open it it allows me to backup only the system apps and shows that it
"Could not back up:
Media files
Downloaded apps with data"
Any ideas why this is happening and how to resolve it? Also how can I connect USB storage to the device, or is "USB storage" something else?
Also I found out the following workaround for Helium (https://play.google.com/store/apps/...SwyLDEsImNvbS5rb3VzaGlrZHV0dGEuYmFja3VwIl0.):
1. Settings->Developer options->USB debugging
2. Settings->Xperia->USB Connectivity->USB connection mode->Mass storage mode (MSC)
3. Execute Carbon, follow the instruction
Has anyone tried it if it works? I will try this method later today or tomorrow, but do not want to risk losing data.
ilianpk said:
Also I found out the following workaround for Helium (https://play.google.com/store/apps/...SwyLDEsImNvbS5rb3VzaGlrZHV0dGEuYmFja3VwIl0.):
1. Settings->Developer options->USB debugging
2. Settings->Xperia->USB Connectivity->USB connection mode->Mass storage mode (MSC)
3. Execute Carbon, follow the instruction
Has anyone tried it if it works? I will try this method later today or tomorrow, but do not want to risk losing data.
Click to expand...
Click to collapse
Be careful with Carbon, it works or seems to work fine. Note the default settings are not sufficient to backup so you can restore again. Learnt this the hard way, it all appeared like it was fine, unitl I rebuilt my phone and couldn't restore anything (doesn't show in the list)
Hi Everyone,
I was unsuccessful at finding any helpful information on how to backup the HTC ONE before unlocking the bootloader.
So I decided to learn about adb and its features for myself, turns out the HTC ONE cares more about syntax then any other android distro... but that's another story.
So here I hope to document for you the process I successfully took to backup my unrooted HTC ONE.
Please Note this Backup does not backup your Photos or Music but they can be easily backed up by just copy and paste.
It also does not backup your SMS's, Contact's, to backup SMSs I used 'SMS Backup and Restore' available from Play Store, and I did not have to worry about the contacts as they are all pulled from my Gmail Account.
Follow the Video wwwDOTyoutubeDOTcom/watch?v=xuIq0gmYpFA provided by XDA dude Steve (Twitter - @Electr0z).
I would have put a html link in but the superior XDA mods do not like nubies to post links
Stop the Video before he takes you into the process of getting into fastboot for the second time, its around 4 minutes 30
You Should now have Android SDK installed and be able to find your device by running
adb devices
Click to expand...
Click to collapse
Example
D:\Android\HTC ONE>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
HT364X945763 device
Click to expand...
Click to collapse
Now that you have the cmd window open type
adb backup -apk -shared -all -nosystem -f backup.ab
Click to expand...
Click to collapse
This will Call the Android device to backup all the apks + data available (i.e saves, cause you gotta keep that temple run score), the important part to this script is to not backup the system which many of the therads here for the phones say to include, but dont, HTC will crack the ****s.
Because we do not have root access if we try backing up the system it will take ages and it wont work anyway because we will have no access to do it.
Now that the script is running we want to keep an eye on it,
Open up Task Manager
Select View
Select Columns
Tick I/O Read Bytes
Tick I/O Write Bytes
Select Processes Tab
Search for "adb.exe"
If the command is successful we should see the byte count climbing as adb pulls data from the HTC
For me It took about 1 and a half hours to complete the backup,
Once Complete confirm the backup file is a considerable size, 1GB+, mine was 1.6GB and I had about 20 apps installed.
Maybe do the backup again (with a different name) just to verify.
Follow the rest of the video and unlock the bootloader, once finished restore the HTC Backup with the command
adb restore backup.ab
Click to expand...
Click to collapse
Any Questions Please post below and I will try assist.
hey sorry, first time with all this stuff and i seem to be running into some difficulties when i run the command in cmd to start the backup, it generates the file, asks for my confirmation on my phone, but in task manager the bytes don't rise and the backup never completes.
I was wondering if you knew how to fix this
any help would be appreciated.
In this thread I am going to use adb backup command to backup user app datas and apks. I am aware of the fact that Helium backup does the same just with a nice GUI, but I beleive it is important to know these basic tools like adb backup. I know many of you just causal android users who don't like wrting commands and etc... but for people like me it was an interesting discovery that this magical Helium backup is not that magical at all.
What is adb backup?
Some of you may know that it is not possible to root your Nexus 5 wihtout a full wipe. Adb backup is a tool which let you back up your data on your phone without root. Then after root you can easily restore your data.
Adb backup parameters:
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|nosystem] [<packages...>]
Click to expand...
Click to collapse
-f <file>: backup file name. Without this parameter the name of the backup file will be backup.ab
-apk: save apk
-noapk: don't save apk
-shared: save sdcard content
-noshared: don't save sdcard content
-system: save system app data
-nosystem: don't save system app data
<packages...>: save the app data for the app or apps given as parameter
-all: save systam app data and user app data
Click to expand...
Click to collapse
Requirements:
Ability to use adb command.
Have usb drivers installed. (Windows users)
Seting up adb and installing drivers are not part of this guide. If you have to do that then please use @rootSU's great thread to find the guides you need.
Let's start!
Enable USB debugging on the phone.
Connect USB cable.
Open CMD or terminal window.
Depending on what you want to do, backup only user app data with apk or without apk or just certain apps, you will have many options. I will try to cover everything to serve everyone's need.
Type any command to CMD or terminal window which suits your needs.
After executing the command you will be prompted on your phone to start the backup:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can give a password for your backup if you want
Select Back up my data on your phone to start the backup.
Option 1: Backup only user app data with apk.
(Note: you can't backup paid app apks)
adb backup -all -apk -nosystem
Click to expand...
Click to collapse
If you want to give a custom name for the backup then just add the -f switch and type a name you want to give to the backup file.
adb backup -all -apk -nosystem -f backup-2014-07-22.ab
Click to expand...
Click to collapse
You will find the backup file in your Username folder if you added the adb command to your path or installed the 15 secs adb installer (windows users). Otherwise it will be in the folder where the adb binary is.
Windows: C:\Users\<username>
Linux: /home/<username>
Option 2: Backup only user app data without apk.
adb backup -all -nosystem
Click to expand...
Click to collapse
If you want to give a custom name for the backup then just add the -f switch and type a name you want to give to the backup file.
adb backup -all -nosystem -f backup-2014-07-22.ab
Click to expand...
Click to collapse
You will find the backup file in your Username folder if you added the adb command to your path or installed the 15 secs adb installer (windows users). Otherwise it will be in the folder where the adb binary is.
Windows: C:\Users\<username>
Linux: /home/<username>
Option 3: Backup system app data and user app data with apk.
(Note: you can't backup system app apks)
adb backup -all -apk
Click to expand...
Click to collapse
If you want to give a custom name for the backup then just add the -f switch and type a name you want to give to the backup file.
adb backup -all -apk -f backup-2014-07-22.ab
Click to expand...
Click to collapse
You will find the backup file in your Username folder if you added the adb command to your path or installed the 15 secs adb installer (windows users). Otherwise it will be in the folder where the adb binary is.
Windows: C:\Users\<username>
Linux: /home/<username>
Option 4: Backup system app data and user app data without apk.
adb backup -all
Click to expand...
Click to collapse
If you want to give a custom name for the backup then just add the -f switch and type a name you want to give to the backup file.
adb backup -all -f backup-2014-07-22.ab
Click to expand...
Click to collapse
You will find the backup file in your Username folder if you added the adb command to your path or installed the 15 secs adb installer (windows users). Otherwise it will be in the folder where the adb binary is.
Windows: C:\Users\<username>
Linux: /home/<username>
Option 5: Backup everything.
System app data, user app data with apk and sdcard content.
(Note: you can't backup system app apks and paid user app apks)
adb backup -all -apk -shared
Click to expand...
Click to collapse
If you want to give a custom name for the backup then just add the -f switch and type a name you want to give to the backup file.
adb backup -all -apk -shared -f backup-2014-07-22.ab
Click to expand...
Click to collapse
You will find the backup file in your Username folder if you added the adb command to your path or installed the 15 secs adb installer (windows users). Otherwise it will be in the folder where the adb binary is.
Windows: C:\Users\<username>
Linux: /home/<username>
Option 6: Backup certain app or apps.
(Note: you can't backup system app apks and paid user app apks)
First find out the name of the app or apps you want to backup.
Go to play.google.com.
Search for your app or apps.
The name you have to input to CMD or terminal will be the end of the URL after the '=' sign.
Type following command to back up your desired app:
adb backup <app name>
Click to expand...
Click to collapse
Example:
I want to backup Bloons TD Battles.
I search for it on play.google.com.
The URL for that is http://play.google.com/store/apps/details?id=com.ninjakiwi.bloonstdbattles
So the name of the app which I have to input is com.ninjakiwi.bloonstdbattles
To back it up I use the following command:
adb backup com.ninjakiwi.bloonstdbattles
Click to expand...
Click to collapse
If I want it with apk
adb backup -apk com.ninjakiwi.bloonstdbattles
Click to expand...
Click to collapse
If I want to give a custom name for the backup file.
adb backup -apk com.ninjakiwi.bloonstdbattles -f bloons_td_battles-2014-07-22.ab
Click to expand...
Click to collapse
If you want to backup multiple apps then just write the app names like this:
adb backup -apk com.ninjakiwi.bloonstdbattles com.frogmind.badland com.supercell.clashofclans
Click to expand...
Click to collapse
List all installed apps:
Windows users type this command:
adb shell pm list packages -f
Click to expand...
Click to collapse
The name of the app will be after the '=' sign.
Linux users type this command:
adb shell pm list packages -f | sed -e s/.*=// | sort
Click to expand...
Click to collapse
Restore the backup
(Note: If you have backed up paid apps, then first install them from playstore before you restore your backup)
Enable USB debugging on the phone. (If it is disabled)
Connect USB cable.
Open CMD or terminal window.
Type the following command:
adb restore <path to the backup>
Click to expand...
Click to collapse
After executing the command you will be prompted on your phone to start the restore:
Enter your password for the backup if you have any.
Select Restore my data on your phone to start the restore.
Example:
I store may backups in the C:\backups folder.
I know I made a backup one week ago and I gave backup-2014-07-15.ab as backup name.
The command I use to restore the backup is:
adb restore C:\backups\backup-2014-07-15.ab
Click to expand...
Click to collapse
Extras:
There is a adb plugin for Total Commander which has the option to handle your backup-restore operations. I found it more useful than Helium backup.
If you want to extract your backup then I can recommend you this tool. It works both on windows and linux, but you will need java to run it. It is a command line app. Read the README.TXT for usage.
Sad thing is people still will use Towelroot or whatever because they don't want to lose data lol. Good thread. :good:
This is nice. I will try this later when i root my phone. Thanks!
Sent from my Nexus 5 using XDA Premium HD app
Very helpful. Thank you for the step by step guide.
Awesome info!! :thumbup:
Not sure why anyone wouldn't root an N5....but this is a great way to backup for those anyone's.
KJ said:
Awesome info!! [emoji106]
Not sure why anyone wouldn't root an N5....but this is a great way to backup for those anyone's.
Click to expand...
Click to collapse
My aim is to give an option to backup every data before root then restore it after root. I know how bad to lose all your progress in games and lose your perfectly set up home screen then do everything from nothing
U can take me as an example I knew that unlocking bootloader wipes internal memory but never knew internal memory is sdcard for our device. Paid the price and lost all of my pics and game data too. I never have a habit of syncing to PC and hate cloud storage. I used helium to backup btw. Should've followed this method.
This backup method works also on Nexus 4?
[email protected] said:
This backup method works also on Nexus 4?
Click to expand...
Click to collapse
It should be working on every phone with android ics and above.
bitdomo said:
It should be working on every phone with android ics and above.
Click to expand...
Click to collapse
PERFECT!! I will report my experience after rooting of my N4.
Thanks for how to guide.
Status of back up?
My question is, How does one know when the back up has finished? I know that it shows whats going on when it brings up the prompt for you to select full back up but once you move from that prompt to let's say,check a message or open another app it seems as if there is no way of going back. Is there a way to check on the status of the back up? Or even check from your pc to know that it has finished? Thanks in advance.
Thanks heaps for this.
Being no stranger to the command line I was hoping there was something simple like this.
Just so people know you have to be patient with this especially if you do the apk versions.
There is no progress bar so go have a cuppa/beer and wait.
The app will disappear on your phone when it's done.
I stopped it half way through and it was a bit of a problem to get it to go again.
Also I am guessing from the size of the file it doesn't back up sms, images, movies or music.
Thanks again though.
Greg
one of the greatest thread
I've done this a few times where I needed to back up before unlocking the bootloader. It's something every rooter should learn.
I know this is reviving a very old topic but i have a problem.
My problem is once i type in the adb command nothing appears on my tablet to confirm the start of the backup. What am i doing wrong? The code i am using is below.
Once i run the code the backup file has been made but its 0 bytes. and nothing appears on the screen of the tablet once unlocked... i have tried restarting the tablet, changing the folder that the backup is made to. The tablet in question is an Asus MemoPad 7 ME173x and the device IS rooted. What am I doing wrong and has anyone else experienced this?
adb backup -apk -shared -system -all -f C:\Users\MyName\Android_Backups\backup.ab
Click to expand...
Click to collapse
wivane said:
I know this is reviving a very old topic but i have a problem.
My problem is once i type in the adb command nothing appears on my tablet to confirm the start of the backup. What am i doing wrong? The code i am using is below.
Once i run the code the backup file has been made but its 0 bytes. and nothing appears on the screen of the tablet once unlocked... i have tried restarting the tablet, changing the folder that the backup is made to. The tablet in question is an Asus MemoPad 7 ME173x and the device IS rooted. What am I doing wrong and has anyone else experienced this?
Click to expand...
Click to collapse
I have had issues where I had a backup file with 0 bytes, but it was usually due to the format of my adb command or when I tried it with the M Preview for the Nexus 5. Have you tried the command without the pathway in your file name? I just did the command that way and everything worked fine for me.
Hi, please advise what's wrong as when I try to run adb backup command windows reports as adb.exe stopped.
Running as administrator after the error message the cmd window is still there with command line like nothing happened but no backup created.
Please help.
This is great! But question: what exactly does the system variable backup?
I would only like to backup user apps and app data., since most other things are backed up by the phone in the cloud or other apps I use like gcloud, but I'm wondering what system includes.
Anyway, what if I only backup app data? What happens when I restore this app data without having the corresponding app installed?
This is so great that I wanted to keep it handy when offline. So, from within xda app (on my rooted nexus 5 running stock 4.4.4) I tried to copy the thread content to save it in a convenient place on the phone.
However when I pasted the copied content, the command line texts did not paste. Is this a known problem with android's copy/paste? Is there a way to enable full copy paste in android?
(Same thing happens when I copy paste content with images. The images are not included).
does it back up everything ? including the kernel bootloader and so on ?
hi there,
after unlocking the phone I missed to see that all data would be lost. Obviously the ROM was set back to factory.
Two applications I found to recover the data:
1. 7-Data Android Recovery (can't even find the phone)
2. Android Data Recovery (finds the phone, phone tells me that superuser rights are granted everything ok, but then: "unable to get device storage information")
I would love to recover some data like photos, applications or contacts, before flashing another ROM.
ADB Drivers, fastboot etc is installed. Motorola Device Manager is installed. All Drivers have been successfully placed.
The Phone work works properly when plugged to PC and also USB Debugging is enabled.
Why do my data recovery programs don't access the phone?
TeamWin Recovery 2.7 has been installed, furnice Kernel 1.1.2 as well as SuperSU 2.4. has been installed.
maybe those are impedient`?
nordcupp_motoG said:
I would love to recover some data like photos, applications or contacts, before flashing another ROM.
Click to expand...
Click to collapse
Unlocking the phone will perform a factory reset. That means, everything that does not reside in your external sdcard is permanently lost.
If your device is properly set up with a google account, all your contacts, bookmarks,emails etc. will be restored. That means that everything you can access with your browser, like email, Chrome-bookmarks, are in sync with your device. If you allow google to backup your settings it will also try to restore your apps, but this is, and was, very unreliable.
If you must, you can manually backup your contacts with Contacts Backup Ultimate.
As for applications, nothing beats Titanium Backup. Ugly as hell but the most powerfull backup solution there is.
And last but not least, copy your photos, music, movies etc to your external sdcard.
All this has of course to be done before whiping your device.
P.S. Please update your recovery to the latest TWRP.
external sd may follow soon.
team win recovery that version is offically compatible to moto G14
so I chose that one.
thanks for the tipp. should have seen that earlier.
darryer said:
Titanium Backup is a good tool for Android. Or you can use Tenorshare This is a pro tool for Android data, it can recover all lost data like contacts, sms, call history, photos etc, even you have no backup.
Click to expand...
Click to collapse
I did use that tool as well as 7-Data Recovery and another one. None of them capable to access the phone.
Tenoshore told me after connecting the phone to the app and choosing what data to save, that the storage information is not accessible.
No clue as to how that happens.
nordcupp_motoG said:
No clue as to how that happens.
Click to expand...
Click to collapse
If you connect your device with usb-debugging enabled in the developer options, does a dialog pop up, presenting a RSA fingerprint, asking to allow usb-debugging? Allowing this is imperative.
that was done properly... the application does ask for this before you can chose what to save.
nordcupp_motoG said:
that was done properly... the application does ask for this before you can chose what to save.
Click to expand...
Click to collapse
What is the output of "adb devices" after you connect your device?
C:\adb>adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
ZX1D22HLNC unauthorized
C:\adb>
but usb tunnel is working right now...
usb debugging is enabled...
adb should be up to date...
mmmh every try delivers different ansers:
second time said: devices attached.
third time said: daemon failed to start
and adb server didnt ack
ok, there is a well known issue with some devices and adb
there is an adb fix for it, but I couldn't get it to work so far.
nordcupp_motoG said:
C:\adb>adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
ZX1D22HLNC unauthorized
Click to expand...
Click to collapse
Maybe this helps
http://stackoverflow.com/questions/18011685/cant-connect-nexus-4-to-adb-unauthorized
thank you.
I installed the Android SDK Studio and used the ADB from there.
ADB now works properly.
USB Tunnel sucks hard still though.
The connection shows up to be established and skype and whats app do work,
but playstore and chrome refuse to work also no regular app can reach the net
like wikidroyd & co...
nordcupp_motoG said:
playstore and chrome refuse to work also no regular app can reach the net
Click to expand...
Click to collapse
Maybe manually change dns in wifi settings will help.
manually change it where?
I don't see any menu for this in usb tunnel...
guess I gonna get a USB wifi next week.
nordcupp_motoG said:
manually change it where?
I don't see any menu for this in usb tunnel...
guess I gonna get a USB wifi next week.
Click to expand...
Click to collapse
Not on the mobile, on your pc. Change it to e.g. 8.8.8.8
My mind a2 display is broken I am able to connect my phone via adb can anyone please tell me command to pull data?
If phone has Oreo, you can boot into TWRP and then pull /data partition content into image, and then expand it or use for pushing.
As current TWRP does not decrypt Pie /data, this won't work for Pie.
For Pie you can only backup user applications and their settings:
Code:
adb backup -apk -shared -all -keyvalue -f .\backup_yymmdd_hhmm.ab
and then try to expand .ab file (search the net)
There is also program called MyPhoneExplorer, but to use it one have to get root and install MyPhoneExplorer android client beforehand - prior to breaking display.
Aerobatic said:
If phone has Oreo, you can boot into TWRP and then pull /data partition content into image, and then expand it or use for pushing.
As current TWRP does not decrypt Pie /data, this won't work for Pie.
For Pie you can only backup user applications and their settings:
Code:
adb backup -apk -shared -all -keyvalue -f .\backup_yymmdd_hhmm.ab
and then try to expand .ab file (search the net)
There is also program called MyPhoneExplorer, but to use it one have to get root and install MyPhoneExplorer android client beforehand - prior to breaking display.
Click to expand...
Click to collapse
My phone was dropped badly . . . Only display is working finger print works device get unlocked adb can detect the device, I don't want any apps I want my data Pics and all . .
I am on pie
It is possible?
razor17 said:
My phone was dropped badly . . . Only display is working finger print works device get unlocked adb can detect the device, I don't want any apps I want my data Pics and all . .
I am on pie
It is possible?
Click to expand...
Click to collapse
try to use: adb pull /sdcard/
if your device is not completely dead then there is a chance to recover the data by connecting it to PC and use any data recovery software like Android Recovery etc, on it to backup the data.
MIN313 said:
if your device is not completely dead then there is a chance to recover the data by connecting it to PC and use any data recovery software like Android Recovery etc, on it to backup the data.
Click to expand...
Click to collapse
That's what . . .adb can detected in PC, problem is I am not able to pull data
I will try recovery softwares etc, thank you
razor17 said:
I will try recovery softwares etc, thank you
Click to expand...
Click to collapse
Have you tried
Code:
adb pull /sdcard/
as @leonardcoutinho suggested? Works for me from PC which was previously authorized for ADB
Aerobatic said:
Have you tried
Code:
adb pull /sdcard/
as @leonardcoutinho suggested? Works for me from PC which was previously authorized for ADB
Click to expand...
Click to collapse
It says remote object/sdcard/ does not exist
razor17 said:
It says remote object/sdcard/ does not exist
Click to expand...
Click to collapse
Does that mean that you have not previously authorized the PC to ADB phone? Or even have not got developer state and have not enabled "Debugging via USB" in phone? If that's the case, then I do not see a solution.