[Q] Where to find untouched root files - Android Q&A, Help & Troubleshooting

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.

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...

Complete noob guide for compiling roms

Hi..im a quite fresh android user after having iphone for the last 4 years....i have a huawei ideos x5 pro that for me at least is a great phone for his price..but the major problem is that we don't have devs for our phone...only one chinese guy that develops roms for at least 7 phones so we aren't his major concern...so im asking if there is a complete noob guide for compiling rom..fixing rom.
i have to tell you and please don't flame that even that i have knowlage over pc's i haven't any knowlage over programming and coding!!so if any guide can't help me it will be ok...i try! but if there is a guide that can help me step by step to understand the basics and then with a bit of research can figure it out the rest it will be helpful!!
Thanks!!
Sorry for my english!
http://lmgtfy.com/?q=make+android+custom+ROM
thewadegeek said:
http://lmgtfy.com/?q=make+android+custom+ROM
Click to expand...
Click to collapse
Yeah i know that...im asking for a user's entirely noob guide...1st time user guide...google is full with guides but not so novice guides!!
There isn't a "type this, click this, A,B,C" guide. That would be called just copying somebody's work. What you need to do is start reading through ALL the guides you can find, compile a kernel, read smali, change colors, mod pictures, unpack-repack boot.imgs. I can't give you a link and say "Read this tutorial and you will be a developer", that's just not how it works.
thewadegeek said:
There isn't a "type this, click this, A,B,C" guide. That would be called just copying somebody's work. What you need to do is start reading through ALL the guides you can find, compile a kernel, read smali, change colors, mod pictures, unpack-repack boot.imgs. I can't give you a link and say "Read this tutorial and you will be a developer", that's just not how it works.
Click to expand...
Click to collapse
ill give it a try thanks!!!
After reading a lot of guides...i can say that i didnt find anything so hard but i haven't try it so far so i can say for sure...but i stuck in one thing...somewhere on all the guides it sais to find your device tree...and many guides that are from samsung or htc using some github and some cyanogen brances...i have an huawei ideos x5 pro...where i will find those trees?do i need them for making the android source work with my device or the source from google is universal meaning that when im build the rom from sources.android.com the rom will work in my device??
pikachukaki said:
After reading a lot of guides...i can say that i didnt find anything so hard but i haven't try it so far so i can say for sure...but i stuck in one thing...somewhere on all the guides it sais to find your device tree...and many guides that are from samsung or htc using some github and some cyanogen brances...i have an huawei ideos x5 pro...where i will find those trees?do i need them for making the android source work with my device or the source from google is universal meaning that when im build the rom from sources.android.com the rom will work in my device??
Click to expand...
Click to collapse
You must have a device tree... If not you have to build your own... The rom built from source.android.com will only work with google nexus devices...
adiles said:
You must have a device tree... If not you have to build your own... The rom built from source.android.com will only work with google nexus devices...
Click to expand...
Click to collapse
So my hands is tied...nice!!there is no way that i can make a tree i don't have so much knowlage!! :/ too bad!!
pikachukaki said:
So my hands is tied...nice!!there is no way that i can make a tree i don't have so much knowlage!! :/ too bad!!
Click to expand...
Click to collapse
look for a device with similar hardware and copy that device tree, then try to make adjustments to get it working and voila. and ask that one dev if he can give you his device tree
I have read all things in xda about my u8800, and xda helps me know about root, install cwm, uprom..etc. thank all of you, thank xda
-Sent from my u8800-
Me Too!
lemonade747 said:
I have read all things in xda about my u8800, and xda helps me know about root, install cwm, uprom..etc. thank all of you, thank xda
Click to expand...
Click to collapse
I'm actually reading everything about my new device, Sony Neo L. This is pretty amazing! XDA rocks!
CrisisCorE said:
look for a device with similar hardware and copy that device tree, then try to make adjustments to get it working and voila. and ask that one dev if he can give you his device tree
Click to expand...
Click to collapse
Hardware we need the same cpu gpu or everything?sensors bt wifi etc?
Sent from my U8800PRO using xda premium
How can i get source code for Vision, since huawei doesnt let you download it?
Sent from my Vision
if u r good at linux, u can try this guide >>> http://handycodeworks.com/wp-content/uploads/2011/02/linux_versus_android.pdf
I compile linux kernels for desktop, but the android kernel is not the same. Cyanogen team and GOOGLE Android developers provides a comprehensive guide on building ur own ROM. But to build ur own OS, u need to understand each component carefully. I don't know abt android, but i am making Linux OS from scratch. I have kernel compiled, tool chain set up, now i am putting apps on it. But android uses DALVIK VM for Java apps, also .... U refer the pdf it will tell u. Once i finish making this OS, i'll focus on Android ROMS. They r similar to Linux OS, but require patches in kernel, a light c lib, new fs, a different vm (dalvik) and different ways of managing i/o interrupts and much more..
this link is on porting android on nokia >> http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Porting-Android-to-a-new-device/
this one is on linux on embedded systems >> http://www.lindusembedded.com/blog/2010/12/07/android-linux-kernel-additions/
Also, sorry to say but learn C/C++/Java . To make ROMS, atleast to make modifications and to understand the kernel u'll need C. Not very hard to learn, Good tuts on Lynda.com and other sites. And be good at Linux. Happy Learning

