[Q] How to reset to stock with broken USB port

dl12345

Senior Member
Aug 1, 2014
293
814
123
My 2013 Nexus 7 has a non functional USB port that works only for charging but not for data transfer of any sort. I need to RMA it, however I am running CM11 with TWRP recovery.

The guide for resetting to stock relies on having a functional USB port. Is there a way of reflashing stock ROM and recovery and relocking the bootloader with a non-functional USB port (ie., using only wifi to download to the device and the custom recovery to flash things)?

Thanks in advance for any assistance.
 

Aerowinder

Senior Member
Aug 11, 2012
3,322
1,329
0
My 2013 Nexus 7 has a non functional USB port that works only for charging but not for data transfer of any sort. I need to RMA it, however I am running CM11 with TWRP recovery.

The guide for resetting to stock relies on having a functional USB port. Is there a way of reflashing stock ROM and recovery and relocking the bootloader with a non-functional USB port (ie., using only wifi to download to the device and the custom recovery to flash things)?

Thanks in advance for any assistance.
Sure. You would need to lock the bootloader with the app from the playstore, then find stock ROM and recovery. Flash ROM then factory reset through recovery. Then flash stock recovery with TWRP. Reboot to stock recovery and factory reset. That should be it.

This app https://play.google.com/store/apps/details?id=net.segv11.bootunlocker&hl=en
 
Last edited:
  • Like
Reactions: dl12345

dl12345

Senior Member
Aug 1, 2014
293
814
123
My 2013 Nexus 7 has a non functional USB port that works only for charging but not for data transfer of any sort. I need to RMA it, however I am running CM11 with TWRP recovery.

The guide for resetting to stock relies on having a functional USB port. Is there a way of reflashing stock ROM and recovery and relocking the bootloader with a non-functional USB port (ie., using only wifi to download to the device and the custom recovery to flash things)?

Thanks in advance for any assistance.
Ok, I have managed to restore stock android and recovery, although I still am working on how to relock the boot loader.

I had fortunately taken a backup of the stock ROM with TWRP before I flashed my nexus to CM11. So I restored from the stock backup, then I removed the root using the inbuilt option in supersu and rebooted. I then accepted the stock OTA update to Android 4.4.3 which flashed the stock recovery during the upgrade process.

So now everything looks like new except for the unlocked bootloader. I'm still soliciting advice on how to relock the bootloader with no USB port available....
 

dl12345

Senior Member
Aug 1, 2014
293
814
123
Sure. You would need to lock the bootloader with the app from the playstore, then find stock ROM and recovery. Flash ROM then factory reset through recovery. Then flash stock recovery with TWRP. Reboot to stock recovery and factory reset. That should be it.


From the time stamps, it looks like I was composing my previous reply at the same time as you were doing yours. I may just have invalidated this option by unrooting my device :)

Thanks for the feedback
 
Last edited:

dl12345

Senior Member
Aug 1, 2014
293
814
123
From the time stamps, it looks like I was composing my previous reply at the same time as you were doing yours. I may just have invalidated this option by unrooting my device :)

Thanks for the feedback
I have the solution: Use TowelRoot (towelroot.com). This is an app that can be downloaded to the device to allow rooting without having to use ADB and a USB cable. Once Towelroot did its job, I installed Supersu again, then installed the bootlocker app that Aerowinder kindly linked and used it to lock the bootloader. Follow up with a quick uninstall of Supersu and the device looked like new: stock rom, stock recovery, locked bootloader. All without ever connecting it with a USB cable to a PC.

Thanks Aerowinder.