[solved]edit nandroid backup to posthumously enable usb debugging ? - Galaxy S I9000 Q&A, Help & Troubleshooting

Greetings!
tldr: USB debugging is probably not activated. is there still a way to get a bootlog via adb ?
edited tldr: can I (hex)edit a Nandroid backup to enable USB debugging, if I also have a nandroid of a clean install with USB debugging enabled for comparison ?
long story:
I'm running
HB3_Franzy 12 RC the final with devil kernel and have been for a while now. Yesterday, for some unknown reason, my phone suddenly decided to reboot. Now it hangs at the bootanimation.
I tried wiping cache and dalvik cache ;both with and without flashing the rom over the existing installation; reboot then went through "optimizing apps" and then hung at "updating android - starting apps"
I stupidly did not activate USB Debugging nor put the installed titanium backup to good use. You may flame and call me names, if you also supply any hint on how to proceed
Before I swallow the pill and wipe user data for a clean reinstall, I want to find out what happens, both as a last attempt at saving my data and to prevent this from occuring again.
Is there a way to access the bootlog via adb, even withoutt having activated USB debugging in the develloper options ? Are there any other ways to backup my data and reassemble it into a fresh reinstall ?
EDIT:
I did an Nandroid backup via recovery and, having that to get back, went on to factory reset. Phone boots, so no unrecoverable bricking. That's something. In the clean system, I can enable USB debugging and successfully adb logcat (after authorizing my pc on the phone). Restoring the backup, expectedly, set me back to where I started. I'm thinking it might be possible to edit (or copy from a nandroid of the clean, working system) the relevant configuration files in the broken system's Nandroid. Has anyone tried this before and knows which files are responsible ?

you can extract the apps via Titanium Backup... well atleast should titanium backup do it...
Actually it isnt really working for me: whenever i try to extract the apps out of the backup, titanium doesnt show me any apps to restore...
if you got the same error, you can try downloading Nandroid manager, install the app, you'd like to restore, via nandroid manager and restore the user data from the datadata.yaffs2.img... Its a little workaround, but it works fine for me...

adb enabled, more work needed
In case anyone finds this thread, looking for the solution: It is possible. As I'm not sure what the forum policy regarding hacks with potential evil application ist, I'll just point you to look into the files
data/property/persist.sys.root_access
data/property/persist.sys.usb.config
data/misc/adb/adb_keys
instead of posting step-by-step instructions.

Related

[Q] Backup without touchscreen

