Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts

Friday, 14 October 2011

Hack Your Android Phone

You want to take control of your Android phone? By "rooting" your device, a process similar to jailbreaking an iPhone, you can install custom ROMs (images), which add stability and speed improvements to Google's mobile operating system.....


Why Hack Android?

So why would you want to hack your Android phone? For those with older handsets, rooting the device lets you install customized ROMs which can deliver major speed improvements and performance increases. For example, the popular CyanogenMod, created by one of Android's most notable hackers, optimizes performance for both the G1 and MyTouch 3G handsets.

Another good reason to root your phone? Multi-touch. One of the surprising omissions from Google's own Nexus One handset, for example, is the ability to use more than one finger at a time to operate the device. Although available on iPhone from the start, the Nexus One excludes this valuable feature from its mobile operating system. Why? No one knows for sure, but it might have something to do with some patents Apple owns. But that's no matter to the hacker community. Thanks again to cyanogen, Nexus One owners can enable the feature by copying some files over to their device. Other Android owners can perform similar procedures to enable multi-touch Web browsing. But before you can get started with any of these hacks, you first have to root the phone.

How to Root Your Android Phone

However, for novice hackers, "rooting" the phone sounds like it may be easier said than done. Although seemingly intimidating, by following a few simple steps anyone can do this with ease.
Before getting started, remember to back up your phone, including your contacts, SMS messages, files and photos.
  1. The first step is to download and install Superboot, a boot image that, when flashed, will root the device the first time you boot up. You can grab a copy of the Superboot zip file from the Modaco forums here.
  2. Once downloaded, extract the files it contains to a directory on your computer, just like any other zip file.
  3. Now put your Android phone in bootloader mode. (Note, owners of a retail N1 should see instructions here).

    • To do so, turn off the phone, remove the battery, and plug in the USB cable. When the battery icon appears onscreen, pop the battery back in. Now tap the Power button while holding down the Camera key.
    • For those whose Android phones have a trackball, you have an even easier method of doing this: Turn off the phone, press and hold the trackball, then turn the phone back on.
  4. Depending on your computer's OS, do one of the following
    1. Windows: Double click "install-superboot-windows.bat"
    2. Mac: Open a terminal window to the directory containing the files, and type "chmod +x install-superboot-mac.sh" followed by "./install-superboot-mac.sh"
    3. Linux: Open a terminal window to the directory containing the files, and type "chmod +x install-superboot-linux.sh" followed by "./install-superboot-linux.sh"
That's it, your device has been rooted!

 



If those instructions confused you, check out YouTube for instructional videos instead. Here's one for rooting the  myTouch 3G or G1, and here's one for the  Motorola Droid. Here's  another. There's also an alternative rooting method involving 1 click demoed  here. You get the idea.

Now What?

Now that you've rooted your Android phone, you can get busy adding features, functionality and other hacks. This is the fun part! LifeHacker offers five great reasons to root your phone, for those wondering why you would bother to do this.
Our favorite reasons?

1. Multi-Touch

First of all, Nexus One users can enable multi-touch on their devices. RedmondPie has a good how-to on this:
 
 
 Meanwhile, Droid owners can hack their phones for multi-touch Web browsing
 
 
 
 T-Mobile G1 owners can do this too following the instructions here
 
 

2. Mods for Performance Improvements (and More)

G1 and myTouch 3G owners can follow this tutorial to install the popular CyanogenMod on their devices, which boosts performance and speed, among other things. Here's a video tutorial on this via AndroidandMe.com
If you need more information, visit the cyanogenmod Wiki  for all the details on this custom ROM. And stay tuned to the latest Cyanogen news via this website 

3. Extra Apps and Features

For more fun hacks, try these:
Anyone with a rooted handset can set up Wi-Fi and Bluetooth tethering using this app .The ever-popularApps2SD software lets you migrate your Android apps over to your SD card, freeing up room on your phone. You can also install custom themes, ringtones and alerts.


More?

If you've hacked your Android phone, share your tips and tricks in the comments. Or if you have links to other good hacks, let us know.



Flash Hacking

Ever wanted to score higher in Kitten Cannon? How about owning at Defend the Castle from the very first level? Some jumps in N-Game too hard for you? Maybe you're ticked off by that guy who got several billion in Push the Button. Whatever the motive, you're here for one reason, you want to hack flash games.
All flash games are written in a code called Actionscript. It'll help you if you know it, but the code is straightforward enough to where even a n00b could do this with almost any game they wanted.
http://zenwarfare.com/flash_hack.php

Hacking Orkut

Orkut recently upgraded the interface of their website. The site now looks good in shades of white and blue. But with the upgrade came a few problems. Many people noticed that they cannot delete the scraps now (link). When ever you try to delete any scrap it posts the page back with a link in red on the bottom which says report bug (BTW that link doesn't work either). Lets take a look at the delete button code.

<span class="rfdte"><span class="grabtn"><a href="javascript:void(0);" onclick="_singleDelete(function(){_doDelete(document.deleteForm, 26109785, 5037483, 1189339191)}); return false;" class="btn">deletea>span><span class="btnboxr"><img src="http://img1.orkut.com/img/b.gif"alt="" height="1" width="5"

The onclick function has the _singleDelete which calls _doDelete with some parameters.To look for these functions you will need to have a look at the javascript that is loaded with the page. I found out the following location and opened it.

http://img4.orkut.com/js/gen/scraps005.js
I found the code for delete as this._singleDelete() which does nothing but counts the number of scraps to delete and posts it back. Orkut has tried a lot to make the JS code obscure and so I stopped looking at it. The report bug link which comes on the page once you try to delete anything is interesting, it points to

http://b/createIssue?component=965&cc=te-orkut%2Cnarayan%2Cmanu&notes=OrkutRedesign%3AYes%0D%0ABuild%3A+HamsterXXX%0D%0AServer%3A+%28+test-castro.orkut.com%2C++qa-castro.orkut.com+%2C++staging-castro.orkut.com%29%0D%0AFeature%3A+%28+example-+home+notification+%2Cpolls%2C++...%29%0D%0AAccount%3A%0D%0A%0D%0A%0D%0A%0D%0AREPRODUCIBLE+on+following+OS%2FBrowsers%3A%0D%0AWinXP%2FIE+6.0%0D%0AWinXP%2BFF+2.0%0D%0ALinux%2BFF+1.5%0D%0AMac%2BFF+1.5%0D%0A%0D%0ASTEPS+TO+REPRODUCE%3A%0D%0A1.Login+to%0D%0A2.%0D%0A3.%0D%0A%0D%0ARESULT%3A%0D%0A%0D%0A%0D%0AEXPECTED+RESULT%3A%0D%0A%0D%0A%0D%0A%0D%0A&issue.type=BUG&issue.priority=P3&issue.severity=S2&hotlistIds=56

This looks like an internal link and not something Google would like to put in for everyone to see. It mentions Orkut, Narayan and Manu, which I guess are Google Developers working on the site. We can also see the following servers which Google uses to test orkut.
  • test-castro.orkut.com
  • qa-castro.orkut.com
  • staging-castro.orkut.com

Google must use these for test, quality assurance and staging Orkut internally. The other things points at the OS, how to reproduce the bug and severity issues. It looks to me as if this link was used by Google to report bugs internally but somehow made it to the internet as they did not properly test Orkut, before the new redesign. May be they were in too much hurry to do something new with increasing popularity of facebook.