• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Backup with Smart Switch a black screen Galaxy S5 (Unauthorised device in adb - Root - Usb debugging ON - Unlock patern OK - Recovery accessible)

Search This thread
Jul 13, 2008
25
0
Hi,
I think I've already explain everything in title.
My Galaxy S5 on Android 8 (I think) as her screen broken (black)

Before that it already wokr badly and slowly. I bought a new phone but this one break just before I can transfer data.

I can unlock the patern (I know that because the volume + buton react)
Smart switch say that the phone is locked (even it's not true). Tested on 2 PC
The phone appear in Windows but no file or folder appear.

In adb the device is shown unauthorised and even if I click where the message to unlock should be, notihng append.

The phone is connected on Wifi, apparear in Google Find it but not Samsung find it...

I think that it's already to much information...

My question : how can I do the unlock the phone and do a smart switch backup ? or an other way to transfer data.

Regards
James
 

jwoegerbauer

Senior Member
Jul 11, 2009
7,518
25
1,749
European Union
The Samsung Galaxy S10 comes with a USB OTG adapter. OTG stands for "On the Go" and is used for the connection between smartphone and USB stick / cable. Connect this USB OTG adapter to the USB Type C port of your Samsung, then connect the USB OTG adapter with USB Type C port of your computer.

You should see the data stored on your Samsung.
 
Jul 13, 2008
25
0
The Samsung Galaxy S10 comes with a USB OTG adapter. OTG stands for "On the Go" and is used for the connection between smartphone and USB stick / cable. Connect this USB OTG adapter to the USB Type C port of your Samsung, then connect the USB OTG adapter with USB Type C port of your computer.

You should see the data stored on your Samsung.
It's an S5. But I have a OTG adaptor for it but my new phone A52s doesn't connect to the S5.

I try with a S7 but I can see that there is a lot autorisation to give on the old phone which will be very hard to do with a black screen.
 
Last edited:
Jul 13, 2008
25
0
So then flash a custom recovery, and then enter it. That will either give you MTP access to the files and folders, or ADB should also be enabled - and does not require authorization
purehaps you have forget that the screen is broken. I can't access the phone for complicated manipulation. I'have already have TWRP installed on it but without a view it's impossible to manipulate it. Also, it's not normal that the phone are not viewed on windows or is shown locked on smart switch.

In recovery mode, the phone isn't show on windows also. Find the MTP option in TWRP without a screen view is very diffucult and dangerous, (the wipe option are near)

If I can access file on phone I will be able to view screenshot and configure it.
 

iBowToAndroid

Senior Member
Nov 9, 2010
4,796
1
1,516
Twin Cities MN
purehaps you have forget that the screen is broken. I can't access the phone for complicated manipulation. I'have already have TWRP installed on it but without a view it's impossible to manipulate it. Also, it's not normal that the phone are not viewed on windows or is shown locked on smart switch.

In recovery mode, the phone isn't show on windows also. Find the MTP option in TWRP without a screen view is very diffucult and dangerous, (the wipe option are near)

If I can access file on phone I will be able to view screenshot and configure it.
1. No, I didn't forget that the screen is broken

2. I wasn't telling you to press anything in TWRP. When it's in TWRP and you plug it in, you will either get MTP and/or ADB access automatically

3. Yes, it is perfectly normal to not have access to the files and folders in Windows, when it's powered on normally. There's a popup on the phone that you have to tap in order to grant permission to the folders and files. That's why it shows up as an empty device when you plug it in while in normal mode
 
Jul 13, 2008
25
0
1. No, I didn't forget that the screen is broken

2. I wasn't telling you to press anything in TWRP. When it's in TWRP and you plug it in, you will either get MTP and/or ADB access automatically

3. Yes, it is perfectly normal to not have access to the files and folders in Windows, when it's powered on normally. There's a popup on the phone that you have to tap in order to grant permission to the folders and files. That's why it shows up as an empty device when you plug it in while in normal mode
Ok excuse me.

Hum when I'm in recovery mode, my phone doesn't appear in Widows. And in adb, I haven't access to all folder. Data is empty for exemple.

For 3. Ok, I don't remember this notification. But I'm shure that I'have already use this phone with my PC. If I wasn't able to ring it on Whastapp, I will think that the phone doesn't works anymore at all. But it's not the case.
 

SubwayChamp

Senior Member
Aug 6, 2016
3,233
2
1,371
purehaps you have forget that the screen is broken. I can't access the phone for complicated manipulation. I'have already have TWRP installed on it but without a view it's impossible to manipulate it. Also, it's not normal that the phone are not viewed on windows or is shown locked on smart switch.

In recovery mode, the phone isn't show on windows also. Find the MTP option in TWRP without a screen view is very diffucult and dangerous, (the wipe option are near)

If I can access file on phone I will be able to view screenshot and configure it.
ADB commands work by default while in TWRP, you can back up almost anything that your TWRP version allows through your PC using ADB commands, TWRP will serve as intermediary, but you will not go to operate over your broken screen device but through your ADB/fastboot CMD.
 
Last edited:
Jul 13, 2008
25
0
In normal mode I can unlock the phone but after that even if I click where the message should appear it doesn't do anything.

In adb I can't access a backup command (and if I can do this, It will not the easyer way to transfer my sms.)
 
Jul 13, 2008
25
0
I have some old other phones to see some message exemple and know where to clic but it doesn't works. I have install Vyzor, It asks me a permission but even if I tap in the right of the screen the permission doesn't works.

I also try to transfert a new adb key but I think it doesn't work because Wyzor still ask permission.
 

iBowToAndroid

Senior Member
Nov 9, 2010
4,796
1
1,516
Twin Cities MN
In normal mode I can unlock the phone but after that even if I click where the message should appear it doesn't do anything.

In adb I can't access a backup command (and if I can do this, It will not the easyer way to transfer my sms.)
There is no backup command in ADB that you can use. And the reason that you can't access /data is because that requires going into TWRP settings and mounting the system partition.

What you can do in TWRP is to adb pull all of the files and folders off of the internal storage
 
Jul 13, 2008
25
0
There is no backup command in ADB that you can use. And the reason that you can't access /data is because that requires going into TWRP settings and mounting the system partition.

What you can do in TWRP is to adb pull all of the files and folders off of the internal storage
ok to do have a exemple of command to tap ?

And there no way to just be able to connect my phone with smart switch on windows ?
 

SubwayChamp

Senior Member
Aug 6, 2016
3,233
2
1,371
I have some old other phones to see some message exemple and know where to clic but it doesn't works. I have install Vyzor, It asks me a permission but even if I tap in the right of the screen the permission doesn't works.

I also try to transfert a new adb key but I think it doesn't work because Wyzor still ask permission.
ADB backup is not to operate while your device is on, but it is to operate while your device is in TWRP mode.

TWRP has integrated by default the ADB options not need to authorize through your broken screen because it is already authorized.

Messages as an app user (the same with root or system user) is part of userdata, you want to back up userdata to restore it after in other device or a scenery where your device get repaired, no?

I'll give you an example, you have to use this command, create a folder on a convenient place onto your PC directory, something like "BACKUP", assuming that you set it up correctly the environment for ADB/fastboot to use it along all of your system, you should open from this newly created folder an CMD (I use the new Windows terminal for easy/comfortable results) then type from the terminal adb shell twrp backup userdata , you'll have the userdata backed up in your PC in less of 2 minutes depending on the size of the partition, and so on successively.

What you can back up from TWRP depends on the restrictions from your TWRP version, you should back up the normal that you can see from the TWRP screen and even more but for example if your TWRP have some issues mounting vendor partition of course the ADB commands can't do the job for this specific partition, but anyway you have a lot you can do through it.
 

iBowToAndroid

Senior Member
Nov 9, 2010
4,796
1
1,516
Twin Cities MN
ok to do have a exemple of command to tap ?

And there no way to just be able to connect my phone with smart switch on windows ?
1. The command depends on what the mount point for your internal storage is. The command would be "adb pull /(mount point)" , so it could be:

adb pull /sdcard
adb pull /storage0/sdcard

Or several others

2. No, you can't connect with Smart Switch without allowing permission on the popup box on the phone screen
 
Jul 13, 2008
25
0
Hi guys,

I'm very happy to find here some people to help me. thank you a lot. I just now in recovery mode.

here is some result of command

Code:
adb devices
List of devices attached
487e969e        recovery


adb root
adbd is already running as root

adb shell
~ # ls
cache                      init.recovery.qcom.rc      selinux_version
charger                    init.recovery.service.rc   sepolicy
data                       init.recovery.usb.rc       service_contexts
default.prop               license                    sideload
dev                        oem                        sys
etc                        prebuilt_file_contexts     system
file_contexts              proc                       tmp
fstab.qcom                 property_contexts          twres
init                       res                        ueventd.qcom.rc
init.rc                    root                       ueventd.rc
init.recovery.hlthchrg.rc  sbin                       vendor
init.recovery.nano.rc      seapp_contexts
~ #

as you can see there is not storage in the ls result

Code:
~ # ls /res
images  keys
~ # ls /data
~ # ls /data


Code:
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db ./
adb: error: remote object '/data/data/com.android.providers.telephony/databases/mmssms.db' does not exist


Is there something inspired you ?
 
Jul 13, 2008
25
0
1. The command depends on what the mount point for your internal storage is. The command would be "adb pull /(mount point)" , so it could be:

adb pull /sdcard
adb pull /storage0/sdcard

Or several others

2. No, you can't connect with Smart Switch without allowing permission on the popup box on the phone screen
1. the ls command doesn't show any sdcard or storage
2. Ok bit wyh I can't click on the permission popup ?
 
Jul 13, 2008
25
0
ADB backup is not to operate while your device is on, but it is to operate while your device is in TWRP mode.

TWRP has integrated by default the ADB options not need to authorize through your broken screen because it is already authorized.

Messages as an app user (the same with root or system user) is part of userdata, you want to back up userdata to restore it after in other device or a scenery where your device get repaired, no?

I'll give you an example, you have to use this command, create a folder on a convenient place onto your PC directory, something like "BACKUP", assuming that you set it up correctly the environment for ADB/fastboot to use it along all of your system, you should open from this newly created folder an CMD (I use the new Windows terminal for easy/comfortable results) then type from the terminal adb shell twrp backup userdata , you'll have the userdata backed up in your PC in less of 2 minutes depending on the size of the partition, and so on successively.

What you can back up from TWRP depends on the restrictions from your TWRP version, you should back up the normal that you can see from the TWRP screen and even more but for example if your TWRP have some issues mounting vendor partition of course the ADB commands can't do the job for this specific partition, but anyway you have a lot you can do through it.
I try this...

C:\Users\James-23\AppData\Local\Android\Sdk\platform-tools>adb shell twrp backup userdata
TWRP does not appear to be running. Waiting for TWRP to start . . .
Press CTRL + C to quit.
^C
C:\Users\James-23\AppData\Local\Android\Sdk\platform-tools>adb shell twrp plat-form-tools userdata
TWRP does not appear to be running. Waiting for TWRP to start . . .
Press CTRL + C to quit.
^C

I'm not sure I understand your command. But it return a result. "Backup" is the name of a folder ? or it's a commande for twrp ?

Is there a way to be sure that twrp is installed (with all my phone, sometime, I don't remember what is on it. The thing it's sure it that this phone is root because I use root function with some app but perhaps just with magisk or Super SU.