Advice/help for creating root methods? - Android Q&A, Help & Troubleshooting

Hi, I've been programming for a few years now. I primarily made Windows and Linux programs. In the last 6 months, I've followed guides on XDA to root a few of my devices and installed a custom ROM on one (it worked great). I was wondering if anyone experienced in actually developing rooting methods would be able to point me in the right direction for developing my own. Are there any good resources I could use to learn the process? Any help is appreciated. Thanks in advance!

Rooting Android simply means to add SU-binary to Android, preferredly to /system/bin or /system/xbin.

jwoegerbauer said:
Rooting Android simply means to add SU-binary to Android, preferredly to /system/bin or /system/xbin.
Click to expand...
Click to collapse
Thanks! I have heard a little about that. Do you know how I would go about getting those files? Is there a certain website I download them from? Do I need to copy them from a real Linux file system?

Brendanp01 said:
Thanks! I have heard a little about that. Do you know how I would go about getting those files? Is there a certain website I download them from? Do I need to copy them from a real Linux file system?
Click to expand...
Click to collapse
You can fetch the matching SU-binary from here:
AutomatedRoot/files at main · R0rt1z2/AutomatedRoot
Root your MediaTek arm64 device using mtk-su (CVE-2020-0069). - AutomatedRoot/files at main · R0rt1z2/AutomatedRoot
github.com

jwoegerbauer said:
You can fetch the matching SU-binary from here:
AutomatedRoot/files at main · R0rt1z2/AutomatedRoot
Root your MediaTek arm64 device using mtk-su (CVE-2020-0069). - AutomatedRoot/files at main · R0rt1z2/AutomatedRoot
github.com
Click to expand...
Click to collapse
Thank you for all your help!

Related

[DEVELOPEMENT] Cyanogen

