Broke phone screen. Is their any way I can get ADB access? [Oneplus Nord N100] - General Questions and Answers

I have a OnePlus Nord N100 that I dropped off a ladder... I ordered a new phone (screen replacement seemed to not be worth the hastle on such a cheap phone when replacement kit was 60$) but would like to re-purpose the device for something as I am very against e-waste.
I would like to make it a security camera. If I can get ADB shell access it should be possible to install termux and run some linux command line utilities for this (i.e. motion and rclone to upload).
Problem is that without screen I cant login and turn on usb debugging. This phone uses usb 2.0 so I cannot use an hdmi display and mouse.
Is their any way I can get usb debugging enabled? I would prefer to be able to get my files off the device but most of it was backed up. Resetting is fine. I would even be down to try to re flash it with a serial programmer or something. Would their perhaps be any serial programming pads I could solder onto?

Suriyawong said:
I have a OnePlus Nord N100 that I dropped off a ladder... I ordered a new phone (screen replacement seemed to not be worth the hastle on such a cheap phone when replacement kit was 60$) but would like to re-purpose the device for something as I am very against e-waste.
I would like to make it a security camera. If I can get ADB shell access it should be possible to install termux and run some linux command line utilities for this (i.e. motion and rclone to upload).
Problem is that without screen I cant login and turn on usb debugging. This phone uses usb 2.0 so I cannot use an hdmi display and mouse.
Is their any way I can get usb debugging enabled? I would prefer to be able to get my files off the device but most of it was backed up. Resetting is fine. I would even be down to try to re flash it with a serial programmer or something. Would their perhaps be any serial programming pads I could solder onto?
Click to expand...
Click to collapse
If you did not have USB debugging enabled in system settings, there is no external way to enable it. Fix the screen, otherwise, the device won't be any good for an secondary uses other than using it as a paperweight or a doorstop.

Related

zte nubia n9 enable adb

Hi all,
someone bought me a damaged (screen cracked and not usable) phone, and they want to get their photos off the device. But in order for me to even interact with the phone via terminal, or use any recovery app on computer, the adb option must be enabled! now this is where the problem is, cuase how can i enable the adb option when i am flying blind with no screen?!
SO my question is this. Is there a way to connect the phone via the cable and push a command to the phone to enable adb option?
The other problem when connecting the phone is that all that comes up when you connects to the computer is the drive to install the drivers, and not the other drives for the system. SO maybe even a way to send a commnad to the phone to enable data connection so can get access to phone internal memory?

Remote control or external display for broken screen and digitizer

