aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Elliott <ianelliott@google.com>2016-09-01 11:09:21 -0600
committerIan Elliott <ianelliott@google.com>2016-09-13 14:53:37 -0600
commit07d031e24df3121953aa63a7b4eb011899e16d46 (patch)
tree31ee4e7d6bd07b63bb58aedf33e8947037f1ea55
parent602ca4f897121d79efb320201a52c2b194de0fa5 (diff)
downloadusermoji-07d031e24df3121953aa63a7b4eb011899e16d46.tar.xz
demos: Give Android versions permissions for internet & read/write files
This is in support of RenderDoc (and other tracing libraries). On Android, these "native" applications must have permission to read/write files on the Android filesystem so that a trace-capture library can write a trace file. After building and installing the application, the following commands should be run from a Linux shell, in order to truly grant those permissions (not normally required for an Android Java-based app, with a GUI; but is required for these shell-launched, native apps): adb shell pm grant com.example.Cube android.permission.READ_EXTERNAL_STORAGE adb shell pm grant com.example.Cube android.permission.WRITE_EXTERNAL_STORAGE
-rw-r--r--demos/android/AndroidManifest.xml.cube5
-rw-r--r--demos/android/AndroidManifest.xml.tri5
2 files changed, 10 insertions, 0 deletions
diff --git a/demos/android/AndroidManifest.xml.cube b/demos/android/AndroidManifest.xml.cube
index 23db05ba..a35ba6fc 100644
--- a/demos/android/AndroidManifest.xml.cube
+++ b/demos/android/AndroidManifest.xml.cube
@@ -1,6 +1,11 @@
<?xml version="1.0"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.Cube" android:versionCode="1" android:versionName="1.0">
+ <!-- Allow this app to read and write files (for use by tracing libraries). -->
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.INTERNET"/>
+
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/>
diff --git a/demos/android/AndroidManifest.xml.tri b/demos/android/AndroidManifest.xml.tri
index d23e9a4a..00ff1221 100644
--- a/demos/android/AndroidManifest.xml.tri
+++ b/demos/android/AndroidManifest.xml.tri
@@ -1,6 +1,11 @@
<?xml version="1.0"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.Tri" android:versionCode="1" android:versionName="1.0">
+ <!-- Allow this app to read and write files (for use by tracing libraries). -->
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.INTERNET"/>
+
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/>