This rooting process was done on a Samsung Galaxy S3 with Android 4.3 (Jelly Bean), and it should also work with other Android devices.
There are a few ways to root an Android on Mac. But this is how I do it.
Install Android SDK
First we need to download and install the Android SDK from here.
Now change to the directory where the file was downloaded and unzip it.
$ cd ~/Downloads $ unzip adt-bundle-mac-x86_64-20140321.zip
Create a directory somewhere (e.g: ~/Desktop) you can copy or move the unzipped files to it. You can name the directory what ever you want, in this example I named it Android.
$ mkdir ~/Desktop/Android $ cd ~/Downloads/adt-bundle-mac-x86_64-20140321 $ mv eclipse sdk ~/Desktop/Android
Run the Android tool:
$ cd ~/Desktop/Android/sdk/tools $ ./android
Next we create sym-links to the ‘adb’ and ‘fastboot’ tools:
$ cd /usr/bin $ sudo ln -s ~/Desktop/Android/sdk/platform-tools/adb . $ sudo ln -s ~/Desktop/Android/sdk/platform-tools/fastboot .
Prepare the device
Prepare the device for rooting:
Now connect your device to the Mac and run the command ‘
adb devices‘ to test. Make sure you see the following output:
$ adb devices List of devices attached f508b682 device
And we’re ready to root the device.
First download the ‘saferoot‘ from here. Then unzip it and run the install script.
$ cd ~/Download $ unzip saferoot.zip $ sh ./install.sh
Then just follow the instructions when prompted. The whole process should look like so:
--- Samsung i545 VRUEMJ7 Root --- --- Based on the CVE-2013-6282 exploit by cubeundcube --- Waiting for device... Watch your phone. Unlock it and give permission for the install to run. Sending files to your device... 1548 KB/s (17800 bytes in 0.011s) 2611 KB/s (104800 bytes in 0.039s) 3968 KB/s (2139595 bytes in 0.526s) 2989 KB/s (1109128 bytes in 0.362s) 160 KB/s (629 bytes in 0.003s) Starting rooting program. ro.build.product=d2att ro.build.id=JSS15J search kallsyms... 1 (kallsyms_addresses=c08265e0) (kallsyms_num_syms=00011d11) kernel dump... 1 2 3 4 5 6 7 8 9 prepare_kernel_cred=c018898c commit_creds=c0188454 ptmx_fops=c0dc9950 Succeeded in getroot! Remount success! Copying files.. Done.. now reboot to enable root! Removing temporary files... Rebooting...Please wait. Waiting for device to re-appear... Unlock your phone, and when prompted, give SuperSU permission for 'ADB shell' to run. Installing busybox --- All Finished ---