Log in or register to post comments

Unity export as Anroid project: please get rid of android:debuggable in AndroidManifest.xml

November 11, 2018 - 9:59am #2

Vuforia SDK Version: 7.5.26 -

Description with steps to reproduce: Hi, After exporting a Unity project as an Android project, the AndroidManifest.xml in the generated .aar file contains android:debuggable="false". Therefore the AndroidManifest merger throws errors regarding the android:debuggable attribute later on. So I'll end up: * using tools:replace & android:debuggable="true" in my AndroidManifest.xml * adapting the .aar ((1) the .aar has to be changed to .zip (2) contents have to be extracted (3) AndroidManifest.xml has to be altered (4) updated contents have to be zipped again (5) zip file-extension has to be changed back to .aar (6) original .aar has to be exchanged with newly buildt one) Both scenarios are not really satisfying, as I always want to be able to define whether or not my application is debuggable via buildTypes defined in my build.gradle. Furthermore AndroidStudio shows a warning in case any value gets hardcoded with the android:debuggable attribute. So I guess getting rid of the android:debuggable attribute in the AndroidManifest.xml file would be the most logical solution. (Personally I do not really like the idea as to include additional logic (scenario 2 above) in a build script, just to workaround the issue.) Thanks, BR Thomas -

Development OS (Mac OS X, Windows, Linux): Mac OS => Unity + Android -

Mobile OS and Version: - -

Mobile Device Manufacturer and Model name: - -

Do the Vuforia Sample Applications show the same behavior?:

Unity export as Anroid project: please get rid of android:debuggable in AndroidManifest.xml

November 11, 2018 - 10:00am #1

Sorry, forgot to append, how the generated AndroidManifest.xml looks like:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionName="1.0" >

        android:targetSdkVersion="22" />

    <uses-feature android:name="android.hardware.camera" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application android:debuggable="false" >

        <!-- Allow the application to make use of ARCore, if available -->
            android:value="optional" />

<!--             To support the ODG R7 in stereo mode we must add the following library. -->
            android:required="false" />

Log in or register to post comments