android debug bridge ( adb )

2018. 7. 10. 11:34Cocos2d-X





자주사용하는 adb에 대해 정리



컴퓨터와 연결된 리스트


adb devices -l


List of devices attached

B0F112D1403312E1       device usb:337641472X product:full_duke_kodiak model:SD4930UR device:kodiak transport_id:5

G000L40763670574       device usb:336592896X product:full_giza model:KFGIWI device:giza transport_id:4

B0C91102327200S4       device usb:338763776X transport_id:2



디바이스 모델명 제대로 안나올때 


adb -s B0C91102327200S4 shell getprop | grep ro.product.mod


[ro.product.model]: [KFJWI]



logcat


adb -s G000L40763670574 -d logcat | grep cocos


install


adb -s B0C91102327200S4 install -r ./proj.amazon/app/build/outputs/apk/gameapp-debug.apk



코드 클리핑 

arm-linux-androideabi-addr2line -C -f -e /Users/hyungchul.kim/work/게임앱/proj.amazon/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/게입앱.so 903be006



addr2line 위치


/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/