Hey guys and gals,
My Galaxy S had an incident which resulted in a broken, non-responsive touchscreen. The phone itself is working and appears to have lost no data. I'd like to backup the phone in whole. Got it attached via USB and Dev mode, ADB, Droid Explorer and Android Screencast are working. Z4Root installed. Thought of two ways of backing-up the phone:
1. Use Android Screencast to backup through some GUI app. Problem: AS can't control the phone, give it control (by modifying /data/local) since the ADB shell has no root permissions and the app that gives those (Superuser, with Z4Root) is a GUI app. Double-rooting?...
2. Use the ADB shell to boot the phone in recovery mode and backup to the SD card using that. Problem: Need a suitable recovery image that I can control using just the volume and "home" buttons. Some reassurance that it won't screw my data up would also be welcome.
Would appreciate any help!
Edit: Downloaded recovery-clockwork-2.5.1.2-galaxys.zip (from a 2010 blog post by Koushik Dutta. Can't post a link due to technical reasons). Can I rename it update.zip and flash it from the default recovery? If so, than I would be able to do a Nandroid backup, wouldn't I?
Edit: Current build is xxJP7 with recovery version 3e, which means installing a new recovery image is going to be problematic. Also, no CF-Root version intended for this build. Unverified reports that other versions work for this build as well, but not in a hurry to risk it.
Edit: Managed to install the SpeedMod kernel using Odin 3 1.52 (and ADB and Android Screencast), following a guide written by Rodney Chua ("Tourist in Paradise" blog). Managed to backup in whole using the new recovery. Haven't been successful in testing the backup through the SDK emulator. Also wasn't able to repair the Android Screencast problem despite having root control through the new recovery.
Any way of testing a recovery image for integrity?
Edit: The strangest thing happened on the way to the forum: I Started Android Screencast and had GUI control over my phone, while my shell suddenly had root permissions. I used that chance to install the latest ClockworkMod recovery, and after getting the okay I tried to backup from within the program. After a couple of seconds my phone suddenly showed the old 3e recovery (which shouldn't really be there) with an error message. A reboot from ADB was normal, and a reboot to recovery brought me back to the SpeedMod recovery I've recently installed. No trace of a new Nandroid backup, and I've no Android Screencast control anymore.
I did find out, though, that the shell root permissions are due to Droid Explorer presumably running the adb root command on startup.
Edit: Somehow lost the IMEI and all related data. A Reboot sorted this somehow, though. Some icon and widget placement was lost, presumably do to the device clearing the dalvik cache after I've tried fixing the Android Screencast issue. Have the nandroid backup (and nothing significant has changed since doing that), so I don't care much. Android Screencast positively related to having ADB running with root permissions, though it occasionally stops working and requires an ADB and/or Android Screencast restart.
Edit: To sum things up, managed to do what I wanted to do - Got a complete nandroid backup.
Heard from adb based backup but would be interested too. Any similar to odin but in "pull" mode?

[Q] Back up & restore app

Hello guys,
I have the following problem with the stock backup app. Whenever I open it it allows me to backup only the system apps and shows that it
"Could not back up:
Media files
Downloaded apps with data"
Any ideas why this is happening and how to resolve it? Also how can I connect USB storage to the device, or is "USB storage" something else?
Also I found out the following workaround for Helium (https://play.google.com/store/apps/...SwyLDEsImNvbS5rb3VzaGlrZHV0dGEuYmFja3VwIl0.):
1. Settings->Developer options->USB debugging
2. Settings->Xperia->USB Connectivity->USB connection mode->Mass storage mode (MSC)
3. Execute Carbon, follow the instruction
Has anyone tried it if it works? I will try this method later today or tomorrow, but do not want to risk losing data.
ilianpk said:
Also I found out the following workaround for Helium (https://play.google.com/store/apps/...SwyLDEsImNvbS5rb3VzaGlrZHV0dGEuYmFja3VwIl0.):
1. Settings->Developer options->USB debugging
2. Settings->Xperia->USB Connectivity->USB connection mode->Mass storage mode (MSC)
3. Execute Carbon, follow the instruction
Has anyone tried it if it works? I will try this method later today or tomorrow, but do not want to risk losing data.
Click to expand...
Click to collapse
Be careful with Carbon, it works or seems to work fine. Note the default settings are not sufficient to backup so you can restore again. Learnt this the hard way, it all appeared like it was fine, unitl I rebuilt my phone and couldn't restore anything (doesn't show in the list)

Blocked device

Hi
it's possible to download data from Z1 if device is blocked (user password, not pin).?
Thanks
Greetings
I can think of two ways...
Adb interface on PC using adb pull whilst in recovery or booted into system, if you previously enabled adb debugging before.
Backup data partition in recovery like TWRP, then wipe everything and restore it, I guess it might work.
Other than that, you can probably google or search around for more options.

Sort of a bootloop after Android 11 update

Hello guys,
I hope someone can help me with this problem...
So the thing is - yesterday I finally got OneUI 3 and Android 11 update (yay?). But ofcourse as soon as the phone rebooted and optimised all the apps and came back to main screen it rebooted after a minute or so...everytime. As soon as I enter my pin and unlock the phone it reboots after a short period.
The same problem happened when I de-bloated the phone a while ago via ADB - but I then enabled back all the apps except facebook and some "safe to debloat apps" which were not even system apps and it has since worked for almost a year. But here we go again....
I even "re enabled/installed" all the apps I could list in ADB ( so basically all the apps on the phone) and then went to wipe cache - but still no go.
I am also wondering if there is a posibility to somehow mount storage just to copy some files to my computer (which are important, and my latest backup is around a month old) and then I'll gladly do a a factory reset - no problem.
Any help would be appreciated, thanks!
If you're able to use ADB to enable/install apps, then you should be able to use "adb pull path/to/files" to copy the files to your computer. You could reboot into recovery mode and see if your computer pulls up the storage that way too. Also, if you have TWRP, you can use the file system to copy files to an external SD card. So you have a few options to get your files.
You can also create a back-up of specific apps (and their data) using "adb backup -f MyBackUpName.ab com.corp.AppName".
TacoDeMuerte said:
If you're able to use ADB to enable/install apps, then you should be able to use "adb pull path/to/files" to copy the files to your computer. You could reboot into recovery mode and see if your computer pulls up the storage that way too. Also, if you have TWRP, you can use the file system to copy files to an external SD card. So you have a few options to get your files.
You can also create a back-up of specific apps (and their data) using "adb backup -f MyBackUpName.ab com.corp.AppName".
Click to expand...
Click to collapse
Hello, thanks for the reply and helping out.
But all the commands and stuff is kinda useless because the phone reboots sooner than in 30 seconds after getting to the main screen. When I boot to recovery the storage doesn't get mounted.......
And I would've had TWRP but the phone is still under warranty so that's a shame, because on my backup phone I have it (and so did on all the previous ones) and it would be great. But IIRC if I install TWRP now, the phone needs to be wiped.
FFS samsung, what is this....because I now read a couple threads and posts on social media people having exactly same problem, and some didn't do anything with ADB prior to update. shame...

Question Recover data from internal storage (Redmi Note 10s)

Hello! My phone (Redmi Note 10s) after auto-update has broken. It is operating but anytime I try to open any application there's a message displayed: "Wait until your device is fully rebooted before opening apps" so basically I cannot do anything there. The only solution that I have found on the web is to restore phone to default settings, but on internal storage I have some pictures that I'd like to backup and I cannot access them. I also tried to connect the phone to PC to copy files, but it is not detected at all. Is there anything I can do to access files on internal storage?
Thanks
so you can boot the phone but nothing else? that sounds bit like broken encryption. in that case your data is already lost.
if you can reach settings you should enable developer options and usb-debugging. install the usb drivers and try to pull your files via adb.
https://forum.xda-developers.com/t/recover-repair-a-file-not-deleted.4558651/post-88214233
just flash stock firmware using save user data option in miflash and done

Categories

Resources