Federico Smeke
Nov 09, 2018
3:53 pm

Can't activate Knox licence when minifyEnabled is true

Hi, I can activate the licence successfully when my apps runs in debug mode, but when I generate a signed APK with minifyEnabled true in order to ofuscate the source code the licence can't be activated anymore. I put some lines on my proguard-rules file, like

 

# Samsung Knox SDK
-dontwarn com.samsung.**
-keep class com.samsung.** { *; }
-keep interface com.samsung.** { *; }
-keep enum com.samsung.** { *; }
-keepclassmembers class com.samsung.** { *; }

-keep class android.app.enterprise.**
-keep class android.app.admin.DevicePolicyManager.**
-keep class com.sec.enterprise.**
-keepclassmembers class com.sec.enterprise.** { *; }
-keepclassmembers class android.app.admin.** { *; }
-keepclassmembers class android.app.enterprise.** { *; }

 

But doesn't help. How can I activate the licence at the same time that I have a ofuscated and signed apk.

Similar topics

No similar topics found.
Jenna S.Samsung SEAP Moderator
Selected Answer
Nov 09, 2018
9:16 pm

Hello Federico,

You will need to re-bind your license to the signed APK. You can do this here

Best regards,

Jenna

Comments

Thank you Jenna, it worked!!!

Federico SmekeNov 12, 2018 at 2:32 pm