[Question] Root acces withoud modifying system partitions? - Android Q&A, Help & Troubleshooting

i'm working on a home project, to backup forensic android partitions for data recovery.
I already concluded that I need root access. so I have researched things that could achieve this goal.
Kingroot - Out of the running, bloatware etc..
SuperSu - Closed source ...
Magisk - needs to adjust the boot loader
Questions:
- Are there other ways to get forensic partition copy's from android phones?
- Are there other ways to recover deleted files from android phone's

Related

[Q] about system partition on huawei device

Greetings I’m new on this thing of root, mod, …
I own a Huawei device with GingerBread (2.3.5) which one I‘m trying to gain root, already try with GingerBreak, super one click, unlock-root and none works, so I’m trying to root the device manually. I have read a lot of threads that explain how to root with a linux distro (in this case ubuntu) and when I connect the phone on Download Mode it doesn’t show me the system partitions of android seems to be like ubuntu isn't mounting them
How can I manage to explore these partitions?

[Q] Rooting Android from Windows on the same dual-boot device

Not sure my question in subject is clear, so here's the thing...
I have dual-boot tablet with Android 5.0.1 and Windows 10 installed, and the model is Onda V80 Plus (32GB), if that matters at all.
I'm really having hard time rooting this device using standard methods (even with much of background knowledge and experience), so I was about to take a different route.
I installed Paragon ExtFS windows app which gives me read/write access to /system and /data android partitions (which have ext4 filesystem).
I was wondering if anyone knows if it's possible to gain root access in Android just by copying some files and changing some permissions or whatever from within Windows OS?
Basically, for those not familiar with ExtFS app, I can assign a drive letter to /system and /data partitions, and do whatever I want with them just like with any other drive or volume.
I'm aware that modifying ext4 partitions can render my Android OS unbootable, but I have a backup and would like to try it anyway as this is my last option.
When I look into SuperSU.zip file (which I always flashed through CWM/TWRP recovery to gain root access), I see many files which some lengthy script is copying all around, so I stopped after analyzing about hundred lines of code lol.
I really didn't find any method like this on the internet, so I wonder if that's even possible, and if it is, how would I go about it?
Thanks everyone.
Burs said:
Not sure my question in subject is clear, so here's the thing...
I have dual-boot tablet with Android 5.0.1 and Windows 10 installed, and the model is Onda V80 Plus (32GB), if that matters at all.
I'm really having hard time rooting this device using standard methods (even with much of background knowledge and experience), so I was about to take a different route.
I installed Paragon ExtFS windows app which gives me read/write access to /system and /data android partitions (which have ext4 filesystem).
I was wondering if anyone knows if it's possible to gain root access in Android just by copying some files and changing some permissions or whatever from within Windows OS?
Basically, for those not familiar with ExtFS app, I can assign a drive letter to /system and /data partitions, and do whatever I want with them just like with any other drive or volume.
I'm aware that modifying ext4 partitions can render my Android OS unbootable, but I have a backup and would like to try it anyway as this is my last option.
When I look into SuperSU.zip file (which I always flashed through CWM/TWRP recovery to gain root access), I see many files which some lengthy script is copying all around, so I stopped after analyzing about hundred lines of code lol.
I really didn't find any method like this on the internet, so I wonder if that's even possible, and if it is, how would I go about it?
Thanks everyone.
Click to expand...
Click to collapse
Root needs a custom kernel. Not something you are gonna do with a Windows setup the way you have it. Also you will most likely not find anything as that is most likely not an official version of Android as Google doesn't allow dual booting.
Thanks for a reply. But I don't see what does custom kernel have to do with what I try to achieve? If I could, in my Windows environment, replicate the modifications that script inside SuperSU zip does to /system partition, I should gain root access, right? In theory that is, since I'm aware lots of things can go wrong. I was hoping someone could explain a bit what SuperSU script is doing when run inside custom recovery, so I try to do the same thing. Again, if it's possible, and if it's worth the time spent. But I have time, and I'm always willing to learn something new.
Burs said:
Thanks for a reply. But I don't see what does custom kernel have to do with what I try to achieve? If I could, in my Windows environment, replicate the modifications that script inside SuperSU zip does to /system partition, I should gain root access, right? In theory that is, since I'm aware lots of things can go wrong. I was hoping someone could explain a bit what SuperSU script is doing when run inside custom recovery, so I try to do the same thing. Again, if it's possible, and if it's worth the time spent. But I have time, and I'm always willing to learn something new.
Click to expand...
Click to collapse
what su is doing is pulls the kernel and patches it. root access is defined in the kernel. what itnis doing in system is flashimg just the apk
Ok, I see. So if I ask someone who rooted the same model successfully to send me patched kernel, I could easily flash it in fastboot mode (my bootloader is unlocked). So only thing left to do would be to copy apk inside /system/app, and cross my fingers? I'll post my findings if I manage to do something worth writing about. Thanks.
I have same problem with you. I can't root my Onda V80 plus. I unlock bootloader, flash recovery for my device. Then, i put it into recovery mode and install supersu.zip over recovery. When i reboot this onda, it has stopped in onda logo.
bahuy2003 said:
I have same problem with you. I can't root my Onda V80 plus. I unlock bootloader, flash recovery for my device. Then, i put it into recovery mode and install supersu.zip over recovery. When i reboot this onda, it has stopped in onda logo.
Click to expand...
Click to collapse
I managed to root my Onda few days after my last post, but forgot to post my findings, sorry. I didn't used any of my hacker's skills lol, but I researched a bit more and found out what I was missing. The same issue is with you, so you have to disable verity before flashing recovery by typing in these commands:
Code:
adb root
adb remount
adb disable-verity
adb reboot
After rebooting install supersu.zip, and the next boot won't hang on Onda logo anymore. Hope this helps you.
btw, note that not just any adb version has verity command line switch. You have to download newer adb version!
Thank you! I trie a lots times, but i can't make successfully!
Basic root procedure would be: unlock BL -> disable verity -> flash (temp) recovery -> install SuperSU
Here are the links containing all the files neccessary for rooting Onda V80 Plus: Mega | MediaFire
Note the ReadMe.txt inside archive. It contains list of adb/fastboot commands needed to be executed in order to successfully root the device.
Thank you very much! I download your file and root successfully my Onda V80 plus! It works well for me.

