Broke the display of my phone :( - General Questions and Answers

So, My Redmi 5A fell from hands and ended up with completely black display. I could call and hear my ringtone and upon connecting to SCRCPY could see the lock screen. I could not unlock it as I had not allowed the input stimulation permission. So, I took it to service center and they a tried a couple of displays and told me that data will have to be wiped in order for the new display to work. The phone contains crucial amount of data that I cannot afford to lose. So, I brought is back and tried the following steps:
1. The lock is pattern style and I tried usb mouse over OTG but could not perform the correct swipes due to no display.
2. I found an app that can make one android act as mouse for another android. I could connect my phone through SCRCPY and unlock it with that app but the problem is I need to approve the bluetooth pairing prompt for the first time.
3. I looked around google to pair a bluetooth device using ADB but all methods require the device to be rooted.
4. Despite knowing the pattern, I can't find anyway to use a keyboard over OTG as it will be more precise than mouse.
Is there a way that I can solve this problem? Can I unlock my phone using ADB as I know the pattern? Can I connect my phone through usb to my PC in order to run SCRCPY and use a mouse at the same time to unlock it? Or is there anyway of display replacement without data wipe? Help a troubled fellow

you can't simulate touch events via adb shell input keyevent/ tap? is that some miui permission?
can you adb pull -a /sdcard?
surely there is a way maybe something with
adb shell settings put secure ...
https://developer.android.com/reference/android/provider/Settings.Secure
edit: I think it's somehow related to miui security center. at least I can't find it in settings tables

if you are not afraid about more invasive methods you could enable adb root shell in boot.img, root with magisk or flash twrp.img from EDL mode. this requires hacked splash.img and some bytes appended to magisk_patched.img
Note: In any case do a full raw dump of all partitions first, kinda failsafe backup.

aIecxs said:
if you are not afraid about more invasive methods you could enable adb root shell in boot.img, root with magisk or flash twrp.img from EDL mode. this requires hacked splash.img and some bytes appended to magisk_patched.img
Note: In any case do a full raw dump of all partitions first, kinda failsafe backup.
Click to expand...
Click to collapse
I'm not much familiar with all this. I don't think that I'll be able to do it safely. I'm trying blind swipes using OTG mouse but that too is now appearing to be futile. Is there a way that I can connect my Redmi 5A to a monitor using some sort of HDMI adapter and then use a mouse at the same time via OTG? Will that work? Please help me. I am really troubled by the thought of losing my data.

aIecxs said:
you can't simulate touch events via adb shell input keyevent/ tap? is that some miui permission?
can you adb pull -a /sdcard?
surely there is a way maybe something with
adb shell settings put secure ...
https://developer.android.com/reference/android/provider/Settings.Secure
edit: I think it's somehow related to miui security center. at least I can't find it in settings tables
Click to expand...
Click to collapse
Yes there is setting in MIUI security center. I have pulled data like my photos and videos but could not pull my texts, call logs, contacts and other app data which I need the most such as my Signal chat data.

unfortunately app data is not accessable via adb. you can read contacts and sms in plain text
Code:
adb shell content query --uri content://sms
adb shell content query --uri content://com.android.contacts/data
you could try MyPhoneExplorer it uses adb
you could try adb over wifi
Code:
adb tcpip 5555
adb connect 192.168.1.222:5555
adb -s 192.168.1.222:5555 shell
don't panic. your data is still there, just don't do anything stupid.
but consider risk of losing adb authorization. this can happen if you run different adb.exe from either platform-tools or from scrcpy directory. backup your adbkey.pub from .android directory now (although still could expire)
@helpwithabrokendisplay Don't try too much wrong pattern you will locked out from gatekeeper!

aIecxs said:
unfortunately app data is not accessable via adb. you can read contacts and sms in plain text
Code:
adb shell content query --uri content://sms
adb shell content query --uri content://com.android.contacts/data
you could try MyPhoneExplorer it uses adb
you could try adb over wifi
Code:
adb tcpip 5555
adb connect 192.168.1.222:5555
adb -s 192.168.1.222:5555 shell
don't panic. your data is still there, just don't do anything stupid.
but consider risk of losing adb authorization. this can happen if you run different adb.exe from either platform-tools or from scrcpy directory. backup your adbkey.pub from .android directory now (although still could expire)
@helpwithabrokendisplay Don't try too much wrong pattern you will locked out from gatekeeper
Click to expand...
Click to collapse
aIecxs said:
unfortunately app data is not accessable via adb. you can read contacts and sms in plain text
Code:
adb shell content query --uri content://sms
adb shell content query --uri content://com.android.contacts/data
you could try MyPhoneExplorer it uses adb
you could try adb over wifi
Code:
adb tcpip 5555
adb connect 192.168.1.222:5555
adb -s 192.168.1.222:5555 shell
don't panic. your data is still there, just don't do anything stupid.
but consider risk of losing adb authorization. this can happen if you run different adb.exe from either platform-tools or from scrcpy directory. backup your adbkey.pub from .android directory now (although still could expire)
@helpwithabrokendisplay Don't try too much wrong pattern you will locked out from gatekeeper!
Click to expand...
Click to collapse
Hi! This ADB over WiFi looks promising. I can use SCRCPY over WiFi and then connect mouse via OTG. The problem is how do I connect my Redmi 5A to the same wifi network that my PC is connected to. I was able to turn on WiFi using "adb shell svc wifi enable". Could not really find much on Google about it. Can you please tell me how can I connect to a specific wifi network usinf ADB? Anxiously waiting for your reply.

you can try this app adb-join-wifi.apk to join new wifi. but why not spoof any formerly known SSID in residential gateway wifi settings, so phone can connect automatically?
Connecting to WiFi using adb shell
I have all the details to connect to a particular access point. I have to use that access point only, so all I require is the command to do it.
stackoverflow.com

Hi! I was able to connect SCRCPY over WiFi and turned on the setting that had stopped me from entering inputs through scrcpy. So, I backed up all my appdata. Thanks a lot. Is there a way to donate to this website or more specifically to you?

although I wonder how you could backup without root, glad you solved. don't thank me, consider donation to scrcpy or MyPhoneExplorer if you find it useful

aIecxs said:
although I wonder how you could backup without root, glad you solved. don't thank me, consider donation to scrcpy or MyPhoneExplorer if you find it useful
Click to expand...
Click to collapse
MyPhoneExplorer didn't work. I donated to SCRCPY. Actually I opened all my apps and backup up data to Google Drive or created an offline copy which I restored on my other device. Thanks a lot to you. Hope you have a great time

helpwithabrokendisplay said:
So, My Redmi 5A fell from hands and ended up with completely black display. I could call and hear my ringtone and upon connecting to SCRCPY could see the lock screen. I could not unlock it as I had not allowed the input stimulation permission. So, I took it to service center and they a tried a couple of displays and told me that data will have to be wiped in order for the new display to work. The phone contains crucial amount of data that I cannot afford to lose. So, I brought is back and tried the following steps:
1. The lock is pattern style and I tried usb mouse over OTG but could not perform the correct swipes due to no display.
2. I found an app that can make one android act as mouse for another android. I could connect my phone through SCRCPY and unlock it with that app but the problem is I need to approve the bluetooth pairing prompt for the first time.
3. I looked around google to pair a bluetooth device using ADB but all methods require the device to be rooted.
4. Despite knowing the pattern, I can't find anyway to use a keyboard over OTG as it will be more precise than mouse.
Is there a way that I can solve this problem? Can I unlock my phone using ADB as I know the pattern? Can I connect my phone through usb to my PC in order to run SCRCPY and use a mouse at the same time to unlock it? Or is there anyway of display replacement without data wipe? Help a troubled fellow
Click to expand...
Click to collapse
What app are you talking about in #2, I know my pattern but my screen is broken, so if I could simulate a mouse that would make the pattern, with another device, I could get back into my phone, thanks!

solution here. thx @ zgfg
https://forum.xda-developers.com/t/how-to-rescue-data-from-my-9t-pro.4581901/post-88497057

Related

[APP]MTK ADB, Use ADB directly on your device

MTK ADB gets you a privileged shell at the push of a button, allowing you to run commands directly on your MediaTek device. Some might wonder if rooting hasn't already solved this. Firstly, root access is persisted by modifying system files. When the real binary gets substituted by that of the root app's, if the device is rebooted, the init daemon running as root runs the binary giving the app root. What's wrong with this? If you have “purist” tendencies, you probably would want your phone as stock as possible, or at least with your permission. Sadly, not only binaries are dumped. Extra temp files, logs and helper binaries too, that manually removing them is like dancing on floor of pins and a prick means a brick. Not only that, consider yourself blocked from updates. If you're unfortunate enough, an update could result in bricking your phone as the files supposed to be present had been changed. This is more common than you think. MTK ADB makes no changes to your files whatsoever. Also, there's the matter of security/privacy. Root apps tend to always do something in the background. Either sneaking in a new app, or phoning home with your private data, or both. MTK ADB doesn't steal your data. The Internet permission is for Telnet, etc. On some devices, MTK ADB can get root access (depending on manufacturer) while all devices can get shell access. You just have to check which yours belongs.
IMPORTANT
•Refresh before (and after) clicking Start to check ADB status.
•Supports all ADB functionality. Just run "adb <command>" eg "adb pull" (without quotes).
•The minimalist terminal is for those who haven't any. Feel free to use your regular terminal (I use Terminal IDE) and keyboard (Hacker's Keyboard is really good). Just run "adb shell" on it.
•You can connect to your device using another phone, PC, or anything with a terminal and in the same network by running "adb connect IP_address".
•If you get a " device offline" error, disable and enable USB debugging. Next time connect to the network before running the app.
http://www.youtube.com/watch?v=_bt8BVaDCf0
http://slaycode.WordPress.com
Bump
Proof:
http://forum.xda-developers.com/gen...iled-error-t3191150/post62611445#post62611445
More Proof:
http://forum.xda-developers.com/fire-phone/general/root-fire-phone-supersu-t3105546/page10
Proof:
http://forum.xda-developers.com/gen...iled-error-t3191150/post62611445#post62611445
More Proof:
http://forum.xda-developers.com/fire-phone/general/root-fire-phone-supersu-t3105546/page10
When I open the app it opens but it doesn't work when I enter the commands and moreover the app when I try to start the adb it says unsupported device
Am using infinix hot 4 pro running NOUGAT xos 2.2
LordFME said:
MTK ADB gets you a privileged shell at the push of a button, allowing you to run commands directly on your MediaTek device. Some might wonder if rooting hasn't already solved this. Firstly, root access is persisted by modifying system files. When the real binary gets substituted by that of the root app's, if the device is rebooted, the init daemon running as root runs the binary giving the app root. What's wrong with this? If you have “purist” tendencies, you probably would want your phone as stock as possible, or at least with your permission. Sadly, not only binaries are dumped. Extra temp files, logs and helper binaries too, that manually removing them is like dancing on floor of pins and a prick means a brick. Not only that, consider yourself blocked from updates. If you're unfortunate enough, an update could result in bricking your phone as the files supposed to be present had been changed. This is more common than you think. MTK ADB makes no changes to your files whatsoever. Also, there's the matter of security/privacy. Root apps tend to always do something in the background. Either sneaking in a new app, or phoning home with your private data, or both. MTK ADB doesn't steal your data. The Internet permission is for Telnet, etc. On some devices, MTK ADB can get root access (depending on manufacturer) while all devices can get shell access. You just have to check which yours belongs.
IMPORTANT
•Refresh before (and after) clicking Start to check ADB status.
•Supports all ADB functionality. Just run "adb <command>" eg "adb pull" (without quotes).
•The minimalist terminal is for those who haven't any. Feel free to use your regular terminal (I use Terminal IDE) and keyboard (Hacker's Keyboard is really good). Just run "adb shell" on it.
•You can connect to your device using another phone, PC, or anything with a terminal and in the same network by running "adb connect IP_address".
•If you get a " device offline" error, disable and enable USB debugging. Next time connect to the network before running the app.
http://slaycode.WordPress.com
Click to expand...
Click to collapse
Are you familiar with an APK that utilizes mtk_bypass to directly flash firmware to device.
I'm looking for an APK that basically does what sp flash tool does because I don't have a computer.

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

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
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.
jwoegerbauer said:
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.
Click to expand...
Click to collapse
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.
If ADB is unauthorized, the only way to back up any data would be via a custom recovery. That would require that the device have an unlocked bootloader though
iBowToAndroid said:
If ADB is unauthorized, the only way to back up any data would be via a custom recovery. That would require that the device have an unlocked bootloader though
Click to expand...
Click to collapse
ADB authorised is not require for Smart Switch... I think
And my device have access to recovery and it's root so the bootloader is unlocked.
jameslevalaisan said:
ADB authorised is not require for Smart Switch... I think
And my device have access to recovery and it's root so the bootloader is unlocked.
Click to expand...
Click to collapse
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
iBowToAndroid said:
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
Click to expand...
Click to collapse
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.
jameslevalaisan said:
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.
Click to expand...
Click to collapse
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
iBowToAndroid said:
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
Click to expand...
Click to collapse
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.
jameslevalaisan said:
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.
Click to expand...
Click to collapse
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.
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.)
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.
jameslevalaisan said:
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.)
Click to expand...
Click to collapse
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
Other thing, I can phone my phone with Whatsapp but I can't click to hang off.
iBowToAndroid said:
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
Click to expand...
Click to collapse
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 ?
jameslevalaisan said:
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.
Click to expand...
Click to collapse
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.
jameslevalaisan said:
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 ?
Click to expand...
Click to collapse
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
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 ?
iBowToAndroid said:
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
Click to expand...
Click to collapse
1. the ls command doesn't show any sdcard or storage
2. Ok bit wyh I can't click on the permission popup ?
SubwayChamp said:
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.
Click to expand...
Click to collapse
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.

