[ASK] Can you flash a rom without power button? - Xiaomi Redmi Note 7 Questions & Answers

So my RN7 power button is broken and now i need to dirty flash my curtom rom because it bugged and the touchscreen not working (but tap to wake work lol), so is it possible to do it?

oyabun324 said:
So my RN7 power button is broken and now i need to dirty flash my curtom rom because it bugged and the touchscreen not working (but tap to wake work lol), so is it possible to do it?
Click to expand...
Click to collapse
If you had USB debugging enabled, you can install the custom ROM in recovery mode with twrp commands via adb. Android you can use the help of a mouse connected to usb-c (e.g. via an adapter).

ze7zez said:
If you had USB debugging enabled, you can install the custom ROM in recovery mode with twrp commands via adb. Android you can use the help of a mouse connected to usb-c (e.g. via an adapter).
Click to expand...
Click to collapse
thank you will try this

Related

[Urgent help]Broke N4 Screen - Need to backup App Data - Rooted - Debugging Enabled

So as the title suggest, my screen is working but not recognizing touch. Basically useless.
Device is rooted, Usb debugging is enabled but RSA Key is not authorised to this pc.
Stock Lollipop with custom kernel.
Problem 1 -
I am already with CWM recovery. From what I have read from cwm recovery I must be able to get access to adb recovery mode so I can backup my app data from system but the device stills shows "Unauthorized" in recovery mode. I dont know why this is happening?
Problem 2 -
I bought the OTG USB Y Cable thinking I might be able to install a differnet kernel that support otg through external power source but then I read that most kernel require to manually enable the option in settings/tweaker app for OTG SUPPORT. I cannot do this becasue as i said my screen is not working.
Please help me out.
Does your computer recognize the phone in bootloader? If so I would suggest you flash twrp and then try booting to recovery. Then you can check if your computer recognizes it now.
theminikiller said:
Does your computer recognize the phone in bootloader? If so I would suggest you flash twrp and then try booting to recovery. Then you can check if your computer recognizes it now.
Click to expand...
Click to collapse
Yes.
Already did that and it did work.
Was able to backup few imp. data.
I just have one more question -
Is there some kernel which support otg in Lollipop without me manually going into settings/tweaker app for kernel and enabling it?
Because I cannot do it manually coz the screen is broken.

nexus 4 - broken screen and usb debugging turned off

Hi
I have a nexus4 that has a broken screen, it is, it doesnt react to the finger touch, and doesnt have usb debug enabled
What could i do to extract the files from there?
I have seen that connecting a mouse via usb is not an option as this device is not compatible with that, so i think the only option i have is to flash the device to have usb debugging enabled
Is there any other option i can explore?
Thanks
I am sure that you can enter your recovery assuming that your power + vol button is still functioning.
Try to connect your device using Wug Tool and use the tool to back up all the files.
Give it a try and let us know.
Sent from my Nexus 4 using XDA-Developers mobile app
Thanks
Yes, i can get in recovery, but, i assume i would need to unlock the bootloader first, isnt it? If i do it, i will erase all the documents inside
Hi
I have tried getting into recovery, but, as expected, as usb debugging is not enabled, i cant see the device from adb
So, the key question is... how can i enable usb debug in a device with the screen broken and with bootloader locked, without wiping the data?
Thanks
It is possible to turn on usb debugging?
I have clean phone - after factory reset.

OPO 2 "no OS installed"

