2017-01-11

Android, ADB push & pull file.

PUSH / PC to Android
Copy file from PC to Android through ADB shell.
    Syntax | PC C:\ADB\adb push  source_PC_filePath  destination_Android_ filePath
    example: adb push w200b\02-video\color2-green.mp4 data/worktmp

PULL / Android to PC
Copy file from Android to PC through ADB shell.
    Syntax | PC C:\ADB\adb pull source_Android_filePath destination_PC_filePath
    example: adb pull data/worktmp/SoundRecord.png w200b

2017-01-04

Android, NFC.

Turn ON NFC
# service call nfc 6

Turn OFF NFC
# service call nfc 5

Turn ON Anntenna ( Default is ON )
# echo 177 > /sys/class/gpio/export
# echo out > /sys/class/gpio/gpio177/direction

NFC test
# logcat BrcmNfcJni:D | grep 'nfc type='
(nfc tag碰觸,console 會出現以下, 或類似關鍵字出現)
D/BrcmNfcJni(  595): NfcTag::discoverTechnologies (activation): index=0; tech=1; handle=1; nfc type=2

Clear NFC Log
# logcat -c