Hi everyone,
Sadly, I broke the screen and digitizer of my beloved OP3T :crying:
The bootloader is unlocked, android is rooted and I have TWRP as recovery.
Unfortunately, usb debugging is disabled as my banking application refused to work when it was enabled.
I don't plan to replace the screen as the A3010 as poor/non-existent 4G support here in europe, I didn't know that when I bought that phone
I would like to use the phone as a media player or home automation system through a DisplayLink adapter, but I have trouble to set it up blindly.
I tried to use this tool but I wasn't able to connect to the phone.
I think I manage to enable usb debugging with adb in twrp recovery but I'm not 100% sure. It keeps saying "state: rejected", I don't know if that means that usb debugging is disabled or that I need to approve my host PC (which I can't without the digitizer working)...
Plan B was to use a DisplayLink adapter...
I installed "DisplayLink Presenter" on my OP3T through the play store but It displays nothing on the external monitor.
Maybe I need to unlock the phone first? But I can't type the pin code without a digitizer...
I'm out of idea so your help would be very welcome :good:
Regards,
Cédric
TL;DR: Is it possible to install a USB > DisplayLink adapter on a phone with broken screen and digitizer?

Help Accessing Data on Screen Locked P20

Hi - wondering if anyone out there can think of a solutions to this...
So, my wife cracked her phone screen (Huawai P20) and bought a cheap phone to use short term while we worked out a replacement (Alcatel 1). When setting up the temporary phone, not all of the data from her P20 was install/copied, mainly because there's not enough storage space to hold it all.
Some of the data left on the P20 is really important (downloaded documents/files and pevious whatsapp history), so I was going to hook it up to a PC and grab all the data from it, but the biggest problem is she can't remember the unlock pattern. I know developer mode/USB debugging is not turned on, so I can't even get a PC/ADB to recognise it, plus I've had to connect it to a mouse and monitor (via HDMI/USB adapter) to even view/control the unlock screen.
I'm pretty sure that without the pattern we have little or no options, but was wondering if anyone knew the answers to the following:
Is there any way to unlock the phone using the old PIN that was set (she's confident she knows this)?
Is there a way to unlock using the finger print sensor (even though is says 'pattern required due to restart')
Should ADB list it as a device even though USB debigging is turned off and the phone is screen locked (currently does not list it, but I thought you could PIN unlock via ADB)
Does anyone know any other tools/options for accessiing the files on the phone.
Thanks is advance for any help!
Basically you can access Android's filesystem in ADB-mode or in MTP-mode: the latter should always be possible.
Even if USB Debuging is turned off and the screen is locked? Any tips on how to get the PC to see the device in MTP mode?
Thanks!
My wifey has a Huawei Y7 with HiSuite installed on Windows PC and HDB enabled on phone. As soon as she connects PC with phone over USB, confirms the verification code, phone gets mounted on PC as external USB-drive and thus visible in MTP-mode.
My guess is you have to take your Huawei to authorized service center and let them try to fix it.
Ah Ok. HiSuite asks for USB Debugging to be enabled first, which i can't do because it's locked. Thanks for you help anayway.

Debugging authorized but not enabled (broken screen/digitizer)

I believe this topic should be mostly device agnostic but for details I'm working with a Fire Tablet 10, a year or two old or so, not sure exact revision but OS and recovery are stock and it is not rooted.
In the past I have connected to this tablet over ADB from my PC (device/connection authorized). The screen and digitizer recently broke. I was still able to connect via ADB and I could even use scrcpy to remote in from my PC. I was having trouble inputting the screen unlock because the digitizer was constantly registering inputs all over the screen nonstop. I was able to unlock the screen with adb input text but as soon as I did, the tablet started opening apps, swiping the top panel, etc. I disconnected a few seconds later but in that short time something happened and now I can't get back in with ADB. My PC does recognize the tablet as being connected but can not even access typical files and folders (no files or folders show up at all). I suspect that one of the registered inputs was in the top panel like changing the usb mode to charge-only or even worse; disabled usb debugging. I have since opened it up and disconnected the screen and digitizer to prevent this from happening again.
I know the topic is asked a million times 'can I get back in if I never enabled usb debugging' but I can't find any answers for my situation where my computer should still be in the authorized devices list on the tablet, just lacking the debug interface being enabled (or something similar). I am not against buying some hardware/adapter to connect to an external display but I haven't found anything yet that will be plug-and-play out-of-the-box (all I've found so far need ADB or an app installed).
My question is: Can I do anything to re-enable standard ADB/USB debugging (or maybe ADB over IP) to get back in if I have a computer that should still be authorized?
Thank you all in advance for any advice or suggestions.
you could try to inject init.rc service
Code:
settings put global adb_enabled 1
or edit default.prop in boot (if not symlink to /system)
Code:
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
you can modify boot with AIK and flash with mtkclient or SP Flash Tool.
In any case, do a full ROM dump first. Do not try to unlock bootloader, encryption keys are bonded to bootloader lock state (some people claim it's possible to unlock bootloader without data loss, I don't believe).

No otg, no adb usb, nor adb wifi connection; barely, it charges

Hi everyone. I post this topic in here, because I don't know where else I could do it, because my device is of a not much known brand. I own a Krono Net 1032, chinese tablet, is rooted via magisk, and everything was going ok with it, until several days ago, when I tried to connect from pc, to adb via wifi, but it didn't connect (adb debugging was enabled and adb returned me 10061 error); action that was performed right without any issue till that day. Uneasied, I tried to connect it via usb, but not only won't connect to adb, but it won't be detected as mass storage... even is not detected as anything. Now, really worried, I tried to connect it by changing usb cable... the same; tried connecting on another usb ports...the same; tried connecting tablet on another pc... the same; tried connecting any peripheral via otg... peripherals won't work; I disabled and reenabled adb debugging... the same. It barely charges, but if I move the tablet, stops charging.
The alarming behavior is that, for I could get root access, it should be connected on preloader mode, for can flash it; so if I told you that this tablet is already rooted, is because in the past I could connect it on that mode and my pc did recognize it with such mode. But now, not even pc recognize such connection.
I suspect that is a hardware issue, but I don't know if that could be happening because of usb port solderings or an usb controller ic issue; and I don't want to open it and try to repair, without before read your opinions.
So please ¿What can be happening there?
Thanks in advance for your answers.
Do a Factory Reset.
xXx yYy said:
Do a Factory Reset.
Click to expand...
Click to collapse
I would do, if my device would be detected on fastboot mode or preloader mode, but none of those usb connection modes are detected by pc. So I don't guess it's an operating system issue; or better said, i'm afraid of doing that, and find that it remains the same. But I'll consider it as my last resort (because i've made many customizations that I don't want to lose -root, gravity box, lsposed, etc-). Anyway I think the reason of what could be happening, would be maybe worst than that (I think is a tablet's usb port issue). Thanks for your opinion.
PS: I forgot to say something that confuses me too much but at the same time, gives me hope that this isn't a hardware issue: Wifi adb isn't working too,and something weird, remote control from pc (eg. via teamviewer or anydesk) doesn't work also.
Don't think device's USB-port is defective, that of all things the lanes are broken, but not the power related connections.
I rather think that USB is not configured correctly in Android's build.prop file, expected USB- setting in build.prop always should be
Code:
persist.sys.usb.config=mtp,adb
xXx yYy said:
Don't think device's USB-port is defective, that of all things the lanes are broken, but not the power related connections.
I rather think that USB is not configured correctly in Android's build.prop file, expected USB- setting in build.prop always should be
Code:
persist.sys.usb.config=mtp,adb
Click to expand...
Click to collapse
I tried adding that line, and rebooted the device, but nothing happened, is still without usb support... But wait a moment, about it ¿is there any specific place to paste that line, or can be pasted wherever inside this file
Did you verify that buld.prop got changed?
Not already existing key-value pairs typically are added to end of build.prop file.
Ckeck for existence of these 2 key-value pairs too:
persist.service.adb.enable=1
persist.service.debuggable=1
Does the USB work properly in fastboot?
Renate said:
Does the USB work properly in fastboot?
Click to expand...
Click to collapse
No, is not recognized in fastboot or preloader. That's why I suspect of tablet's usb port, which would be probably the worst scenary to me. The weird thing is, if the suspected problem is related to hardware ¿Why adb via wifi is not working too? ¿Isn't that a routine separated from usb adb? or definitely ¿if usb adb is not working, wifi adb also stops working?
xXx yYy said:
Ckeck for existence of these 2 key-value pairs too:
persist.service.adb.enable=1
persist.service.debuggable=1
Click to expand...
Click to collapse
Yes, they are already written there, but none of the expected happened (which comes alive again its usb port).
If my problem would be hardware related, I mean, if the problem is at the usb port (i think it is, because, despite it charges when cable is plugged, if I move a little the tablet, it loses charge connection. I tried several cables and happens the same), if sadly i'm right, I think that, being positivist, it would be just solderings retouch on the usb port. But investigating, I can see that micro USB type C (female) connector, is not so easy (even is complicated to not say hard) to resolder, so ¿is there any technique?¿Do i need a hot air gun or something like that?¿or is that only solvable by swapping its main board?
Anyway, If my problem is of hardware, none of the options could be nice.
Often the USB connector is on its own little board connected by a flex printed circuit to the main board.
I Googled "Krono Net 1032 USB connector board" and got https://www.aliexpress.com/i/2255799845922187.html
Yeah, it would be great if they were related, but at least you can see what I mean and how cheap it would be if you could find the right one.
Renate said:
Often the USB connector is on its own little board connected by a flex printed circuit to the main board.
I Googled "Krono Net 1032 USB connector board" and got https://www.aliexpress.com/i/2255799845922187.html
Yeah, it would be great if they were related, but at least you can see what I mean and how cheap it would be if you could find the right one.
Click to expand...
Click to collapse
That board seems to be a spare part of a nokia device. It would be very good if only was disconnecting the suspected bad component, and connecting the new one. But I opened this tablet and what I saw, is that seems, that usb port is integrated with the mainboard.
If it were micro USB 2.0 I'd do it myself.
USB Type C on a motherboard I'm sure that I'd destroy somwthing.
Renate said:
If it were micro USB 2.0 I'd do it myself.
USB Type C on a motherboard I'm sure that I'd destroy somwthing.
Click to expand...
Click to collapse
That's my worry, because it's USB type C.
There are two types of Type C connector:
Real, USB 3.0 24 pin
Lite, USB 2.0 12 pin
I'm not sure that I'd even want to tangle with the 12 pin.
I have an update about this topic. Well, I took courage and disassembled as much carefully I could, I tried to get as much tools I could (besides solder iron, magnifying glass, focal illumination, soldering paste, etc.). I could saw that usb socket pins were tiny but accessible, so, also as much carefully I could, I resoldered them, I cleaned them, and reassembled the tablet.
To be brief, after that treatment, the battery charging was more consistent, more stable (now I can move the tablet without losing charging connection) but it still, doesn't want to be recognized by the pc, wheter if it's on fastboot mode, or normal mode (with tablet on). I must clear that my pc, recognizes other android devices that are plugged into it, but this one doesn't. So, that's very wird to me. My only explanation for that, is that its usb controller IC is working bad or could be broken, but if it would be broken, how could be possible, that tablet still can charges its battery? What do you think about it?
PS: I didn't see too much pins, so I think it has 12 pins.
Renate said:
There are two types of Type C connector:
Real, USB 3.0 24 pin
Lite, USB 2.0 12 pin
I'm not sure that I'd even want to tangle with the 12 pin.
Click to expand...
Click to collapse
I was seized by a big doubt since this problem happened. ¿Is wifi ADB bound to usb adb? I mean, if USB ADB isn't working, ¿Does wifi adb stop working too?
Another question is: Before this, I remember remote control worked on this tablet (control tablet remotely), but now there's no way to make it work ¿Can be this related to the original issue?
Even worst ¿Can the initial issue, be related to a ROM corruption issue? I say "worst" because if it is, I don't know how to reflash it without usb support.
No, WiFi ADB should work even if USB is broken.
You should be able to switch to WiFi ADB using a non-rooted terminal app.
You should be able to do this without root.
Code:
$ setprop service.adb.tcp.port 5555
But adbd has to be stopped and restarted. I'm not sure that this works without rooting.
Code:
$ stop adbd
$ start adbd
But you should be able to go to Settings > Developer options > Enable USB debugging and turn it off then on.
Then:
Code:
C:\>adb connect 192.168.1.12345:5555
Of course 192.168.1.12345 must be the actual IP of the Android on your router.
Renate said:
No, WiFi ADB should work even if USB is broken.
You should be able to switch to WiFi ADB using a non-rooted terminal app.
You should be able to do this without root.
Code:
$ setprop service.adb.tcp.port 5555
But adbd has to be stopped and restarted. I'm not sure that this works without rooting.
Code:
$ stop adbd
$ start adbd
But you should be able to go to Settings > Developer options > Enable USB debugging and turn it off then on.
Then:
Code:
C:\>adb connect 192.168.1.12345:5555
Of course 192.168.1.12345 must be the actual IP of the Android on your router.
Click to expand...
Click to collapse
Ok, I did all that, with a terminal emulator. Without root permission, those commands do nothing. So I invocated root access by typing "su" command; then root request appeared, I gave it to the app root access, and then all those commands worked ok. After corroborate the right wifi adb connection (after enable on developer options "usb debbugging" and all those stuff). I tried a remote control program called "scrcpy", and it worked as expected in a normal condition, I mean, I can see on my pc, the tablet's screen and also i can control the tablet from it, but after that , I'm still wondering, why all other remote control programs, like team viewer and anydesk, don't want to control this tablet, hmmm... ¡anyway!
That news in general to me, is an advance, and is good, but i'm still wondering why usb connection isn't responding (mtp, adb, fastboot nor preloader mode) , not even its OTG support and I'm pretty sure this tablet has it, because with it, came additional an OTG adapter, so why would do they add an otg adapter if tablet wouldn't support it?

Categories

Resources