Homepage / Technology / Android / Using Linux to Root the Sidekick 4G (Samsung Galaxy Series SGH -T839)
Google Helpouts – A Help Provider’s Review How Much Water Should I Drink Every Day? Installing Google Wallet on Android Outside the United States Q: Is Spirituality the Opposite of Science? A: Definitely not How to Remove io9’s Space Wasting Sidebar I’d be Leery of Google Keep, Google’s Evernote Competitor FUD and Sensationalism from F-Secure on Android Malware Numbers The Definition of Irony in Web Design Weight Loss Status Update, Day 120 Weight Loss Status Update, Day 60 Weight Loss Status Update, Day 30 Weight Loss & Unconventional Eating Habits Weight Loss Problems Despite Following All the Conventional Wisdom How Strategic Voting Subverts Democracy Response to Vic Toews’ Email re Bill C-30 Privacy Concerns One Million Moms protests sexuality of JC Penny’s new spokesperson Ellen DeGeneres Review: Samsung Sidekick 4G From T-Mobile GoDaddy’s Stance On SOPA Shows Off Their Ignorance In More Ways Than One! Android 472% Malware Increase Scare Is Sensationalist Fix VSFTPD Slow Directory Listings & Timeouts Tablet Computing: Apple Only? Using Linux to Root the Sidekick 4G (Samsung Galaxy Series SGH -T839) Linux Tip: Permanently Disable NumPad Mouse Keys Google Music releases Linux Music Manager! Migrating Openfire Instant Messaging Service PBX In A Flash: Custom Dialplans & FreePBX Android App Review: Remote Desktop For Your Phone! PBX In A Flash: Send Email Using Gmail / Google Apps Android Security Apps Review: Lookout, SeekDroid, Cerberus, Prey & Theft Aware How To Get Amazon’s Free Android Apps From Outside The US Google Music Beta Impressions (vs Subsonic) Swype & SwiftKeyX Android Virtual Keyboards Review Why You Can’t Just Tell Your Computer What You Want It To Do Cellphone Use Is NOT Giving You Cancer Facebook Messages Offering “Unprecedented”? Um, No… Etsy: Great Community Care & Responsiveness! Etsy: Now Worse Than Facebook For Respecting User Privacy? Android: Major Malware Killed Fast & Clean Facebook’s Privacy Breaches And Plans On Exposing More Personal Info Facebook’s New “Like”: Instead Of You, Websites Get To Post Why You Like Them Is Mexico Safe To Visit? Definitely! Cost Of Living In Bucerias CRTC Backpedals On Allowing False News Broadcasting! Facebook: Now With Even Less Social Networking! Pro CRTC Amendment 2010-931 Arguments & Responses How To Install Carrier-Blocked Android Apps Without Rooting Your Phone Take Action On The CRTC’s Amendments To Allow News Broadcasters To Report Opinions Or Lies As Facts Ninjerktsu’s “Carl Sagan and his Fully Armed Spaceship of the Imagination” As A Single Image Puerto Vallarta & Area: Tips For Snowbirds Bucerias: A Snowbird’s Impressions Facebook: Why The Sudden Monetization Push? Facebook Outrage Du Jour: Your Posts Can Be Sold For Ads Handy Android App: FilesAnywhere, A Fax For Your Phone Facebook Apps Can Now Access Your Address & Mobile Number Diaspora – My Impressions Two Months In First Beach Day of 2011, in Bucerias! Handy Android App: Google Voice Callback Free Swype Touchscreen Keyboard For Android Signal Strength Drop – iPhone 4 vs Droid Facebook Privacy & Security Tips Making Google Voice Work After Moving To Canada Implanted Contact Lenses – Best $5000 I *EVER* Spent! Quantum Darwinism! Pantheism, Monotheism, Atheism, And Communication

Android, Linux, Mobile Phone

Using Linux to Root the Sidekick 4G (Samsung Galaxy Series SGH -T839)

I wasn’t able to find a tidy all in one guide for Linux users rooting here on XDA, so I decided to post this one both here and at XDA. I was using Ubuntu 10.04 on a 32 bit processor, and the phone is a Samsung Sidekick 4G.

This guide assumes you already have ADB up and running on your box. If you can’t get ADB going yourself, then this method is most likely beyond your skill level anyhow

First, on your Sidekick ensure Settings>Applications>Development->USB Debugging is checked (just a reminder, I’m so used to this being on I forgot to do it on my new Sidekick)

After you have ADB up and running, make sure that your system has USB rules (a “driver”) for communicating with the Samsung Galaxy phone.

As root:
Create or edit /etc/udev/rules.d/51-android.rules and add this line (the vendor code for Samsung is “04e8”):

SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8″, MODE="0666"

Then secure the file and restart udev:

# chmod a+rx /etc/udev/rules.d/51-android.rules
# restart udev
udev start/running, process 3793

As a regular user:
Connect the Sidekick via the USB cable and check that your device appears, killing any previous instances of ADB that might already be running first:

$ adb kill-server
$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
$ adb devices
List of devices attached 
T8394f1f27b0	device

My device’s id is T8394f1f27b0. Yours will be different.

Download and unzip the rageagainstthecage-arm5su- packages.  These are possibly outdated; you can get the latest from the Cyanogen wiki.  rageagainstthecage uses the Lotoor exploit, so if you have a virus scanner running it may detect this.  You’ll only need rageagainstthecage-arm5.bin, su and Superuser.apk.

From a terminal, run the binary to hack the system as root:

$ adb push <path>/rageagainstthecage-arm5.bin /data/local/tmp 
$ adb shell 

$ chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin 
$ ./data/local/tmp/rageagainstthecage-arm5.bin
[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C
[*] checking NPROC limit ...
[+] RLIMIT_NPROC={2650, 2650}[*] Searching for adb ...
[+] Found adb as PID 4150
[*] Spawning children. Dont type anything and wait for reset!
[*] If you like what we are doing you can send us PayPal money to
[*] 7-4-3-C@web.de so we can compensate time, effort and HW costs.
[*] If you are a company and feel like you profit from our work,
[*] we also accept donations > 1000 USD!
[*] adb connection will be reset. restart adb server on desktop and re-login.

Restart the ADB server, push su & the Superuser app to the system, and set up the root user & group with a blank password. You should have a root (#) prompt; if you don’t, repeat the above steps to push & run the bin file.

# mount -o remount,rw /dev/block/stl9 /system
# exit 
$ adb push <path>/su /system/xbin 
$ adb shell chmod 4755 /system/xbin/su 
$ adb push <path>/Superuser.apk /system/app 
$ adb shell 

# echo "root::0:0:root:/data/local:/system/bin/sh" > /etc/passwd
# echo "root::0:" > /etc/group
# mount -o remount,ro /dev/block/stl9 /system
# exit

$ adb reboot

Your phone should now reboot and be rooted. Yay!

Post a Comment

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