Authroize Broke screen ADB issue - OnePlus 5 Questions & Answers

Refer to this thread: https://forum.xda-developers.com/showthread.php?p=75551897
So Im waiting on a replacement screen (it started as crazy graphics all over screen, not completely blank, but responds to input), and its taking forever. I knew I had ADB debug enabled, so wondered if I can control the phone via PC.
Behold there are few ways this can be done.
Long story short......in adb, my phones shows as ADB DEVICES : UNAUTHROIZED
Is there anyway I can authorize the adb request between computer/phone?
Its a stock OnePlus 5.....so no custom recovery and not rooted :-/

You could guestimate the area or the enter button of the dialog, and use a mouse connected via USB otg to click it

matrx10503 said:
Refer to this thread: https://forum.xda-developers.com/showthread.php?p=75551897
So Im waiting on a replacement screen (it started as crazy graphics all over screen, not completely blank, but responds to input), and its taking forever. I knew I had ADB debug enabled, so wondered if I can control the phone via PC.
Behold there are few ways this can be done.
Long story short......in adb, my phones shows as ADB DEVICES : UNAUTHROIZED
Is there anyway I can authorize the adb request between computer/phone?
Its a stock OnePlus 5.....so no custom recovery and not rooted :-/
Click to expand...
Click to collapse
Best way would be to use a displaylink adapter do you can see the screen.
If you can make it through the menus you'd need to install the app which can be done from a PC, just push it to the device, then advanced, then turn on usb, then allow the app. Then the screen will be shown on a monitor.
Either that or change the screen.

I got it working......I had to boot up an old laptop hard drive I had that was Auth'd. It let me do what I needed.

Related

HELP Access USB-Debug with broken screen

Hello everyone
I've got a problem and I need your help. My Legend fell on the ground and now the glass and display are both broken. To access my device with adb, which I previously installed, I used DroidAtScreen. But recently I deactivated USB-Debugging eek, and now I can't enable it. I need to "recreate" every single step from the unlocked screen to Menu->Settings->Applications->Development->USB-Debugging. The first step (Menu->Settings) is easy and abvious, but I need the other ones.
Could some of you take some screenshots and upload them? I.e.:
1. Menu->Settings, then scroll down to bottom **Screenshot**
2. Scroll a little bit up until "Applications" reaches first entry **Screenshot**
3. Press first entry (=Applications) **Screenshot**
4. Press fourth entry (=Development) **Screenshot**
5. Press first entry (=USB-Debugging) *Screenshot**..
I know it may seem complicated, but it would be of tremendous help! My idea is to print out the images and lay them over the Legend to find my way to USB-Debugging
THANK YOU A LOT in advance!
memo9
Good thinking, you actually only need 4 screens, here you go...
Good luck replacing the screen! There's plently of material to work with in accesories section
If the digitiser (top glass) is broken i doubt your presses will be in the right place, I have a desire in front of me that has a crack in the top left corner of the digi and pressing "a" on the keyboard pull notification bar down
Thank you very much for the effort of taking the screenshots, but I couldn't access the settings.
The only question that remains is: Does the phone need to be in "charge only"-mode? Because right now, in fact I can access the SD-Card when mounted, so I may have to switch to charge only?
@bonesy: Thank you for the input, but the touchscreen seems to be working fine as I can turn on the phone and enter the PIN-code to unlock it, as well as call a number after opening the phone-application
ADB should work no matter what the mode...why weren't you able to access it?
I don't know... I followed all the steps, connected the phone to my Mac... all this several times, trying to press on the exact location... but haven't succeeded.
I have adb configured as well as DroidAtScreen running and also tried to access it with DDMS..., but when i use the command "adb devices" none is shown. I can access my SD-Card but can't use adb...
I may try again a few times but can't really think of any other alternative than to replace the screen, although I need to access my phone immediately.
Thanks again for all the fast answers and if anyone has an idea or some sort of walkthrough... I would appreciate it.
ADB wont work unless you are using a custom rom OR its selected already.
Maybe a USB port failure?
What do you mean? I have accessed my phone in this environment several times before, everything should be set up correctly. It may be a USB port failure, altough I have tried to plug it into other USB ports.
The only thing I'm struggling with right now is accessing the Debug-mode in the settings.
memo9 said:
What do you mean? I have accessed my phone in this environment several times before, everything should be set up correctly. It may be a USB port failure, altough I have tried to plug it into other USB ports.
The only thing I'm struggling with right now is accessing the Debug-mode in the settings.
Click to expand...
Click to collapse
Ah i see, i meant the phones usb port... Could be 1 pin failed on it stopping certain things working?
Doesn't seem to be the problem since I can mount the phone and access the SD-card, but thanks anyway.