Hi guys,
i knew this topic was dicussed a few times, but i didn´t find a solution which fits for me.
Unfortunately i wiped my OnePlus 2 using twrp and since then i can´t used it, it only says "no OS installed".
No USB connection is found, i can not find it as an adb device (daemon not running. starting it now on port 5037) and USB OTG isn´t working either.
I tried different drivers for the device (actually i uses a qualcomm 9008 driver) but nothing helps.
Is there a change to rescue the phone?
Many thanks in advance!
Were you able to get into recovery mode by pressing and holding Volume Up, then pressing Power once? How about Fastboot mode by pressing and holding Volume Down, then pressing Power once?
Also, what recovery do you have?
Tristan Phan said:
Were you able to get into recovery mode by pressing and holding Volume Up, then pressing Power once? How about Fastboot mode by pressing and holding Volume Down, then pressing Power once?
Also, what recovery do you have?
Click to expand...
Click to collapse
I am able to get into both modes, as well Fastboot mode as recovery. But i am not able to get a connection to my pc or other devices.
Using TWRP 3.0.2-2 as Recovery.
try to connect usb storage with otg
chxei said:
try to connect usb storage with otg
Click to expand...
Click to collapse
Unfortunately usb otg is a big problem at the Oneplus 2. Until now i didn´t find an adapter that works.
Seesternfan said:
Hi guys,
i knew this topic was dicussed a few times, but i didn´t find a solution which fits for me.
Unfortunately i wiped my OnePlus 2 using twrp and since then i can´t used it, it only says "no OS installed".
No USB connection is found, i can not find it as an adb device (daemon not running. starting it now on port 5037) and USB OTG isn´t working either.
I tried different drivers for the device (actually i uses a qualcomm 9008 driver) but nothing helps.
Is there a change to rescue the phone?
Many thanks in advance!
Click to expand...
Click to collapse
Hi I had the same problem a few months ago, my phone wasn´t recognized by my pc because I was using the official charging cable so I bought a cheap USB-C cable and I was able to connect it to my pc and reinstall the OS. Hope this helps.
So your device isn't recognized in Fastboot mode? Do you have any ROMs downloaded on your phone already?
coderch123 said:
Hi I had the same problem a few months ago, my phone wasn´t recognized by my pc because I was using the official charging cable so I bought a cheap USB-C cable and I was able to connect it to my pc and reinstall the OS. Hope this helps.
Click to expand...
Click to collapse
My original cable doesn´t work anyway, so i was forced to try another cable. Unfortunately this didn´t work either.
Tristan Phan said:
So your device isn't recognized in Fastboot mode? Do you have any ROMs downloaded on your phone already?
Click to expand...
Click to collapse
I´m not able to get a ROM on my device, this is my problem.
When I try to connect my phone using adb this is happening:
"C:\Users\Seesternfan>adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *"
I tried different tips from the internet but i wasn´t able to get a connection with my phone.
Seesternfan said:
I´m not able to get a ROM on my device, this is my problem.
When I try to connect my phone using adb this is happening:
"C:\Users\Seesternfan>adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *"
I tried different tips from the internet but i wasn´t able to get a connection with my phone.
Click to expand...
Click to collapse
If you can get your hands on a USB-OTG cable, definitely do so to get a ROM onto your phone. Have you tried MTP? If you enable MTP under Mount in TWRP, does your PC recognize it in Windows Explorer?
Tristan Phan said:
If you can get your hands on a USB-OTG cable, definitely do so to get a ROM onto your phone. Have you tried MTP? If you enable MTP under Mount in TWRP, does your PC recognize it in Windows Explorer?
Click to expand...
Click to collapse
I have two USB-OTG cables at home. The problem is that the OnePlus 2 USB C port is no ordinary USB C port. Till now i didn´t find a cable that works, except the original one which is out of stock.
MTP is enabled but there is no difference to before.
Have tried reinstalling the drivers?
@Seesternfan
Can it be possible to get remote access to your PC, so that I can help you?
Is your USB-OTG cable a USB-C one? I use a Micro-USB USB-OTG cable with an Anker Micro-USB to USB-C adapter.

Nexus 4 - Broken screen, no touch, need to unlock

