Hacker News new | ask | show | jobs
by greatjack613 1194 days ago
If the screen was broken how did you manage to enable debugging and perform authorization?
6 comments

Not OP. I faced a similar problem once.

I found a friend that owned the same model of phone as mine. I used his phone to approximately eye-measure where on the screen I have to press after entering the Settings app.

Now I repeated these presses on my phone. Luckily, although my phone was broken and the screen had become almost fully black, the touches registered.

----------- edit:- If you find it difficult to find a friend that owns your unique phone, your local mobile shop might have a demo phone for you to try out.

Or Youtube search for a video titled "How to enable debugging permissions on Samsung S8?"

I actually have the perfect(?) solution to this ridiculous problem after it happened to me a couple of months ago.

Hit the Google Assistant button, ask it to turn on "TalkBack". Now you can browse the interface the same way someone blind would browse the interface. Plug in a USB keyboard.

From here you go to the Settings page and enable Developer Tools.

If you have assistant disabled, holding down volume-up and volume-down buttons together on the lockscreen should have the same effect
in my case a simple USBC-2-USB adaptor allowed me to connect a mouse and it worked right away

like this: https://www.youtube.com/watch?v=2wggP-e3A1Y

stupid as it looks it saved my data without any sophisticated repair

The comment said 'mostly broke', many people are familiar enough with their phones and the various screens prompts to do this without looking at all, or with a little guess work with help from various only resources, images & videos.
Perhaps the prompt wasn't on the broken part? Can also plug in a keyboard and use that if you know the sequence.
Note that scrcpy has an OTG mode which allows to use the computer keyboard and mouse "as if" they were connected via an OTG cable: https://github.com/Genymobile/scrcpy/blob/master/doc/hid-otg... (in that case, USB debugging is not necessary)

> Can also plug in a keyboard and use that if you know the sequence.

For information, once the phone is unlocked and the authorization popup is open, the sequence to validate the authorization popup is Tab, Enter, Tab, Tab, Enter. The difficult part is to enable USB debugging to get the authorization popup without adb though.

Has anyone gotten this mode to work with Windows yet?
Thanks ... I'll try installing the Google drivers.
srcpy can actually emulate a keyboard and mouse in OTG mode! Discovering that was a thrill for my use case.
Has anyone gotten this mode to work with Windows yet?
Either was already enabled or utilized a custom recovery and modified build.prop.
I would love to read more about this solution. Would you please direct me to the appropriate XDA forum thread please. Please...:)
No XDA thread that I know of, but have a nice gist. https://gist.github.com/varhub/7b9555cdd1e5ad785ffde2300fcfd...
Thank you!

Bye, going to Craigslist to buy them broken landfill phones before your suggestion becomes more popular and the price increases :)