PFlores81 Active Member Licensed User Longtime User Oct 13, 2013 #1 Is there any way around this? If I compile a standard build, everything works as it should. However, when i compile an Obfuscated release it will throw a java exception stating bad base 64 for the license key.
Is there any way around this? If I compile a standard build, everything works as it should. However, when i compile an Obfuscated release it will throw a java exception stating bad base 64 for the license key.
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2013 #2 Add a Log(YourKeyVariable) command and check its value. Upvote 0
PFlores81 Active Member Licensed User Longtime User Oct 14, 2013 #3 Erel said: Add a Log(YourKeyVariable) command and check its value. Click to expand... The error in question is this Code: Copy java.lang.IllegalArgumentException: com.android.vending.licensing.util.Base64DecoderException: Bad Base64 input character at 1: -65(decimal) Not sure what you mean by add a log. I have it logging the license check and even while plugged in for debugging it still will not show me the logs, filtered or not. Previous versions of B4A I had no issues viewing the logs. Code: Copy Sub Activity_Create(FirstTime As Boolean) lc.Initialize("lc", ph.GetDeviceId, publicKey, "etc".GetBytes("UTF8")) lc.SetVariableAndValue("lca_1", "Value") lc.CheckAccess Upvote 0
Erel said: Add a Log(YourKeyVariable) command and check its value. Click to expand... The error in question is this Code: Copy java.lang.IllegalArgumentException: com.android.vending.licensing.util.Base64DecoderException: Bad Base64 input character at 1: -65(decimal) Not sure what you mean by add a log. I have it logging the license check and even while plugged in for debugging it still will not show me the logs, filtered or not. Previous versions of B4A I had no issues viewing the logs. Code: Copy Sub Activity_Create(FirstTime As Boolean) lc.Initialize("lc", ph.GetDeviceId, publicKey, "etc".GetBytes("UTF8")) lc.SetVariableAndValue("lca_1", "Value") lc.CheckAccess
Erel B4X founder Staff member Licensed User Longtime User Oct 15, 2013 #4 Nothing related to the logs feature has changed in v3.0. The question is whether the obfuscation mode has changed the value of publicKey. Add Log(publicKey) and check it. Upvote 0
Nothing related to the logs feature has changed in v3.0. The question is whether the obfuscation mode has changed the value of publicKey. Add Log(publicKey) and check it.
PFlores81 Active Member Licensed User Longtime User Oct 15, 2013 #5 https://db.tt/qBDungFN Here is a link to a screenshot of the logcat. Let me know if you see something amiss Upvote 0
https://db.tt/qBDungFN Here is a link to a screenshot of the logcat. Let me know if you see something amiss
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2013 #6 Note that you can check the logs from the IDE, it is simpler. For obfuscation to work properly the version code attribute must match the value in the manifest file. Have you checked "Do not overwrite manifest file" option? Upvote 0
Note that you can check the logs from the IDE, it is simpler. For obfuscation to work properly the version code attribute must match the value in the manifest file. Have you checked "Do not overwrite manifest file" option?
PFlores81 Active Member Licensed User Longtime User Oct 16, 2013 #7 Erel said: Note that you can check the logs from the IDE, it is simpler. For obfuscation to work properly the version code attribute must match the value in the manifest file. Have you checked "Do not overwrite manifest file" option? Click to expand... Yes Sir, I write my own manifests, I have always checked off "Do not overwrite Manifest" Never had an issue with obfuscation prior to invoking the license. Upvote 0
Erel said: Note that you can check the logs from the IDE, it is simpler. For obfuscation to work properly the version code attribute must match the value in the manifest file. Have you checked "Do not overwrite manifest file" option? Click to expand... Yes Sir, I write my own manifests, I have always checked off "Do not overwrite Manifest" Never had an issue with obfuscation prior to invoking the license.
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2013 #8 There is no good reason to use this option. It is only kept for backwards compatibility. All the changes can be done with the manifest editor. Make sure that the value of versionCode in the manifest file matches the value in #VersionCode attribute. Upvote 0
There is no good reason to use this option. It is only kept for backwards compatibility. All the changes can be done with the manifest editor. Make sure that the value of versionCode in the manifest file matches the value in #VersionCode attribute.
PFlores81 Active Member Licensed User Longtime User Oct 16, 2013 #9 Erel said: There is no good reason to use this option. It is only kept for backwards compatibility. All the changes can be done with the manifest editor. Make sure that the value of versionCode in the manifest file matches the value in #VersionCode attribute. Click to expand... Wow, I cannot believe it was right in front of my face the entire time and I did not even see it LOL. I changed the manifest around using the editor, made it pull values from the scripting in the app. and ofuscation worked for the license. wow. Thanks again Erel Upvote 0
Erel said: There is no good reason to use this option. It is only kept for backwards compatibility. All the changes can be done with the manifest editor. Make sure that the value of versionCode in the manifest file matches the value in #VersionCode attribute. Click to expand... Wow, I cannot believe it was right in front of my face the entire time and I did not even see it LOL. I changed the manifest around using the editor, made it pull values from the scripting in the app. and ofuscation worked for the license. wow. Thanks again Erel