As unlocking bootloaders becomes harder with each update, rooting android phones seems to get easier and easier. I found Motochopper by Dan Rosenberg on http://www.droidrzr.com/ and used it to root a Motorola Razr MAXX HD. It was as easy as running a simple bat/bash script and clicking Enter.
[*] Motochopper: Android root exploit (Linux/OS X version)
[*] by Dan Rosenberg (@djrbliss)
[*] Tested on the Motorola Razr HD, Razr M, Razr Maxx HD, and Atrix HD.
[*] Supports lots of other devices as well. ;-)
[*] Before continuing, ensure that USB debugging is enabled and that
[*] your phone is connected via USB.
[*] WARNING: This will likely void the warranty on your device. I am
[*] not responsible for any damage to your phone as a result using this
[*] Press enter to root your phone...
[*] Waiting for device...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[*] Device found.
[*] Pushing exploit...
5375 KB/s (1283460 bytes in 0.233s)
[*] Pushing root tools...
5025 KB/s (366952 bytes in 0.071s)
5403 KB/s (1867568 bytes in 0.337s)
4651 KB/s (1578585 bytes in 0.331s)
[*] Rooting phone...
[+] This may take a few minutes.
[*] Cleaning up...
[*] Exploit complete. Press enter to reboot and exit.
It doesn’t get much easier than that! The whole process only took a few seconds to complete. I used the run.sh script from OpenSUSE 12.3. But it’s reportedly just as easy from windows. I’m not responsible for your voiding your warranty, bricking your phone, or any of that other fun stuff. So don’t unlock features for yourself, don’t free yourself from forced apps, don’t unlock your phone. There I said it.
Anyway, the easiest way to test to make sure your phone is actually rooted is to go to the Google Play app store and download an app intended for use on a rooted phone such as Titanium backup, Rom manager, or simply root checker.
Here’s the sha1sum of my downloaded motochopper.zip
My carrier, Verizon, are particularly bad about adding their own bloated apps. But in the latest versions of android, disabling most of the bundled apps is trivial without even the need for root … Read More »
Root uses psql to list all databases and then looping through each one, root uses pg_dump as postgres piped into pbzip2 which is a parallel implementation of bzip. Any new databases will be picked up by the script each time it is run.
The code above loops through a bunch of color codes, exporting the GREP_COLOR variable for each one and grepping something with that color highlighting from /proc/meminfo, a place all linux users should have available and get output from.
Making a basic C style python struct is a simple one liner. But why stop here? The least you could do is implement some built in class methods. Ok it’s a silly example, but implement some fun things and before you know it you’ll have a full blown class on your hands.
Send the USR1 signal to the pid using the kill command. Sending -9 or -15 will most definitely kill the dd, but sending the USR1 signal will output the current progress instead.
I wanted to reuse a piece of code that’s complicated with recursive calls to itself and the whole thing prints to standard output. Instead of modifying the code to write to a file object, I just adjusted my own code with an internal class to redirect stdout to a string while the recursive code is running.
Just two files right? CTRL-H and now you can see the hidden files too. No need to go into settings or change the view. It works with list view, icon view, or any view.