I want to replace an apk default save data file . For example I have an app and i set some setting on the app settings or i progress on the app and it works better and is better optimized . I want to replace my now better optimized save data to the default apk save data file . So when i reinstall or share the app to on another device my setting or data is there by default.
If you can guide me in apk editor or apk tool or some easy way it would be really appreciated And is this even possible to do on smali changing with apktool ? Or i have to find a way to java edit it ?
It is not possible in the way you want, because the settings that are changed will be set in the data folder, of course the data folder you say is not the main settings folder, if your phone is rooted, you have access to that folder.
By sharing the app, you cannot transfer the settings or data on your phone, it is only possible if your phone is rooted and you send the main data folder of the app along with the app to the second phone. Be careful, the second phone must also be rooted.
So far this is not the answer of your
In order to be able to share the program with new settings, you need to enter the source codes of the program and customize the default settings from there.
For example, if you can select the font in the settings, and the default font is Nastaliq, and for example, you want to set another font, you must make these changes in the source code of the program. After making the changes, you can share the program with the new default settings.