2011年8月26日金曜日

How to adb to your android device on MaxOSX Lion

After upgrading to Lion, there was trouble with connecting to android devices using adb.
It was because the kernel often matches the wrong driver to the connected android device.
In my case, my N-06C Medias WP had this problem, and I solved this by creating a code-less kernel extension. Here is the code I made:



*update 2012/03/01 First, download kext file from here:http://8kpx.com/android/archive/download.php
then if it works, buy again through gumroad. https://gumroad.com/l/MRDh
(from Gumroad, costs $1)


Here's how to install: 

1) Download this file and put in /System/Library/Extensions/
2) Open Terminal.app and run
$sudo chown -R root:wheel /System/Library/Extensions/N06CADBDriver.kext
$sudo kextload /System/Library/Extensions/N06CADBDriver.kext

This kext is configured for N-06C Medias WP, so if you are using a different device,
please modify info.plist in this kext using Property List Editor.



idProduct and idVendor property define the target device.
For example, Nexus S's idProduct is 0x4e22 and idVendor is 0x18d1.
By modifying idProduct and idVendor value, you can also use this for other android devices.

Please be aware that modifying kext may cause problems for your computer, so please be careful and do this at your own risk.

If your computer doesn't work after doing this, first turn it off and launch with alt key, then you can re-install Lion. By doing this, you can keep all of your data.

0 件のコメント:

コメントを投稿