Dropped phone, cracked screen, screen works but is unresponsive to touch.
Problem: Need to unlock to access data. This seems to be a common problem but I've been reading the forums and still cannot find a solution
Status:
- USB debugging disabled (presumably)
- No OTG support
- Not rooted
- ADB, running adb devices command shows no device
- Booting to android screen shows Secure boot: enabled, Lock state: unlocked (not sure what this means)
I've tried Vysor and k.janku1's tool, both don't work as presumably the USB debugging is disabled.
Is there any way to enable USB debugging? Or is there any way to connect to ADB? Or any way to flash CWM without ADB?
Any help would be greatly appreciated!!
What data you want to access? May be you need to see if you can boot in to fastboot mode, flash a recovery and then take it from there.
If you are able to do that then you can connect your phone to PC and access it as an USB stick.
Nitin
nitin.chobhe said:
What data you want to access? May be you need to see if you can boot in to fastboot mode, flash a recovery and then take it from there.
If you are able to do that then you can connect your phone to PC and access it as an USB stick.
Nitin
Click to expand...
Click to collapse
Thank you!!! I have flashed the CWM recovery and can access it on my phone. Where should i go from there? I have tried 'mount USB storage' but the phone is not being recognized on the computer still, I cannot see the storage. I am trying to access mainly contacts and photos. Thanks again!
Try flashing twrp it has mtp mode
Jellyfishk said:
Thank you!!! I have flashed the CWM recovery and can access it on my phone. Where should i go from there? I have tried 'mount USB storage' but the phone is not being recognized on the computer still, I cannot see the storage. I am trying to access mainly contacts and photos. Thanks again!
Click to expand...
Click to collapse
Your contacts should be synced to your google account. Get them from there.
I do not use CWM as it is not supported these days (although it was my favorite recovery back then). So can't help you. As @[email protected] suggested, flash TWRP.
Nitin
[email protected] said:
Try flashing twrp it has mtp mode
Click to expand...
Click to collapse
nitin.chobhe said:
Your contacts should be synced to your google account. Get them from there.
I do not use CWM as it is not supported these days (although it was my favorite recovery back then). So can't help you. As @[email protected] suggested, flash TWRP.
Nitin
Click to expand...
Click to collapse
Thank you both, TWRP worked and I could connect it as USB storage to my computer!
Another question is, would it be possible to enable USB debugging through adb/CWM/TWRP? So I can use those tools to control my phone via computer.
Jellyfishk said:
Thank you both, TWRP worked and I could connect it as USB storage to my computer!
Another question is, would it be possible to enable USB debugging through adb/CWM/TWRP? So I can use those tools to control my phone via computer.
Click to expand...
Click to collapse
No, that's not possible as far as I know. If I were you, I would have flashed a custom ROM which has USB debugging enabled (Like NitrogenOS)
Don't know how can you flash that without touch. Check if some connector like this allows you to use your mouse with the phone.
Nitin

[SOLVED] Unresponsive touchscreen: backup data from secondary users

