yashsingh1/xdaforums huggingface dataset:
[Motorola Atrix HD] TheOnlyMrVideo:
Using Fedora Linux - update

If you go back a few posts, you'll find what I posted about using Fedora Linux, as I have that already running on a box.

I couldn't get samba to work correctly, in that I could connect to samba, but file access was denied. After searching the net (google is your friend), I didscovered that SELinux was to blame. Whoever decided that the stock SELinux configuration was going to keep samaba from working was/is an idiot. At least as far as I'm concerned. Why SELinux isn't by default set up to work with samba is beyond logical thinking. In any event, the quickest fix is to disable SELinux:

http://www.howtoforge.com/fedora-17-samba-standalone-server-with-tdbsam-backend

If you want SELinux to play nice with Samba, there is a comment about what you need to do down in the comment section.

That now allowed me to mount the share on the phone. But all was not well yet. If you are on a 64-bit Linux kernel, you'll get the following when trying to run adb:

[b]ROOT <7>[/b] ./adb kill-server
./adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64

That is because adb is a 32-bit program, linked share, instead of static. So the 32-bit library needs to be installed:

[b]ROOT <12>[/b] yum install ncurses-libs.i686

Things are now looking up, sort-of:

[b]ROOT <13>[/b] ./adb kill-server
[b]ROOT <14>[/b] ./adb shell /storage/rfs0/pwn
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
mount: Operation not permitted
sh: can't create /system/xbin/busybox: Read-only file system
Unable to chmod /system/xbin/busybox: No such file or directory
sh: busybox: not found
cp: /storage/rfs0/su: Permission denied
Unable to chown /system/bin/su: No such file or directory
Unable to chmod /system/bin/su: No such file or directory
link failed Read-only file system
[+] Rooting complete!
[b]ROOT <15>[/b] ./adb install /tmp/share/eu.chainfire.supersu.apk
4634 KB/s (1379298 bytes in 0.290s)
pkg: /data/local/tmp/eu.chainfire.supersu.apk
Success

Going back to the phone, I touched the APP button and found the SuperSU app. When I started it, I got:

There is no SU binary installed,
and SuperSU cannot install it.
This is a problem.

Yep, it is a problem. Obviously the errors that occurred while trying to run pwn are the reason. Now what?

---------- Post added at 01:04 PM ---------- Previous post was at 12:55 PM ----------

Unfortunately, rerunning the kill-server and pwn script, did not resolve the issue. I got the same set of errors.
[Motorola Atrix HD] L7iharsha:
If anyone getting no binary installed reboot your Ahd and then re run super su it will show installation success same thing happened to me alsp
[Motorola Atrix HD] TheOnlyMrVideo:
If only that were the case. As can be seen from my above posting, the attempt to install the binary file(s) met with errors.
[Motorola Atrix HD] hatefuel19:
Wasn't working on my 64-bit server until you came along.

Sudo apt-get install ia32-libs

Worked first try after that
[Motorola Atrix HD] TheOnlyMrVideo:
You are welcome.
[Motorola Atrix HD] schufly:
Wifi

Can some one please explain to me the conditions that must exist for the wifi connection btw the linux host and the handset to work? I have a wireless router with security on. Can't get it to work. Getting error messages. Would really appreciate the help. Thanks!
[Motorola Atrix HD] MertDogan:
I telling you own doing.

Go ubuntu web sites and downloaded ubuntu.

Click ubuntu setup and installed.

Reboot my computer

Asked to me Windows8 or Ubuntu, Selected ubuntu and again reboot.

Ubuntu opened and I opened terminal emulator, I wrote all codes and Connected File Manager with wifi, than connected usb storage and wrote superuser code and Mission Completed. :)

İf I helped to you, I'm glad. :)

Thanks again for root ''djrbliss'' :)
[Motorola Atrix HD] physivic:
"*****ings"

I admit that I can't be of any utility to this community until I can find some direction on the exploration and error-trail front, but it has to begin somewhere. Telling someone their frustrations amount to "*****ing" isn't terribly useful, either, and might make them feel like their frustrations don't amount to anything.

I appreciate the direct response, but I'm looking for a way in. My post and others who appear to be "*****ing" is meant to reveal motive to contribute just as much as is meant to express a genuine, grounded frustration with the arbitrarily-imposed limitations of the device. My motive would be to contribute some Linux and ADT experience to the act of unlocking the device. I just have no idea where to begin, or what, precisely, to put my time into. Didn't I mention I did a little Android exploration myself?

