[Android Q&A, Help & Troubleshooting] coder-x64:
i've an old Android app "com.example.package" that works fine until on Android 9, on Android 10 i've never tested, but on Android 11 & 12 no longer work

this app - on first launch after installation - needs to download additional data on "/storage/emulated/0/Android/data/com.example.package/files/", but on Android 11 & 12 - get this error while starting additional data download:

Download stopped

com.example.androidlib.j: Could not create the directory /storage/emulated/0/Android/data/com.example.package/files/

with last ApkTool v2.7.0 java version (.jar) (tested also with last APK Editor on Android) i've decompiled APK file, and this is stock AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.example.package" platformBuildVersionCode="9" platformBuildVersionName="2.3.1">

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

<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>

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

<uses-permission android:name="com.android.vending.BILLING"/>

<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="false" android:xlargeScreens="true"/>

<uses-configuration android:reqTouchScreen="finger"/>

<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true"/>

<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="true"/>

<uses-feature android:name="android.hardware.wifi" android:required="false"/>

<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">

<activity android:configChanges="keyboardHidden|orientation" android:label="@string/app_name" android:name=".packageActivity" android:screenOrientation="landscape">

<intent-filter>

<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

<activity android:configChanges="keyboardHidden|orientation" android:name="com.example.androidlib.MainActivity" android:screenOrientation="landscape"/>

<activity android:configChanges="keyboardHidden|orientation" android:name="com.example.androidlib.LicenseActivity" android:screenOrientation="landscape"/>

<activity android:configChanges="keyboardHidden|orientation" android:name="com.example.androidlib.DownloadActivity" android:screenOrientation="landscape"/>

<activity android:configChanges="keyboardHidden|orientation" android:name="com.example.androidlib.GLExtensionActivity" android:screenOrientation="landscape"/>

</application>

</manifest>

i tried to fix permission & build version issues with this strings:

platformBuildVersionCode="31" platformBuildVersionName="12"

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>

and finally i've recompiled all with same last ApkTool v2.7.0 java version (.jar) (tested also with last APK Editor on Android)

but unfortunately, persist the error while starting additional data download

not work even if manually move additional data on right path/folder

how to solve?!?