http://www.reconinstruments.com/developers/resources/downloads/
/ReconApps/Developer/adb4mac にある これをMacにコピーしてadb-reconにリネームしてパスを通した
$ adb-recon kill-server
$ adb-recon devices
Jetをしばらく放置するとNo Deviceになることがある。 その場合Jetを何か操作してから上記をやるとデバイスが検知される
$ cca create CcaExample com.bathtimefish.cca.hello "CCA Example"
$ cd Ccaexample
- www 以下のhtml, css, jsを編集
- manifest.jsonに使うAPIのパーミッションを記述
- manifest.mobile.json のandroidブロックに versionCode:2を記載する 記載しないとarmのapkがビルドされない https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/docs/Publish.md
"android": {
// Android:versionCode:
// * 0 - multi architecture
// * 2 - arm
// * 4 - x86
// * 9 - APK using system webview and minSdkVersion >= 20
"versionCode": 2
},
$ cca build android
$ cd platforms/android/build/outputs/apk
$ adb-recon install android-armv7-debug.apk
$ cca build android
$ cd platforms/android/build/outputs/apk
$ adb-recon uninstall com.bathtimefish.cca.hello
$ adb-recon install android-armv7-debug.apk
- OKボタン(前ボタン)長押し
- 上にスワイプ
/Pictures/ScreenShotsに保存される(Android File Transferの再接続が必要かも) Recon UplinkのSyncでPCにコピーされる