Thank you

Thank you
You don't need to do that. The public key is already on your desktop.
So basically there is no hope there. Because my device is an sm-j530 Samsung and it has no screen attached, I had to remove it since it was shattered. Unless you know some android OTG hotkeys to turn on mobile data?The original post talks about how to do this using methods that are no longer readily applicable.
There are at least four basic ways to "authorize":
All of these run into some "Catch 22" as they would all be easier with ADB running.
- click authorize on the ADB popup
- change ro.adb.secure to 0 in prop.default
- replace adbd with a patched version that doesn't require authentication ever
- add your public key to /data/misc/adb/adb_keys
If the touch part of the screen is working, that's a plus, but getting anything to work poking blind is difficult.
Using an USB OTG mouse to enable a Bluetooth mouse to authorize the ADB popup is also a challenge.
Depending on Android version mounting /data in recovery and modifying is probably not possible.
Modifying /system in recovery also runs into problems with dm-verity, AVB.
Modifying a boot image and flashing it is possible if you deal with dm-verity, AVB.
Depending on your recovery, you might need low-level tools (like EDL) to pull a copy of your boot image.
You don't need to do that. The public key is already on your desktop.
In Windows it's C:\Users\Username\.android\adbkey.pub
This is the public key (i.e. non-secret) and is around 700 bytes.
The best advice is to always have ADB on, always have ro.adb.secure=1 (for security) and to make sure that your device is authorized on a desktop or two.
Also, backing things up is not a bad idea.
I don't have any of those unfortunately. Wish there was a way to my stuff.Are you using Magisk already? Or does your boot image have a ramdisk?
I don't love/use/know anything about Samsung devices. Can you replace the boot image without the device exploding?
If you can replace your boot image and you already have or can add ramdisk you just need to add adb_keys in /
(I edited the post above to mention that.)
Any chance we could connect and have chat sometime? then I could show you my deviceAre you sure that your device has no video output over the USB connector MHL/DP/HDMI capability?
Using OTG, a hub, a keyboard and a mouse would be a challenge.
Still, at least with a keyboard navigating with arrows would be less problematic than a mouse.
Actually, a digitizing tablet would be good as it's absolute and not relative like a mouse.
If you had an identical device to use as reference it might not be too bad.
Just put down a piece of paper and mark it and use it as reference.
You could also borrow a screen from somebody/somewhere. You don't need to unglue the old one, just connect the new one with it loose.
Please how to do it, after flash zip, my phone bootloop,I solved the problem by adding following script in userinit.sh:
Bash:# Waiting to copleted RSA_copy script (copying the public keys) sleep 30 # Enables the Developer Mode settings put global development_settings_enabled 0 sleep 5 settings put global development_settings_enabled 1 sleep 5 # Enables the USB Debugging settings put global adb_enabled 0 sleep 5 settings put global adb_enabled 1
I do hope it will work for the others finding the solution
Once again thanks @aIecxs
why the file is removed, i need it brotherWarning! insecure! use for temporary access on broken screen only
- added/sbin/99userinit_daemon
- modifieddefault.prop
- modifiedinit.rc
boot image from fastboot (or flash with SP Flash Tool)
Code:fastboot boot <file>
Only in case adb still not working:
copy your PC'sadbkey.pub
to phone. checkrsa_copy.log
for info about success. reboot phone
(attachment removed)
No, you don't need file for QMobile Noir. You have to make your own file with AIK (refer to post #14 + #8)
adb shell
echo "persist.service.adb.enable=1" >>/system/build.prop
echo "persist.service.debuggable=1" >>/system/build.prop
echo "persist.sys.usb.config=mass_storage,adb" >>/system/build.prop"
reboot
# Waiting to copleted RSA_copy script (copying the public keys)
sleep 30
# Enables the Developer Mode
settings put global development_settings_enabled 0
sleep 5
settings put global development_settings_enabled 1
sleep 5
# Enables the USB Debugging
settings put global adb_enabled 0
sleep 5
settings put global adb_enabled 1
You don't need to do that. The public key is already on your desktop.