[Q] where are touch screen driver and flies

hello i just want to ask where are touchscreen files and drivers because i found cyanogenmod for similar hardware but only the touch screen is not working so i thought to replace with the working rom for my device
PLEASE HELP ME OUT WITH THIS ONE !
icoolguy1995 said:
hello i just want to ask where are touchscreen files and drivers because i found cyanogenmod for similar hardware but only the touch screen is not working so i thought to replace with the working rom for my device
PLEASE HELP ME OUT WITH THIS ONE !
Click to expand...
Click to collapse
please give me an answer
icoolguy1995 said:
please give me an answer
Click to expand...
Click to collapse
go to the root of your filesystem most root browsers do this anyways and dev then input and it should be the event files
hillconnor13 said:
go to the root of your filesystem most root browsers do this anyways and dev then input and it should be the event files
Click to expand...
Click to collapse
what are event files
i checked there are no files
there is no appropriate answers please i need it pls help me out guys
/sys/android_touch/vendor (open it as a text file)
That tells you the make of your touchscreen. First step to seeing if it is compatible at all.
And you can't just make CM for another device work for yours by replacing a few files. It has to be ported to your device or compiled from source with all the right drivers and binaries. This requires a lot of developer knowledge, which you don't seem to have judging by your questions. So don't go messing around changing files in ROMs and trying to make them work. If you're really interested, learn about porting and compiling from source.
Sent from my Desire HD using xda premium
sashank said:
/sys/android_touch/vendor (open it as a text file)
That tells you the make of your touchscreen. First step to seeing if it is compatible at all.
And you can't just make CM for another device work for yours by replacing a few files. It has to be ported to your device or compiled from source with all the right drivers and binaries. This requires a lot of developer knowledge, which you don't seem to have judging by your questions. So don't go messing around changing files in ROMs and trying to make them work. If you're really interested, learn about porting and compiling from source.
Sent from my Desire HD using xda premium
Click to expand...
Click to collapse
i did not find android_touch in sys folder from root explorer

rooting zte z232vl

any info on rooting this phone?`
laryzti said:
any info on rooting this phone?`
Click to expand...
Click to collapse
I am glad someone asking questions regarding this phone. I am also searching source code of kernel and Launcher - did you find it ?
But yes, this phone based on Android and can launch apk files inside. But it is cut version
apk files
moldis said:
I am glad someone asking questions regarding this phone. I am also searching source code of kernel and Launcher - did you find it ?
But yes, this phone based on Android and can launch apk files inside. But it is cut version
Click to expand...
Click to collapse
how could you launch apk files in it how did you get root access ?

Advice/help for creating root methods?

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!

Categories

Resources