| | 02-13-14, 03:22 PM Thread Author #1
Let's get access to Clash of Clans app data and save files.
For people new to this thread. There have been found several workarounds for saving clash of clans' app data. Reports say that it's data can be backed up and restored using BlackBerry Link if you are running the latest version of BlackBerry Link AND BlackBerry 10.3.1 or higher.
Some users even succeeded linking their CoC game on their BlackBerry 10 phones to an android device by contacting SuperCell. They are able to acces their CoC village from two different devices and won't have to worry about losing progress anymore. It seems important though that contacting Supercell has to be done from an Android device and you shouldn't mention you're using a BlackBerry.
For more information, start reading on page 10 of this thread and you'll find plenty of information.
Along with (looking at the forums) many of you I have been playing Clash of Clans since BlackBerry released 10.2.1 to us and allowed native APK installation. The game is working perfectly except for the fact our progress doesn't sync to the cloud because we can't sign in with Google+.
For almost a full week now I have been trying to find a way to make sure we won't lose our game progress once we update Clash of Clans, update BlackBerry 10 OS, switch devices etc. None of us likes to lose weeks of playtime right?
I have tried several methods and I couldn't get the following to work:
- Get Google+ sign-in to work by installing Google PlayStore, Google Play Service and tried patching these
- Get Google Play Games to work since it also creates back-ups of games on android devices.
- Tried making back-ups using apps that don't require root acces like Helium
- Create a full back-up using BlackBerry Link (Still not sure if the back-up includes APK's application data, currently haven't dared to test)
I kept searching for other ways to acces the game's application data and save files but these are protected within the android runtime and simply trying to copy those files will result in an error message "permission denied". Still I kept digging around the internet and found another possible way to get acces to the game's application and save files:
The last possible fix I worked on:
Always disable the debug state in a released application as it is possible (via JDWP) to gain full access to the Java process and execute arbitrary code in the context of the application, if this debug state is not disabled.
As far as I know the debug state can be turned on in the file "AndroidManifest.xml" which would mean I could:
1. Decompile the APK file
2. Turn debug state on
3. Compile and sign the APK
4. Install the editted APK on my BlackBerry Z10.
I wanted to try the above method but thought of one problem, I can't install the editted APK file of Clash of Clans because it has the same version as the one that's already installed on my BlackBerry Z10. Removing the current version of Clash of Clans first would erase my game's progress so that's not an option either.
Then I came up with the idea to upgrade Clash of Clans version number as well as turning the debug mode on so starting the installation would result in and Update and not a new installation. This way the game's application data should remain untouched, while still being able to run the editted version of Clash of Clans with debug mode on.
The current installed and latest version of Clash of Clans is version 5.172. I have tried to edit the version number of Clash of Clans to 5.173 by adding the following two line to the file "AndroidManifest.xml":
Rebuilding the APK succeeds but not without a warning and this is especially what I need your help with. It seems that the version number is already defined somewhere else:
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
I hope some of you can help me to fix the warning so we can find out together if this method would allow us to get acces to Clash of Clans application data and save files.
I have succesfully created a new APK with all above described changes. I changed the APK's manifest to make the APK debuggable and turned the possibility to back-up on (true). I also increased the VersionCode to 531 and VersionNumber to 5.173. When I tried to install the APK it gave me the option to Update! Unfortunately the update didn't succeed and gave me an error message "Cannot install the APK" which I think is caused by the fact the original version and my APK do not have the same signatures.
I tried to install the editted version of CoC on another Z10 which didn't have the original game installed and it worked fine! Still when I connected to the android runtime and started a shell, the command "run-as com.supercell.clashofclans" was not recognized. This would work on android as long as the app is debuggable. Conclusion: I am in need of your help guys, do you have any other ideas we could try?
KermEd has also been investigating the matter and found a way to back-up progress for NEW USERS. For existing users there haven't been found a way yet to achieve any sort of backup or google play workaround. For more information about his foundings, check out post #48 in this thread.
A solution has been found! Added the information on the top of this original post so people find what they are looking for faster. Many thanks to all the help of the CrackBerry users. You are the best.
PS: I hope the time and effort I spend on this problem will motivate you to help me and a lot of CrackBerry members We have enough smart people around here to get this sorted out, i'm sure of it!