Question: Chroot/X11 Window/Xorg/Xserver in Android - Android Software/Hacking General [Developers Only]

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!

Related

"Help" With Creating Rom.

Hello Guys,, Im Going 2 Install Linux " Ubuntu 9.10 " And i wanted 2 know if is that ( operating system ) the 1 i need for making rom's and such.
And if so then could anyone help me with the steps on how to create a rom.
im really getting serious about this soo please help.
and i have a cdma hero "sprint"
Rooted
Recovery Img 1.5.2
Rom: [Rom-dev] (2-18-10) AOSP 2.1 | Sensors Now Work by darchstar
Thankx In Advance
lonnie23 said:
Hello Guys,, Im Going 2 Install Linux " Ubuntu 9.10 " And i wanted 2 know if is that ( operating system ) the 1 i need for making rom's and such.
And if so then could anyone help me with the steps on how to create a rom.
im really getting serious about this soo please help.
and i have a cdma hero "sprint"
Rooted
Recovery Img 1.5.2
Rom: [Rom-dev] (2-18-10) AOSP 2.1 | Sensors Now Work by darchstar
Thankx In Advance
Click to expand...
Click to collapse
You should be okay using Ubuntu 9.10. I currently have that installed, but haven't done anything yet with it. Although, I actually plan on switching to Fedora 12 -- since I'm more familiar with the Red Hat distro's.
If you need help getting started, you should look into these tutorials below, provided and documented by Gbhil from Android Central.
How to create custom Icons:
http://forum.androidcentral.com/htc-hero-roms-hacks/6070-changing-hero-application-icons.html
ROM FAQ/How to Build ROMS:
http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
How to setup Ubuntu for the Android SDK:
http://forum.androidcentral.com/hac...ramming-envrionment-using-ubuntu-windows.html
OR here:
http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html
Gbhil does an excellent job explaining how things work and how to begin your journey with Android development, hope that helps.
I've used the links above to begin making a custom icon pack, and hopefully soon enough another AOSP ROM.
I use Ubuntu 9.10 for everything I do. Make sure you're root user in that by doing these commands in the terminal:
Code:
sudo passwd
*your root password here*
*repeat root password*
Then, log out of that user, and click "other" to log in. Type root for username, and the password you set with sudo passwd for password. Note, Ubuntu 9.10 is also referred to as Ubuntu Karmic or Karmic Koala, so those are the same as 9.10.
Thankx But could you help with more?
When i try to install the Sun's Java Runtime Engine (JRE) and Java Development Kit (JDK) thier both .bin files + i dont understand on how to make them work.
could you help?
lonnie23 said:
Thankx But could you help with more?
When i try to install the Sun's Java Runtime Engine (JRE) and Java Development Kit (JDK) thier both .bin files + i dont understand on how to make them work.
could you help?
Click to expand...
Click to collapse
I don't know about that, I just use the java built into ubuntu.
How did you set up yours then?
Doo you make roms and stuff??
Because i have a dual boot with my win7 and ubuntu
lonnie23 said:
How did you set up yours then?
Doo you make roms and stuff??
Because i have a dual boot with my win7 and ubuntu
Click to expand...
Click to collapse
All the links I gave you will give you the information to get started. Again, follow this think, it even says what its going to help you install:
We are now going to install these programs
• The Ubuntu Linux Desktop.
• Sun's Java Runtime (JRE) and Development Kit (JDK).
Java Runtime is only needed to run the Eclipse IDE. Android has its own optimized Java VM (Dalvik).
• The Eclipse IDE.
• The Android Software Developer's Kit (SDK).
• The Android Developer Tool (ADT), a special Eclipse plugin.
http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html
If you want to test if Java works -- you can run the commands java --version, which java and echo $JAVA_HOME (which java and echo $JAVA_HOME should correctly state where you chose to set your environment variables when you run them). Otherwise you could open a text editor (I use VIM) and write the universal "hello world" in Java and test Java that way to make sure the program runs.
Lastly, everyone here is more than willing to help you -- but try to search for the information via Google, here on XDA, or other Android forums yourself first -- you'd be surprised that they probably already have your answer.
HeroMeng said:
I use Ubuntu 9.10 for everything I do.
Click to expand...
Click to collapse
I don't think Ubuntu 9.10 is bad -- but I've always worked with Red Hat/CentOS and at work we use RHEL servers, so Fedora is an easy switch for me.

rooting?

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

[Q] Installing any linux distribution on htc desire s

Hello,
I have bought the htc desire s in december'11 and I assess that I hate android and all the available custom roms so I try to get some other distribution to work on my desire s.
IMPORTANT: Please don't tell me something about the sense or how nice a chroot works, I am asking for a native installation guide.
All I want is a clean base-system (ubuntu/debian/gentoo/angstrom/...) that will boot.
Does someone know a way (howto/wiki/manpage ) to get a proper distribution to work on this device?
My Workflow:
-> install distribution
-> get wlan access to work
-> boot device with autoconnect (wlan) and sshd (openssh or dropbear)
-> connect via ssh and get an graphical frontend like X-server to work.
best regards
invalid id
Why did you buy an Android phone when you hate Android?
Anyway, are you planning to use the phone to make calls?
If so, you can't use any standard Linux distributions.
If you do some googling you should be able to find a guide to install Ubuntu and run X on it.
I think there's an official version for dual core phones, but unfortunately that does not affect this phone.
Ubuntu doesn't run native, but through chroot.
There are no native installation guides.
If you can remake any distribution to have 4MB kernel and load everything from another partition - you can try to make a native installation yourself. Look at the mounts in loaded system, look at the kernel code and see how you need to compile one, and make it.
Otherwise - sell the phone and buy something else.

[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] How Android kernel and Virtual Machine work

Dear all,
I'm trying to reconstruct the Andriod on my phone. So far i managed to download source code for Linux core including files like "mount, cp, modprobe,...", however I notices thete are other files in /system/bin like "am, pm, ..." which control the other layer of Android OS. How can I download the source code for these kind of files. Also in framework we have "am.jar" which seems to have direct relation to Java VM. Maybe it is better to also ask how Java VM works on Android. I do not ask about general knowledge because more or less I know how it works. Basicly I need to know which files are related to the process of running Apps on Android and what they do.
Best wishes.

Categories

Resources