Hey guys
First of all: I'm not good in develop! But i want to start with CM porting to our Gen8
I just get some infos from chulri how to port CM.
What have to be do:
Build-Scripts for CM on Gen8
Extract some Gen8 Binaries
Build the Kernel with Touchscreen Drivers
Build-Scripts for CM on Gen8
I started a Thread at the CM Forum about this I'll report here..
( http://forum.cyanogenmod.com/topic/24048-cm-port-to-archos-gen8/ )
Extract some Gen8 Binaries
I hope chulri will answere me soon so i can do this
Build the Kernel with Touchscreen Drivers
This have to be done from a guy who has Kernel Knowledge! Anyone?
If anyone's interested i could send a link with an how to, i've found onthe web
Everybody is invited to help to getting this Project started!
Greetz,
Lenn
I'm not a great porter, but I've shadowed a lot of porting with the cm roms, I'll try to do my part if you host the project on something like github(both kernel and rom). I also have a little bit of kernel development experience.
Scaryghoul said:
I'm not a great porter, but I've shadowed a lot of porting with the cm roms, I'll try to do my part if you host the project on something like github(both kernel and rom). I also have a little bit of kernel development experience.
Click to expand...
Click to collapse
Thats good You know more than me
I just could host the normal kernel and rom, because i've do nothing yet
(When chulri answered me i'll catch the original binaries, you can read this here: http://forum.xda-developers.com/showthread.php?t=1029507&page=3 )
You think you could the first step i described?
That would be assome
thank you for start the ball rolling!
Lennb said:
Thats good You know more than me
I just could host the normal kernel and rom, because i've do nothing yet
(When chulri answered me i'll catch the original binaries, you can read this here: http://forum.xda-developers.com/showthread.php?t=1029507&page=3 )
You think you could the first step i described?
That would be assome
thank you for start the ball rolling!
Click to expand...
Click to collapse
Not sure what you mean, you want me to explain how to extract the original binaries?
If you need a tester i'm your man ^^
(and if i can be of help with anything else learn me and i'll try ^^)
link should be this?
http://forum.cyanogenmod.com/topic/19647-archos-gen8/page__view__findpost__p__196966
Scaryghoul said:
Not sure what you mean, you want me to explain how to extract the original binaries?
Click to expand...
Click to collapse
First of all, Thanks for a help appear!!
I think he mean the step of porting CM7 to gen8 is:
1.Build-Scripts for CM on Gen8
2.Extract some Gen8 Binaries
3.Build the Kernel with Touchscreen Drivers
so, step 1 should be "1.Build-Scripts for CM on Gen8"..
Scaryghoul said:
Not sure what you mean, you want me to explain how to extract the original binaries?
Click to expand...
Click to collapse
I dont know, when chulri respone me i'll report it here
@eagleofdeath13
Thanks for support! Maybe you could search someone with Kernel knowledge who could do the first step, i think this is hard
@LeoNg628
Yep,sorry about that, thank you for correcting me
Thank goes to all you guys!
LeoNg628 said:
First of all, Thanks for a help appear!!
I think he mean the step of porting CM7 to gen8 is:
1.Build-Scripts for CM on Gen8
2.Extract some Gen8 Binaries
3.Build the Kernel with Touchscreen Drivers
so, step 1 should be "1.Build-Scripts for CM on Gen8"..
Click to expand...
Click to collapse
Yep,you're right
But i think its the hardest step and i've kernel knowledge,
We have to find someone with Kernel Knowledge who could do this
(Except chulri, i always ask him, but he has to much work right now..)
Oh, well I've never really created a build script before but there are plenty of guides instructing on how to do so.
Extracting the binaries usually consists of adb pulling all of the binaries required for the complication that are proprietary/closed source. I suppose you could just copy/paste them to your sdcard then copy to a computer if adb weren't around but that's just extra work.
As to which binaries we need, I'm not sure yet but we can cross that bridge in a bit.
To make the build script, we should probably analyze other build scripts for other devices and the directories for them.
This thread might aid in development, I doubt they have the build scripts for archos but they at least have examples in the program I'm sure and other tools to use.
http://forum.xda-developers.com/showthread.php?t=969266
Also for whoever attempts to get a functional kernel for cm7 this page may be useful(or possibly me just making sure I read this later)
http://wiki.cyanogenmod.com/index.php?title=Howto:_Build_a_Kernel_Port
Scaryghoul said:
Oh, well I've never really created a build script before but there are plenty of guides instructing on how to do so.
Extracting the binaries usually consists of adb pulling all of the binaries required for the complication that are proprietary/closed source. I suppose you could just copy/paste them to your sdcard then copy to a computer if adb weren't around but that's just extra work.
As to which binaries we need, I'm not sure yet but we can cross that bridge in a bit.
To make the build script, we should probably analyze other build scripts for other devices and the directories for them.
This thread might aid in development, I doubt they have the build scripts for archos but they at least have examples in the program I'm sure and other tools to use.
http://forum.xda-developers.com/showthread.php?t=969266
Also for whoever attempts to get a functional kernel for cm7 this page may be useful(or possibly me just making sure I read this later)
http://wiki.cyanogenmod.com/index.php?title=Howto:_Build_a_Kernel_Port
Click to expand...
Click to collapse
Thank you!
Okey, you really knows a lot more than i am
I'll do the binaries, just say me where they are?^^
Maybe you could try the Build script(s)...
And for the Touchscreen Driver:
We've to look for somebody who do the instructions i've found on the net
Scaryghoul said:
This thread might aid in development, I doubt they have the build scripts for archos but they at least have examples in the program I'm sure and other tools to use.
http://forum.xda-developers.com/showthread.php?t=969266
Click to expand...
Click to collapse
Okey, i know this Thread, its great except the fact it don't support Archos ^^
I'll send a message at these guys about archos devices and parallels about our gen8 devices ad supported devices, so we could create our own script to do it from scratch like they've do
But i now i go to bed^^
To start with build scripts I would recommend to find a device - which is supported by CM, if there even is one - which has similiar hardware as the Archos Gen8 series and start from there instead to start from scratch.
If there is no such similiar device series you unfortunately would have to start from scratch
chulri said:
To start with build scripts I would recommend to find a device - which is supported by CM, if there even is one - which has similiar hardware as the Archos Gen8 series and start from there instead to start from scratch.
If there is no such similiar device series you unfortunately would have to start from scratch
Click to expand...
Click to collapse
I have Desire and Desire HD also Aria and Legend....but all is HTC...the hardware spec is not similar to Archos gen8....
chulri said:
To start with build scripts I would recommend to find a device - which is supported by CM, if there even is one - which has similiar hardware as the Archos Gen8 series and start from there instead to start from scratch.
If there is no such similiar device series you unfortunately would have to start from scratch
Click to expand...
Click to collapse
Okey,thank you
there is no device similar to our archos that is supported
But is it possible to "mix" it?
Like:
Cpu - from a phone that has Arm Cortex A8
[...]
we put together all parts
woukd that be possible?
Yes, CPU might be the most important common part, then WiFi/BT, DSP (for hardware acceleration of videos), Sound, Touchscreen and in the end USB host port.
Lennb said:
Okey, i understand thank you very much, chulri!
I've searched but i dont found anything about writing build scripts on android...
Click to expand...
Click to collapse
I haven't found anything too, but I did some research in the beginning of this year: http://wiki.cyanogenmod.com/index.p...nMod_for_Sholes#Prepare_the_Build_Environment
After installing the repository on the build machine, you have all the build scripts from other devices and can copy and adapt them.
Lennb said:
Okey, then we'll do this step (binaries) in the end, i think the best would be to write the build scripts first? What do you mean?
Click to expand...
Click to collapse
Agreed
Lennb said:
i think we should write now on the developement thread, then the other guys could read it
Click to expand...
Click to collapse
Agreed too
chulri said:
Yes, CPU might be the most important common part, then WiFi/BT, DSP (for hardware acceleration of videos), Sound, Touchscreen and in the end USB host port.
Click to expand...
Click to collapse
Okey, but how do we get these firmwares out of the archos firmware?
http://wiki.cyanogenmod.com/index.p...nMod_for_Sholes#Prepare_the_Build_Environment
After installing the repository on the build machine, you have all the build scripts from other devices and can copy and adappt them.
Click to expand...
Click to collapse
Okey, i just have a windows pc, but i think i put linux on it
Ubuntu is the best for developening, isn't it?
I have to talk to my brother (with-owner of the pc)
I'll put a dual-boot system on my pc
I want Cyanogen!
Lennb said:
Okey, but how do we get these firmwares out of the archos firmware?
Click to expand...
Click to collapse
a) adb pull (this is what the "extract_files.sh" does)
b) root the device and copy files one by one
c) root the device, copy the filesystem image and extract the files by script
Lennb said:
Okey, i just have a windows pc, but i think i put linux on it
Ubuntu is the best for developening, isn't it?
I have to talk to my brother (with-owner of the pc)
I'll put a dual-boot system on my pc
Click to expand...
Click to collapse
So you start developing? If not, no need for linux at all
Lennb said:
I want Cyanogen!
Click to expand...
Click to collapse
4 days ago you wanted UrukDroid, 3 day ago you wantet Honeycomb, now you want CM, will you stay this time?
chulri said:
a) adb pull (this is what the "extract_files.sh" does)
b) root the device and copy files one by one
c) root the device, copy the filesystem image and extract the files by script
Click to expand...
Click to collapse
Sorry, im a noob I just don´t understand.
Adb pull is copy files over adb(command connection over usb); right?
So you start developing? If not, no need for linux at all
Click to expand...
Click to collapse
I try I reset my Pc anyway
4 days ago you wanted UrukDroid, 3 day ago you wantet Honeycomb, now you want CM, will you stay this time?
Click to expand...
Click to collapse
Same answer as in 2
from what i understand 2.2, 2.3 doesnt support usb hosting which is needed for the archos screen
is there a fix for that?
i know android 3.0, 3.1 support usb hosting...