Pixel 6 Pro full backup to different phone

So I had a pixel 6 pro and unfortunately my wife got mad and threw it against the wall a few times, causing the frame to bend and entire back glass to shatter. The front LCD didn't break, but glue came apart and it separated from the frame.
I had all my 2fa accounts on there, as well as very valuable data that I need to recover.
The phone still powers on, but there's nothing visible on the screen. A local repair shop advised we start by replacing the screen and then work on transferring everything out.
I have a replacement pixel 4a and want to be prepared for when my phone comes back online.
What's the best way to backup my 6 pro and restore on the 4a?
I need everything copied as a whole image, and restored on the 4a. I want to be able to boot up my 4a, open my authenticator app, and have all my accounts listed there.
Someone please tell me this is possible, and if so, please post instructions.
Thank you in advance.
I doubt 1:1 image cloning is possible because encryption is hardware-backed and therefore device-unique. it's not even possible to restore backup on origin device after factory reset since android apps can use keystore in TEE.
side note: you could connect HDMI multiport usb-c otg adapter to TV and mouse so you have access to phone at least
aIecxs said:
I doubt 1:1 image cloning is possible because encryption is hardware-backed and therefore device-unique. it's not even possible to restore backup on origin device after factory reset since android apps can use keystore in TEE.
side note: you could connect HDMI multiport usb-c otg adapter to TV and mouse so you have access to phone at least
Click to expand...
Click to collapse
The HDMI multiport didn't work. Nothing was displayed. I don't know if it's because my phone is badly damaged, or if the pixel 6 doesn't support HDMI out over USB C
I tried this one https://www.amazon.com/dp/B081VBSNRZ/ref=cm_sw_r_apan_i_5NF5RPBKZ97YW4KFW9AX
What are my other options?
the best option would be previously unlocked bootloader, so you can have full access. but you did not unlock bootloader so this is no option for you, because unlocking will factory reset device.
HDMI might require some setting or app installed on device. apps can installed remotely from PC google play with proper google play account. not sure how to start an app though, but guess app can autostart.
at least usb keyboard is working, you could try to navigate blind and enable usb-debugging, this would allow you to use scrcpy. maybe connect headphones or use talkback to get some kind of audio feedback.
of course both methods requires some information from another identical device and need to tested on fully functional pixel 6 pro before..
some (not) useful apps
https://forum.xda-developers.com/t/i-broke-my-screen-and-digitizer.4436261/#post-86791963
https://forum.xda-developers.com/t/broke-the-display-of-my-phone.4424413/#post-86676229
https://forum.xda-developers.com/t/...asily-manage-multiple-android-devices.2707556
Anyone else have suggestions?
AcuraKidd said:
Anyone else have suggestions?
Click to expand...
Click to collapse
This is not a full backup, but it might help you interactively recover some items without replacing the broken screen. Also, assuming this is something you're still looking to solve...
If you have adb debugging enabled, you can try to use https://github.com/Genymobile/scrcpy to interact with your phone over USB from a computer.
If you do not have adb debugging enabled, you can try to enable it via Recovery Mode. The steps to enable Recovery Mode below are from https://www.tenorshare.com/android/how-to-enable-usb-debugging-on-android-with-black-screen.html (I have not tried these steps).
Less:
To enable ADB without a screen:
1. Download the ADB toolkit for your computer and extract its contents to a folder.
ADB toolkit can be found at https://developer.android.com/studio/releases/platform-tools
ADB requires you have USB debugging enabled on your phone.
Since your phone has a black screen, reboot your phone into recovery mode to accomplish this.
Press the Volume Down and Power buttons at the same time to enter recovery mode.
2. Connect your phone to your computer, open a Command Prompt window in the ADB folder, and type the following command.
adb devices
3. You should see your device listed there.
Run the following commands one by one.
adb shell
mount data
mount system
4. Use the following command to pull the persist.sys.usb.config file from your phone to the PC.
adb pull /data/property/persist.sys.usb.config C:\Users\[your-username]\Desktop\
5. Access the persist.sys.usb.config file on your computer with a text editor and edit it to mtp,adb.
6. Run the following command to send the file back to your device.
adb push "C:\Users\[your-username]\Desktop/persist.sys.usb.config" /data/property
7. Download the build.prop file from your phone by using this command.
adb pull /system/build.prop C:\Users\[your-username]\Desktop\
8. Launch the build.prop file in a text editor like NotePad++ on your computer, and add the following code to it.
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
9. Save the file and transfer the file back to your device using this command.
adb push "C:\Users\[your-username]\Desktop/build.prop" /system/
10. Reboot your device using the following command.
adb reboot
11. You are all set. Your phone will boot up with USB debugging enabled.

