2023-10-25, 12:22
Hi All, I have tried to transfer the Kodi apk to my Alexa echo 15 device, by using the Live App Testing feature (LAT) available on the Amazon developer platform. In order to upload the apk there, on my developer user account, it is required that the package name is modified, otherwise a conflict with an already existing app is detected (org.xmc.kodi) and the upload is blocked.
I was successful in changing the package name by decompiling and recompiling the official kodi apk, and editing the the package name within certain meta files (apktool.yml, AndroidManifest.xml and some *.smali files), as suggested within the following guide:
https://xdaforums.com/t/how-to-guide-mod...s.2760965/
I changed the name of the package to org.xbmc2.kodi.
But the renamed and recomplied apk, even if correctly installed on the target device, it does not work as expected and crashes for unknown reasons. I think it happens because the app normally read and write files to the /org/xbmc/kodi userdata folder.
After my renaming that folder is changed to something different: /org/xbmc2/kodi creating conflicts between the expected userdata folder name and the actual folder name.
In other terms the default userdata folder name (/org/xbmc/kodi) is hardcoded within the kodi code, so when it is changed to something different in the recompiled apk, then the installed app crashes.
Do you know if a working method exists for correctly changing the package name?
I was successful in changing the package name by decompiling and recompiling the official kodi apk, and editing the the package name within certain meta files (apktool.yml, AndroidManifest.xml and some *.smali files), as suggested within the following guide:
https://xdaforums.com/t/how-to-guide-mod...s.2760965/
I changed the name of the package to org.xbmc2.kodi.
But the renamed and recomplied apk, even if correctly installed on the target device, it does not work as expected and crashes for unknown reasons. I think it happens because the app normally read and write files to the /org/xbmc/kodi userdata folder.
After my renaming that folder is changed to something different: /org/xbmc2/kodi creating conflicts between the expected userdata folder name and the actual folder name.
In other terms the default userdata folder name (/org/xbmc/kodi) is hardcoded within the kodi code, so when it is changed to something different in the recompiled apk, then the installed app crashes.
Do you know if a working method exists for correctly changing the package name?