Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3515

Error: Avoid hardcoding the debug mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9.2
    • Fix Version/s: 3.9.3
    • Component/s: Android
    • Labels:
    • Sprint:
      Moodle App 3.9.3

      Description

      C:\Users\diou_\Desktop\moodle\original\moodleapp\platforms\android\app\src\main\AndroidManifest.xml:6: Error: Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one [HardcodedDebugMode]
      <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|screenLayout|smallestScreenSize" android:debuggable="true" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
      ~~~~~~~~~~~~~~~~~~~~~~~~~

      Explanation for issues of type "HardcodedDebugMode":
      It's best to leave out the android:debuggable attribute from the manifest.
      If you do, then the tools will automatically insert android:debuggable=true
      when building an APK to debug on an emulator or device. And when you
      perform a release build, such as Exporting APK, it will automatically set
      it to false.

      If on the other hand you specify a specific value in the manifest file,
      then the tools will always use it. This can lead to accidentally publishing
      your app with debug information.

       

      To resolve this just remove android:debuggable="true" from config.xml

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            bernardo Bernardo Silva
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Pau Ferrer Pau Ferrer
            Participants:
            Component watchers:
            Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Nov/20