Motorola deserve a ton of respect for this device and others, as they are often achievements in engineering, but some beancounter at the company made a decision to lock us out of this. I think that decision stupendously shortsighted.

In case anyone isn't paying attention, the general issue of devices being locked by writ and not by technological necessity is the subject of serious political contention at this very moment. If you sit on the other side, I respect your view, but I wouldn't be the first to say that some folks at Moto and other manfuacturers have yet to explain themselves in a way that makes sense for the consumers paying to use their devices and losing money when things go wrong in a way that the manufacturers take advantage of or just disregard in order to allow a premature end to the device in question. They've figured a way to profit from the unexpected, and that produces more ire than anyone "*****ing" might be able to capture in a constructive thread. I realize that the tone here is to be kept productive, but surfing threads is a time-waster that could really easily be solved by a little constructive talk that points them toward the solutions they seek.

Sounds like religious talk. Cool and everything, just a little out of place in a tech thread. Many thanks to Dan, whoever that is. I do wish I knew how he came to attempt exploiting a Windows-based communication protocol to gain root filesystem access on an Android device, but maybe there's a post somewhere explicating that respectable leap of logic.

And, just in case people would like to see more appreciation and less whining,

<3 <3 <3 THANKS EVERYBODY <3 <3 <3
[Motorola Atrix HD] skeevydude:
Dan is a security expert who's helped the Android community, expecially us Motorola users, by obtaining root for many devices. If it weren't for him then many devices wouldn't have any development at all. Its because of him that we're able to do thins like custom roms, mods, etc. Almost everyone with a Motorola phone from the past year or so owes thanks to him.

Well, the exploit is actually pretty simple once you realize exactly what's going on. It uses the samba share because that allows us to mount\access a filesystem with root permissions which allows us to execute a binary with root permissions.

I've been working on a method to root via samba from another android device. Defy custom roms come with adb as part of the rom which allows it to run the adb commands from the phones terminal. Everything works except for the rooting commands where I'm getting an IO error.

After looking at the exploit many times, I think that we lost USB Storage support because we could mount our internal sd on a Linux box and do a modified version of the current exploit -- or mount USB Storage, make a small ext4.img on phone, mount that with PC, run modified exploit. Basically, USB Storage would allow Linux users to easily add su permissions on the phones internal storage -- su -c "thunar" -- and you have a su file manager able to browse the phones internal sd...

I hope this helps you understand the root method a bit more and why it works. Also, use an Ubuntu 10.04 live cd. 12.xx sometimes has issues with Android...and my PC's wifi card.

//In my opinion, you don't play games on your PC or need to use proprietary Windows-only software, you have no reason to use Windows. Once you learn Linux and find a Disto+Environment combo you'll soon find you like Linux better than Windows. My preferred combo is Debian Sid via Siduction and XFCE -- though I'm switching to RAZOR QT once it get more mature. I don't recommend Debian Sid\Siduction for new Debian users -- use Linux Mint Debian Edition.
[Motorola Atrix HD] tie7:
I want to confirm that I tested this root exploit for European Motorola Razr Maxx XT910 (JB 4.1.2 official GSM EU OTA "982.124.14.XT910.Retail.en.FR")

and unfortunately it is

not working for Motorola Razr

:/

Errors returned by Motoshare exlpoit:

ubuntu@ubuntu:/tmp/share$ sudo /tmp/share/adb kill-server
ubuntu@ubuntu:/tmp/share$ sudo /tmp/share/adb shell /storage/rfs0/pwn
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
mount: Operation not permitted
sh: can't create /system/xbin/busybox: Read-only file system
Unable to chmod /system/xbin/busybox: Read-only file system
cp: /storage/rfs0/su: Permission denied
Unable to chown /system/bin/su: Read-only file system
Unable to chmod /system/bin/su: Read-only file system
link failed File exists
[+] Rooting complete!

