Mobile: Samsung Galaxy S4 version before
ADB: Android Debug Bridge
Preparations list as below,
A. Download Android ADK from the official website(Android SDK). And It should be install.
B. Taking the Galaxy mobile
B.1.To Find the Path, “setting-> more -> about device -> Build Number”, then click 7 times to open Developer options.
B.2.Enable the USB debugging option
B.3.Enable the unknown sources option
C.Download Kies 2.6 from the official website (Samsung Kies).
Then we can start the command Line as following steps,
Loot at your keyboard. To press the button wind key and R
Input “cmd”–> only cmd
To press Enter
Change to path the platform-tools folder (adb.exe)
We’ll connect PC and Galaxy by ADB following steps,
1.Disconnecting usb connection between Galaxy and PC
3.Reconnecting usb connection between Galaxy and PC
4.Galaxy firmware will auto upgrade when Galaxy be detected by PC
5.After step 4 finished, key in “adb devices” in command line. The executive message shows that Device detected by ADB program
6.Taking the Galaxy and accept the USB RSA debug message.
7.Key in “adb devices” in command line again. The executive message shows that Device detected by ADB program as normal.
Ref : 解決紅米adb devices出現offline，新版adb（支援Android 4.2.2）下載