红米手机 xamarin.android mac 开发。

  在调试的时候adb找不到设备

 

第一步:添加adb path

首先保证你的adb的路径已经存在PATH里了,如果没有可以[email protected]:~ > vim .bash_profile讲你的adb的加到PATH里去,注意我这里的/Developer/android-sdk-macosx/platform-tools/是我的,你需要换成自己的。

1

export PATH=${PATH}:/Developer/android-sdk-macosx/platform-tools/

第二步:写Vendor ID

接下来将Vendor ID写到~/.android/adb_usb.ini中就可以了(如果这个文件不存在可以自己创建一个)

1
2
3
4
5
6
7
8

[email protected]:~/.android > ll
total 96
-rw-r--r--   1 ice  staff     7 Jun  1 10:47 adb_usb.ini

[email protected]:~/.android >echo "0x2717" > ~/.android/adb_usb.ini

[email protected]:~/.android > cat adb_usb.ini
0x2717

第三步:重启adb sever

新打开一个终端窗口,输入adb kill-server重启adb sever就可以了

 

  

 

http://mobile.51cto.com/aprogram-386942.htm

1.关于本机–>更多信息->概系统览->系统报告->usb->你所连接的device–>供应商ID(Vendor ID)

2.终端执行如下命令:
    echo 0x2717 >> ~/.android/adb_usb.ini

3.重启 adb  去DDMS 看看 有啦!!

从而解决了小米2及其他android手机无法连接mac的问题。

 

 

http://my.eoe.cn/iceskysl/archive/4377.html

如何在Mac OSX上用adb或DDMS连接小米2s做调试

 

 

How to set up ADB (Android Debug Bridge) in Mac OSX

 

 

 

6.1. Configure the SDKs

In the top menu bar, navigate to Xamarin Studio > Preferences. Now navigate to Other > SDK Locations in the dialog below:

 

 

/Users/xxx/Library/Developer/Xamarin/android-sdk-mac_x86

 

 

 

 

1.) Delete ~/.android/adbkey on your desktop machine

2.) Run command "adb kill-server"

3.) Run command "adb start-server"

You should now be prompted to accept debug key.

 

 

 

参考:http://my.eoe.cn/iceskysl/archive/4377.html

 

从PC上直接下载Google Play Android应用市场APK两种方法

因为需要gmail帐户和密码,所以有风险,保险的方式是新建立一个匿名的 gmail 帐户。

 

方便的是:[TOOL] Real APK Leecher v1.3.5 – Always get your apk up-to-date easily

http://forum.xda-developers.com/showthread.php?t=1563894 

For your own security and anonymity, if you doubt in giving your info to my tool, do not use your real google account in this app. Create a new anonymous google account, download 1 free app from google play to enable this anonymous play account, and then use this new anonymous google play account inside this app. If your account is like "nothing to loose", it’s ok 

 

另一种是chrome 的插件,官网:http://codekiem.com/2012/02/24/apk-downloader/