[Q] Setting up Development environment

Hi all,
I'm trying to setup an Android development environment on Linux (Ubuntu)
The instructions I follow atm you can find HERE
I've downloaded and unpacked the Android SDK but trying to install I'm stuck.
It's probably very easy but for me coming from MS Windows I need to get used to all these new terms and commands. :cyclops:
The tutorial clearly explains the following:
'On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.'
I've opened a terminal venster but how do I execute?
Sorry for my very noobish question but any help would be highly appreciated.
Grtz, Leo
http://blog.markloiseau.com/2011/06/how-to-install-the-android-sdk-and-eclipse-in-ubuntu/
Like three entries down in the search engine...
That will help me a few steps ahead again, great tut, thanks a lot!
thewadegeek said:
http://blog.markloiseau.com/2011/06/how-to-install-the-android-sdk-and-eclipse-in-ubuntu/
Like three entries down in the search engine...
Click to expand...
Click to collapse
No prob.
Out of curiousity (author here), did the steps work out easily or did anything need updating?
lowazo said:
Out of curiousity (author here), did the steps work out easily or did anything need updating?
Click to expand...
Click to collapse
I think he accidentally the while thing. I could be wrong though.
lithid-cm said:
I think he accidentally the while thing. I could be wrong though.
Click to expand...
Click to collapse
From here on out, I'm putting disclaimers on everything.