How to be foolproof when attempting flashing

Hello,
I am new to xda, but with what I would say a good understanding of computers in general, and good knowledge of c programming (if that matters)
I am structuring a guide for myself to be as foolproof as possible when attempting flashing my new phone. Please fill in any voids, comment, or answer questions if you can. This should prove useful to other users as well as it's not so model-specific.
1) It appears that the custom recovery of choice in most situations and for the time being is TWRP (correct?).
2) If I can get a backup of EVERY partition on my stock phone (as it came from the factory) using TWRP, could I conceivably restore ALL of them and be in a factory default setting? Excluding stuff like eFuse and similar mechanisms.
3) If the phone supports fastboot, unlocked bootloader and there is a compatible TWRP for it, would it be possible to boot the TWRP recovery through fastboot (without flashing that particular partition to phone), open a shell and take backups of all partitions on the phone? That should give us a file for each partition.
4) If one accomplishes step 3 successfully, in what scenarios would he/she NOT be able to bring the phone back to life after software bricking?
Minor questions:
a) "To have root" on a phone, is basically the same as having a root account on a BOOTED OS partition (like the admin accoun on a booted windows machine, or a root account on a linux machine)? If that's the case, booting a different partition (for example the recovery partition) could also give you root priviledges without affecting the booted partition, correct?
b) Why do some custom ROMs require a certain version of the stock/OEM rom to be installed PRIOR to flashing, since they are going to replace those partitions anyway?
c) How is Xiaomi's Anti Roll Back (ARB) feature implemented, if one restores all partitions to stock from step (3) ? There must be some other places of storing of information on the phone, besides internal memory, correct?

Huawei Mate 10 Lite - partition backup (no root, no unlocked bootloader)

Hi,
has someone experience with making backup of user data partition? (dd, adb pull mmcblk0 or something else.. read-only mode) I need backup whole disk (include empty space). I need to do some deleted data recovery, therefore i can't use normal data backup.
Bootloader is not unlocked, phone is not rooted I need "not destructive" root, because traditional unlocking wipe all user data ...) I have access to settings (USB debugging etc ...).
In past there exists on some phones temp-root (exploit) and with ADB was possible create raw image.
I find out there is also temp-unlock https://www.youtube.com/watch?v=7L1v7KtSg78 (ttool pro utility)
Maybe this is the solution way? (in next step install TWRP and then make backup)

Any idea how to root an OPPO A77 CPH1715 phone?

Sorry if a similar thread has been made, but I cannot find any guide to rooting this damn thing that doesn't involve sketchy one-click-root apps. Any help would be greatly appreciated.
Follow-up question: I did some more digging around on Google and found this:
www(dot)getdroidpro(dot)com/oppo-a77-mediatek-root-via-magisk/
Is this legit?
Forget all the so-called One-click-Root apps: they are known to be spyware. If used and in fact working then take note they modify Android's /system partition what easily can get detected.
In contrast to that Magisk uses a systemless strategy for rooting, meaning that your device's Android will be rooted without any alterations or changes being made to the /system partition. In fact, /system is not even mounted r/w by Magisk. This is accomplished by Android's boot image patching. The bad thing, IMHO, is that you have to install TWRP, too, in order to install Magisk.
Finally: Magisk is a hacker tool, in Google's point of view it's NOT legit.
jwoegerbauer said:
Forget all the so-called One-click-Root apps: they are known to be spyware. If used and in fact working then take note they modify Android's /system partition what easily can get detected.
In contrast to that Magisk uses a systemless strategy for rooting, meaning that your device's Android will be rooted without any alterations or changes being made to the /system partition. In fact, /system is not even mounted r/w by Magisk. This is accomplished by Android's boot image patching. The bad thing, IMHO, is that you have to install TWRP, too, in order to install Magisk.
Finally: Magisk is a hacker tool, in Google's point of view it's NOT legit.
Click to expand...
Click to collapse
Hey thanks a lot, I'll take this to assume Magisk is a decent way to go about the rooting process.

Categories

Resources