QA/Automation/Projects/FennecAutomation/FAQ: Difference between revisions

(Created page with "== How to build Fennec Native to be used for Robotium? == * Follow https://wiki.mozilla.org/Fennec/NativeUI#How_To_Build How to build Fennec * Unzip the APK * Delete the META...")
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== How to build Fennec Native to be used for Robotium? ==
== How to build Fennec Native to be used for Robotium? ==
* Follow [[https://wiki.mozilla.org/Fennec/NativeUI#How_To_Build How to build Fennec]]
* Follow [https://wiki.mozilla.org/Fennec/NativeUI#How_To_Build How to build Fennec]
* Unzip the APK
 
* Delete the META directory
* EITHER:
* Zip the folder back up
  * Unzip the APK
  * Delete the META directory
  * Zip the folder back up
* OR, if the above doesn't work:
  * Rename the apk fennec.zip
  * Remove the META directory with
    zip -d fennec.zip META-INF\*
  * Rename fennec.zip fennec.apk
* Resign the APK with
* Resign the APK with
   jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android fennec-details.apk androiddebugkey
   jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android fennec-details.apk androiddebugkey

Latest revision as of 10:40, 13 January 2014

How to build Fennec Native to be used for Robotium?

  • EITHER:
 * Unzip the APK
 * Delete the META directory
 * Zip the folder back up
  • OR, if the above doesn't work:
 * Rename the apk fennec.zip
 * Remove the META directory with
   zip -d fennec.zip META-INF\*
 * Rename fennec.zip fennec.apk
  • Resign the APK with
 jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android fennec-details.apk androiddebugkey
  • Do a zipalign on the fennec
 ./android-sdk-linux_x86/tools/zipalign 4 fennec-10.0a1.en-US.android-arm.apk newfennec.apk
  • Install the new apk to the device
 ./android-sdk-linux_x86/platform-tools/adb -s <device id> -e install -r newfennec.apk