gecko-dev/servo/support/android/apk
Zhuowei Zhang bb4e08ff89 servo: Merge #15396 - android: extract resources to external storage on first launch (from zhuowei:android-extract-resources); r=larsbergstrom
<!-- Please describe your changes on the following line: -->

If /sdcard/servo doesn't exist, extract it from the assets/ folder of the APK. This fixes issue #12129.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #12129 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

I tested this on a Nexus 6P running Android 7.1: on launch, the app correctly detects that /sdcard/servo is missing, extracts the contents from assets/, and launches without force closing.

This is my first Servo pull request, so apologies in advance if I'm doing something wrong. Also, I was unable to build the entirety of Servo from source (complains about missing freetype), so I just built the Java portion separately; would that impact anything?

Source-Repo: https://github.com/servo/servo
Source-Revision: 349971b38019ea5513650090a5cad1878d33b431

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c41d16ec522cff11bfabbd086ef375830355c99
2017-02-09 12:27:12 -08:00
..
jni servo: Merge #11278 - Reduce 'android-18' duplication by putting it in $ANDROID_TARGET env variable (from mitchhentges:8348-reduce-duplication); r=aneeshusa 2016-05-24 13:08:05 -07:00
res/mipmap servo: Merge #8288 - New Android suppport (from larsbergstrom:new_android_build); r=mbrubeck 2015-11-05 05:22:48 +05:01
src/com/mozilla/servo servo: Merge #15396 - android: extract resources to external storage on first launch (from zhuowei:android-extract-resources); r=larsbergstrom 2017-02-09 12:27:12 -08:00
.gitignore servo: Merge #8891 - Android build system improvements (from mbrubeck:mach-install); r=larsbergstrom 2015-12-12 18:02:53 +05:01
AndroidManifest.xml servo: Merge #12875 - WebBluetooth Android support (from dati91:android); r=larsbergstrom 2016-09-06 10:44:41 -05:00
build.xml servo: Merge #11687 - Android basedir (from larsbergstrom:android_basedir); r=mbrubeck 2016-06-09 15:57:56 -05:00