rooting? - Android Software/Hacking General [Developers Only]

ok the subject maybe a little mis leading but i'm guessing this question has probably been asked loads of times before.
i know linux well and am wondering is rooting an android device just the same as having root access on linux so your just logged in as super user?

yep, pretty much the same. allows you to use basic commands thanks to busybox on most ROMs and you can also chroot into a debian ARM installation so you can use debian commandlined, or even with a vnc server

Related

Question: Chroot/X11 Window/Xorg/Xserver in Android

Hi Everyone,
I have few questions regarding Android.
Currently, I don't have an Android and I consider getting one.
Kindly, please answer my following questions [Related to hacking]:
1- Does Android Support Chroot-ing? (Assuming it is been rooted)
2- If it does, is it possible to start/run Xorg/Xserver (Natively)?
3- If Chroot-ing is not possible nor starting an X-server. How easy to dual boot Debian/Fedora/Etc ... in Android phones?
I'm considering to buy Android to chroot or booting a linux in it (ARM Type).
I have already wasted a lots of time trying get my an answer for my questions, the only thing I found is about using VNC on android, but nothing about X11 Forwarding.
If you don't recommend doing any of the above, could you tell me why not [RAM/Technical reason]?
Thanks in advance | You will get thanks after answering me
I guess, I shouldn't scratch "Thanks in advance". Otherwise I might had a better luck.
Hi, may be is too late, i find your post searching info on chrooting.
It's possible installing busybox and like you may had find : on nexus ubuntu can be used.
You can use it from terminal or from vnc so you will have X.
I installed busybox but the bootubuntu script don't find chroot, i installed it from GOT's OpenRecovery (first option)
Xorg does run, I tested it, but the screen becomes garbled, because of Android and Xorg tries to write to screen simultaneously.. I'm trying to find a solution for that lately.
@theGanymedes you run xorg without vnc ? you havn't display error ?
screenshot ?
thanks
New X server written as app for Android
Somebody has written an xserver for android:
my20percent.wordpress.com/2012/02/27/android-x-server/
It is open source:
code.google.com/p/android-xserver/
And is on the market (search for 'x server').
Needs some work but could be the answer to running all gui apps from a chroot inside android!

Can one access or use the underyling linux O/S in an Android device?

Maybe I'm misinterpreting what I've read, but my understanding is that Android "O/S's" are a VM (via Dalvik?) that runs within a pared down linux O/S. Assuming that's not too far off, is it possible to add packages or programs to that Linux O/S? Could I, for example, add regular old Wireshark to it? Obviously the programs would have to be compiled for the correct cpu platform.
Thanks.
The kernel is Linux one... As for your question, provided you have rooted your phone, you can create a chroot there and run Linux apps on your phone.
A howto for Debian here: http://forum.xda-developers.com/showthread.php?t=996746

[Q] Debian in chroot: KDE software etc. not working

Hi,
I am running a rooted stock JB. I have a Debian (tried also Ubuntu) in a chroot environment running, and I am using a vncserver to run X applications. Some things like lxde and gedit are running fine. Others, in particular all KDE applications (but also others) are not running at all or look completely chaotic (most GUI elements missing, black and/or in the wrong place) and are unusable. I tried some time ago the same thing on my phone (HTC Desire Z with CyanogenMod - unfortunately recently bricked so I cannot try anything anymore), there everything ran just fine (despite very slow).
Is this maybe due to missing features in the kernel of the stock firmware? Are there any ticks to get around these limitations without flashing another ROM? (I would rather not void my warrenty...)
Thanks for any insight,
Martin
No ideas? Is anyone running some Linux in chroot on the original firmware?
mhier said:
No ideas? Is anyone running some Linux in chroot on the original firmware?
Click to expand...
Click to collapse
I run Ubuntu in chroot everyday but I've never messed with vnc.
Sent from whatever device I happened to pick up.
My guess is that the number of people using Ubuntu on the tf700 is quite small, so you might not be able to get the answer to your question here. However, there is a support thread for Ubuntu on the tf700, you might want to ask your question there:
http://forum.xda-developers.com/showthread.php?t=2014759

[Q] Login on lilstevie's Ubuntu 11.10 not possible, no superuser rights

Hey guys,
I searched the forum and did not really find an answer, it is probably even a Linux question, but even in the Linux forums i havent found a fix yet;
I installed lilstevies OLife Premium Dualboot on my TF101, everything went well. At the Login screen I can only log on with the "Guest Session" option though, since I never created an user during the installation.
Since I cant do sudo operations with the guest user ("sudo: unable to change sudoers gid: Operation not permitted") I cannot use Ubuntu, since i don't have the root password (because Ubuntu has none?). I already tried a lot of "standard" username/password combinations. What am I doing wrong?
Thank you all in advance!
greg388 said:
Hey guys,
I searched the forum and did not really find an answer, it is probably even a Linux question, but even in the Linux forums i havent found a fix yet;
I installed lilstevies OLife Premium Dualboot on my TF101, everything went well. At the Login screen I can only log on with the "Guest Session" option though, since I never created an user during the installation.
Since I cant do sudo operations with the guest user ("sudo: unable to change sudoers gid: Operation not permitted") I cannot use Ubuntu, since i don't have the root password (because Ubuntu has none?). I already tried a lot of "standard" username/password combinations. What am I doing wrong?
Thank you all in advance!
Click to expand...
Click to collapse
during the install when you set up you
Someone with a bit more experience with ubuntu might be able to help more but without root permissions/ access to the recovery console, i dont think your able to create an admin user(might be an exploit or something but i would doubt it). might have to bite the bullet and reinstall(as a last resort)
I'm 99% sure there's no single user mode but there are dirty ways of doing it though... You can try to mount the ubuntu partition in android (mmcblk0p8 if I remember correctly), and manually edit the passwd/shadow (make sure to back up first). I'm not that familiar with ubuntu's way of handling users through sudo but you should be able to chroot to your ubuntu partition then adduser/usermod/whatever or just modify sudoers directly from android to allow guests, boot into it, login, add a normal user etc.. then remove guest from sudoers.
I'm sure there's other ways to do it, just nothing "clean" per say like a single user mode or a rescue mode.

[Completed] [Q] Linux Deploy Help

Hi, I have successfully installed Kali Linux on my LG G3 using Linux Deploy and VNC viewer. I am successfully able to use everything, but I am relatively new to Linux. Still, I was able to switch to root in the terminal. I also tried creating a new account, giving it root access, and then switching to it, which I was able to do, again only in the terminal. However, even if I had root access in the terminal (confirmed by "whoami"), it seemed that I did not have any other root privileges. For example, everything, including the desktop, was read only. I tried switching users using the gui and that did not work at all. I also tried to open the root folder under computer and I wasn't able to do that either. I have tried changing the preferences in linux deploy to log me in as username "root," but I think even then I am logged in as a user that is named root... not the actual root administrator. If anyone could offer some guidance with this situation that would be great. I have spent a lot of time searching google and more to find the solution to this problem, but I haven't had any success. Thanks in advance.
I'd also like to add that some normal commands were not accessible in the terminal even though it said that I had root privileges. Therefore, I could not get done what I would like to even if I were to do everything in the terminal .
jackfitz5 said:
Hi, I have successfully installed Kali Linux on my LG G3 using Linux Deploy and VNC viewer. I am successfully able to use everything, but I am relatively new to Linux. Still, I was able to switch to root in the terminal. I also tried creating a new account, giving it root access, and then switching to it, which I was able to do, again only in the terminal. However, even if I had root access in the terminal (confirmed by "whoami"), it seemed that I did not have any other root privileges. For example, everything, including the desktop, was read only. I tried switching users using the gui and that did not work at all. I also tried to open the root folder under computer and I wasn't able to do that either. I have tried changing the preferences in linux deploy to log me in as username "root," but I think even then I am logged in as a user that is named root... not the actual root administrator. If anyone could offer some guidance with this situation that would be great. I have spent a lot of time searching google and more to find the solution to this problem, but I haven't had any success. Thanks in advance.
Click to expand...
Click to collapse
There is not a specific XDA forum for Kali Linux.
You might find some help in Ubuntu Touch General
or [APP] Linux Deploy by AbuYahya
Which S3? SGH-I747 or I9300, I9305 ...

Categories

Resources