[Q] Manual rooting Android? - Android Q&A, Help & Troubleshooting

I do hope this is posted in correct area.
I have scoured the internet to find out how to manually root KitKat.
I dont want to depend on a one click tool. As far as I understand, you push via ADB superuser, busybox and su files into data/local/tmp but issue seems to be getting those files into system folderm I use linux and tried mounting my galaxy 3 just to practice and nautilus as root user in linux doesnt show my device. How do you guys root manually?
I also read I can use dd command in linux to clone the data on phone and extract boot.img to make insecure then recompile the image and flash it but is this method old?
Advice?

Related

[Q] Running ADB as root

So, I've gotten my SGS2 today and went ahead to root it. Flashed CF-Root matching my current version (KE7 PDA/KE4 baseband). I used the S2Root app posted here on the forum to get root and flashed a stock kernel back.
In either of these stages, I couldn't get ADB to run as root, needed for a modification i'm trying to do (can't write to /system/framework otherwise).
Is there a known way to get ADB to run as root?
(The issue at hand - /default.prop contains ro.secure=1 and ro.debuggable=0 - And i can't edit this file in order for it to persist after reboot)
even in CWM i can't get ADB to run as root and thus cannot copy files to /system/framework even though /system is mounted as r/w.
Thanks for the help.
ransagy said:
So, I've gotten my SGS2 today and went ahead to root it. Flashed CF-Root matching my current version (KE7 PDA/KE4 baseband). I used the S2Root app posted here on the forum to get root and flashed a stock kernel back.
In either of these stages, I couldn't get ADB to run as root, needed for a modification i'm trying to do (can't write to /system/framework otherwise).
Is there a known way to get ADB to run as root?
(The issue at hand - /default.prop contains ro.secure=1 and ro.debuggable=0 - And i can't edit this file in order for it to persist after reboot)
even in CWM i can't get ADB to run as root and thus cannot copy files to /system/framework even though /system is mounted as r/w.
Thanks for the help.
Click to expand...
Click to collapse
Try this:
adb shell mkdir /sdcard/temp/
adb push fileToPush /sdcard/temp/
adb shell
$ su
# cp /sdcard/temp/ /system/path/to/push/to/
ADB doesn't run as root, as it's not safe to, as you can bypass superuser security in a rogue app otherwise
I'll try it ASAP, Thanks.
Isn't there a way to edit /default.prop though?
I'd prefer to have adb run in root at the very least while running this mod, and then restore it.
the mod currently patches framework.jar/libwebcore.so for RTL issues, and relays on scripted access to adb and r/w access to /system.
I ended up discovering that i need a different ROM either way since stock is odexed.
I'll try making my own ROM based on stock with deodexed files and make the fix before hand.

[Q] Rooting - am I stuck between firmwares?

Just got a SGS2 which was on 2.3.3. I noticed that KIES had an update so I upgraded and now I'm on XWKI4 (I'm based in the UK which seems to be a bit behind).
The problem is.... all the rooting threads I can find are either about the old version I was on before (probably XWKH4) or the new 2.3.5 firmware (XXKI4?) - there doesn't seem to be one that's only about XWKI4.
I am a noob as far as Linux/Android goes, and also new to smartphones but I have a background in techie stuff so I can follow instructions - i.e. when a guide tells me "ENSURE THAT YOU HAVE XWKH4"... I don't go any further if I have a different version.
I have done all the searches I can think of (yes I watched the noob video!), so can anyone please please tell me if I can actually follow the guide for XWKH4 and expect it to be ok? Or point me at a guide for XWKI4 that I may have missed?
I only got into this rooting thing so that I could get the Orange GAN/UMA Signal Booster App and sign up with them But I got drawn into wanting cyanogenmod... and the rest is history, as they say.
i don't think it really matter whether XWKH4 or XXKI4 cause my self i flashed the xwki8 on xxki4 firmware and didn't seem like it affect anything
Chris911t said:
Just got a SGS2 which was on 2.3.3. I noticed that KIES had an update so I upgraded and now I'm on XWKI4 (I'm based in the UK which seems to be a bit behind).
The problem is.... all the rooting threads I can find are either about the old version I was on before (probably XWKH4) or the new 2.3.5 firmware (XXKI4?) - there doesn't seem to be one that's only about XWKI4.
I am a noob as far as Linux/Android goes, and also new to smartphones but I have a background in techie stuff so I can follow instructions - i.e. when a guide tells me "ENSURE THAT YOU HAVE XWKH4"... I don't go any further if I have a different version.
I have done all the searches I can think of (yes I watched the noob video!), so can anyone please please tell me if I can actually follow the guide for XWKH4 and expect it to be ok? Or point me at a guide for XWKI4 that I may have missed?
I only got into this rooting thing so that I could get the Orange GAN/UMA Signal Booster App and sign up with them But I got drawn into wanting cyanogenmod... and the rest is history, as they say.
Click to expand...
Click to collapse
Download the stock firmware of your choice(for which you have rooting guide)from intratech's thread here at xda.. Flash it using odin.. And then root..
I think, what fw you were on dont matter.. But as for your query, do the above..
Sent from my GT-I9100 using XDA Premium App
I think you can ignore the xx/xw bit and look for cf-root KI4, once rooted you can remove bloatware or flash a custom rom of your choice
from my own little world
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Thanks
Athavan said:
Download the stock firmware of your choice(for which you have rooting guide)from intratech's thread here at xda.. Flash it using odin.. And then root..
I think, what fw you were on dont matter.. But as for your query, do the above..
Click to expand...
Click to collapse
Thanks Athavan. Being a noob at this I was under the impression that I had to root it before I loaded a new ROM.
So that makes me wonder if I need to root it at all for what I need...
I've already tracked down a zip of the files that are needed for the signal strength app. I started at h t t p : //adq.livejournal.com/118239.h t m l that described how to do all of it. [Sorry can't make it a proper link, new ppl can't do it for 8 posts so it says, so I added some spaces till it worked]
Then I found a post that had all the necessary files extracted into the zip I mentioned above so I guess that all I need to do is the last bit of the linked post, where the adb push stuff goes on?
However, I thought I'd need the phone rooted in order to push stuff into system folders. And I also thought that that would be true when I want to flash a stock firmware? From what you say it sounds as though I was wrong about the stock rom?
Thanks again,
Root not required to flash stock roms nor custom roms unless the dev has made the custom rom as a CWM flash (most are cwm flash ).
jje
One other question occurs having read JJE's post...
Do I need the phone rooted in order to push the files onto the stock rom I have now?
The article I quoted above (regarding how to get the Signal Boost app) said that once you have the necessary files (which I do) all you then need to do is this:
------------------------------------------------------------------
"After that, you'll have all the files needed. Plug in your phone to USB to push the files across with adb as follows:
adb shell remount -o rw,remount /system
adb push system/lib/libganril.so /system/lib
adb push system/lib/libkineto.so /system/lib
adb push system/lib/librilswitch.so /system/lib
adb push system/app/WiFi-Calling.apk /system/app
adb push libsec_ril.so /system/lib
adb push default.prop /system
---------------------------------------------------------------
If that can be done without rooting then I could spare myself the possible loss of the phone and just put the Signal Boost app on the existing rom and get an Orange SIM in it? I'm starting to lose the will to faff a bout with the rom when I should really focus on getting guaranteed coverage (which this app will do by allowing the phone to use my WiFi for calls).
Chris911t said:
One other question occurs having read JJE's post...
Do I need the phone rooted in order to push the files onto the stock rom I have now?
The article I quoted above said that once you have the necessary files (which I do) all you then need to do is this:
------------------------------------------------------------------
"After that, you'll have all the files needed. Plug in your phone to USB to push the files across with adb as follows:
adb shell remount -o rw,remount /system
adb push system/lib/libganril.so /system/lib
adb push system/lib/libkineto.so /system/lib
adb push system/lib/librilswitch.so /system/lib
adb push system/app/WiFi-Calling.apk /system/app
adb push libsec_ril.so /system/lib
adb push default.prop /system
---------------------------------------------------------------
If that can be done without rooting then I could spare myself the possible loss of the phone and just put the Signal Boost app on the existing rom and get an Orange SIM in it?
Click to expand...
Click to collapse
You need root to write files to the /system folder. So you will need root.
Chris911t said:
One other question occurs having read JJE's post...
Do I need the phone rooted in order to push the files onto the stock rom I have now?
The article I quoted above (regarding how to get the Signal Boost app) said that once you have the necessary files (which I do) all you then need to do is this:
------------------------------------------------------------------
"After that, you'll have all the files needed. Plug in your phone to USB to push the files across with adb as follows:
adb shell remount -o rw,remount /system
adb push system/lib/libganril.so /system/lib
adb push system/lib/libkineto.so /system/lib
adb push system/lib/librilswitch.so /system/lib
adb push system/app/WiFi-Calling.apk /system/app
adb push libsec_ril.so /system/lib
adb push default.prop /system
---------------------------------------------------------------
If that can be done without rooting then I could spare myself the possible loss of the phone and just put the Signal Boost app on the existing rom and get an Orange SIM in it? I'm starting to lose the will to faff a bout with the rom when I should really focus on getting guaranteed coverage (which this app will do by allowing the phone to use my WiFi for calls).
Click to expand...
Click to collapse
Ya.. Definitely you have to be rooted inorder to change and modify your system files...basicallu thats what root is for.. We get more access...
Sent from my GT-I9100 using XDA Premium App

[Q] How do I extract recovery.img from a non-rooted device?

I've been searching for a way to extract recovery.img from my non-rooted device (SHV-E230L = Galaxy Note 10.1 LTE), so that I could request support for my device from CF-Auto-Root developer.
However, almost every search has turned up with methods for extraction with the already rooted devices, not for a factory-default device.
The simplest method I found was using a terminal app to extract the recovery.img, but that also needed superuser permission to even start.
Trying to extract it from a adb backup
Adb backup /dev/block/mmcblk0p27
.....return is a file compressed but idk its either inaccessable for the moment or a bunk file....will use special adb backup extractor.....figure it out on the fly i guess

Rooting the Alcatel Ideal 4060A & Replacing Kingroot With SuperSU

I have about 30 of these phones and people have been asking me how I get SuperSU on them:
https://youtu.be/qkik4q5ERaU
NitroKoS said:
I have about 30 of these phones and people have been asking me how I get SuperSU on them:
https://youtu.be/qkik4q5ERaU
Click to expand...
Click to collapse
In the video, you said Kingroot 4.5
There is new:
Kingroot V5.0.4 should I get it instead?
Handsome Jack said:
In the video, you said Kingroot 4.5
There is new:
Kingroot V5.0.4 should I get it instead?
Click to expand...
Click to collapse
Successfully rooted the Alcatel Streak with KingRoot. But my cell phone won't boot after I applied the KingRoot/SuperSu replacement.
Here is thread on requesting ROM to recover from the issue. Obviously another person had same issue as I did:
https://forum.xda-developers.com/android/help/requesting-alcatel-4060-o-cricket-stock-t3578896
I have uploaded all the partition dd image at mediafire.com excepect /system witch is big file and i have low bandwidth
Note, the recovery image is compressed zip us unzip before dd back
kdm6389 said:
I have uploaded all the partition dd image at mediafire excepect /system witch is big file and i have low bandwidth
Note, the recovery image is compressed zip us unzip before dd back
Click to expand...
Click to collapse
I see many dd files with one particular zip file in mediafire. How can I use these files to flash my Alcatel Streak ROM? I have never done this before and I am newbie here.
Thanks,
jxzz said:
I see many dd files with one particular zip file in mediafire. How can I use these files to flash my Alcatel Streak ROM? I have never done this before and I am newbie here.
Thanks,
Click to expand...
Click to collapse
You need "adb"
use following cmd to replace using,
adb shell
su
dd if=/sdcard/backup/pationno.img of=/the/pation/where/you/want/to/restore
beware!
dd is very lethal in wrong hand, I recommend not use until you are knowing what are you doing, we dont have any TWRP so to save your device.
kdm6389 said:
You need "adb"
use following cmd to replace using,
adb shell
su
dd if=/sdcard/backup/pationno.img of=/the/pation/where/you/want/to/restore
beware!
dd is very lethal in wrong hand, I recommend not use until you are knowing what are you doing, we dont have any TWRP so to save your device.
Click to expand...
Click to collapse
I am quite comfortable handling linux command line shells. However, since my Alcatel Streak phone is stuck at boot, not sure how I can get the adb shell?
After several rounds of factory reset, cache reset, no mater what, the phone simply won't boot and it is stuck with "google " or "android" welcome picture.
I noticed a a guideline of using cygwin in windows PC to run dd for backing up the phone partition image. Is it possible that I copy all your dd files into a cygwin in window 10 PC, then use USB cable to move the files into the phone or flash the phone?
jxzz said:
I am quite comfortable handling linux command line shells. However, since my Alcatel Streak phone is stuck at boot, not sure how I can get the adb shell?
After several rounds of factory reset, cache reset, no mater what, the phone simply won't boot and it is stuck with "google " or "android" welcome picture.
I noticed a a guideline of using cygwin in windows PC to run dd for backing up the phone partition image. Is it possible that I copy all your dd files into a cygwin in window 10 PC, then use USB cable to move the files into the phone or flash the phone?
Click to expand...
Click to collapse
nothing will work unless u have /system image, or working ROM.zip,
Since you have corrupted /system, and your model is different then mine is pop445
i did not uploaded /system bc its wqy more size then recovery
kdm6389 said:
nothing will work unless u have /system image, or working ROM.zip,
Since you have corrupted /system, and your model is different then mine is pop445
i did not uploaded /system bc its wqy more size then recovery
Click to expand...
Click to collapse
Thanks for the information. I searched the web and found many stock ROM for download for many Alcatel models except this model.
Alcatel Streak (model 40600) is dedicated for Cricket and it appears that neither Cricket nor Alcatel releases the ROM for this model.
jxzz said:
Thanks for the information. I searched the web and found many stock ROM for download for many Alcatel models except this model.
Alcatel Streak (model 40600) is dedicated for Cricket and it appears that neither Cricket nor Alcatel releases the ROM for this model.
Click to expand...
Click to collapse
share the stock ROM
I have figured out a way to root easier, I have flashed twrp (with some graphical issues... Working on it) flashed Xposed framework on it, and got native tethering working.
This thread is obsolete now,
for rooting read https://forum.xda-developers.com/android/general/super-guide-alcatel-one-touch-4060a-t3621525
Latest Stock ROM we have | https://forum.xda-developers.com/showpost.php?p=74529924&postcount=205

I cant find my phone's recovery.img on the stock firmware zip

I want to root my redmi6a but it has no boot ramdisk so I'll have to root it via recovery.img but i can't seem to find it on the stock firmware zip any help would be appreciated thanks!
To root Android you neither have to fiddle around with phone's boot.img nor with phone's recovery.img. Rooting Android simply is adding a binary called su to Android's filesystem and make it executable. This can get achieved by means of ADB.
xXx yYy said:
To root Android you neither have to fiddle around with phone's boot.img nor with phone's recovery.img. Rooting Android simply is adding a binary called su to Android's filesystem and make it executable. This can get achieved by means of ADB.
Click to expand...
Click to collapse
I mean i want to root it with magisk

Categories

Resources