Preserve Root After OTA Update Without USB? - OnePlus 5 Questions & Answers

I recently changed the battery in an old Oneplus 5, new battery works great but I seemed to have bent one of the prongs used by USB transfer.. it no longer mounts anywhere.
I've tried mounting it in Linux, Windows using Qualcomm & Oneplus drivers, etc.
I suspect I already know the answer to this, but is there a way to preserve su / root access after an Android OTA update WITHOUT having access to USB?
Previously (when USB was working) I boot into fastboot from adb and simply flash a patched boot.img after the OTA... which isn't possible as fastboot won't work without USB, by my understanding.

I also have the same problem. It was OK when I could boot to TWRP. However, I updated to LineageOS.20 and TWRP no more gets stuck at splash screen. I was using the phone with defective USB for years, even replaced the USB module but it didn't fix the connectivity problem. So this is probably the end of my Oneplus. 5

Related

Unable to Connect N7 via USB to PC

First some background:
Playing around with some ROMs, I loaded up MIUI. I wanted to see what all the fuss was about. While installing from ROM Manager, the subsequent boot into CWM started my backup and installed the ROM. During the process CWM notified me the install was attempting to overwrite the recovery partition. I inadvertently said yes, one of the bad things about touch recovery...fat fingers.
Result:
CWM was blown away. MIUI failed to install Google Apps.
I connect the N7 up to my PC. It is not detected. No ADB available, however I can use wireless ADB so I installed ROM manager and reflashed CWM. This was were the fun began. Everything on my internal storage got nuked during the install and attempted recovery. I had to format internal storage.
No biggie, I have backups on my laptop through WUGFresh Root Kit. I will restore back to stock and start over.
Problem:
No computer I connect the N7 to detects it, regardless of USB connection method nor OS on the PC (Ubuntu, Win 7, Mint). I still have wireless ADB but that doesn't help with fastboot.
Current Status:
Currently I am running AOKP, after flashing multiple ROMs and Recovery between TWRP (current) and CWM. Also I have done many factory resets, cache cleaning, etc.
My diagnosis:
I think my boot, recovery or bootloader partition is borked due to the fat finger in CWM while installing MIUI. The added bonus...without being able to connect the N7 to any PC, I can't get into recovery unless I get lucky (1 out of 10 tries I get lucky and can get into recovery). I can get into recovery as long as I can boot into a ROM and do any common method to reboot recovery.
Question:
Now my question, does anyone have any ideas what I can do to get the USB connection working again to allow ADB/Fastboot connections?
Additional info/Review:
I have a GNex that I can ADB/Fastboot into without issue.
I have tried multiple different cables to connect to PC/Laptops.
As mentioned, I have tried multiple PCs to attempt a connection running everything from Windows 7 to variations of Linux (Mint and Ubuntu)
All the cables work fine with GNex, excluding one cable I deemed trashworthy.
I am fairly certain that the micro-USB port is fine, I can charge without issue even connected to a PC. OTG cable works perfectly fine.
I did something saying a port was open from the N7 that cause USB connection to fail. I forget what I did to find that message or what program I was using. I think I was trying to do a adb usb command from the command line on the N7.
USB Debugging is enabled.
More info:
No errors in logcat when connecting N7 to PC.
Try to do complete wipe & flash stock . My desktop has never detected the n7 but the fastboot works. I was able to flash stock using wugs toolkit.
Sent from my GT-I9300 using Tapatalk 2
That is the problem, I can't get any PC to recognize the n7 is connected. therefore, wugs root tool kit wont work. it uses fastboot and adb. without the drivers loaded and the device detected, I can't use wugs. this happens even on machines I have never plugged the n7 into.
If I could find a flashable zip of stock, that might do the trick.
I am wondering if I can use the otg cable and connect from my phone with adb? I don't think I can run fastboot commands from the phone though.
Sent from my Nexus 7 using Tapatalk 2
Doubt you could. Have you tried booting into bootloader then changing the usb port on the and also try reinstalling the drivers. When in bootloader try locating your device in device manager.
Good luck
Sent from my GT-I9300 using Tapatalk 2
panjaby said:
Doubt you could. Have you tried booting into bootloader then changing the usb port on the and also try reinstalling the drivers. When in bootloader try locating your device in device manager.
Good luck
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
even in boot manager, the device does not show in device manager on windows and it can't be seen on Linux either when looking for attached devices.
With my old viewsonic gtab I use to verify there was a device connected from command line, that doesn't work either. I'll post that command later today, just for reference.
Sent from my Nexus 7 using Tapatalk 2
OK, I have verified the problem is on the tablet side. I can connect my OTG cable to the tablet and mount my GNex allowing me to perform adb commands sent to the phone. I can not mount my tablet to the phone reversing the cable.
N7 ---> OTG ---> USB ---> GNex (works)
GNex ---> OTG ---> USB ---> N7 (fails, phone does not recognize the tablet being connected. I verified I could connect to a USB stick without issue.)
I think this narrows it down to MTP/PTP being disabled somewhere. Since it affects fastboot as well, I am assuming something in boot or bootloader. I ruled out recovery due to recovery working correctly when I can get to it.
Any ideas?

