fix DYNAMIC_RECEIVER error by fixing ManifestPatcher

Add automatic <uses-permission> entries for declared/custom permissions
(eg. names ending with _PERMISSION or containing DYNAMIC_RECEIVER).
Ensure MANAGE_EXTERNAL_STORAGE is added after READ_EXTERNAL_STORAGE when
needed. Improve handling of permission/provider name replacements,
targetSdk and application attribute injection (debuggable, legacy
storage, embedded dex, extractNativeLibs) and add manager metadata
entry. Also minor formatting and visitor restructuring.
This commit is contained in:
kmmiio99o 2025-10-25 01:23:40 +02:00
commit 6b53bd403f
2 changed files with 3 additions and 3 deletions

View file

@ -24,9 +24,8 @@ android {
defaultConfig {
minSdk = 28
targetSdk = 36
versionCode = 10_00_20
versionName = "1.0.2"
versionCode = 10_00_10
versionName = "1.0.1"
vectorDrawables {
useSupportLibrary = true
}

View file

@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="dev.shiggy.cord.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" />