Marketplace/Reviewers/Apps/InstallingReviewerCerts: Difference between revisions
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
# And finally: | # And finally: | ||
## ./push_certdb.sh full_unagi certdb.tmp | ## ./push_certdb.sh full_unagi certdb.tmp | ||
Note: For Keon phones, you need replace full_unagi with full_keon, if you have a different FirefoxOS phone, replace full_unagi with the ones from your phone listed in adb. | |||
If you're lucky you might be able to persuade someone who already has NSS installed to create the certdb.tmp folder, patch it with reviewer cert access, and email it to you :) If so you only need to complete step 1 (get the git repo) and the last step to push the certdb.tmp contents to the device! | If you're lucky you might be able to persuade someone who already has NSS installed to create the certdb.tmp folder, patch it with reviewer cert access, and email it to you :) If so you only need to complete step 1 (get the git repo) and the last step to push the certdb.tmp contents to the device! |
Revision as of 20:20, 2 July 2013
Packaged App installation requires adding additional certificates to the phone because the app package is only signed for public installation after it is approved via the Reviewer Tools. When an app is installed via the Reviewer Tools prior to approval it is signed with a separate, Reviewer only, certificate which does not come installed on the device by default.
You need to git clone (or manually download) the contents of the Marketplace Certs repository. There is a detailed readme available though in short the procedure for installing reviewer certs is below:
- git clone (or manually download) https://github.com/briansmith/marketplace-certs
- Install the Android SDK (for ADB mainly) and make sure $ADT/sdk/platform-tools is on your path
- Install NSS Tools
- Debian/Ubuntu: sudo apt-get install libnss3-tools
- Fedora : su -c "yum install nss-tools"
- openSUSE : sudo zypper install mozilla-nss-tools
- Windows:
- hg clone https://hg.mozilla.org/projects/nspr
- hg clone https://hg.mozilla.org/projects/nss
- cd nss
- OS_TARGET=WIN95 make nss_build_all
- cd ..
- export NSS=$PWD/dist/WIN954.0_DBG.OBJ
- # NSS/bin must be ahead of the rest of the path because NSS and Windows both have tools called "certutil".
- export PATH=$NSS/bin:$NSS/lib:$PATH
- To build the new certs:
- rm -Rf certdb.tmp
- ./new_certdb.sh certdb.tmp
- ./add_or_replace_root_cert.sh certdb.tmp root-ca-reviewers-marketplace
- if you want -dev support too do:
- ./add_or_replace_root_cert.sh certdb.tmp marketplace-dev-public-root
- ./add_or_replace_root_cert.sh certdb.tmp marketplace-dev-reviewers-root
- ./change_trusted_servers.sh full_unagi "https://marketplace-dev.allizom.org,https://marketplace.firefox.com"
- And finally:
- ./push_certdb.sh full_unagi certdb.tmp
Note: For Keon phones, you need replace full_unagi with full_keon, if you have a different FirefoxOS phone, replace full_unagi with the ones from your phone listed in adb.
If you're lucky you might be able to persuade someone who already has NSS installed to create the certdb.tmp folder, patch it with reviewer cert access, and email it to you :) If so you only need to complete step 1 (get the git repo) and the last step to push the certdb.tmp contents to the device!