WebTrickz
TRENDING
  • How to Turn off Samsung Galaxy S21, S21+ and S21 Ultra
No Result
View All Result
  • News
  • Reviews
  • Social Media
    • Facebook
    • Twitter
    • YouTube
    • Messenger
    • Instagram
    • Snapchat
    • WhatsApp
    • TikTok
  • Apps
  • How To’s
  • Apple
  • iPhone
  • Google
  • Android
  • Mac
SUBSCRIBE
  • News
  • Reviews
  • Social Media
    • Facebook
    • Twitter
    • YouTube
    • Messenger
    • Instagram
    • Snapchat
    • WhatsApp
    • TikTok
  • Apps
  • How To’s
  • Apple
  • iPhone
  • Google
  • Android
  • Mac
No Result
View All Result
WebTrickz
No Result
View All Result
Home Android

How to Root Galaxy Nexus without unlocking Bootloader

Mayur Agarwal by Mayur Agarwal
October 17, 2012
in Android, How To's

A great news for all Samsung Galaxy Nexus users! Until now, there was no possible way to root Galaxy Nexus without unlocking the device bootloader. Even though unlocking Galaxy Nexus bootloader is not a tricky task as it’s a matter of running one command but what really cumbersome is that unlocking completely wipes the device data. Fortunately, one can easily backup apps & data without rooting in ICS and Jelly Bean and restore the backup later, but still you need to manually backup all the internal storage data like documents, photos, media, etc. which is certainly not so convenient for everyone. Now, you No More need to worry about unlocking the device just to get root privileges!

efrant, moderator at XDA-Developers forum has posted a step-by-step procedure to root Android devices running ICS and Jelly Bean without unlocking bootloader. (Root any version of ICS and JB released to date). Main credit goes to Bin4ry, who has managed to find a way to exploit a timing difference in the “adb restore” command that makes it possible. But 1-click root batch script by Bin4ry doesn’t seems to work on Galaxy Nexus, so we will do it via command-line following efrant’s guide.

Note: This does not wipe any data on your device but still it’s recommended to Backup your important data before proceeding. We won’t be responsible for any data loss.

Tutorial – Rooting Galaxy Nexus without unlocking the bootloader

~ This has to be done over ADB, so download and install the USB drivers first for Galaxy Nexus. You can skip this step if ADB drivers are already setup for your Nexus.

1. Download ‘Root-without-unlock.zip’ and extract it to a folder on your desktop.

2. Turn-on USB Debugging on your device (Settings > Developer Options > Enable USB Debugging) and connect it to computer via USB cable.

3. Right-click the folder ‘Root-without-unlock’ while holding down the Shift key, and select ‘Open command window here’.

24-09-2012 17-08-13

4. Command prompt will open up. Enter the command adb devices to confirm that your phone is properly connected over ADB interface.

5. Now enter below commands individually to copy the root files (use copy-paste).

adb push su /data/local/tmp/su
adb push Superuser.apk /data/local/tmp/Superuser.apk

6. Enter adb restore fakebackup.ab to restore the fake “backup”.

Note: Do Not Click restore on your device. Just enter the command into the command prompt on your PC and press the enter key.

7. Enter the below command to run the “exploit”.

adb shell “while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done”

8. Now that the “exploit” is running, click ‘Restore my data’ on your device. (At this time, CMD will probably show multiple lines saying ‘link failed file exists’).

Important – As you click restore, you should see the restoring notification on your phone screen and once finished it’ll say ‘restore ended’. If you don’t see this then try again from step #3.

9. Once it finishes, enter adb reboot to reboot your device.

Note: Do Not try and use your device on you reboot. Running this exploit will reboot your device into emulator mode, so it will be laggy and the screen will flicker — this is normal.

24-09-2012 15-34-52

10. Once phone is rebooted, enter adb shell to open a shell.

Note: Now you should have a root shell, i.e. your prompt should be #, not $. If not, it did not work. (Refer to image above)

11. Now enter mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system to mount the system partition as r/w.

12. Enter cat /data/local/tmp/su > /system/bin/su to copy su to /system.