Fire Stick TWRP recovery using a mouse.

This actually works, ive done it myself, using a powered otg cable (homemade) i run the following command while plugged into mains and laptop :
echo 1 > /sys/devices/platform/bcmpmu_otg_xceiv/host
The device will disconnect from the adb mouse and you are free to plug in a mouse or most probably a keyboard also.
This would be a nice feature built into TWRP if this is possible, or even have it execute at the start up of TWRP for those of us with a powered OTG or willing to make one with a couple of old USB cables etc.
Obviously if the adb part of it disconnects it will be no use unless you have the OTG all plugged in.
Any thoughts on this ? its alot easier than using the adb mouse. Only not sure if this can be executed before the choice of system or recovery that comes on screen ? Cant see why not because you are connected as soon as that screen is up.
*EDIT
This does work as expected with a USB keyboard.
sconnyuk said:
This actually works, ive done it myself, using a powered otg cable (homemade) i run the following command while plugged into mains and laptop :
echo 1 > /sys/devices/platform/bcmpmu_otg_xceiv/host
The device will disconnect from the adb mouse and you are free to plug in a mouse or most probably a keyboard also.
This would be a nice feature built into TWRP if this is possible, or even have it execute at the start up of TWRP for those of us with a powered OTG or willing to make one with a couple of old USB cables etc.
Obviously if the adb part of it disconnects it will be no use unless you have the OTG all plugged in.
Any thoughts on this ? its alot easier than using the adb mouse. Only not sure if this can be executed before the choice of system or recovery that comes on screen ? Cant see why not because you are connected as soon as that screen is up.
*EDIT
This does work as expected with a USB keyboard.
Click to expand...
Click to collapse
I suppose I could put a setting in the TWRP settings to switch between ADB and OTG. The only problem is if you put it in OTG mode, ADB will never work until you switch it back. But I guess as long as you can boot back in to the OS, I could make it easy to turn it off from there. And then I guess I could also make it so you could easily turn it on from the OS. I'll let you know.
rbox said:
I suppose I could put a setting in the TWRP settings to switch between ADB and OTG. The only problem is if you put it in OTG mode, ADB will never work until you switch it back. But I guess as long as you can boot back in to the OS, I could make it easy to turn it off from there. And then I guess I could also make it so you could easily turn it on from the OS. I'll let you know.
Click to expand...
Click to collapse
I didnt want to tag you in this as you have already done alot for us all.
What I was thinking, (bare in mind ive no idea how to do ut myself, maybe if I had a little know how id attempt it)
would be to when TWRP boots and while its on the selection screen right before the timer is out if adb mouse has not been detected run that command, if adb mouse has been detected dont run. Have no idea if that's possible tho.
sconnyuk said:
I didnt want to tag you in this as you have already done alot for us all.
What I was thinking, (bare in mind ive no idea how to do ut myself, maybe if I had a little know how id attempt it)
would be to when TWRP boots and while its on the selection screen right before the timer is out if adb mouse has not been detected run that command, if adb mouse has been detected dont run. Have no idea if that's possible tho.
Click to expand...
Click to collapse
You know... I do like that. That's easy to do, because I already have a loop doing the countdown. So basically it starts out in ADB mode. Halfway through the countdown I check if there is an input device and if it's NOT the mouse emulator, switch the OTG mode. It'll take some tweaking, because right now the mouse gets disabled in the boot menu and I don't know the type of input device currently. But all that should be pretty doable.
rbox said:
You know... I do like that. That's easy to do, because I already have a loop doing the countdown. So basically it starts out in ADB mode. Halfway through the countdown I check if there is an input device and if it's NOT the mouse emulator, switch the OTG mode. It'll take some tweaking, because right now the mouse gets disabled in the boot menu and I don't know the type of input device currently. But all that should be pretty doable.
Click to expand...
Click to collapse
Excellent, I was just messing around and made another powered otg lead yesterday and thought id try it while in TWRP. Was quite suprised when I ran the command then unplugged it from my laptop (still windows) ? then plugged mouse/keyboard in. Then had a think of how it could be implemented keeping everyone happy. I only made the otg to see if this fire stick would let me access usb storage, as i had a fire stick previously that let me read/write to usb, even had a hdd dock linked up to it too.
Unfortunately this fire stick wont let me access usb storage, no idea why the other was different.
Anyway great news ?

