Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid 4.2 filters out CHANGE_CONFIGURATION permission?
    text
    copied!<p>I come across a weird problem, I got an application allowing to freely change the font size on Android Device (<a href="https://play.google.com/store/apps/details?id=fr.gatay.android.fss%20%7C%20Font%20Size%20Setter" rel="noreferrer">Font Size Setter</a>). It uses introspection to call some internal Android apis. To do this call, it needs the following permission : <code>android.permission.CHANGE_CONFIGURATION</code>. It worked like a charm under Android 4.0 and up to 4.2 where it does not work anymore. Digging into logs I found out that I can't update font size because it misses this permission. Debbuging to check effective permissions, I got these when inspecting the PackageInfo corresponding to my app</p> <pre><code>requestedPermissions = {java.lang.String[2]@830038778728} [0] = {java.lang.String@830038778760}"android.permission.CHANGE_CONFIGURATION" [1] = {java.lang.String@830038778896}"android.permission.WRITE_SETTINGS" requestedPermissionsFlags = {int[2]@830038779016} [0] = 1 [1] = 3 </code></pre> <p>Does somebody got any clue about what's going on, or any workaround idea ? Thanks a lot for reading me.</p> <p>Per request, the AndroidManifest.xml file</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="fr.gatay.android.fss" android:versionCode="1" android:versionName="1.0"&gt; &lt;uses-sdk android:minSdkVersion="14"/&gt; &lt;uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /&gt; &lt;uses-permission android:name="android.permission.WRITE_SETTINGS"/&gt; &lt;application android:label="@string/app_name" android:icon="@drawable/app_icon"&gt; &lt;activity android:name=".MainActivity" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN"/&gt; &lt;category android:name="android.intent.category.LAUNCHER"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload