如何在Mac下開發調試小米手機[轉]

來源:互聯網
上載者:User

標籤:android   style   blog   http   color   os   ar   for   檔案   

本文轉自:http://www.miui.com/thread-1476049-1-1.html


第一步:添加adb path
首先保證你的adb的路徑已經存在PATH裡了,如果沒有可以[email protected]:~ > vim .bash_profile講你的adb的加到PATH裡去,注意我這裡的/Developer/android-sdk-macosx/platform-tools/是我的,你需要換成自己的。

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


第二步:寫Vendor ID
接下來將Vendor ID寫到~/.android/adb_usb.ini中就可以了(如果這個檔案不存在可以自己建立一個)

[email protected]:~/.android > lltotal 96-rw-r--r--   1 ice  staff     7 Jun  1 10:47 [email protected]:~/.android >echo "0x2717" > ~/.android/[email protected]:~/.android > cat adb_usb.ini0x2717

 

如何在Mac下開發調試小米手機[轉]

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.