New developer Player

hello
i am a new developer i am starting to create ROMS and android kernel's. i am using Ubuntu 12 and any advise on tools and a starting point would be greatly appreciated. i use Heimdall to get the ROM's onto my device.
starter questions
1) how do i download the original android kernel to my system (linux)
2) best tool to view the kernel code.
i would like to be a productive XDA developer so any advise or direction would be great.
Cy83rn1nj4 said:
hello
i am a new developer i am starting to create ROMS and android kernel's. i am using Ubuntu 12 and any advise on tools and a starting point would be greatly appreciated. i use Heimdall to get the ROM's onto my device.
starter questions
1) how do i download the original android kernel to my system (linux)
2) best tool to view the kernel code.
i would like to be a productive XDA developer so any advise or direction would be great.
Click to expand...
Click to collapse
Here's the replies
1. That depends of the device you currently own
2. I use gedit but most people says that gedit and Vim are the best editors for ubuntu.
Also you would need the android sdk (for adb) also you will need jdk. If you want more informations don't be affraid to ask.
EDIT: I forgot to ask which languages you have learned?
im learning Python using google.com/edu great online webinars my company want me to also learn ruby as we develop our apps using rails.
thanks for the reply i will look for a standard android image i can decompile and test with.
Cy83rn1nj4 said:
im learning Python using google.com/edu great online webinars my company want me to also learn ruby as we develop our apps using rails.
thanks for the reply i will look for a standard android image i can decompile and test with.
Click to expand...
Click to collapse
You cant decompile any compiled to machine code program, its basic.. You can only get source code or deassemble to unreadable and unusable code.
Sent from my GT-I9000 using xda app-developers app

[Q] TD-1010 Stock ROM Extraction