Black screen and no functionality but want to pull data

Hi i dropped my phone and the screen is black. I know it still works because the fingerprint still vibrates and the pc still recognizes it via charging method. I have some important photos that i didn't have backed up and now wish to recover. Can somebody show me steps to get into mass storage ?
jronish said:
Hi i dropped my phone and the screen is black. I know it still works because the fingerprint still vibrates and the pc still recognizes it via charging method. I have some important photos that i didn't have backed up and now wish to recover. Can somebody show me steps to get into mass storage ?
Click to expand...
Click to collapse
Did you have USB Debugging enabled in the developer's menu before the screen went black?
Very sadly no I did not. Can I enable it via abd?
jhs39 said:
Did you have USB Debugging enabled in the developer's menu before the screen went black?
Click to expand...
Click to collapse
Very sadly no.... Can I enable it via adb?
jronish said:
Very sadly no.... Can I enable it via adb?
Click to expand...
Click to collapse
Not that I know of. You might want to try Huawei's computer program HiSuite and see if it can connect to your phone without you changing any options on your dead phone screen.
http://consumer.huawei.com/minisite/HiSuite_en/index.html
jhs39 said:
Not that I know of. You might want to try Huawei's computer program HiSuite and see if it can connect to your phone without you changing any options on your dead phone screen.
http://consumer.huawei.com/minisite/HiSuite_en/index.html
Click to expand...
Click to collapse
Thanks I'll try that. Can you pull data from adb?
jronish said:
Thanks I'll try that. Can you pull data from adb?
Click to expand...
Click to collapse
In general, you can. You'd need to have ADB enabled though. You'd use the ADB pull command.
If anything, are you on stock with stock display size? Do you have apps that keep a persistent notification?
If not, I'd say you could try this;
Basically get someone to match your setup. They'd install any apps that you use which use persistent notifications to exactly match your setup. If none, have them take a picture (with an actual camera or another phone) of their 6P with the notification shade pulled down while plugged into a computer. Then another picture after they click "Charging Only" to switch it to MTP. If you can unlock the phone with the fingerprint scanner, and start up top to pull down your shade, you should be able to follow visual queues to enable MTP instead of charge only mode. Then you could at least navigate the folders on the phone and drag and drop your pictures to PC.
Edit: Assuming your screen still responds to touch, but is just black. Didn't see it specified. It's worth a shot.
jronish said:
Hi i dropped my phone and the screen is black. I know it still works because the fingerprint still vibrates and the pc still recognizes it via charging method. I have some important photos that i didn't have backed up and now wish to recover. Can somebody show me steps to get into mass storage ?
Click to expand...
Click to collapse
Hello... Maybe try this app: https://forum.xda-developers.com/showthread.php?t=2786395
Good luck..!
5.1 said:
Hello... Maybe try this app: https://forum.xda-developers.com/showthread.php?t=2786395
Good luck..!
Click to expand...
Click to collapse
Thanks....I will give that a try and report back!
5.1 said:
Hello... Maybe try this app: https://forum.xda-developers.com/showthread.php?t=2786395
Good luck..!
Click to expand...
Click to collapse
RoyJ said:
In general, you can. You'd need to have ADB enabled though. You'd use the ADB pull command.
If anything, are you on stock with stock display size? Do you have apps that keep a persistent notification?
If not, I'd say you could try this;
Basically get someone to match your setup. They'd install any apps that you use which use persistent notifications to exactly match your setup. If none, have them take a picture (with an actual camera or another phone) of their 6P with the notification shade pulled down while plugged into a computer. Then another picture after they click "Charging Only" to switch it to MTP. If you can unlock the phone with the fingerprint scanner, and start up top to pull down your shade, you should be able to follow visual queues to enable MTP instead of charge only mode. Then you could at least navigate the folders on the phone and drag and drop your pictures to PC.
Edit: Assuming your screen still responds to touch, but is just black. Didn't see it specified. It's worth a shot.
Click to expand...
Click to collapse
I am on stock and all that with no persistent notification and have tried to match it exactly with my brothers phone (same) but i don't think touch functions are working....it should be an easy change to switch off of Charging but touch must be down.......!
RoyJ said:
In general, you can. You'd need to have ADB enabled though. You'd use the ADB pull command.
If anything, are you on stock with stock display size? Do you have apps that keep a persistent notification?
If not, I'd say you could try this;
Basically get someone to match your setup. They'd install any apps that you use which use persistent notifications to exactly match your setup. If none, have them take a picture (with an actual camera or another phone) of their 6P with the notification shade pulled down while plugged into a computer. Then another picture after they click "Charging Only" to switch it to MTP. If you can unlock the phone with the fingerprint scanner, and start up top to pull down your shade, you should be able to follow visual queues to enable MTP instead of charge only mode. Then you could at least navigate the folders on the phone and drag and drop your pictures to PC.
Edit: Assuming your screen still responds to touch, but is just black. Didn't see it specified. It's worth a shot.
Click to expand...
Click to collapse
My device doesn't have USB debugging enabled but I can access it via fastboot! What are the chances of pulling images via fastboot?
jronish said:
My device doesn't have USB debugging enabled but I can access it via fastboot! What are the chances of pulling images via fastboot?
Click to expand...
Click to collapse
None, AFAIK.
God you people....if you have TWRP installed as recovery.....do this until it works right...timing is everything...hold the power button down(I know you won't know if/when it powers off) and hold down the volume up and power button when you think it powers up....volume up and power enters recovery directly, not bootloader....then you can connect to computer and transfer as twrp has adb enabled by default
jamescable said:
God you people....if you have TWRP installed as recovery.....do this until it works right...timing is everything...hold the power button down(I know you won't know if/when it powers off) and hold down the volume up and power button when you think it powers up....volume up and power enters recovery directly, not bootloader....then you can connect to computer and transfer as twrp has adb enabled by default
Click to expand...
Click to collapse
No need to be so condescending. Especially since you offered OP a useless tip.
Why? As stated in their 1st post, their fingerprint scanner unlocks the phone. You can't have a fingerprint set without a pin, password or pattern. Since TWRP does not support fingerprint unlock, they would have to manually input their password for TWRP to access their data and have it show on a PC. As mentioned by OP above, the touch screen is non responsive. Meaning they cannot input their credentials to decrypt.
Edit: Just to confirm, I went to recovery and tried myself. Folders will not show up in file explorer on PC until TWRP is unlocked. ADB devices does show device ID as in recovery, but issuing ADB pull commands does not work. I pulled several folders and all I got was empty folders with no files. If they're encrypted (they said stock, so I'm just going to go ahead and assume they are encrypted) with password/pin/pattern (which we've already established is the case) this will not work.
@OP, I'm not sure of a way you'd be able to get into your pictures at present. Maybe someone with more technical knowledge could chime in, but as far as I can see you need to replace your screen. Either send it in to a repair shop, or DIY.
Here's a link for a new 6P screen (this is just the first link I found). Shop around yourself, see if you can find better prices & also be wary of reviews:
https://www.fixez.com/store/more-brands/huawei/huawei-google-nexus-6p
Here's a few how-to links:
https://www.etradesupply.com/blog/how-to-replace-a-cracked-nexus-6p-screen/
https://www.youtube.com/watch?v=D3j79xygFoQ
so i have used a usb-c hub with an hdmi port and usb port - then hook up phone to a monitor (not computer) and i had a pattern lock - it was really annoying as i had to guess where the dots were as the monitor doesnt show you where the dots are - but i used my mouse to unlock it - if you have a number lock it is easier to unlock - as you just makesure numlock is on then type in your passcode - once there you should be able to navigate round your phone using a mouse - turn on debugging and make sure you have the usb connection set to MTP (media transfer protocol) instead of charge only - id also take off all locking mechanisms to make it easier for yourself - then plug it in your pc and transfer all files across

OP5 screen broken, want to access files(USB Debugging off,bootloader unlocked,rooted)

Hey! I broke my Oneplus 5 phone's screen a few days ago, and it turned completely black. It doesn't seem to respond to touch either. I would like to recover my files. Does anyone know any way I could do that?
Specifications:
-Android Oreo, OxygenOS (newest OxygenOS since October 2018, so probably OxygenOS 5.1.4 according to this https://www.androidauthority.com/oneplus-5-update-784001/)
-Fingerprint sensor still works, so I can unlock the screen.
-The bootloader is unlocked
-The device is rooted
-USB Debugging seems to be off as "adb devices" doesn't bring up anything and dr.fone asks to turn USB Debugging on. (dr.fone is a random app someone recommended on a similar thread, https://drfone.wondershare.com/)
-I think the phone recognizes my laptop as a "charging device" (instead of MTP I think?), which is why it shows that my OP5 is empty when I try to open it in file explorer
-My bluetooth keyboard is still connected to the phone. It also has a touch pad so in theory I can navigate the phone. (pretty sure it's this one https://www.amazon.co.jp/dp/B078RGRJGD/)
The keyboard has some weird shortcuts and doesn't have a windows key though so I might have to get a USB C to USB adapter to plug my USB keyboard in instead.
-sound works, notification light works, button backlights light up when touched if screen is unlocked, internet access on w/ sim card
Solutions I can think of:
-Turn USB Debugging on so I can use adb or some file recovery program to move my files to my pc OR Change the USB "charging" mode to MTP or whatever.
*By blindly using my bluetooth keyboard that is already connected to the phone.
(like this https://www.youtube.com/watch?v=741MqF5uQDw
https://forums.oneplus.com/threads/...n-via-otg-and-restoring-data-with-mtp.717039/ )
I tried this but it didn't work. Maybe my bt keyboard doesn't open up notifications by pressing start/cmd + N? (normal keyboards open notifications when pressing Windows + N)
*By somehow sending a magical command from the pc to change the settings?? Maybe from fastboot or recovery mode or something?​-Somehow connect the phone to an external display so I can control it w/ the bt keyboard (I read somewhere that OP5's usb c port doesn't support hdmi)
-Have someone call me on LINE, Messenger, Discord, Telegram, Skype etc, somehow answer, and somehow turn screen sharing on? haha
Also I'm 95% sure I have some version of TWRP installed from when I first rooted the phone. I can try to find the version from my pc files if that helps. (not 100% sure what TWRP even is but it has some backup/restore features right?)
similar threads:
https://forum.xda-developers.com/oneplus-5/help/screen-broken-how-to-save-data-interior-t3780630
https://forums.oneplus.com/threads/screen-broken-want-the-data.782264/
https://forums.oneplus.com/threads/files-recovery-with-broken-screen-touch-is-working.999114/
https://forums.oneplus.com/threads/...up-files-but-no-usb-debugging-enabled.788563/
Thank youuu, sorry for the long post
EDIT:
Didn't get it to work so in the end I had to repair it.
I got some folders to show up on my pc doing some adb/fastboot stuff, but all the files were encrypted as I wasn't able to unlock the phone in TWRP (you need to swipe the slider at the bottom and input the swipe pattern thing, fingerprint unlock didn't seem to work) so in the end I didn't get access to the files.
*This was 2 months ago so I might be remembering something wrong

How to recover data after display stopped working?

Hehy there,
unfortunately the screen on my mi9t stopped displaying. Really weird. While I was using it, the screen started flashing, just to turn black and never wake up again. No fall or water involved. The phone still seems to work fine, and even touch seems to work, but no display.
I opened up the phone to see if the connector got loose, but everything is well in place.
Now my problem ist, that I can not access the phone anymore. All my files and things are still on there but unreachable.
Here are the facts:
- no display
- bootloader is locked
- usb debugging is enabled, but my pc is not authorized
- I can blindly get into fastboot and to the lockscreen
- I am not able to blindly unlock the device
Easiest option would obvoulsy be to exchange the display, but unfortunately I can not get on here (South Africa) and shipping would take a month.
My favourite aproach so far was to mirror the screen via Vizor, but unfortunately it needs to install the according app on the device, which it can not while the device is locked.
Does someone here know how to recover the data?
Thanks
and a happy new year to everyone!
cartonneexpress said:
Hehy there,
unfortunately the screen on my mi9t stopped displaying. Really weird. While I was using it, the screen started flashing, just to turn black and never wake up again. No fall or water involved. The phone still seems to work fine, and even touch seems to work, but no display.
I opened up the phone to see if the connector got loose, but everything is well in place.
Now my problem ist, that I can not access the phone anymore. All my files and things are still on there but unreachable.
Here are the facts:
- no display
- bootloader is locked
- usb debugging is enabled, but my pc is not authorized
- I can blindly get into fastboot and to the lockscreen
- I am not able to blindly unlock the device
Easiest option would obvoulsy be to exchange the display, but unfortunately I can not get on here (South Africa) and shipping would take a month.
My favourite aproach so far was to mirror the screen via Vizor, but unfortunately it needs to install the according app on the device, which it can not while the device is locked.
Does someone here know how to recover the data?
Thanks
and a happy new year to everyone!
Click to expand...
Click to collapse
When I experimented, I was able to unlock my two SIM cards and Android by adb (replace xxxx by your PINs)
However, phone was rooted and shell was given the root grant:
adb wait-for-device devices
adb shell
su
input text xxxx
input keyevent 66
input text xxxx
input keyevent 66
input touchscreen swipe 930 880 930 380
input text xxxx
exit
exit
try fastboot apk
Mirror screen to pc with vyzor. You have usb debugging turned on, so it's worth a try.
If touch doesn't work, use usb otg adapter to plug keyboard or mouse
There's no other option.
zgfg said:
...
Click to expand...
Click to collapse
Thank your for the idea! Unfortunately it does not work in the unrooted phone. I suspect that's only because I can't the adb connection to my pv authorized.
I tried this on an unrooted lineage os 17, which I have on my old Mix2, and there it works like a charm.
yaro666 said:
try fastboot apk
Mirror screen to pc with vyzor. You have usb debugging turned on, so it's worth a try.
If touch doesn't work, use usb otg adapter to plug keyboard or mouse
There's no other option.
Click to expand...
Click to collapse
Thanks for the advice. I think i tried everything to get the apk installed, but I can not do anything through adb since even though debugging is activated, the connection to my pc is not authorized.
I guess I have to wait for the replacement screen.
cartonneexpress said:
I guess I have to wait for the replacement screen.
Click to expand...
Click to collapse
Any water exposure? Ever?
May not be the screen; a mobo failure is just as likely even more so especially if they use no lead solder paste.
Maybe a loose or bad connector/cable if you get real lucky... and find it.

Categories

Resources