Root, Unlock, Install, Run Apps On Nexus Q

July 8, 2012 | Author:

Share

The Google’s sphere from the space, Nexus Q, has been unlocked and Hacked to run apps of your choice. This social music streamer is the one of its kind device that goes beyond simple boxee or TiVo like devices by letting you integrate fully with other Android devices.

NExus Q is not just an unusual STB, its the most unusual Android device we’ve ever seen. It’s round, there’s no touch screen. But as Google hinted in the Google IO, this device is open to hacks, and thanks to hackers at XDA forums, the NExus Q has been hacked to Run Apps.

Warning: As of now, it’s a highly irregular process, which involves using ADB to install the applications and Terminal commands to run them. The interface of the applications is still a little tricky, but there has been some success with the monkeyrunner tool found in android-sdk/tools/. There is also some talk about using a Bluetooth Input Device Emulator. Eccentricity aside, the device has a pretty decent start to its development.

For the unlock and root method, go to the unlock thread. For the application installation discussion and implementation, check out the application thread.

How to Hack, Unlock, Root Nexus Q

 

Step 1. Enable USB debugging on the Q. You can enable USB debugging on Nexus Q by running the nexus Q app on another device, pairing with the Q, and then going to advanced and enabling USB debugging.

Phase I: Unlock, Root

This step is very similar to any Nexus device.

To unlock your device
1. cd to platform-tools
2. Reboot to the bootloader – adb reboot bootloader
3. Unlock your device* (with fastboot tool type):

fastboot oem unlock

*You will have to accept and erase all the user data on the Nexus Q.
*You must run this as sudo in Linux

For further Rooting and Unlocking steps, follow XDA guide.

Step 2. Once paired and enabled, You can install apps by running following lines on a computer which has ADB (android SDK tools) installed.

adb install path/to/app.apk

Step 3. Running apps

adb shell

am start package.name/.Activity name
am start com.android.settings/.Settings.

The package/activity names can be determined by running the app on another android device, plugging it into a computer, and running the monitor tool in terminal and looking at the hierarchy viewer.
e.g. for NetFlix

am start com.netflix.mediaclient/.UIWebViewActivity

AngryBirds:
am start com.rovio.angrybirds/com.rovio.ka3d.App

The package/activity names can be determined by running the app on another android device, plugging it into a computer, and running the monitor tool in terminal and looking at the hierarchy viewer.

Step 4. XY coordinates for touch/drag events can be given to the device by using the monkeyrunner tool (documentation can be found on the android developers website). For a brief overview:
start monkeyrunner (located in android-sdk/tools/)
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
device = MonkeyRunner.waitForConnection()
device.touch(x, y, MonkeyDevice.DOWN_AND_UP)
device.drag((startX,startY), (endX, endY), 1, 10)
device.press(‘KEYCODE_BACK’, MonkeyDevice.DOWN_AND_UP)

Enjoy hacked apps on your Nexus Q.

Follow us on Google+, Twitter, Facebook for latest in Android mods, news.

Comments

blog comments powered by Disqus