I have Recently obtained and rooted a Double Power (DoPo) TD-1010 Tablet running ICS.
As it is a generic Chinese RK3066 tablet, I have not seen much support for it here.
I would like to know how to extract the necessary files needed to create a stock ROM for this device, in the event that I brick the device.
If all goes well, I plan to release the ROM, as there have been a select few others in need of it as well.
You have to be running on a Linux distro and use a tool called rkflashtool in conjunction with a script that will backup the .img's from your nand.
http://forum.xda-developers.com/showthread.php?t=1286305
The script is called simpledump.sh you will also need to compile a file called mkkrnlimg.c
These have to all be in in your usr/bin folder in Linux, your $Path.
Dillmiester said:
You have to be running on a Linux distro and use a tool called rkflashtool in conjunction with a script that will backup the .img's from your nand.
http://forum.xda-developers.com/showthread.php?t=1286305
The script is called simpledump.sh you will also need to compile a file called mkkrnlimg.c
These have to all be in in your usr/bin folder in Linux, your $Path.
Click to expand...
Click to collapse
I'll try that soon, thanks for the reply
Just CWM to backup your current stock rom
Using XDA premium through A5
My themes - http://forum.xda-developers.com/showthread.php?p=36747522#post36747522
ase1590 said:
I have Recently obtained and rooted a Double Power (DoPo) TD-1010 Tablet running ICS.
As it is a generic Chinese RK3066 tablet, I have not seen much support for it here.
I would like to know how to extract the necessary files needed to create a stock ROM for this device, in the event that I brick the device.
If all goes well, I plan to release the ROM, as there have been a select few others in need of it as well.
Click to expand...
Click to collapse
how do i root this?
Postal Psycho said:
how do i root this?
Click to expand...
Click to collapse
youtube has some guides for this
Dillmiester, i have Rkflashtool up and running, however searching for simpledump and mkkrnlimg.c have yielded me little. Would you mind linking me to these?
for the time being, i've dumped everything from my tablet using
Code:
rkflashtool r 0x00000000 0x01000000 > myflashbackup.bin
ase1590 said:
youtube has some guides for this
Dillmiester, i have Rkflashtool up and running, however searching for simpledump and mkkrnlimg.c have yielded me little. Would you mind linking me to these?
for the time being, i've dumped everything from my tablet using
Code:
rkflashtool r 0x00000000 0x01000000 > myflashbackup.bin
Click to expand...
Click to collapse
my PC can't find any drivers for my td1010. Help please?
coolprateek.kumar said:
Just CWM to backup your current stock rom
Using XDA premium through A5
My themes - http://forum.xda-developers.com/showthread.php?p=36747522#post36747522
Click to expand...
Click to collapse
CWM is not supported from the app available on the market. Not interested in manually flashing the Recovery.img, in the event something decides to go terribly wrong.
Postal Psycho said:
my PC can't find any drivers for my td1010. Help please?
Click to expand...
Click to collapse
I compiled what is known on this tablet in a thread Here
ase1590 said:
CWM is not supported from the app available on the market. Not interested in manually flashing the Recovery.img, in the event something decides to go terribly wrong.
I compiled what is known on this tablet in a thread Here
Click to expand...
Click to collapse
Nothing risky in doing manually....just a minute's work
Sent from my A5 using xda premium
How was the CWM-Recovery.img created for the td-1010
Hello, I'd like to find out how the CWM-recovery.img was created for the TD-1010. I have both the TD-1010 and the dopo M7088. I'd like to create one for the M7088. I tried the CWM builder web site but it did not seem to work.
Any info you have may help. Thanks
Hi my friend. I Need the ROM
ase1590 said:
I have Recently obtained and rooted a Double Power (DoPo) TD-1010 Tablet running ICS.
As it is a generic Chinese RK3066 tablet, I have not seen much support for it here.
I would like to know how to extract the necessary files needed to create a stock ROM for this device, in the event that I brick the device.
If all goes well, I plan to release the ROM, as there have been a select few others in need of it as well.
Click to expand...
Click to collapse
goodnight friend. I need the ROM of TD-1010 dopo tablet. already have? I can send it. thanks.

[Q] Where to find untouched root files

Hello,
I want to root by desire Z(g2), as a long time linux user procuder seems easy. The problem is all the files I found for rooting are from unknown sources. Maybe I'm being little paranoid but I don't find flashing files of unknown origins secure. Where can I find root files that I can completely trust? I can't seem to find upstream sources.
Thanks for help
Desefun said:
Hello,
I want to root by desire Z(g2), as a long time linux user procuder seems easy. The problem is all the files I found for rooting are from unknown sources. Maybe I'm being little paranoid but I don't find flashing files of unknown origins secure. Where can I find root files that I can completely trust? I can't seem to find upstream sources.
Thanks for help
Click to expand...
Click to collapse
This post should get you to where you need to be.
s
EVRYTH1NGANDR01D said:
This post should get you to where you need to be.
Click to expand...
Click to collapse
Thanks for the informations, but still tons of files of unknown origins. I need to find files from upstream, like sourgeforge pages.

Categories

Resources