13. Enter chmod 06755 /system/bin/su to change permissions on su.

14. Enter ln -s /system/bin/su /system/xbin/su to symlink su to /xbin/su.

15. Enter cat /data/local/tmp/Superuser.apk > /system/app/Superuser.apk to copy Superuser.apk to /system.

16. Enter chmod 0644 /system/app/Superuser.apk to change permissions on Superuser.apk.

17. Enter rm /data/local.prop to delete the file that the exploit created.

18. Enter exit to exit the ADB shell.

19. Type adb shell “sync; sync; sync;”

20. Reboot device using adb reboot

Voila! Your Galaxy Nexus should now be rooted without requiring you to unlock the bootloader. Confirm root access by installing the Root Checker app from Google Play.

>> We’ve tried the above procedure on GSM Galaxy Nexus running Android 4.1.1 JB. This guide probably works with Google Nexus 7 as well, haven’t tried though.

Google may patch this exploit in future updates. Let’s see how long it lasts. 🙂

Source: XDA , Special Thanks to Bin4ry and efrant.

Update: As expected Google has patched this hole starting with JZO54K. So, it will not work for Android 4.1.2 JZO54K or newer.

Tags: AndroidGalaxy NexusGuideRootingTipsTricksTutorialsUnlocking
ShareTweetSend
Previous Post

How to Remove Redirection to prevent click tracking while using Google Search

Next Post

Lock/Unlock Galaxy Nexus Bootloader in 1-click without wiping any data

Mayur Agarwal

Mayur Agarwal

Mayur Agarwal is the founder and editor-in-chief of WebTrickz. As a Technology enthusiast and an Internet addict, he loves sharing useful How To’s and Tips & Tricks.

Next Post

Lock/Unlock Galaxy Nexus Bootloader in 1-click without wiping any data

Comments 7

  1. Pingback: Lock/Unlock Galaxy Nexus Bootloader in 1-click without wiping any data
  2. Pingback: Guide to Unlock Samsung Galaxy Nexus Bootloader
  3. Pingback: Easy Way to Flash franco Kernel on Galaxy Nexus & Nexus 7
  4. Pingback: Android 4.1.2. als Akkukiller - Seite 2 - Android-Hilfe.de
  5. gpshunter says:
    8 years ago

    I tried this on a Chinese Clone Tinji Mobile i9220 MT6575 Chipset..
    Each step executed as shown; but phone remains unrooted.
    Android Version is 4.0.6

    Reply
  6. Blytz1 says:
    8 years ago

    It says: “error: Device offline” what do i do?

    Reply
  7. dfgfg says:
    6 years ago

    error Device offline!!!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest Stories

a wifi router

How to find the best channel for my Wi-Fi?

January 22, 2021
Galaxy S21 lineup

How to Power Off & Restart Samsung Galaxy S21, S21+ and S21 Ultra

January 15, 2021
Bedtime in clock app on iphone

How to Turn Off Sleep Mode & Bedtime in iOS 14 on iPhone

January 8, 2021
MacBook desk

How to Lock/Unlock Notes with Touch ID on macOS Big Sur

January 5, 2021
macbook air m1 2020

How to Manually Adjust Keyboard Brightness on M1 MacBook Air

January 2, 2021

TRENDING

  • messenger icon at the top of Instagram app

    How to Reply to a Specific Message on Instagram 2020

  • What does Other Viewers mean on a Facebook Story?

  • How to Send Files and Documents on Messenger for Android

  • FAQs: Can I Remove Apps from App Library in iOS 14?

  • 3 Different Ways to Mark Spoilers on Discord

Popular Tags

Google Android Chrome

Twitter Dark Mode OnePlus

iPhone Apple Apps Mac

Facebook Messenger Security

Instagram Tutorials Photos

  • About
  • Advertise
  • Contact
  • Privacy Policy

© 2021 WebTrickz. All Rights Reserved.

No Result
View All Result
  • News
  • Reviews
  • Apps
  • How To’s
  • Android
  • Google
  • iPhone
  • Mac
  • Contact Us

© 2021 WebTrickz. All Rights Reserved.