Related
From a development and user standpoint I am of course interested acquiring root for the android side of things but my main interest and focus on gaining the ability to modify and enhance the webtop image that provides the "full feature" capability for Firefox. So in a sense there is a goal for Double Root on Atrix. Rooting first the android side and then rooting the webtop Linux instance.
I am guessing from the looks of it that webtop is based on Ubuntu Light. It is also likely run in a VM otherwise the phone instance of android (Dalvik) and the Webtop could not run simultaneously. Given that the platform is probably something to the effect of:
Linux File System -----> Dalvik VM ------> Android Runtime
Linux File System -----> Some other VM? -------> Ubuntu Light
I am running under some assumptions (not having an Atrix till next week ):
* The "Some other VM" is not Dalvik since I don't think as an App VM.
So some of the questions I seek to answer right away are:
What VM is running (presumed) Ubuntu light
Does that VM have security around the disk image (singed)
Is the (Webtop disk image) encrypted/signed
What is needed to get root access on the Webtop side.
The best way to get root on the Webtop side is to go after the file system. I am guessing that will be signed but it MUST be writable at some level to save state.
Just a bunch of musings. I am looking forward to getting my atrix so I can start answering some questions.
I think getting root to one or the other will make it VERY easy to root ther other.
I for one hope it is ubuntu lite, or something debian based. Hopefully make it really easy to port over a full distro.
being able to boot into a full linux distro would be the cats meow!
i have full expectations of being able to do this within a month or two ;-)
Do you guys think it would be possible in the coming weeks/months to be able to boot into a full linux distro on the Atrix itself - without the laptop dock?? that would be ultimate awesomeness right there!
jgc121 said:
Do you guys think it would be possible in the coming weeks/months to be able to boot into a full linux distro on the Atrix itself - without the laptop dock?? that would be ultimate awesomeness right there!
Click to expand...
Click to collapse
well the nexus one and nexus s and dell streak and motorola Droid (OG) could run ubuntu so I hope the atrix will.
emoose said:
Linux File System -----> Dalvik VM ------> Android Runtime
Linux File System -----> Some other VM? -------> Ubuntu Light
I am running under some assumptions (not having an Atrix till next week ):
Click to expand...
Click to collapse
It's also possible that they have a Linux variant running on bare-metal, without a VM. I have seen some architectures in the embedded world that allow each CPU core to work together as a typical dual-core system, OR to boot a different OS kernel on each core.
The latter case would be the most interesting in terms of getting the most out of Linux on the Atrix, assuming the second OS can be rooted. This could (speaking with almost no knowledge of Android itself), also be another angle of attack/defeat though if that means the webtop linux kernel also needs to be signed...
Then again, a VM does make more sense in terms of the near-instant boot time of the WebTop mode.
I can't wait to see the "double root... oh my god... what does it mean???" Youtube video come out in a few weeks =)
If I can get a command prompt and root access on the Webtop instance I will sound just like the Double rainbow guy.
Things I believe to be true right now.
WebtopSession app initiates then session when you plug in HDMI. This is no different than any other peripheral launch.
WebtopSession app (speculating based on other posts) checks you connection type and provisioning. If you don't have a tethering plan it doesn't allow you ton continue. If you are on wifi it allows you to continue.
If you start off on WiFi and then change network state to mobile radio (and no tethering plan) will it discontinue the session?
The WebtopSession App doesn't look like it does anything other than manage the initiation of the Linux (Webtop) session.
There is nothing in the dumps that looks like it could remotely be a disk file which makes me think that there is a partition that is different that the normal android partitions. I would love to see a partition map of a rooted phone.
jgc121 said:
Do you guys think it would be possible in the coming weeks/months to be able to boot into a full linux distro on the Atrix itself - without the laptop dock?? that would be ultimate awesomeness right there!
Click to expand...
Click to collapse
im also wondering this!
edit: Erm. Whoops. A little bit of research and it turns out Motorola has left the code in for when they test the OS in "goldfish-qemu", an Android emulator. Sorry ><
It's got to be QEMU. In the retail firmware dump in /etc/init.goldfish.sh:
Code:
# call 'qemu-props' to set system properties from the emulator.
#
/system/bin/qemu-props
So what I'm thinking after parsing the information I've got...
... WEBTOP is simply a QEMU (ARM version?) instance running off of some unknown image/partition on flash that outputs to HDMI with some hackery to support local media [mounted in the host OS, Android] and local control and USB keyboard/mouse input, along with special extensions to allow for use of the Android/host OS instance within the VM.
labsONE said:
edit: Erm. Whoops. A little bit of research and it turns out Motorola has left the code in for when they test the OS in "goldfish-qemu", an Android emulator. Sorry ><
It's got to be QEMU. In the retail firmware dump in /etc/init.goldfish.sh:
Code:
# call 'qemu-props' to set system properties from the emulator.
#
/system/bin/qemu-props
So what I'm thinking after parsing the information I've got...
... WEBTOP is simply a QEMU (ARM version?) instance running off of some unknown image/partition on flash that outputs to HDMI with some hackery to support local media [mounted in the host OS, Android] and local control and USB keyboard/mouse input, along with special extensions to allow for use of the Android/host OS instance within the VM.
Click to expand...
Click to collapse
So then you are saying it could be possible to do something like this:
https://help.ubuntu.com/community/WindowsXPUnderQemuHowTo
jgc121 said:
Do you guys think it would be possible in the coming weeks/months to be able to boot into a full linux distro on the Atrix itself - without the laptop dock?? that would be ultimate awesomeness right there!
Click to expand...
Click to collapse
Running the webtop or a full distro without any docks will be just plain awesome...
emoose said:
If I can get a command prompt and root access on the Webtop instance I will sound just like the Double rainbow guy.
Click to expand...
Click to collapse
Oh maaan. Double root all the way What does it mean???
In all seriousness, the Atrix is certainly the most interesting phone from a developers standpoint, but I'm sitting and watching for a bit as I want to see how much of a problem the signed bootloader becomes first.
So does the Signed Bootloader rule out the Double root ? or changes to the Webtop APP/Module ?
hrishi2das said:
So does the Signed Bootloader rule out the Double root ? or changes to the Webtop APP/Module ?
Click to expand...
Click to collapse
It depends. Signed bootloader refers to the fact that the phone boots only if certain partitions match the Moto signatures.
The question is, where does the Webtop mode boot from, and is any part of *that* boot process signed?
I don't know why you guys think it has to be running in a VM. It's more likely they have just install Xorg and Firefox on Android and run them, with X displaying on the HDMI.
Exactly the same as the ubuntu-on-android hacks, but instead of using VNC to view X, you just display it on HDMI.
The phone view is an X11 app which communicates with the Android system server to mirror the display.
I seriously doubt they are using QEMU or anything like that.
Bah! Edited post since my last one was way off.
Did some looking and it looks like qemu in this instance is related to running some proc emulator for android development sdk support.
There this is a bunch of stuff out if you google: android goldfish
Its related to ARM targets for the sdk and in this instance probably not webtop.
I'd still really like to see the output of:
adb shell
cat /proc/mtd
Timmmmmm said:
I don't know why you guys think it has to be running in a VM. It's more likely they have just install Xorg and Firefox on Android and run them, with X displaying on the HDMI.
Exactly the same as the ubuntu-on-android hacks, but instead of using VNC to view X, you just display it on HDMI.
The phone view is an X11 app which communicates with the Android system server to mirror the display.
I seriously doubt they are using QEMU or anything like that.
Click to expand...
Click to collapse
Agree. But from the DG's / dump could not find more interesting info except the WebtopSession.apk. I guess webtop stuff live in another patition which is actived when webtop session starting.
Could anyone who has a rooted Atrix dump the phone while webtop on?
sexydroid said:
Agree. But from the DG's / dump could not find more interesting info except the WebtopSession.apk. I guess webtop stuff live in another patition which is actived when webtop session starting.
Could anyone who has a rooted Atrix dump the phone while webtop on?
Click to expand...
Click to collapse
I don't have the webtop device. What about while the phone is plugged into the TV? If it'd help any just give me the steps and I'll do it.
Yes if you plug your phone into the tv it will be able to access webtop.
Head over here and root your phone normally, no webtop open, undocked.
Make sure ADB is Enabled (settings > applications > development, check usb debugging)
dock your phone on the laptop dock
open a cmd prompt on your pc
adb shell
su (accept on phone interface)
passwd (choose a password and confirm it)
sulogin (enter the password you created above)
There ya have it, root access on the webtop! you should see "[email protected]"
Sorry for my ignorance but will this allow me to mirror the screen on a monitor or tv using the hdmi cable?
Sent from my MB860 using XDA App
That's cool, just wondering what we can do with this!
yokozuna82 said:
Sorry for my ignorance but will this allow me to mirror the screen on a monitor or tv using the hdmi cable?
Click to expand...
Click to collapse
Not yet, altough progress on it is being made.
Doubbbbleee Root! Combooo breaker!
I love this forum. Don't even have my Atrix yet, but the excitement is killing me.
I would really not recommend changing the root password just in case moto has scripts or processes that have the password built in. A easier way to achieve [email protected] is
su
/osh/bin/bash
"root" on the webtop
From my understanding the webtop and android are running the same kernel and have access to the same shells (i.e. I can run the webtop bash from within the android terminal), users and other data. Where the webtop differs from android is the use of an actual X11 server, but the server is actually running in android. Try running ps | grep X while the webtop is running but in a android shell, you will see /usr/bin/X as a running process, now run /osh/bin/bash and ps aux | grep X, you will see the same process number associated with /usr/bin/X. We can see that X is running with hdmi out.
wealeat said:
I love this forum. Don't even have my Atrix yet, but the excitement is killing me.
Click to expand...
Click to collapse
Same! Get mine on my birthday, March 19th. Can't wait to see what's possible then!
kjbreil said:
I would really not recommend changing the root password just in case moto has scripts or processes that have the password built in. A easier way to achieve [email protected] is
su
/osh/bin/bash
"root" on the webtop
From my understanding the webtop and android are running the same kernel and have access to the same shells (i.e. I can run the webtop bash from within the android terminal), users and other data. Where the webtop differs from android is the use of an actual X11 server, but the server is actually running in android. Try running ps | grep X while the webtop is running but in a android shell, you will see /usr/bin/X as a running process, now run /osh/bin/bash and ps aux | grep X, you will see the same process number associated with /usr/bin/X. We can see that X is running with hdmi out.
Click to expand...
Click to collapse
Thats not full root access to the ubuntu side tho, that is just root over the android side(ubuntu side is inside the android side). Now we can properly access root inside the ubuntu environment.
So far nothing has failed to run from changing that. Start up, use, shutdown, there are no errors related to sulogin.
designgears said:
Thats not full root access to the ubuntu side tho, that is just root over the android side(ubuntu side is inside the android side). Now we can properly access root inside the ubuntu environment.
Click to expand...
Click to collapse
That doesn't really make sense, you are either uid 0 or you are not.
Sent from my MB860 using XDA App
designgears said:
Thats not full root access to the ubuntu side tho, that is just root over the android side(ubuntu side is inside the android side). Now we can properly access root inside the ubuntu environment.
So far nothing has failed to run from changing that. Start up, use, shutdown, there are no errors related to sulogin.
Click to expand...
Click to collapse
It would usually be bad practice to presume a known root password when coding something like this. Scripts needing root should get suid set on them, and thus no plain text password would be involved.
So I don't really envisage any issues with a changed root pw
So with root everywhere, can we add an option that shows up when docked,
ie. if i just dock my atrix and i can HD entertainment and listen to music show photos, etc.
if i dock with hdmi, i get the webtop experience in ubuntu, which i love, But being the g33k i am, if i had an addition option that let me load fedora, i would smile very g33ky, and say Look what i can do!...
i guess this is a dev request.
i am using the atrix as my daily driver, but do have a backup phone, so if a dev wants me to test something out with my setup, i would be glad to do anything to better the dev of this device.
regards,
Killster
forgive my ignorance here, but if I am docked into the laptop dock, my microusb port is being used in the laptop dock. How exactly will i be able to sync to my pc (with USB debugging enabled) to run adb? are running some kind of splitter cable?
tchan012 said:
forgive my ignorance here, but if I am docked into the laptop dock, my microusb port is being used in the laptop dock. How exactly will i be able to sync to my pc (with USB debugging enabled) to run adb? are running some kind of splitter cable?
Click to expand...
Click to collapse
adb wireless i think
What does this get me?
So what does root access on Webtop grant me that I wouldn't have access to before?
If you have root on your phone you have root on webtop, you are uid 0, so it doesn't gain you anything that you don't already have.
Sent from my MB860 using XDA App
Okay..I Know this is simple but its not somthing to do at 5am I frogot what I entered as the password..
Pulled a
Su
Passwd
********
Sulogin
********
Passwd not found:
Tried every old pass I had on it nothing, any way to spare the phone reset and redo the root password?
Update: Ive tried reseting the phone, re flashing the retail sbf and I am still having problems with this its bugging the hell outta me used the OP preps:
su
# passwd *****
passwd ******
passwd: not found
# sulogin
sulogin
Give root password for maintenance
(or type Control-D to continue): ******
Login incorrect.
Give root password for maintenance
(or type Control-D to continue):
Any ideas?
kennethpenn said:
Doubbbbleee Root! Combooo breaker!
Click to expand...
Click to collapse
LOL Nice!
kennethpenn said:
Doubbbbleee Root! Combooo breaker!
Click to expand...
Click to collapse
LOL that made my morning. And the original post of course.
Is this working still?
So, I've been doing some Android development tutorials, as I have almost no experience in any sort of coding. I'm working in Ubuntu 11.10 with android-sdk-linux, Eclipse IDE, & java version 1.6
Things are going ok, but...
I tried to export a signed apk of my application project from Eclipse yesterday, and when I try to install it on my D3 I get this error:
HTML:
Error Parsing Package
What am I doing wrong?
thanks in advance...
lunacie said:
So, I've been doing some Android development tutorials, as I have almost no experience in any sort of coding. I'm working in Ubuntu 11.10 with android-sdk-linux, Eclipse IDE, & java version 1.6
Things are going ok, but...
I tried to export a signed apk of my application project from Eclipse yesterday, and when I try to install it on my D3 I get this error:
HTML:
Error Parsing Package
What am I doing wrong?
thanks in advance...
Click to expand...
Click to collapse
Sorry bro, I have no idea. You might get more help Android Development and Hacking or more specifically Android Software Development which is a subforum of the first link. Sorry I personally can't help you out more than that, wish I could.
If your device is recognized as a development device, you should be able to just hit the 'Run' button and it should compile your app, install it to the device and automatically launch it. Your device needs to have USB debugging turned on and you need to have the ADB driver installed (need to get it from Motorola if this is a Moto device, it won't install automatically like the rest of the storage drivers).
My Droid3 shows up as ???????? in adb. I was exporting a signed apk to install because I can't get the device to recognize. Am I missing a configuration of some kind? I'm guessing there's some kind of vendor code or something that I need for ADB to work properly with my phone?
tnx
EDIT: think I figured it out. it's the udev rules, looks like i'm on the right track....
EDIT 2: Got it! Thanks for the heads up.
I apologize in advance if this is covered elsewhere but after searching I'm only able to find mfastboot files for osx from 2011 posted on the atrix forums. Is this sufficient? Does anyone know of a current source?
I'm on OSX 10.9 and have adb and fastboot from the android SDK installed but can't find the motorola fastboot utility referred to by
"NOTE: You must use the Motorola fastboot utility to flash (included in the Darwin/, Linux/ or Windows/ directory). Please do NOT use the Android fastboot utility"
I've downloaded the Motorola Device Manager and the stock factory image for the Verizon Developer Edition.
What am I missing?
This is preemptive (I have no current need to flash back to stock) but I'd like to have the ability to do so if needed.
I am not in front of my MacBook at the moment, but I believe the fastboot with the SDK is what you need. At least this is what I used when I rooted and it worked great.
Sent from my XT1060 using Tapatalk
zenrubble said:
I am not in front of my MacBook at the moment, but I believe the fastboot with the SDK is what you need. At least this is what I used when I rooted and it worked great.
Sent from my XT1060 using Tapatalk
Click to expand...
Click to collapse
From my understanding due to limitations on the size of the files you can flash using the fastboot from the SDK, you need the Motorola fastboot to flash the images of the stock /system provided on moto's website.
Flashing smaller files like a custom recovery would work with the fastboot from the sdk, but to go back to stock you need mfastboot.
Thanks for the clarification. I don't recall seeing mfastboot anywhere in the files I downloaded from Motorola.
Sent from my XT1060 using Tapatalk
https://dl.dropboxusercontent.com/u/7632904/Mfastboot-4.4.zip
cellzealot said:
https://dl.dropboxusercontent.com/u/7632904/Mfastboot-4.4.zip
Click to expand...
Click to collapse
Thank you, that was what I was searching for - I copy the File in the Darwin folder to my SDK folder where the fastboot on my Mac & thats it?
I don't use a Mac, sorry, so I am not certain if you need to add that folder to your path in the OS or run from terminal in that directory.
Someone familiar with them will have to help you with the details.
Anyway to root the Fire on a Mac? I see the Windows tool but nothing for Mac...
Mac . . .
Do we have to help?
What FireOS version do you have? Did you avoid connecting to wifi?
There may not be a point n click rooting tool for macs but you can always do it manually.
It is new, never connected to internet. I have enabled ADB but fast boot does not see the device, Where do I need to get the drivers for the Fire at for Mac? I have FireSO 5.0.1
You can get drivers from google.
This also came up on google.
GUIDE Set up ADB and Fastboot on a Mac easily (With Screenshots!)
blueberry.sky said:
Mac . . .
Do we have to help?
What FireOS version do you have? Did you avoid connecting to wifi?
There may not be a point n click rooting tool for macs but you can always do it manually.
Click to expand...
Click to collapse
I'll port http://forum.xda-developers.com/amazon-fire/general/root-fire-5th-gen-autoroot-script-noob-t3276923 with your help. Try the .sh file and tell me the result.
Think these are up to date.
https://github.com/simmac/minimal_adb_fastboot
Support page
http://forum.xda-developers.com/android/general/adb-fastboot-binaries-os-x-inclusive-t2941205
blueberry.sky said:
You can get drivers from google.
This also came up on google.
GUIDE Set up ADB and Fastboot on a Mac easily (With Screenshots!)
Click to expand...
Click to collapse
Can use the long winded way from there with the sdk but the attached files are for older version of adb that wouldn't connect to my friend's Fire as it's a Lollipop based device.
glitch3yf0x said:
I'll port http://forum.xda-developers.com/amazon-fire/general/root-fire-5th-gen-autoroot-script-noob-t3276923 with your help. Try the .sh file and tell me the result.
Click to expand...
Click to collapse
i'll gladly help.
dustintinsley said:
i'll gladly help.
Click to expand...
Click to collapse
Sweet! I'm working to make this fully compatible with linux, windows, and Mac OS X by tonight plus a few last minute added features. I have no idea how to emulate Mac OS X so when the time comes would you mind telling me if the script runs properly?
glitch3yf0x said:
Sweet! I'm working to make this fully compatible with linux, windows, and Mac OS X by tonight plus a few last minute added features. I have no idea how to emulate Mac OS X so when the time comes would you mind telling me if the script runs properly?
Click to expand...
Click to collapse
Code:
/Users/dustintinsley/Downloads/Fire5/fire_root.sh: line 1: @echo: command not found
Plug in your device with a USB data cable.
/Users/dustintinsley/Downloads/Fire5/fire_root.sh: line 3: syntax error near unexpected token `('
/Users/dustintinsley/Downloads/Fire5/fire_root.sh: line 3: `echo Please enable ADB debuging in the developer options (Tap Serial Number in Device Options 20 tim's if it is hidden)
Dustins-MacBook-Air:~ dustintinsley$
dustintinsley said:
Code:
/Users/dustintinsley/Downloads/Fire5/fire_root.sh: line 1: @echo: command not found
Plug in your device with a USB data cable.
/Users/dustintinsley/Downloads/Fire5/fire_root.sh: line 3: syntax error near unexpected token `('
/Users/dustintinsley/Downloads/Fire5/fire_root.sh: line 3: `echo Please enable ADB debuging in the developer options (Tap Serial Number in Device Options 20 tim's if it is hidden)
Dustins-MacBook-Air:~ dustintinsley$
Click to expand...
Click to collapse
Those will be an easy fix. Dummy me forgot to remove those. I thought I did. Thanks!
glitch3yf0x said:
Those will be an easy fix. Dummy me forgot to remove those. I thought I did. Thanks!
Click to expand...
Click to collapse
Just let me know i will test again...
dustintinsley said:
Just let me know i will test again...
Click to expand...
Click to collapse
Alright. I need to get a hold of the ADB platform-tools for MAC. Is there a way you can install android SDK for me and use the SDK manager to download platform-tools (latest version)? Then go into the platform-tools and send me the fastboot and adb tool?
http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
glitch3yf0x said:
Alright. I need to get a hold of the ADB platform-tools for MAC. Is there a way you can install android SDK for me and use the SDK manager to download platform-tools (latest version)? Then go into the platform-tools and send me the fastboot and adb tool?
http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
Click to expand...
Click to collapse
I really need these files in the above post. They are the last step before final testing and release. If anyone can upload them, please do it.