Droid 4 Rooting Issue

Discussion in 'Droid 4 Hacks' started by simonizhere, May 4, 2013.

DroidForums.net is the premier Android Forum - Registered Users do not see these ads. Please Register - It's Free!
  1. simonizhere
    Offline

    simonizhere New Member

    Joined:
    May 4, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Hey guys I am trying to root my Droid 4 from verizon wireless and I am having a problem doing it. A little info before I post what I am getting from the Command Promp. I am running this on my windows 7 64 bit laptop, I have all the drives updated and the cables find and recognize the phone, also I have tried running it in admin mode... The issue is it can't find a particular folder and I would like to somehow reinstall the folder without doing the factory reset and rooting the phone afterwards. I would like to just keep everything as is. Anyways here is what I got. Let me know what you think I should do in solving this issue. Thanks too all in advance :)

    [*]
    [*] Motofail: Universal Motorola Android Root Exploit (Windows version)
    [*] by Dan Rosenberg (@djrbliss)
    [*]
    [*] Tested on Droid 3, Droid Bionic, Droid RAZR, and Droid 4
    [*]
    [*] Before continuing, ensure USB debugging is enabled, that you
    [*] have the latest Motorola drivers installed, and that your phone
    [*] is connected via USB.
    [*]
    [*] Press enter to root your phone...
    Press any key to continue . . .
    [*]
    [*] Waiting for device...
    [*] Device found.
    [*] Deploying payload...
    failed to copy 'motofail' to '/data/local/motofail': Permission denied
    Unable to chmod /data/local/motofail: No such file or directory
    [*] Owning phone...
    /system/bin/sh: /data/local/motofail: not found
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Attemping persistence...
    remount failed: Operation not permitted
    failed to copy 'su' to '/system/bin/su': Read-only file system
    Unable to chmod /system/bin/su: Read-only file system
    link failed File exists
    failed to copy 'busybox' to '/system/xbin/busybox': Read-only file system
    Unable to chmod /system/xbin/busybox: Read-only file system
    failed to copy 'Superuser.apk' to '/system/app/Superuser.apk': Read-only file sy
    stem
    [*] Cleaning up...
    /system/bin/sh: /data/local/motofail: not found
    rm failed for /data/local/motofail, No such file or directory
    [*] Rebooting...
    [*] Exploit complete!
    [*] Press any key to exit.
    Press any key to continue . . .

    Thanks again for helping a fellow droid user ;)
  2. tcrews
    Offline

    tcrews Premium Member Premium Member Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,355
    Likes Received:
    22
    Trophy Points:
    38
    Location:
    Lexington, SC
    Ratings:
    +22
    What OS is your phone running? 4.1.2? If so you need to use the Razr_blade root method as all the other/older methods no longer work.

    Same dev (Dan Rosenberg) just newer method/exploit.
  3. simonizhere
    Offline

    simonizhere New Member

    Joined:
    May 4, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Yes I am using the 4.1.2 os. I will try and see if the Razr_blade root works.
  4. simonizhere
    Offline

    simonizhere New Member

    Joined:
    May 4, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    So I have tried that method and this is what I got:

    [*]
    [*] Razr Blade: Motorola Droid Razr 4.1 Root Exploit (Windows version)
    [*] by Dan Rosenberg (@djrbliss)
    [*]
    [*] Thanks to p3droid for assistance in testing.
    [*]
    [*] Note: this will not work on Razr HD, Razr M, etc.
    [*]
    [*] Before continuing, ensure USB debugging is enabled, that you
    [*] have the latest Motorola drivers installed, and that your phone
    [*] is connected via USB.
    [*]
    [*] Please carefully follow any instructions provided in the exploit.
    [*]
    [*] Press enter to root your phone...
    Press any key to continue . . .
    [*]
    [*] Waiting for device...
    * daemon not running. starting it now *
    * daemon started successfully *
    [*] Device found.
    [*] Phase one...
    link failed No such file or directory
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Phase two...
    /system/bin/sh: cat: /data/data/com.motorola.contextual.fw/files/DataClearJarDex
    .jar: No such file or directory
    [*] Complete the following steps on your device:
    [*] 1. Open the Smart Actions application.
    [*] 2. Select "Get Started".
    [*] 3. Select "Battery Saver".
    [*] 4. Select "Save".
    [*] 5. Press the Home button.
    [*]
    [*] Press enter here once you have completed the above steps.
    Press any key to continue . . .
    199 KB/s (3477 bytes in 0.017s)
    /system/bin/sh: can't create /data/data/com.motorola.contextual.fw/files/DataCle
    arJarDex.jar: No such file or directory
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Phase three (this will take a minute)...
    failed on '/data/logger' - Permission denied
    mkdir failed for /data/logger, File exists
    Unable to chmod /data/logger: Operation not permitted
    link failed Permission denied
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Phase four...
    172 KB/s (91992 bytes in 0.521s)
    1334 KB/s (1867568 bytes in 1.367s)
    928 KB/s (574184 bytes in 0.604s)
    490 KB/s (63838 bytes in 0.127s)
    [*] Cleaning up...
    Segmentation fault
    /system/bin/sh: can't create /data/data/com.motorola.contextual.fw/files/DataCle
    arJarDex.jar: No such file or directory
    [*] Rebooting...
    [*] Exploit complete!
    [*] Press any key to exit.
    Press any key to continue . . .

    Still no success :/
  5. simonizhere
    Offline

    simonizhere New Member

    Joined:
    May 4, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    So I have tried that method and this is what I got:

    [*]
    [*] Razr Blade: Motorola Droid Razr 4.1 Root Exploit (Windows version)
    [*] by Dan Rosenberg (@djrbliss)
    [*]
    [*] Thanks to p3droid for assistance in testing.
    [*]
    [*] Note: this will not work on Razr HD, Razr M, etc.
    [*]
    [*] Before continuing, ensure USB debugging is enabled, that you
    [*] have the latest Motorola drivers installed, and that your phone
    [*] is connected via USB.
    [*]
    [*] Please carefully follow any instructions provided in the exploit.
    [*]
    [*] Press enter to root your phone...
    Press any key to continue . . .
    [*]
    [*] Waiting for device...
    * daemon not running. starting it now *
    * daemon started successfully *
    [*] Device found.
    [*] Phase one...
    link failed No such file or directory
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Phase two...
    /system/bin/sh: cat: /data/data/com.motorola.contextual.fw/files/DataClearJarDex
    .jar: No such file or directory
    [*] Complete the following steps on your device:
    [*] 1. Open the Smart Actions application.
    [*] 2. Select "Get Started".
    [*] 3. Select "Battery Saver".
    [*] 4. Select "Save".
    [*] 5. Press the Home button.
    [*]
    [*] Press enter here once you have completed the above steps.
    Press any key to continue . . .
    199 KB/s (3477 bytes in 0.017s)
    /system/bin/sh: can't create /data/data/com.motorola.contextual.fw/files/DataCle
    arJarDex.jar: No such file or directory
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Phase three (this will take a minute)...
    failed on '/data/logger' - Permission denied
    mkdir failed for /data/logger, File exists
    Unable to chmod /data/logger: Operation not permitted
    link failed Permission denied
    [*] Rebooting device...
    [*] Waiting for phone to reboot.
    [*] Phase four...
    172 KB/s (91992 bytes in 0.521s)
    1334 KB/s (1867568 bytes in 1.367s)
    928 KB/s (574184 bytes in 0.604s)
    490 KB/s (63838 bytes in 0.127s)
    [*] Cleaning up...
    Segmentation fault
    /system/bin/sh: can't create /data/data/com.motorola.contextual.fw/files/DataCle
    arJarDex.jar: No such file or directory
    [*] Rebooting...
    [*] Exploit complete!
    [*] Press any key to exit.
    Press any key to continue . . .

    Still no success :/
  6. tcrews
    Offline

    tcrews Premium Member Premium Member Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,355
    Likes Received:
    22
    Trophy Points:
    38
    Location:
    Lexington, SC
    Ratings:
    +22
    Where did you extract the .zip on your PC?

    I did mine to the desktop and ran it from there.....you could also try unzipping to C:, it'll create the directory on your desktop or C: named razr_blade.

    Double click to enter that folder and double click the run.bat file to execute it and then follow the directions that are displayed.

    If you are running it without decompressing it it will fail.

    rrr
  7. simonizhere
    Offline

    simonizhere New Member

    Joined:
    May 4, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Thanks for everyone's support and input on this topic. I have tried and re-tried and finally got the phone rooted. Once again thank you all for giving me advice.
  8. sumdude
    Offline

    sumdude New Member

    Joined:
    Nov 20, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I too have a rooting issue with my Droid 4 with JB installed:

    ##############################################
    System Version: 98.72.18.XT894.Verizon.en.US

    Android 4.1.2

    Baseband: CDMA_N_05.25.00R LTEDC_U_09.lD.00

    Webtop: wt-3.0.0

    Kernal: 3.0.8-g47e586
    hudsoncm@il93lnxdroid84 #1
    SMP PREEMPT: Fri Feb 8 13:28:58 CST 2013

    Build: 9.8.2O-72_VZW-19

    Build Date: Fri Feb 8 13:11:57 CST 2013
    ##############################################

    My computer system:
    Win 7 Pro 32bit
    Admin login
    using 'Run as administrator' for 'cmd' shell
    AVG Antivirus
    #####################################

    I have been trying to root with the "DROID_4_Utility_Jellybean_XT894_WinMacLin.zip " package. I really like the time spent on the batch wrapper by mattlgroff and the great work of Mr. Rosenberg, but unfortunately, the rooting procedure has failed every time I've tried it.


    Steps I've tried so far:
    ---------------------------------------------------------------
    Un-installed the Moto Drivers.

    Re-installed Moto Drivers "Motorola_End_User_Driver_Installation_5.9.0_32bit " from the zip package.

    Removed all ">dev/null"s from script to be able to see the failure points.

    Set up phone to "USB Debugging".

    Set up USB connection to "Media Device"

    Script result:
    [*]
    [*] Razr Blade: Motorola Droid Razr 4.1 Root Exploit (Windows version)
    [*] by Dan Rosenberg (@djrbliss)
    [*]
    [*] Thanks to p3droid for assistance in testing.
    [*]
    [*] Note: this will not work on Razr HD, Razr M, etc.
    [*]
    [*] Before continuing, ensure USB debugging is enabled, that you
    [*] have the latest Motorola drivers installed, and that your phone
    [*] is connected via USB.
    [*]
    [*] Please carefully follow any instructions provided in the exploit.
    [*]
    [*] Press enter to root your phone...
    [*]
    [*] Waiting for device...
    [*] Device found.
    [*] Phase one...
    rm failed for 2, No such file or directory

    The command that resulted in this failure in the script is:
    adb shell "rm /data/dontpanic/apanic_console 2"

    Obviously, the file 'apanic_console' is not present. It would seem that this script presumes you to have installed JB from either option one or two, prior to attempting rooting.

    In probing the phone with {adb shell} commands, I cannot even list the contents of the {/data} folder:

    Result:

    shell@cdma_maserati:/ $ ls data
    ls data
    opendir failed, Permission denied

    Set up USB connection to "Mass Storage"

    Same script failure point, same failure message.

    Tried different USB ports (no hubs, etc.), same result

    Tried '-Settings > Apps > Smart Actions > Clear data', no help.

    Tried running from desktop & C:\ same result.
    I have also tried letting the script run to the end, thinking that the missing file/folder was just an anomaly, but the results are the same.. NO ROOT.

    The Dev Mgr has no exclaimation points in yellow triangles for either configuration, so I believe that the computer can talk to the phone properly.

    I have read much in the forums about similar failures, but this particular one seems to not have affected anyone else. My main failure occurs before any reboots, so the phone is certainly booted up and running properly.

    Any help that anyone could provide in correcting this problem would be greatly appreciated.
  9. myfishbear
    Offline

    myfishbear Developer Developer

    Joined:
    Jan 30, 2011
    Messages:
    1,292
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    in the sea. sometimes on land as well
    Ratings:
    +30
  10. sumdude
    Offline

    sumdude New Member

    Joined:
    Nov 20, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Thanks for the reply, however..

    The 'Run.bat' code for this method is the same as referenced in my post. It was just incorporated into a multi-purpose batch file to allow flashing a ROM, rooting and installing SafeStrap, all with one menu.

    I am really puzzled that there isn't more info available for the D4 out there.

    Any other suggestions? (Please!)
  11. myfishbear
    Offline

    myfishbear Developer Developer

    Joined:
    Jan 30, 2011
    Messages:
    1,292
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    in the sea. sometimes on land as well
    Ratings:
    +30
    factory reset then follow the directions. its pretty clear. rooted mine and 3 others with the tool so it is user errors not the tool. if you can't do it it may be better that you don't root cause you can fowl up your phone.
  12. sumdude
    Offline

    sumdude New Member

    Joined:
    Nov 20, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I have tried a factory reset as well. My problem seems to be that ADB cannot gain access to the folders it needs to on the phone.

    Even when I try to just list the files in '/data/' with ADB, I get a permission error.
    Here is a capture from ADB:

    adb shell
    shell@cdma_maserati:/ $ cd data
    shell@cdma_maserati:/data $ ls
    opendir failed, Permission denied


    If I try:

    adb root

    I get:

    adbd cannot run as root in production builds

    I can appreciate that you have rooted other devices, as have I over the years and that bricking the phone is possible. I can also appreciate that user error seems the likely explaination, BUT I assure you that I have followed all the directions as-written each time I've attempted this.

    The trouble I seem to be having is access to key folders with ADB.
    I certainly am not an Android developer, but I know my way around a CLI and if I cannot get access permissions to the proper folders, I sure won't be able to execute the scripts that depend on this access.

    Since I haven't seen it mentioned in any of the discussions, I have not tried to use ADB to change the permissions of the '/data/' folder. Is this even an option? If a permission change is required for access, I can change it back to default-level permissions after the exploit is done. I just need a bit of guidance here.

    I do greatly appreciate your replies and look forward to learning the error of my ways..

    :question::question:
  13. myfishbear
    Offline

    myfishbear Developer Developer

    Joined:
    Jan 30, 2011
    Messages:
    1,292
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    in the sea. sometimes on land as well
    Ratings:
    +30
    try this its an updated version
    https://docs.google.com/file/d/0B_nizg6yUZ0NRjVTZlQ0d1hXVVU/edit?pli=1
  14. sumdude
    Offline

    sumdude New Member

    Joined:
    Nov 20, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Unfortunately, the binaries and scripts in this package match (file sizes down to the byte are the same for all) the binaries and scripts that I have been using.
    Maybe I should backtrack a bit and give the complete history of the phone:

    I recently bought this unit on eBay. The phone is in great condition and shows no signs of tampering by the previous owner. When I received it, the phone had been factory-reset, so I bypassed the initial screen with the 4-corner-tap method. I then checked 'About Phone' for the software version. I am assuming that the software update to 4.1.2 was OTA (but I have no evidence of this fact).
    The WiFi & Bluetooth both operate normally. I have purchased a SIM card for the phone, but I have not installed it as yet, since I wanted to get the device rooted and personalized before I tried to activate it on my plan.

    Next I began the research for D4 rooting with JB 4.1.2 and settled on the 'DROID_4_Utility_Jellybean_XT894_WinMacLin' by mattlgroff. After verifying that the rooting portion was the same code (& credit given) as Mr. Rosenberg, I executed the batch file. After it ran to completion, I used RootChecker to verify root access & found it was not rooted.

    Next I altered the batch file to remove the redirects to 'dev/null' so I could follow the progress of the steps, which is when I discovered that it was failing access to the '/data' folder.

    And so here we are.. stumped!
  15. myfishbear
    Offline

    myfishbear Developer Developer

    Joined:
    Jan 30, 2011
    Messages:
    1,292
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    in the sea. sometimes on land as well
    Ratings:
    +30
Search tags for this page

droid 4 root 4.1.2

,
droid 4 rooted
,

how to root droid 4

,

how to root droid 4 4.1.2

,
motorola droid 4 root 4.1.2
,

root droid 4

,

root droid 4 4.1.2

,
root motorola droid 4 4.1.2
,

rooting droid 4

,
rooting droid 4 4.1.2