bug(Change package name): Changing package name causing collisions within it's own manifest #2545
Open
3 tasks done
Labels
Bug report
Something isn't working
Bug description
When applying the patch "Custom Package Name" to certain apps you can be faced with one of 2 issues depending on the app
AndroidManifest containing providers such as
<provider android:name="com.facebook.FacebookContentProvider" ... />
which could be a collision to the app while still running the original package name throughout the manifestSteps to Reproduce Provider Collision:
After removing the provider above with the first solution below I closed the apk and ran it through revanced manager again to find another issue of "Can't install because provider name com.original.apk.NativeShareContentProvider (in package com.modded.apk) is already used by com.original.apk"
This issue is most likely caused by lines in the Manifest that follow as such
android:authorities="com.original.apk.PERMISSION"
when the permissions are given to com.original.apkSolution
For the ContentProvider collision, i believe it to be caused as it is usually supplied with an identifier given with the app, making a patch that can find and remove or modify the code below could fix this issue, while warning that the feature may not work anymore based on how it is completed
For changing the ID there would also be a meta-data string that contains the ID as well under the following
For the second issue parsing the manifest and replacing all traces of
android:authorities="com.original.apk.PERMISSION"
and replacing it withandroid:authorities="com.modded.apk.PERMISSION"
seems to have fixed the issue but at the cost of Google Services in the app to no longer work, however it could possibly be fixed by adding seeing if it is possible to make GmsCore Support to have a universal applicationAdditional context
Below I have shown such an example using a game called Hackers by Trickster Arts
Before Removing FB - Fail caused by first error provided above
After Removing FB Content Provider - Fail caused by the second issue provided above
Screenshots below show Package Manager showing results of searching
hackers
fromcom.tricksterarts.hackers
as well as both errors shown using SAI (both apps installed through F-Droid) to provide evidence of these issues being present in both issues named aboveAcknowledgements
The text was updated successfully, but these errors were encountered: