Samsung Galaxy Note 4 remotely enable USB debugging (broken screen) - General Questions and Answers

Greetings.
I have a Samsung Galaxy Note 4 with a completely broken screen (no display, no touch response).
Android version is 4.2.2.
The phone is working, as pressing the power button lights up the bottom bar.
The phone is rooted, however, USB debugging is disabled. The phone is also pattern locked.
I am aiming to gain remote access to the phone through my PC, ideally mirroring the screen so I can manually backup everything from my phone. In the worst case, backup through ADB is also acceptable.
Initially, I attempted to mirror the screen using:
https://forum.xda-developers.com/showthread.php?t=2786395
However, it requires ADB, which in turn requires USB debugging to be enabled.
To enable USB debugging, I attempted to modify the build.prop through ADB shell in recovery mode:
https://forum.xda-developers.com/showthread.php?t=2335799
However, it is done so using custom recovery (TWRP) which I assume cannot be done in stock recovery (not confirmed, please respond if untrue).
I attempted to edit the build.prop manually:
https://forum.xda-developers.com/sprint-g4/themes-apps/tool-edit-build-prop-pc-t3312517
But It requires USB debugging to be enabled as well, and I assume it to be true for most such tools.
I also attempted to install a custom recovery (TWRP):
https://www.xda-developers.com/how-to-install-twrp/
However, out of the 3 installation methods listed, 2 require USB debugging and 1 requires application installation on the phone.
Using a USB OTG mouse to enable USB debugging would be difficult, since display is broken.
Since 4.2+ also shows a prompt to allow access to USB debugging to PCs, I assume I could use this:
https://forum.xda-developers.com/galaxy-s2/help/bypass-secure-usb-debugging-prompt-t2965462
However, I would need ADB first, which also comes back to USB debugging.
I would prefer not repairing the phone or getting a new screen, the phone is old, i'm trying to change phones.
Data in the phone must be preserved, as much as possible. I am willing to compromise, somewhat.
ADB seems powerful enough that I could achieve my goals if only I could access my phone through it.
Is it possible to enable USB debugging remotely through some other method to allow me to use ADB?
Is it possible to flash a custom rom with an edited build.prop without screen input and while preserving phone data?
Please suggest options.

Related

Please Help! Nexus 4 shattered screen