I got also reviews from other European users and they all have similar situation :(
[Motorola Atrix HD] deprecate:
/storage/rfs0/pwn: not found

Ubuntu 12.04.2 LTS LiveCD

Samba is setup fine and I am able to connect to the share from my phone over wifi via ES Explorer.

I am getting this error:

ubuntu@ubuntu:/tmp/share$ sudo /tmp/share/adb kill-server
ubuntu@ubuntu:/tmp/share$ sudo /tmp/share/adb shell /storage/rfs0/pwn
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
/system/bin/sh: /storage/rfs0/pwn: not found
ubuntu@ubuntu:/tmp/share$

I have toggled airplane mode hoping it was something silly...no joy. I have stopped/restarted samba hoping that some voodoo tech was the answer...nope.

I have googled around and noticed a few others have reached the issue I am seeing but there is no solution I can find. So has anyone a suggestion?

:confused:
[Motorola Atrix HD] skeevydude:
ES probably uses something other than /storage/rfs0 as its samba directory. Figure out ES's samba directory and replace /storage/rfs0/ with it.
[Motorola Atrix HD] tie7:
To mount Samba share on the phone use the "Files" app, instead of ES Explorer.
[Motorola Atrix HD] skeevydude:
Not all of us have that option in the "Files" app. In those cases we gotta think outside the box and use what we have available, not what's supposed to be done.

There's more users than just the Atrix HD's posting here since this exploit is supposed to work for more devices than ours.

To deprecate

I distro hopped from Manjaro to Siduction a few days ago and I don't have samba installed or configured to test ES out for you.
[Motorola Atrix HD] deprecate:
ES doesn't actually mount anything. I assumed it did and I should not have assumed. I did some research and discovered that ES is able to read smb shares just fine but does not provide a local mounting point. That seems odd and wrong but hey, at least I got a response.

I will try that when I get home from work. Didn't even notice the app on my device.

No worries. I will give Files a go later and see what I see. :)
[Motorola Atrix HD] skeevydude:
You could have been one of those Verizon RAZR dudes that doesn't have the Remote Shares ability in Files. :( Sucks to be them.

Good luck and hope you get root. :fingers-crossed:
[Motorola Atrix HD] deprecate:
yep, that was it. ES does not create a local mount point for samba shares...go figure. Now to remove all of the fun things that ATT/Moto decided were needed. Oddly enough, when I did a sys restore before rooting, sueruser was installed by default.
[Motorola Atrix HD] henslo:
http://xdaforums.com/showthread.php?t=

This is a great app for getting Linux distros and booting off your phone , just thought I'd share
[Motorola Atrix HD] Android Pizza:
Your link is cut off.

Sent from my Motorola Atrix HD using Xparent Green Tapatalk 2
[Motorola Atrix HD] henslo:
https://play.google.com/store/apps/...le&utm_medium=organic&utm_term=drivedroid+apk

Or here

http://xdaforums.com/showthread.php?t=2196707
[Motorola Atrix HD] hugoqueiroz94:
In my Razr, i cannot use the file apk, can i use the Astro SMB module, Samba Filesharing for Android, AndSMB (samba client)?
[Motorola Atrix HD] Android Pizza:
From what I've heard it's only possible with the AHD's stock file manager, but if you're that desperate you can try. But let me tell you, there's almost no hope you'll ever root your Razr using this exploit. Go ahead and unlock your bootloader, a voided warranty is nothing to be upset about.

Sent from my Motorola Atrix HD using Xparent Green Tapatalk
[Motorola Atrix HD] raydm:
thank you. got it rooted in 5 minutes
[Motorola Atrix HD] NYSEAN1:
Factory reset won't work. You have use RSDlite and flash it back to ATT jellybean sbf stock....root will be long gone!!!
[Motorola Atrix HD] Android Pizza:
That's not really necessary. There are plenty root removing apps on the Play Store.

Sent from my MB886 using Xparent Green Tapatalk 2
[Motorola Atrix HD] EcHoFiiVe:
Supersu has a option for permanent unroot. Can also confirm this exploit working.
[Motorola Atrix HD] Android Pizza:
It's not an exploit, all it does is delete Busybox and SU and uninstall itself. In other words, it removes all files that give you root access. So yes, I can confirm it working.

Sent from my Motorola Atrix HD using Xparent Green Tapatalk 2
[Motorola Atrix HD] EcHoFiiVe:
No, I was talking about the root exploit. I know deleting files isn't an exploit... .-.
[Motorola Atrix HD] Android Pizza:
Oh, I thought the first and second part were one. My bad :o

Sent from my MB886 using Xparent Green Tapatalk 2
[Motorola Atrix HD] nello33:
Finally Rooted Atrix HD on 4.1.1

Finally got the time to root my Atrix HD on 4.1.1
[Motorola Atrix HD] EcHoFiiVe:
What networking tools do you use?
[Motorola Atrix HD] nello33:
None really..

The Lunix box must be connected to the same network as the device's WiFi connection. And i used the 'Remote Storages' option on the 'Files' application on the device.

