[心得] Push App To ZTE Open

看板Ajax作者 (function(){})()時間12年前 (2013/11/07 00:31), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
以下為 Trouble Shooting ZTE Open 的經驗。 如果你照著下面的文章做,卻看不到 push button,請繼續看下去。 Pushing a Firefox OS Web App to ZTE Open phone ✩ Mozilla Hacks – the Web developer blog https://hacks.mozilla.org/2013/08/pushing-a-firefox-os-web-app-to-zte-open-phone/ 我的 OS 是 Windows XP Home Edition,沒有看到 push button。 換到 OpenSUSE 照著上面的文章做,可以看到 push button,確認 ZTE Open 本身沒問題。 換到 Windows XP Professional Edition,可以看到 push button。 換回去 Windows XP Home, 打開 cmd 切到 C:\Program Files\ZTE_Handset_USB_Driver 資料夾 執行 adb devices,出現: * daemon not running. starting it now * * daemon started successfully * List of devices attached roamer2 device 再執行 adb kill-server 按右下角安全地移除硬體把 ZTE Kernel Debug Interface 跟 USB Mass Storage Device 拿掉。 回 cmd 視窗 再執行 adb devices,出現: * daemon not running. starting it now * * daemon started successfully * List of devices attached 確定 Windows XP Home Edition 確實可以抓到 ZTE Open。 改用 Make FxOS Install https://github.com/digitarald/make-fxos-install 嘗試 打開 cygwin 抓 http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/18.0.2/sdk/ 底下的 xulrunner-18.0.2.en-US.win32.sdk.zip 解壓縮直接丟到 ~/bin 從 http://developer.android.com/sdk/index.html#download 抓 Android SDK 解壓縮直接丟到 ~/bin git clone https://github.com/digitarald/make-fxos-install.git 開 make-fxos-install 底下的 Makefile 檢查 XPCSHELL 跟 ADB 是否設定為正確的路徑,可能需要改 ADB 的路徑 如果路徑裡面有空格請用 single quotes 把路徑包起來 或用 backslash \ escape 空格 make FOLDER=my-package packaged install 看到 ZIPPING my-package into application.zip updating: index.html (deflated 47%) updating: manifest.webapp (deflated 33%) PUSHING *my-package* as packaged app adb server is out of date. killing... * daemon started successfully * 0 KB/s (811 bytes in 1.000s) FORWARDING device port 6000 to 6000 !!! CONFIRM THE PROMPT on the phone !!! ~/bin/xulrunner-sdk/bin/xpcshell install.js my-package 6000 Connecting to install my-package 在手機上看到 An incoming request to permit remote debugging connection was detected. Allow connection? 按 OK 在已安裝 app 區看到 My Package 確認成功送進去 ZTE Open Ps: 另外抓 adt 而不用 ZTE Open driver 裝的 adb 是因為 ZTE Open driver 帶的 adb 版本太舊 Pss: Test push app 可以用 https://github.com/robnyman/Firefox-OS-Boilerplate-App -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.223.85.123 ※ 編輯: folio 來自: 61.223.85.123 (11/07 00:35) ※ 編輯: folio 來自: 61.223.85.123 (11/07 00:50)

11/07 13:50, , 1F
我以為我走錯版...XD
11/07 13:50, 1F
文章代碼(AID): #1IUcxbM8 (Ajax)
文章代碼(AID): #1IUcxbM8 (Ajax)