[Q] Linux Exploits on Android - EVO 4G Q&A, Help & Troubleshooting

Right before it was closed, twiztid99 posted a link to a Linux exploit in the Gingerbread root collaboration thread. Is it possible that this Linux exploit could be run in native code to achieve root in Android 2.3.3 on the EVO? It claims that it works for all kernels older than 3.0. No one else has mentioned this that I can see. I apologize if anyone thinks this belongs in the Q&A or general thread, but only developers are going to know the answer.
Linux Exploit Link:
http://www.exploit-db.com/exploits/17391/
Original Post
I would consider myself a programmer, but I know very little about Android, or OS programming in general. Let me know what you think. I'm assuming most Linux exploits would not be applicable to Android because they make use of libraries or applications that Android does not have, but again, thoughts?

near as i can tell, they stopped using that specific type of linux architecture (dec alpha) in the early 2000's: http://en.wikipedia.org/wiki/DEC_Alpha
edit: this probably should be in a different forum, and maybe change the title so ppl don't think u have some type of new root method or something

bender beerman said:
near as i can tell, they stopped using that specific type of linux architecture (dec alpha) in the early 2000's: http://en.wikipedia.org/wiki/DEC_Alpha
edit: this probably should be in a different forum, and maybe change the title so ppl don't think u have some type of new root method or something
Click to expand...
Click to collapse
Thanks. I didn't realize that was an architecture. I thought it was just the name of the exploit :/. I'm going to move the thread to Q&A.

Related

Android open source available.

Anyone intend to create a build for the dash if possible?
http://source.android.com/posts/opensource
I will look into this, hopefully some more people will be willing to help out...
Dang this is harder then I thought but I think it could be done...
No one has even gotten android to run on anything but a dream that i know of, and the source has been out quite a while. Our project just getting linux running on a dash is proving to be quite a lot of work. Maybe once we get linux running we can move to android. Also visit #htc-linux on irc server freenode to see current progress on porting android to other devices.
BruteSource said:
No one has even gotten android to run on anything but a dream that i know of, and the source has been out quite a while. Our project just getting linux running on a dash is proving to be quite a lot of work. Maybe once we get linux running we can move to android. Also visit #htc-linux on irc server freenode to see current progress on porting android to other devices.
Click to expand...
Click to collapse
Thanks for the information, but I truly believe it could be done because what would prevent android from being installed on a dash...
Also, no one thought linux would get on the dash; however, it is possible now... thanks for the developers...
jdoggraz said:
Thanks for the information, but I truly believe it could be done because what would prevent android from being installed on a dash...
Also, no one thought linux would get on the dash; however, it is possible now... thanks for the developers...
Click to expand...
Click to collapse
Okay your misunderstanding a few things. First of all android is just a different distro of linux. To get it to work on the exclalibur we need to be able to boot a kernel and that kernel needs to work with all of our hardware. Which is what we are working on with the linwizard excalibur project. Once we get it working with all of our hardware we can patch the android kernel with all of our work then use the android userspace (android.bin) But untill we have working drivers for the excalibur in linux its not possible to boot and use android or any linux fully... understand?
Yah I understand what your are saying...

[DEV][DEV-ONLY] Honeycomb Progress