That was it.
[Motorola Atrix HD] EcHoFiiVe:
I was talking about in android, notices your setup and saw you had a folder named networking tools... Haha
[Motorola Atrix HD] quickv8s10:
Can someone help me out here.. I am trying to root my atrix hd with jelly bean I get to the very last part and I get (error: device not found).. When I plug my phone up to the usb cable it dosen't go into deugging mode. What do I need to do so it will see my phone? It may be posted before and I read over it but I am lost..
[Motorola Atrix HD] nello33:
Haha :D

Just Ping, DNS, Telnet and Port Scanning tools i use for work, work a lot with domains.

---------- Post added at 11:15 PM ---------- Previous post was at 10:59 PM ----------

Not sure if it this is your problem but Motorola is very picky about the USB cable, make sure you are using a Motorola USB Cable.
[Motorola Atrix HD] bnaivar:
No matter what version of Ubuntu I use I always get the same error message from my phone:

NETWORK ERROR

There is a problem in your Network

Connection with remote host.

Please repair your network

communication and try again.

Is there a network configuration in Ubuntu I'm leaving out or what? I'm able to download the files in the setup while I'm in Ubuntu alright, so I guess it's talking to my network.

Why won't my phone connect?
[Motorola Atrix HD] ssuds:
probably a stupid question, but is there any way to do this without a wifi network? I'm currently on a wired network... Thanks!
[Motorola Atrix HD] pianoman102:
Root

Hi, being a little out of loop with rooting with ubuntu, would someone be able to help me? i can't seem to get samba to download the deb. its saying 404 not found... haha. Help?
[Motorola Atrix HD] nello33:
Atrix Rooting made simple

Ok, so i had some time on my hands so created some simple steps to root Motorola Atrix HD on 4.1.1+ using Windows PC.

This is done using VirtualBox and a custom Ubuntu image with samba already configured.

Instructions

RootAtrixHD.rar

Steps created from http://xdaforums.com/showthread.php?t=2143437

Hope this works for you. Let me know if you have any questions.

nello33 at gmail dot com

Enjoy
[Motorola Atrix HD] bnaivar:
Every time I extract the files i get an error message that the atrix.ova file is corrupt.
[Motorola Atrix HD] skeevydude:
Maybe -- For the exploit to work, we have to be connected to the same network as the Samba share. Other than wifi, the only ways I can think of are either an Ethernet>USB adapter or to reverse tether your PC's internet connection to your phone. Since I doubt you have the adapter on hand, here's some links about reverse tethering on a non-rooted phone. Hope they help.

http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html

http://www.makeuseof.com/answers/how-can-i-reverse-tether-my-android-via-usb-without-rooting/

http://web2techsolution.wordpress.com/2012/02/02/reverse-tethering-on-android-phone-without-rooting/

http://www.codeproject.com/Articles/191930/Android-Usb-Port-Forwarding

//If you have a laptop with wifi, you might be able to install linux on it, turn it into a hotspot, connect to it and do the exploit that way.
[Motorola Atrix HD] nello33:
It work fine for me but i have re-added file again.
[Motorola Atrix HD] physivic:
nnnn.... maybe.

I tried a couple of different wifi networks before mine would work. In fact I had to move before it was possible... All of the WAPs I was joining were managed systems with the ports blocked.

If there were a way to connect the phone to a network with a cable, sure. As far as I know, there isn't, but you can think on that with your given hardware a little more efficiently than we can. Perhaps there is a router lying around with a USB port in it... I would be searching the app store for some such solution. The exploit does require the phone to access an IP on the local network, and thus it must be connected. This is not a stupid question at all. If IT people were afraid to ask questions whose answers appear to be obvious, we would hit so many stupid roadblocks that Android development would never occur. Keep at it, but you can easily set this up with a laptop and any router. It doesn't even have to be connected to the Internet, so just digging a Linksys out of the attic would work. The only major thing that needs to work on it is DHCP, and even that's negotiable if you can manually set IPs with it. Good luck.
[Motorola Atrix HD] NYSEAN1:
Make sure you have debugging mode enabled before you plug in...Settings...turn Developer options ON then down the screen...check USB debugging...hope works:)
[Motorola Atrix HD] DeerSteak:
How very awesome. I just got an Atrix HD for super-cheap for use on Straight Talk, and rooting this thing to dump the bloatware would be awesome. You making it easier is even better. :D :D :D
[Motorola Atrix HD] pianoman102:
Wifi

