android: Add activity to import VPN profiles from JSON-encoded files
authorTobias Brunner <tobias@strongswan.org>
Thu, 29 Dec 2016 16:35:57 +0000 (17:35 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 20 Jan 2017 10:44:07 +0000 (11:44 +0100)
commit3107634e305b37a5bfa7d13e09409879358b9b9c
tree36782eb8d8500a4899d7e64faf21cfa3ef2c9406
parentcf6110f1520f3030bcb34a50532991fdbb0e72c5
android: Add activity to import VPN profiles from JSON-encoded files

The file format is documented on the wiki.

URLs to .sswan files may be intercepted and downloaded files with a media
type of application/vnd.strongswan.profile may also be opened (the file
extension doesn't matter in that case).  Whether downloaded files for which
the media type is not correct but the extension is .sswan can be opened
depends on the app that issues the Intent.  For instance, from the default
Downloads app it won't work due to the content:// URLs that do not contain
the file name but when opening the downloaded file from within Chrome's
Downloads view it works as these Intents use file:// URLs, which contain
the complete file name (the latter requires a new permission).
12 files changed:
src/frontends/android/app/src/main/AndroidManifest.xml
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java [new file with mode: 0644]
src/frontends/android/app/src/main/res/drawable-hdpi/ic_close_white_24dp.png [new file with mode: 0644]
src/frontends/android/app/src/main/res/drawable-mdpi/ic_close_white_24dp.png [new file with mode: 0644]
src/frontends/android/app/src/main/res/drawable-xhdpi/ic_close_white_24dp.png [new file with mode: 0644]
src/frontends/android/app/src/main/res/layout/profile_import_view.xml [new file with mode: 0644]
src/frontends/android/app/src/main/res/menu/profile_import.xml [new file with mode: 0644]
src/frontends/android/app/src/main/res/values-de/strings.xml
src/frontends/android/app/src/main/res/values-pl/strings.xml
src/frontends/android/app/src/main/res/values-ru/strings.xml
src/frontends/android/app/src/main/res/values-ua/strings.xml
src/frontends/android/app/src/main/res/values/strings.xml