Hi,
My touchscreen stopped working all of a sudden, in a very similar way as these users reported:
> https://forum.xda-developers.com/oneplus-5/help/oneplus-5-touch-screen-stop-t3757724
> https://forum.xda-developers.com/oneplus-5/help/touchscreen-responding-how-access-t3844693
The phone boots up to the "Enter pattern for all data and features" screen, and I'm not able to enter the pattern since my touchscreen doesn't respond. For what it's worth, my phone is rooted and has the latest TWRP installed. However, the phone is encrypted, USB debugging is disabled and I have an anti-theft app (Cerberus Anti-Theft) that can act on settings like "Prevent USB debugging" or "Disable Wi-Fi". I have three users on my phone, and I have been able to recover the data of the first user only so far (see below).
Idea 1: use an USB OTG mouse
I did try this solution, but nothing happens when I plug the USB mouse. The blue LED on the mouse doesn't turn on, and it seems that no power is output at all.
Idea 2: use an USB OTG mouse in recovery
I tried to boot into recovery and plug my USB-C mouse in... but nothing, no pointer, no power drawn from the mouse.
Idea 3: boot into recovery and use TWRP adb commands
The phone boots TWRP and prompts me to enter my pattern, but is not able to communicate with the PC. 'adb devices' shows nothing.
Idea 4: load a temporary TWRP from fastboot
The phone boots fastboot without any problem. I'm able to 'fasboot boot C:\twrp-cheeseburger.img', and TWRP boots just fine. I then try to plug my USB-C mouse, and it works! I can see the pointer, and the mouse's blue LED turns on. I can enter my pattern, decipher my Data partition and backup everyhting to my PC.
HOWEVER, I am not able to access other users' data, and I have a work profile that contains data I would really like to recover. Is there any way to decrypt data from secondary users without booting Android system?
On a side note, I was also able to permanently flash the TWRP I booted from, which means I'm able to use the mouse without having to 'fastboot boot'.
I now have full, untethered recovery access, with full mouse support. I'm still not able to swipe to confirm some adb commands though, as I have to disconnect the PC cable to plug the mouse.
Idea 5: enable USB debugging from temporary TWRP in order to use adb from Android system
I would gladly accept any help on that matter.
From what I've read, I have to edit two files, '/data/property/persist.sys.usb.config' &'/system/build.prop', and then push RSA keys on the device in the '/data/misc/adb/adb_keys' folder.
The pulling / editing / pushing part is OK, but the RSA part seems trickier. I've never connected my phone via adb to my computer (just recently bought it), but I do have the adbkey files in my home folder. I would try and give my results back here, but like I said, I have data that I would like to recover and I can't risk messing with the keys.
Idea 6: find what's causing the USB ports to be disabled
Easier said than done! What could possibly prevent the USB port to be completely disabled (except for charging)? Any ideas? I'm guessing Cerberus Anti-Theft might have to do something with it, but I couldn't find anything specific on that matter.
Idea 7: nandroid backup the phone, wait for quantum computers to become commercially available and bruteforce the private keys
Hmmm...
I'm really running out of ideas here.
EDIT: Solution
> The only way to get to secondary users' files is to boot Android system and enter the pattern.
> The only way to enter a pattern with a broken touchscreen is to use an USB mouse.
> USB OTG wasnt enabled on my phone for some reason, so I had to find a way to enable it from recovery. I booted in fastboot mode, then flashed the latest version of TWRP so I was able to use the mouse in TWRP (OTG mouse is enabled by default in TWRP).
> USB OTG was still disabled in Android system. Luckily, I had Magisk installed so I was able to flash the zip that Axelguitt suggested, which is a Magisk module that enables USB OTG at boot.
Here's a link to the module (by simonsmh): https://forum.xda-developers.com/apps/magisk/module-oxygenos-otg-enabler-t3735922. Simply install the provided zip from recovery.
> This permanently enabled USB OTG in Android system, so I was able to enter the pattern and backup data for all users.
Did you look in /storage/emulated/ in TWRP? There should be some numbered folders, 0 being the primary user. 999 for parallel apps and so on.
Lupus77 said:
Did you look in /storage/emulated/ in TWRP? There should be some numbered folders, 0 being the primary user. 999 for parallel apps and so on.
Click to expand...
Click to collapse
Hi,
On my device, /storage/ is empty (adb pull gives nothing and TWRP File Manager also shows that the folder is empty).
The primary user's files are in /data/media/0 (perfectly readable using TWRP File Manager)
The other users' files are in /data/media/10 & /data/media/11, but are encrypted. I'm looking for a way to decrypt these specific files
This is not really an answer or another idea but a reason, why your mouse doesn't work while in Android - the OTG switch is off.
I think there's a workaround to permanently enable OTG without needing to go to settings, but I think that's kernel based, you'd have to flash a custom kernel with that enabled. I think @nathanchance had it on his now discontinued Flash kernel, maybe he can help.
Is it possible to install a magisk module while you are in recovery?
If so I maybe have an idea :
Go in recovery and find a way to install this magisk module:
https://forum.xda-developers.com/apps/magisk/module-oxygenos-otg-enabler-t3735922
This module enables always on OTG in oxygenOS.
Then boot in system and you should be able to use an OTG mouse.
It is only a suggestion, I have no clue if what I'm suggesting will work.
Axelguitt said:
Is it possible to install a magisk module while you are in recovery?
If so I maybe have an idea :
Go in recovery and find a way to install this magisk module:
https://forum.xda-developers.com/apps/magisk/module-oxygenos-otg-enabler-t3735922
This module enables always on OTG in oxygenOS.
Then boot in system and you should be able to use an OTG mouse.
It is only a suggestion, I have no clue if what I'm suggesting will work.
Click to expand...
Click to collapse
That actually worked!
Many thanks
Bakuryu91 said:
That actually worked!
Many thanks
Click to expand...
Click to collapse
You're welcome!
Can you explain how to install a magisk module from recovery just in case someone with the same issue find this thread?
Axelguitt said:
You're welcome!
Can you explain how to install a magisk module from recovery just in case someone with the same issue find this thread?
Click to expand...
Click to collapse
In this case, the dev (simonsmh) provided a flashable zip of the module. This is usually the case for Magisk modules.
Bakuryu91 said:
In this case, the dev (simonsmh) provided a flashable zip of the module. This is usually the case for Magisk modules.
Click to expand...
Click to collapse
Cool thing to know, I'll remember it if I ever break my touchscreen!
my oneplus 5 keeps getting this issue the touch screen not working ive reset the phone twice now and it still happens. i read its something to do with a bug or hardware problem with the latest android i read this a few times online. is there a custom OS i can load on there that doesnt have this problem?
i already tried to load on an older version of the os and while it worked im still on android 9 when it should have loaded 8. so i know how to load it on but what should i use?
sick of this **** it works then it randomly decides not to work! a reboot works sometimes other times its a full reset

Categories

Resources