Hey could anybody help with a workaround for the wifi? I'm able to get to the point where it needs to be mounted but my ip address is a 129.xxx not a 198.xxx. I'm not sure how to work with that.
[Motorola Atrix HD] ssuds:
Awesome, thanks for the help! I do have a laptop with WiFi, I think i'll give turning it into a hotspot a shot.
[Motorola Atrix HD] ssuds:
Alright, had my friend set up a hotspot with connectify and tried to root through that.

Everything seemed to be going well, but then I got this

ubuntu@ubuntu:/tmp/share$ sudo /tmp/share/adb shell /storage/rfs0/pwn
mount: Operation not permitted
sh: can't create /system/xbin/busybox: Read-only file system
Unable to chmod /system/xbin/busybox: No such file or directory
sh: busybox: not found
cp: /system/bin/su: Read-only file system
Unable to chown /system/bin/su: No such file or directory
Unable to chmod /system/bin/su: No such file or directory
link failed Read-only file system
[+] Rooting complete!

Figured it might be normal and went on, SuperSU app was installed on my phone. But when I open it, it says

There is no SU binary installed, and SuperSU cannot install it. This is a problem.

Not sure how to proceed...

I searched this thread and saw a few people had this same issue, but couldn't figure out the solution...
[Motorola Atrix HD] DeerSteak:
Took me like 4 tries but it worked.

First try was with someone's pre-created virtualbox image. Couldn't get it to see the phone

Second try was with a wubi-installed 12.04 LTS. Couldn't get it to run adb

Third try was with 10.04 live CD on that same PC. Couldn't keep a stable network connection. It's an Ivy Bridge box so maybe it's too new

Fourth try was with the 10.04 live CD on a Lenovo Sandy Bridge laptop. Worked like a charm.

But now I'm rooted. W00t!
[Motorola Atrix HD] adamr240:
Has anyone tried this? I cannot get Ubuntu to work at all.
[Motorola Atrix HD] TecknoFreak:
I am getting the same error, any solution for this?
[Motorola Atrix HD] adamr240:
I keep getting a "error:device not found" on the last command to root.
[Motorola Atrix HD] corys00:
Plug your phone in, open up VirtualBox Manager then go to Settings then USB hit the green plus sign. I added "Unknown Device 1BCF blah blah lah. and make sure motorola mb886. Once I did those two things I booted up Ubuntu and it worked.
[Motorola Atrix HD] pianoman102:
the issue i'm having is the network still not having the appropriate ip address. im still getting a 129. or 127 instead of the 192. its kind of frustrating.
[Motorola Atrix HD] nello33:
Then your issue seems to be router issue.

---------- Post added at 08:06 AM ---------- Previous post was at 07:28 AM ----------

Had that problem when i was using a third party application to create remote storage. Try the builtin 'Files' app on the device to attach the remote storage.

Good Luck.
[Motorola Atrix HD] TheOnlyMrVideo:
As per the original instructions, the built-in "Files" app was used. That is not the problem. It would have been nice if that was it, but, it isn't.
[Motorola Atrix HD] ssuds:
I'm actually using the built in files app, so that shouldn't be the issue
[Motorola Atrix HD] pianoman102:
yes the files app is fine. my issue is that its still telling me that the directory wasn't found or it didn't exist. i have it mounted and the share is open and everything. do i need to connect it different, i.e. as a camera or as a file transfer device?
[Motorola Atrix HD] neondunker:
I followed the instructions but when I try to run the code, i dont get any message.

I never had used Linux for rooting purposes before, Do I need to do something else before? Debugging is on.
[Motorola Atrix HD] ryuben2k:
Hi, there's a easy way to root youre phone. Go to general section and go to easier root exploit and download the motochopper and follow the instruction. Its so easy compare to this, i tried this many times and i failed. By the way im using Atrix Hd Bell version.
[Motorola Atrix HD] neondunker:
Just did and worked incredible.

Thanks!!!
[Motorola Atrix HD] ryuben2k:
Youre welcome. Now you can unlock the bootloader, its easy same you root you're phone.
[Motorola Atrix HD] pianoman102:
Is this for jelly bean?
[Motorola Atrix HD] bnaivar:
YES! Hot DiggityDamn! ROOTED! :)
[Motorola Atrix HD] clockcycle:
Effortless

That's just sheer crazyness, thank you for the clickless root. Bought this Atrix HD just yesterday to play with and BAM!

Thanks @djrbliss

Edit: Debating my need to unlock BL. I only really need root for very basic apps that require it. I guess better to do it before next ota locks it out..