Numark
Awesome Active Platinian
There are some errors in newer games and newer updates of the current game when you try to "re-compiling" an APK. Especially if you are modifying the game. And there comes another error when you try to make changes in your smali files and trying to re-compile your game. Well I am here to show you some methods to outcome these errors.
Lets start with the Android Manifest errors. To fix this, we need to open the games AndroidManifest.xml.
I will be modifying CSR 2, it is a Unity Il2cpp game made by Natural Motions. I haven't been able to re-compile the APK due to several errors.
So lets check out what these errors are...
Unfortunately, I cannot show you these errors, you will have to find them in APK Easy Tool logs, or any logs when you get an error trying to re-compile.
It is part of Google's Privacy Sandbox, which is designed to improve privacy while still supporting personalized ads and measurement APIs without directly tracking users.
This is an error that you need to completely remove, don't worry as I tried this and the game ran fine. This will remove the errors of re-compiling or showing an error in your logs when compiling.
Note, there are 1 or 2 more lines of this, so you will need to find where the other AD Services is being used in AndroidManifest.xml
That covers the error of AndroidManifest.xml, The next one is smali files.
So why is this a big deal? Because when you are modding the game or making any changes, the problem is that you're adding your menu's files. Adding one or two files will exceed the dex limit of 63356... You're adding more files and sizes to it. The game doesn't take it when you compile it. That's not it either, you are adding a line of code within the games Launch Main Activity under onCreate to launch your mods or mod menu. That also exceeds the limit. Simply to fix all of that... Here's one simple way. We will open up Android Studio and open our project mod menu's that we are using or whatever you're using.
WE will go to build.gradle. We will open the build.gradle under the directory of app.
The build types is really important. We would need to set the value to true for both shrinkResources and minifyEnabled. shrinkResources mostly because it shrinks the file size which in case helps us to bypass the dex exceed of 65536 error.
Again, I could be wrong and it may not work as intended. But those are the errors I have tried and made it work.
Also, if you don't want errors for your dex problems, one way is to find a C++ Mod Menu, only load the lib from launch.
Overall, this should help you re-compile your modded APK fine. If any questions you have, leave them below please.
DO NOT DM ME OR MESSAGE ME PRIVATELY. I will not answer personally.
Credits to Everyone and the Platinmods (Team & Community)
Lets start with the Android Manifest errors. To fix this, we need to open the games AndroidManifest.xml.
I will be modifying CSR 2, it is a Unity Il2cpp game made by Natural Motions. I haven't been able to re-compile the APK due to several errors.
So lets check out what these errors are...
Unfortunately, I cannot show you these errors, you will have to find them in APK Easy Tool logs, or any logs when you get an error trying to re-compile.
What is android.adservices.AD_SERVICES_CONFIG?
The android.adservices.AD_SERVICES_CONFIG is a configuration setting related to Android Ad Services introduced in newer versions of Android (starting from Android 13).It is part of Google's Privacy Sandbox, which is designed to improve privacy while still supporting personalized ads and measurement APIs without directly tracking users.
What are Android Ad Services?
Android Ad Services refer to a set of APIs and features used for managing advertisements in Android apps. These services include:- Privacy-Preserving APIs - APIs like Topics API, FLEDGE, and Attribution Reporting API to reduce reliance on traditional ad-tracking methods.
- User Privacy Protection - Limits the access apps have to user data while still enabling ad personalization.
- Advertising ID Restrictions - In Android 12+, users can disable their Advertising ID to opt out of personalized ads.
This is an error that you need to completely remove, don't worry as I tried this and the game ran fine. This will remove the errors of re-compiling or showing an error in your logs when compiling.
Note, there are 1 or 2 more lines of this, so you will need to find where the other AD Services is being used in AndroidManifest.xml
That covers the error of AndroidManifest.xml, The next one is smali files.
So why is this a big deal? Because when you are modding the game or making any changes, the problem is that you're adding your menu's files. Adding one or two files will exceed the dex limit of 63356... You're adding more files and sizes to it. The game doesn't take it when you compile it. That's not it either, you are adding a line of code within the games Launch Main Activity under onCreate to launch your mods or mod menu. That also exceeds the limit. Simply to fix all of that... Here's one simple way. We will open up Android Studio and open our project mod menu's that we are using or whatever you're using.
WE will go to build.gradle. We will open the build.gradle under the directory of app.
The build types is really important. We would need to set the value to true for both shrinkResources and minifyEnabled. shrinkResources mostly because it shrinks the file size which in case helps us to bypass the dex exceed of 65536 error.
Again, I could be wrong and it may not work as intended. But those are the errors I have tried and made it work.
Also, if you don't want errors for your dex problems, one way is to find a C++ Mod Menu, only load the lib from launch.
Overall, this should help you re-compile your modded APK fine. If any questions you have, leave them below please.
DO NOT DM ME OR MESSAGE ME PRIVATELY. I will not answer personally.
Credits to Everyone and the Platinmods (Team & Community)