If you want to root your Motorola Droid Razr xt910, but can’t find proper Linux docs, here is a small howto. Do it on your own responsibility, you may brick your device!
This method should work on any Linux distribution, be it Ubuntu, Debian, Fedora and so on. My Razr was running Android 4.0.4 when I was rooting it.
The first thing you have to do, is to make sure you have
adb command working, available from http://developer.android.com/sdk/index.html – we won’t cover
adb installation in detail.
Next one – connecting your phone via USB to your laptop or PC and enabling USB debugging mode in your phone: menu -> System settings -> Developer options -> USB debugging.
You will also need su, busybox and superuser app. For convenience, you can download them all from here (1.5 MB tar.bz archive):
The last step is running these commands (they are also included in the tar.bz2 archive, above). Note that you have to modify the PATH variable, if your
adb binary is not in your standard path:
export PATH=$PATH:/usr/src/android-sdk-linux/platform-tools adb wait-for-device adb shell "rm -r /data/local/12m/batch 2>/dev/null" adb shell "ln -s /data /data/local/12m/batch" adb reboot adb wait-for-device adb shell "rm /data/local.prop" adb shell "echo 'ro.sys.atvc_allow_all_adb=1' > /data/local.prop" adb reboot adb wait-for-device adb remount adb push su /system/bin/su adb shell "chmod 6755 /system/bin/su" adb shell "ln -s /system/bin/su /system/xbin/su 2>/dev/null" adb push busybox /system/xbin/busybox adb shell "chmod 755 /system/xbin/busybox" adb shell "/system/xbin/busybox --install /system/xbin" adb push Superuser.apk /system/app/Superuser.apk adb shell "rm /data/local.prop" adb shell "rm /data/local/12m/batch" adb shell "chmod 771 /data" adb shell "chown system.system /data" adb reboot adb wait-for-device adb kill-server