Hello Helpers, I shattered my Nexus 4 screen, and the phone has a Pin lock, and is currently in Airplane Mode with BlueTooth enabled. It does Not have USB debugging enabled.
My objective is just to pull out the video, audio, and pictures files, after which I would throw the phone away. I appreciate any feedback, or if someone can help me post a reply to "k.janku1" at the post here http://forum.xda-developers.com/showthread.php?t=2786395 Please refer to point (4) below.
So is there a way I can enabled USB debugging or pull my files out? Following are what I have done, and none are successful in accessing the phone:
1) I have an OTG cable with a mouse. Nexus 4 would not recognize it. I did try to have this OTG Cable + Mouse plug into another Motorola phone and it worked, just not Nexus 4.
2) I plug my Nexus 4 into the PC through the USB cable, the Windows 10 recognize it but when I try to browse that Nexus 4, no files show up.
3) I installed the Android Studio 2.2.2, with various SDK (5.0 and 5.1 SDK) + Google USB driver. And then proceed to run the ADB "shell" or "devices" command located in folder "platform-tools", and the command line would tell me -- "error: no devices/emulators found", or "List of Devices attached" but with NO list of devices displayed. I even boot into Recovery Mode and the ADB command still not seeing any phone.
4) I even try the post here, and I could not get it working either -- http://forum.xda-developers.com/showthread.php?t=2786395
i) I tried the steps listed here http://forum.xda-developers.com/showpost.php?p=66731042&postcount=260 but it does not work for me. The step (2) here returned me "No devices", while step (3) is sort of confusing as it involves TWRP (??) and it said BootLoader would erase all my data files!
ii) Another post here in the same thread -- http://forum.xda-developers.com/showthread.php?p=62398797#post62398797 which mentions the use of "Flash through ADB". But then my phone does not have USB Debugging enabled, so how can ADB talk to the phone in the 1st place? And compile his codes in Android Studio perhaps?
iii) Another post of same thread -- http://forum.xda-developers.com/showthread.php?p=61792353#post61792353 which is lengthy and involves self-custom kernel + compile using Kernel Kitchen. Would this really work?
Thanks
Sean
I had the same of your situation i search and tried a lot of things even show the phone screen in pc but me too i didn't have usb debugging enabled, so what i did is :
Flash the stock ROM for my phone by Odin (it don't need usb Debugging enabled it is for Samsung phones) and by flashing new ROM all your files will be stay in the internal storage, after that the files will be showed in the PC, i don't know if u try that before so that is my solution
Sent from my GT-I9300 using Tapatalk
Xkirnel99 said:
...
Flash the stock ROM for my phone by Odin (it don't need usb Debugging enabled it is for Samsung phones) and by flashing new ROM all your files will be stay in the internal storage, after that the files will be showed in the PC, i don't know if u try that before so that is my solution
Click to expand...
Click to collapse
Thank you for the hint. But I doubt if this approach would work for Nexus 4. I searched online for Odin + Samsung, seems like Samsung phone has a Download mode where the phone would accept the new image file put to it. There is no such mode for Nexus 4, so the phone would not read anything in easy steps like Download mode.

Root Access - Only "ADB" Available

So I just successfully installed Lineage 14.1 on my Galaxy S6 (International), using TWRP, and the OS works wonders.
Additionally I wish to have root access over my phone, so through TWRP I installed this: https://forum.xda-developers.com/ga...at-supersu-t3570740/post71367695#post71367695
The installation of the above goes through fine and afterwards I can go to developer options and enable "ADB Only". My question is: Why can't I also pick "Storage"?
Screenshot of how my "Root access" tab looks, under "Developer options": https://i.imgur.com/NxYr2jD.png
I'm trying to install Xposed and it says I don't have sufficient root access, my guess is because I don't have the option to also gain root access over storage.
Any help is greatly appreciated!
Flash SU Addon
download.lineageos.org/extras
hi, my phone ulefone armor 6e, I cannot upload firmware because the computer cannot see the phone. I tried all methods on 3 different cables and 3 different computers, in normal mode and fastboot mode, the computer does not see the phone. I installed the drivers properly, but when I connect the phone to the computer, there is no reaction or movement in the device manager section. The interesting thing is that the fast charging feature is lost. It also charges slowly when I plug it into wireless charging.
So i m trying this way, wifi debug and root using adb. but attach files not here, what can i do? please help. I have to one way wifi adb, how can i make root the phone, or flash recovery?

Pixel 2 broken screen, Need to recover a file

Hi,
I tried lots of things! Can't do anything yet... I really need that file.
My USB debugging is not turned on, if it was I'll be ok. I found that if you copy the adbkey.pub from your users directory to the phone it
will bypass the USB debugging function, but can't push it with adb.
I can only boot in recovery and use fastboot or adb but with no access to the phone... I don't have TWRP installed.
I tried to flash TWRP with: fastboot flash recovery twrp.img
and I got an error telling me: FAILED (remote: 'No such partition.')
Probably because USB debug is not enabled... again...?
EDIT: tried to make me a walkthrough for the keyboard using a working phone, I can get up to the settings app, there's no focus on the settings items so I can't select them...
- I have access to the fingerprint sensor, but not gonna do much since I rebooted the phone i'll need to enter the unlock code.
- I can plug in a keyboard/mouse combo in my phone, for this to work i'll need a walkthough for arrows key/enter key to press to I can enable USB debugging.
- The screen is broken(black) touch sensor also broken.
- The phone is not rooted but is OEM unlocked
- I tried several software to mirror screen, they all require USB debugging enable or accept something on the phone or both.
- I know where the file is located on the phone but I don't know it's exact name (it's a .mp3 file, not a song ) it's in /storage/emulated/0/Recorders
Any help is greatly appreciated.
Thank you

Maxell Maxtab tablet wipe data problem

Hi!
Help me please, beause i can't unlock my tablet. I forgot the password, but it's the smallest problem. I go to "Android system recovery<3e>" mode, but in there i can't choose the "wipe data/factory reset" option because the tablet don't have volume button, just a power and a home button. I tried select this option with an OTG cabel+keyboard, but nothing happends.
Do you have any idea?
Thanks.
-Sorry for my english-
there are couple of videos on youtube showing how to reset a device without volume button
ineedroot69 said:
there are couple of videos on youtube showing how to reset a device without volume button
Click to expand...
Click to collapse
that' true, but my problem is not only the missing volume button. The OTG cabel + keyboard combination neither working.
@bentudlik
If you can establish an ADB connection - requires USB debugging got enabled on the phone - there is NO need to use the in-built recovery menu to wipe phone's user-data / do a factory-reset: this all can be done by means of ADB, too. But would require you've some knowledge about ADB and know how use its commands properly.
jwoegerbauer said:
@bentudlik
If you can establish an ADB connection - requires USB debugging got enabled on the phone - there is NO need to use the in-built recovery menu to wipe phone's user-data / do a factory-reset: this all can be done by means of ADB, too. But would require you've some knowledge about ADB and know how use its commands properly.
Click to expand...
Click to collapse
would be terrible if you do erase command on /userdata and can't recreate it i experience that and its stuck on boot logo not bootloop
jwoegerbauer said:
@bentudlik
If you can establish an ADB connection - requires USB debugging got enabled on the phone - there is NO need to use the in-built recovery menu to wipe phone's user-data / do a factory-reset: this all can be done by means of ADB, too. But would require you've some knowledge about ADB and know how use its commands properly.
Click to expand...
Click to collapse
Do you have any idea, how to enable USB debugging while my tablet is locked? Because now my laptop can't recognize this device.
I know ADB should be a right method, but firt i have to connect the tablet to laptop somehow.
bentudlik said:
Do you have any idea, how to enable USB debugging while my tablet is locked? Because now my laptop can't recognize this device.
I know ADB should be a right method, but firt i have to connect the tablet to laptop somehow.
Click to expand...
Click to collapse
Enabling USB Debug on an Android phone always should be the 1st action an user should do when he/she puts a phone into operation. On Android-side ADB gets started when Android boots up. So by means of ADB you would be able to bypass / remove FRP-lock etc,pp.
jwoegerbauer said:
Enabling USB Debug on an Android phone always should be the 1st action an user should do when he/she puts a phone into operation.
Click to expand...
Click to collapse
That's true. It's not my device, i just try the solve the problem. I thought it could be fixed with simple solutions., but my steps not work ...

Pixel 6 Pro full backup to different phone

So I had a pixel 6 pro and unfortunately my wife got mad and threw it against the wall a few times, causing the frame to bend and entire back glass to shatter. The front LCD didn't break, but glue came apart and it separated from the frame.
I had all my 2fa accounts on there, as well as very valuable data that I need to recover.
The phone still powers on, but there's nothing visible on the screen. A local repair shop advised we start by replacing the screen and then work on transferring everything out.
I have a replacement pixel 4a and want to be prepared for when my phone comes back online.
What's the best way to backup my 6 pro and restore on the 4a?
I need everything copied as a whole image, and restored on the 4a. I want to be able to boot up my 4a, open my authenticator app, and have all my accounts listed there.
Someone please tell me this is possible, and if so, please post instructions.
Thank you in advance.
I doubt 1:1 image cloning is possible because encryption is hardware-backed and therefore device-unique. it's not even possible to restore backup on origin device after factory reset since android apps can use keystore in TEE.
side note: you could connect HDMI multiport usb-c otg adapter to TV and mouse so you have access to phone at least
aIecxs said:
I doubt 1:1 image cloning is possible because encryption is hardware-backed and therefore device-unique. it's not even possible to restore backup on origin device after factory reset since android apps can use keystore in TEE.
side note: you could connect HDMI multiport usb-c otg adapter to TV and mouse so you have access to phone at least
Click to expand...
Click to collapse
The HDMI multiport didn't work. Nothing was displayed. I don't know if it's because my phone is badly damaged, or if the pixel 6 doesn't support HDMI out over USB C
I tried this one https://www.amazon.com/dp/B081VBSNRZ/ref=cm_sw_r_apan_i_5NF5RPBKZ97YW4KFW9AX
What are my other options?
the best option would be previously unlocked bootloader, so you can have full access. but you did not unlock bootloader so this is no option for you, because unlocking will factory reset device.
HDMI might require some setting or app installed on device. apps can installed remotely from PC google play with proper google play account. not sure how to start an app though, but guess app can autostart.
at least usb keyboard is working, you could try to navigate blind and enable usb-debugging, this would allow you to use scrcpy. maybe connect headphones or use talkback to get some kind of audio feedback.
of course both methods requires some information from another identical device and need to tested on fully functional pixel 6 pro before..
some (not) useful apps
https://forum.xda-developers.com/t/i-broke-my-screen-and-digitizer.4436261/#post-86791963
https://forum.xda-developers.com/t/broke-the-display-of-my-phone.4424413/#post-86676229
https://forum.xda-developers.com/t/...asily-manage-multiple-android-devices.2707556
Anyone else have suggestions?
AcuraKidd said:
Anyone else have suggestions?
Click to expand...
Click to collapse
This is not a full backup, but it might help you interactively recover some items without replacing the broken screen. Also, assuming this is something you're still looking to solve...
If you have adb debugging enabled, you can try to use https://github.com/Genymobile/scrcpy to interact with your phone over USB from a computer.
If you do not have adb debugging enabled, you can try to enable it via Recovery Mode. The steps to enable Recovery Mode below are from https://www.tenorshare.com/android/how-to-enable-usb-debugging-on-android-with-black-screen.html (I have not tried these steps).
Less:
To enable ADB without a screen:
1. Download the ADB toolkit for your computer and extract its contents to a folder.
ADB toolkit can be found at https://developer.android.com/studio/releases/platform-tools
ADB requires you have USB debugging enabled on your phone.
Since your phone has a black screen, reboot your phone into recovery mode to accomplish this.
Press the Volume Down and Power buttons at the same time to enter recovery mode.
2. Connect your phone to your computer, open a Command Prompt window in the ADB folder, and type the following command.
adb devices
3. You should see your device listed there.
Run the following commands one by one.
adb shell
mount data
mount system
4. Use the following command to pull the persist.sys.usb.config file from your phone to the PC.
adb pull /data/property/persist.sys.usb.config C:\Users\[your-username]\Desktop\
5. Access the persist.sys.usb.config file on your computer with a text editor and edit it to mtp,adb.
6. Run the following command to send the file back to your device.
adb push "C:\Users\[your-username]\Desktop/persist.sys.usb.config" /data/property
7. Download the build.prop file from your phone by using this command.
adb pull /system/build.prop C:\Users\[your-username]\Desktop\
8. Launch the build.prop file in a text editor like NotePad++ on your computer, and add the following code to it.
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
9. Save the file and transfer the file back to your device using this command.
adb push "C:\Users\[your-username]\Desktop/build.prop" /system/
10. Reboot your device using the following command.
adb reboot
11. You are all set. Your phone will boot up with USB debugging enabled.

Categories

Resources