[This is not the place to say "this is awesome" or "thanks!"]
[DEVS ONLY]
I want to start this thread to keep up the progress on the port.
the bad news is that the SDK is incomplete for now, so (like other devices)
we will have to write our own code for the OS, the nook community
has done a wonderful job writing their own libraries and stuffs, so we will have to do the same.
Instead of pursuing different goals, let's focus on one thing at a time.
since GSM and CDMA versions are already out, it seems we suffer the same bugs, so for now let's unite strength and knowledge to overcome these.
I propose that the first goal to fix is the SurfaceFlinger, so we could at least see the apps, the buttons and the notifications.
it is currently throwing this:
04-06 22:01:35.495: ERROR/Surface(2960): dequeueBuffer failed (Out of memory)
this could lead us that it might coudln't start because of some malloc malfunction or something.
also that pvrsrvinit bugs me a lot.
update:
8/APR/2011
since DiP7 could fix SurfaceFlinger and other things using a different build from the GSM kernel, we have to dig deeper
======================================
CURRENT GOAL
Rebuild Kernel
======================================​
Current approaches:
*none
Post any finding, guessing or anything, and please, please don't be afraid to ask anything you have a doubt, as a Dev you should not know everything, so we can help us each other
------------------------------------------
Google Easter egg:
while searching some info about the android.mk file , I put it on the chrome bar to search for that term, but instead I went to
http://android.mk
an easter egg web page from google lol
******TOOLS*********
How to send text and Keystrokes via ADB
http://bradchow.blogspot.com/2011/02/send-intent-and-key-event-by-adb.html
use DroidExplorer to easily access your device from your computer and makes changes from it
http://de.codeplex.com/
The Android Boot Process
http://www.androidenea.com/2009/06/android-boot-process-from-power-on.html
---Kernel Tools----
CPU Datasheet
http://forum.xda-developers.com/showthread.php?t=745877
Samsung GIT
http://android.git.kernel.org/?p=kernel/samsung.git;a=summary
PowerVR SDK
http://www.imgtec.com/powervr/insider/powervr-sdk.asp
Source code of samsung firmwares(keep and eye on this)
http://opensource.samsung.com/
Asus pad honeycomb Kernel Source
http://forum.xda-developers.com/showthread.php?t=1026528
ellokomen said:
======================================
CURRENT GOAL
Find why SurfaceFlinger is not working
======================================​
Click to expand...
Click to collapse
Mmmk.. Let me tell you a story.
A long time ago in a galaxy far away... No, that will take too long. In a nutshell, one third of the answer is here, another third is here and the rest is here. I'm not trying to be intentionally vague, I just haven't figured out how these three fit together yet.
Of course, there could also be some bit of code that I missed... some telling line in a debug log that I overlooked or some driver or library that I could have decompiled to sift through its juicy secrets. There could easily be a fix that would take seconds to add and make the whole thing fall in line...
Or we might have to work it from the ground up.
Either way it will happen. It's just a matter of whether it will happen next week, or next month.
(Watch it be a misplaced semi-colon, or a bad symlink... that's how these things go.)
updated approaches and new tools have been added
spacemoose1 said:
Mmmk.. Let me tell you a story.
A long time ago in a galaxy far away... No, that will take too long. In a nutshell, one third of the answer is here, another third is here and the rest is here. I'm not trying to be intentionally vague, I just haven't figured out how these three fit together yet.
Of course, there could also be some bit of code that I missed... some telling line in a debug log that I overlooked or some driver or library that I could have decompiled to sift through its juicy secrets. There could easily be a fix that would take seconds to add and make the whole thing fall in line...
Or we might have to work it from the ground up.
Either way it will happen. It's just a matter of whether it will happen next week, or next month.
(Watch it be a misplaced semi-colon, or a bad symlink... that's how these things go.)
Click to expand...
Click to collapse
The kernel source that you have linked to is 2.6.35.7 for the Nexus S gingerbread and is not fully maintained by samsung but rather by google.
However I do not think you are wrong that there is a problem somewhere in the kernel. The kernel that has been released for the galaxy tab is a mess of horrid code, I have had to re-write parts of kernel drivers just to get them to work under linux, I would not be surprised if similar patches are needed for honeycomb
lilstevie said:
The kernel source that you have linked to is 2.6.35.7 for the Nexus S gingerbread and is not fully maintained by samsung but rather by google.
However I do not think you are wrong that there is a problem somewhere in the kernel. The kernel that has been released for the galaxy tab is a mess of horrid code, I have had to re-write parts of kernel drivers just to get them to work under linux, I would not be surprised if similar patches are needed for honeycomb
Click to expand...
Click to collapse
you mean that you made a port of a Linux Distro into the tab?
ellokomen said:
you mean that you made a port of a Linux Distro into the tab?
Click to expand...
Click to collapse
yes click here for the thread on the port of ubuntu
Current kernel source
Do you guys have another link to the current spacemoose kernel source? The download link seems to be corrupted and won't untar. I want to get in on the fun
noobporter said:
Do you guys have another link to the current spacemoose kernel source? The download link seems to be corrupted and won't untar. I want to get in on the fun
Click to expand...
Click to collapse
here it is, bear in mind that this is for CDMA devices
Unfortunatey, we have 4 other honeycomb threads.
Not trying to be rude but spacemoose updates us in the cdma forums AND we have russian rom updates in the gsm forums.
I really dislike the idea of this thread, there is enough clutter amongst the other threads. Do we really need one more place to browse..
The first posts in the roms thread are kept updated by devs.. Is this not enough??
daml said:
Unfortunatey, we have 4 other honeycomb threads.
Not trying to be rude but spacemoose updates us in the cdma forums AND we have russian rom updates in the gsm forums.
I really dislike the idea of this thread, there is enough clutter amongst the other threads. Do we really need one more place to browse..
The first posts in the roms thread are kept updated by devs.. Is this not enough??
Click to expand...
Click to collapse
yeah but we need a place for the other devs to share their milestones, here is a place for technical discussion amongst us, to share the knowledge etc...
the other threads are flooded from non devs messages, so it´s kind of difficult to read 14 pages of information when the 80% is people complaining not making it boot
lilstevie said:
The kernel source that you have linked to is 2.6.35.7 for the Nexus S gingerbread and is not fully maintained by samsung but rather by google.
Click to expand...
Click to collapse
Yes, and it contains some support for our device (s5pc110), and some more that can be added (pvr) and the architecture necessary to fully support HC without patching the build itself. If we work only towards patching the system build to communicate with the hardware, we won't be able to run AOSP hc versions when the source drops without going through the same painstaking process of hacking the system to function (while creating numerous faults causing FCs in the process). If we build a new kernel, we can get the hardware to communicate in the way future android versions want it to and we can then do what we want with ease.
noobporter said:
Do you guys have another link to the current spacemoose kernel source? The download link seems to be corrupted and won't untar. I want to get in on the fun
Click to expand...
Click to collapse
D'oh! Nobody told me, LOL... I'll get another copy up.
spacemoose1 said:
D'oh! Nobody told me, LOL... I'll get another copy up.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1026528
hey spacemoose! the first portion of honeycomb source... The kernel source of the Asus EEE Pad Transformer... maybe it helps you with a few kernel issues, even if it's for another device... It's honeycomb!
Flokey said:
http://forum.xda-developers.com/showthread.php?t=1026528
hey spacemoose! the first portion of honeycomb source... The kernel source of the Asus EEE Pad Transformer... maybe it helps you with a few kernel issues, even if it's for another device... It's honeycomb!
Click to expand...
Click to collapse
Digging through it now.
spacemoose1 said:
Yes, and it contains some support for our device (s5pc110), and some more that can be added (pvr) and the architecture necessary to fully support HC without patching the build itself. If we work only towards patching the system build to communicate with the hardware, we won't be able to run AOSP hc versions when the source drops without going through the same painstaking process of hacking the system to function (while creating numerous faults causing FCs in the process). If we build a new kernel, we can get the hardware to communicate in the way future android versions want it to and we can then do what we want with ease.
Click to expand...
Click to collapse
Not enough really, PVR kernel module sources have been released from samsung for our device, and is available in update1 zip.
The kernel panics and we have no framebuffer from the nexus s, believe me that is the kernel I want to be running for my project, it is cleaner nicer and things are implemented overall better. unless you know of a solution for kernel debuging over usb
lilstevie said:
Not enough really, PVR kernel module sources have been released from samsung for our device, and is available in update1 zip.
The kernel panics and we have no framebuffer from the nexus s, believe me that is the kernel I want to be running for my project, it is cleaner nicer and things are implemented overall better. unless you know of a solution for kernel debuging over usb
Click to expand...
Click to collapse
Kernel debugging over USB = adb shell cat /proc/kmsg
You can make any kernel work for any device as long as you add the **** it needs. Just takes time. Working on it now.
Goal and tools updated*
spacemoose1 said:
Kernel debugging over USB = adb shell cat /proc/kmsg
You can make any kernel work for any device as long as you add the **** it needs. Just takes time. Working on it now.
Click to expand...
Click to collapse
You don't know what a kernel panic is do you?
lilstevie said:
You don't know what a kernel panic is do you?
Click to expand...
Click to collapse
I thought that linux throws a dump log when it makes a kernel panic specifying the memory address and the cause of crash

Porting C/C++ Linux apps via python binding?

First of all let me start off by admitting that I am crazy and a noob programmer so maybe I don't understand the problem and am asking a rediculus question.
I was wondering if there was any way of converting C/C++ source into python that could be run on Android. Mostly command line stuff that would be done over adb or maybe even the terminal. I have got the python interpreter google provides running on the command line, I can access it from adb, terminal IDE, Terminal emulator, it seems everywhere, I moved the files into my /system directorys and add PYTHONHOME and ""PATH to my bashrc and mkshrc files located in the "/system/etc" section and now I can call them from those shells. For instance I can call "bash" and get bash, or/and I can call "python" to get python2.6 ( I have no idea how to implement the "Alternative" method of linking executables like in debian on android so it just has to be thought out, i tested with 2.6)
So with that all being said, if the C/C++ bindins for python ( I don't really even know how those work) were ported to android would we be able to use that to port C source?
And a second question. Does the python interpreter googlecode offers run on top of the Delvik VM?
Sounds pretty complicated and interesting, seen a lot of crazy things happen here over the years so I wouldn't say anything is impossible lol I recommend you ask this in the Q&A section though. Or maybe the Android Development and Hacking section, there's a lot of talented programmers over there as well.
Sent from my SPH-L710 using Tapatalk 4 Beta
To answer the question you asked: no, that's not a reasonable endeavor.
To answer the one you didn't: it's actually not hard to build most console programs from source to run on Android. You should be able to grab yourself a cross-compiler toolchain, and build the programs yourself. If you're running Linux on your computer, most distros have a tool to build such toolchains, or you can use e.g. MinGW and a Windows toolchain (Linaro might have one) to compile. In general './configure --host arm-linux-androideabi' should set everything up for you.
Obviously, there is a learning curve to building like this, but it's certainly not impossible to do.
Sent from my SPH-L710 using xda app-developers app
decimalman said:
To answer the question you asked: no, that's not a reasonable endeavor.
To answer the one you didn't: it's actually not hard to build most console programs from source to run on Android. You should be able to grab yourself a cross-compiler toolchain, and build the programs yourself. If you're running Linux on your computer, most distros have a tool to build such toolchains, or you can use e.g. MinGW and a Windows toolchain (Linaro might have one) to compile. In general './configure --host arm-linux-androideabi' should set everything up for you.
Obviously, there is a learning curve to building like this, but it's certainly not impossible to do.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Right on, I just started reading the Linux From Scratch book and it has helped me understand the process behind it all a bit, I still need to finish reading the book and build my own Linux system for the my laptop first as that is what they are talking about.
I actually just got msfconsole or Metasploit running on Android, I ran started it up from ADB. I posted another thread about it with more detail.
I am just mounting the filesystems from the kali.img file that I made a few days ago, I basically just did a reverse chroot and brought those directories into Android's "/" directory and then exported the path variables that you normaly would but since I didn't change root and all the apropriate directories where in their proper place it ran.
My next step is to obtain a method for building the Kali Linux for arm system on a ROM, probably a blend of Cyanogenmod and Kali Linux core or rather just the command line programs. I am assuming that once the tools are available to the Android system folks could build gui's that call those programs and return their values and then bundle it in an apk for installation across devices running the modified ROM.
My end goal is basically a version of the Kali Linux distro that runs Android as its "desktop" instead of kde gnome pxe or some of the others. Then hopefully, maybe, if its deemed worthy, a specialized repository can be maintained for this version of the distro that wouldn't include any of the original gui programs for normal Linux Desktops, but only specialized apk's (instead of .deb or .rpm) that install gui's for android.
Thats what I would like to see, a Super Droid.
Please read forum rules before posting
Questions and Help issues go in Q&A and Help section
Thread moved'
Thanks
FNM

[Q] SymphonyOS Linux for Note 2???

http://symphonyos.com/screenshots/
What do you think? I believe it'd be a very proper fit if we could get it going, four menu corners, sort of an android'ish app drawer, lightweight and I think it's still Ubuntu based...
Hello
I run the SymphonyOS project. We are based on Ubuntu and our desktop itself is written in interpreted languages like perl and php combined with packages like fvwm and tint2 that are available in the official repos so it is cross platform. While we havent done any work on touchscreen compatibility i do have the desktop running under ubuntu arm on an mk802. There wouild likely be some issues with some parts of the interface with touch but if you want to give it a try, get in touch and i can provide some details on how to copy the desktops cvomponents iknto a vasnilla ubuntu-arm system.
I think I'll add a poll to see how many are interested in seeing this on our Note 2...
I'd love to see it ported over, can someone link me to how to do linux on our devices, I seen it before but forgot what it was and what exact search phrase to use. Would it be SELinux and porting or isnt there an app for that too? I'm clueless! LoL
Okay now I found the app... Can't create polls in a already existing thread! errr
http://forum.xda-developers.com/showthread.php?t=1585009
Q&A Thread for that---^ http://forum.xda-developers.com/showthread.php?p=38340817
And this thread over at SysmphonyOS forum for easier communication with @ryanpq
I see @gregsarg is or would also be interested in this according to all his thanks in this thread. Speak up man!!
n1nj4Lo said:
Okay now I found the app... Can't create polls in a already existing thread! errr
http://forum.xda-developers.com/showthread.php?t=1585009
Q&A Thread for that---^ http://forum.xda-developers.com/showthread.php?p=38340817
And this thread over at SysmphonyOS forum for easier communication with @ryanpq
I see @gregsarg is or would also be interested in this according to all his thanks in this thread. Speak up man!!
Click to expand...
Click to collapse
This can be used to mount any Linux chroot
It can build a few also .
I will see what i can do to add this to the supported install distros
http://forum.xda-developers.com/showthread.php?t=2627255
userdelroot said:
This can be used to mount any Linux chroot
It can build a few also .
I will see what i can do to add this to the supported install distros
http://forum.xda-developers.com/showthread.php?t=2627255
Click to expand...
Click to collapse
Cool sounds good... Thanks
___
SymphonyOS Thread: http://symphonyos.com/forums/topic/symphonyos-on-android/

[Q] Concerning the building/porting of Android 4.4.x Kernel

Hello.
I would like to point this question specifically towards experienced kernel developers and rom builders.
gr8nole, ketut, angel_666, Restl3ess etc.
I feel I am as ready as I'm going to be for trying this. I need to know what specific portions of kernel source for gt-p5210
need to be patched/modified in a 4.2.2 kernel to bring it up to 4.4. From what I have been able to find about Android specific
modifications to the Linux kernel, most of the naughty bits seems to be in drivers/staging. What/where else are there differences/points that need to be modified to make this real. I would also in lieu of a direct/instructive answer appreciate,
non-abstract/roundabout reference materials that you yourselves have used and/or still use in order to accomplish this.
Posing this question does not mean that I have stopped my own search, so with all due respect, if you do not have an answer
aside from google it of anything involving if's,maybe's and or i don't knows, then please, hold your comment.
thank you for reading.
m

Categories

Resources