Page 1 of 1

Changing Permissions? [Android-SDL2]

Posted: Sun Dec 06, 2015 10:10 pm
by TheWaffleDimension
How would I change the permissions of my app created using the Android-SDL2? I've looked around and found out that you can, but what I didn't find was how to do it. Anyone know?

Re: Changing Permissions? [Android-SDL2]

Posted: Mon Dec 07, 2015 1:56 am
by master both
TheWaffleDimension wrote:How would I change the permissions of my app created using the Android-SDL2? I've looked around and found out that you can, but what I didn't find was how to do it. Anyone know?
These one is easy, just edit the first part of the AndroidManifest.xml, just before "<application"

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.love2d.android"
     android:versionCode="17"
     android:versionName="0.10.0-alpha2"
     android:installLocation="auto" xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- Here starts the permissions -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <!-- Allow writing to external storage -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <!-- Here they end-->

    <application

Re: Changing Permissions? [Android-SDL2]

Posted: Fri Dec 11, 2015 10:38 pm
by TheWaffleDimension
master both wrote: These one is easy, just edit the first part of the AndroidManifest.xml, just before "<application"
Wow, you're active. :P
I'm doing this all on Windows, so the text is jumbled up due to the way Notepad works. Probably should've loaded it up in Notepad, or something that would support the formatting before I saved it. :/ (Could just download it again.)
EDIT: Nevermind, didn't have to redownload it, just load it in Notepad++. That saved me time.