USB device not recognized

Hello. i noticed that my computer(win 8.1) was giving a usb device not recognized error a few days ago. i didn't fix and eagerly updated to android 4.4.3, but forgot to disable freedom and now can't use google play services. i can fix that but the DAMN PHONE STILL ISN'T RECOGNIZABLE BY THE DAMN COMPUTER. i have tried multiple cables and installed win 8 dual boot but still got the same error. i also tried to reinstall drivers. but i think i didnot do it right.
both adb and fastboot are not working. if u could tell me a method to install a custom recovery without root and adb that would sove half my problems but still need help getting the computer to recognized the phone.
Normally this is a problem with charging block of the phone.
You have to root to flash recovery without a computer, towelroot works on 4.4.3. Once rooted you can use goomanager app to flash twrp recovery.
Does the PC making sound of connected I disconnected continually?

Boot loop - fastboot/adp not working

Hi all, I dropped and broke the screen of my rooted Nexus 4. I purchased a replacement screen/digitizer, but when I turned on the phone after installing I found it in boot loop. I went into recovery mode and wiped cache partition, dalvik-cache, but that didn’t help. Then I did a factory reset, which didn’t solve the problem either. I must have wiped usb debugging because now I can’t get fastboot or adb commands to work and my computer doesn’t recognize my phone anymore. I can access recovery mode but I am still stuck in boot loop. Any way to get my phone running again, or at least able to get my phone and computer (Mac) to see each other again? Thanks!
Make sure you have latest adb and fastboot SDK files installed. Debugging has no link to fastboot.
Sent from my Nexus 4
I have latest adb and fastboot SDK files installed. I was able to use adb and fastboot commands before I wiped my device, but not anymore
So I ended up getting a new phone -- Zenfone 2 -- and devices wasn't showing up. On a whim, I tried a different USB cable today and it worked! I hooked up my Nexus 4 with this cable and it also worked! Could've been such an easy solution.
I really liked my Nexus 4 and was hoping to eek out another year or so out of it but now I'm out the cost of a digitizer/lcd and another $300 for the Zenfone 2, but I guess it'll become my backup phone. Just wanted give an update and warn others to try switching cables before writing it off like I did.

Nexus 6p unresponsive screen with OS lock

Hello Everyone,
I have an issue with my nexus 6p screen all of a sudden being unresponsive to touch. The big error on my part was not setting up my videos and images to automatically backup. So now what i'm trying to do is unlock the phone using ADB and a usb cable but haven't had any luck. I've gotten as far as listing my devices, which show up an unauthorized and seem I can only authorize it from my phone. Q1. is this true? Could there be any other way to authorize my phone, or am I out of luck and my data is kaput? I've also tried an OTG cable but it doesn't load since i'm guessing the OS has to fully load for the cable work.
Do I have any choice on saving my data with a USB cable and command line or can someone suggest a tool that would help me out of this situation?
Put it into fastboot/download mode and flash the latest TWRP recovery.
Use TWRP's file manager or ADB Pull commands to pull your data off. Use ADB push to push a new ROM image and flash over everything except userdata (back it up just in case).

USB C charging issue

So after getting around to installing the July security patch a couple days ago USB C charging stopped working on my Nexus 6P. If I use a USB A to USB C cable it will charge, but not if I use USB C to USB C. This persisted over multiple cable and chargers.
I tried to wipe the cache but had a problem getting into recovery - I could get to the boot loader but when i select Recovery i get a 'No Command' error screen. (eventually i found out i could power and volume up from this screen to get recovery, but the wipe cache didn't fix anything.)
Then I installed Oreo hoping that would take care of the issue but no luck. Any thoughts? Anybody else get this from the security patch?
Google support has not been particularly helpful.
Hi, i just started getting this issue today. I installed android O yesterday. My original charger which is C to C wont work but C to A will work fine. I've also had my 6p not recognized by my pc. It only charges when i plug it in. Tried different cables, different computers, but I think it might by my charging port. Google support tried, they didn't know what was going on.
But I'm stuck without a custom recovery right now and have lost root access. But phone is working fine. Messed up during flashing, didnt flash custom recovery thinking twrp would be intact but nope. And I cant use ADB to reflash anything cause my stupid 6p wont get recognized by my pc. haha
sonysingh1983 said:
Hi, i just started getting this issue today. I installed android O yesterday. My original charger which is C to C wont work but C to A will work fine. I've also had my 6p not recognized by my pc. It only charges when i plug it in. Tried different cables, different computers, but I think it might by my charging port. Google support tried, they didn't know what was going on.
But I'm stuck without a custom recovery right now and have lost root access. But phone is working fine. Messed up during flashing, didnt flash custom recovery thinking twrp would be intact but nope. And I cant use ADB to reflash anything cause my stupid 6p wont get recognized by my pc. haha
Click to expand...
Click to collapse
haha. use bootloader mode and fastboot flash the TWRP you overwrote when you flashed over recovery. ADB only works in Recovery, but fastboot works in bootloader mode which previously said you can access.

Categories

Resources