Question How do I connect Galaxy Watch 4 to Android Studio?

I am working with the wear OS sample watch faces. I can get them to run on the emulator but I can't seem to connect my watch 4 to run them on the watch. From my research I think it could be an issue with "abd" and doing something in the terminal but I've been unsuccessful. Another thing I noticed and I'm not sure if it's relevant, is that when I connect my phone with USB there is a caution symbol next to it that says warning missing watch. But I'm not sure if that's relevant. Can someone assist with connecting the watch 4? Any help is appreciated.
What happens when you try to connect with adb with the command line? Have you turned on adb debugging and wifi debugging in the developer options?
I have adb debugging on and debugging over wifi on with both phone and watch. But I don't know how to connect with abd in the command line. Can you explain the command?
Check the IP address of the watch, then type:
Code:
adb connect IP_ADDRESS
Then check your watch to accept the connection. Scroll down to allow permanent permission if you prefer.
You know this Video?
Maybe it helps...
Best Regards
Thank you both, I feel like I am doing something wrong with the abd command. Maybe the original file path is wrong, I am attaching a screen shot. How do I change that if that is the case? Sorry I am not a coder but I want to learn.
Mike2601 said:
Thank you both, I feel like I am doing something wrong with the abd command. Maybe the original file path is wrong, I am attaching a screen shot. How do I change that if that is the case? Sorry I am not a coder but I want to learn.
Click to expand...
Click to collapse
Make sure you have adb installed, then navigate to it's folder and run it from there. For myself the path is:
C:\Users\MY_USERNAME\AppData\Local\Android\android-sdk\platform-tools
Outch this makes pain in my eyes... I can not read...
A
ADB
B
Easier if short readable and knowable path to ADB...
Example...
I have my ADB files in
Code:
Android/ADB
For you maybe better to copy ADB files into C... ADB folder...
Code:
C:\adb
Best Regards
adfree said:
Outch this makes pain in my eyes... I can not read...
A
ADB
B
Easier if short readable and knowable path to ADB...
Example...
I have my ADB files in
Code:
Android/ADB
For you maybe better to copy ADB files into C... ADB folder...
Code:
C:\adb
Best Regards
Click to expand...
Click to collapse
Agreed. I was having issues with it installed in a location other than the default, so I just made a shortcut to the folder so it doesn't have to be typed out every time.
Ok I have it connected with the adb command, thank you for being so patient. But for some reason it times out and never loads onto the watch when I run the app. It says it loads and I press and hold the screen to look for a new face loaded but nothing new is there. I have attached a screen shot where it then shows it timed out.
I am also attaching a screen shot of getting it to load onto the emulator, I just did that now after it timed out trying the watch.
ADB command is under CMD(run as admin) in windows. Before connect comand line you have to navigate to folder wher is adb program. Both pc and watch have to be on same local network. On the watch go to con exion menu and chech always connect to your wireless network. From this menu you get local ip and adress and use it in adb connect comand line.
Hi ,
i made a batch file to connect the watch..
Put it in the adb program directory, just change the IP address with port number (192.......: port number). Run it as administrator. Look at the watch to accept. Then the watch is enable in Watchface studio.

Looking for an app to block file transfers over usb android 11 Kruger&Matz device.

Good morning,
This is my first post so please be gentle. This forum was recommended to me by a friend.
I am looking for an application, or someone who could create an application that would block the ability to transfer files from Kruger&Matz tablets via a usb cable. Tablets are used for training purposes and we don't want participants to be able to download files to their computers.
If anyone knows of such an application and could recommend it (it may be paid), I would be grateful. If it doesn't exist, and someone here can create it, we'll pay for it.
If you need any specific details, I'll try to provide them. Unfortunately, I'm not an IT specialist, so it's hard for me to present all the data that may be needed at once.
If tablets are rooted and USB Debugging enabled you simply disable USB services like MTP and ADB by means of ADB:
Code:
adb devices
adb shell "su -c 'setprop sys.usb.config ""'"
xXx yYy said:
If tablets are rooted and USB Debugging enabled you simply disable USB services like MTP and ADB by means of ADB:
Code:
adb devices
adb shell "su -c 'setprop sys.usb.config ""'"
Click to expand...
Click to collapse
We can't root them, have you ever rooted this model?
Of course not because I'm using Google Pixel phones.

Categories

Resources