I recently released the app in a game store, and although it works fine without proguard, I had an unexpected accident when I decided to use it.
I looked here for recommended security rules for google play services, I also tried to add another line for this case. Here is what I got (third line for my application):
-keep class * extends java.util.ListResourceBundle { protected Object[][] getContents(); } -keep class * implements com.google.android.gms.internal.ae -keep class * extends il.co.kix.minitasker.EntityBase
Here's a crash report after doing a reverse
android.os.BadParcelableException: Parcelable protocol requires a Parcelable.Creator object called CREATOR on class com.google.android.gms.location.ActivityRecognitionResult at android.os.Parcel.readParcelable(Parcel.java:2086) at android.os.Parcel.readValue(Parcel.java:1965) at android.os.Parcel.readMapInternal(Parcel.java:2226) at android.os.Bundle.unparcel(Bundle.java:223) at android.os.Bundle.containsKey(Bundle.java:271) at android.content.Intent.hasExtra(Intent.java:4116) at com.google.android.gms.location.ActivityRecognitionResult.boolean hasResult(android.content.Intent)(Unknown Source) com.google.android.gms.location.DetectedActivity getMostProbableActivity() at il.co.kix.minitasker.ActivityRecognitionIntentService.void onHandleIntent(android.content.Intent)(Unknown Source) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:60)
Offensive lines of code are probably the following:
... @Override protected void onHandleIntent(Intent intent) { if (ActivityRecognitionResult.hasResult(intent)) { ActivityRecognitionResult result = ActivityRecognitionResult.extractResult(intent); DetectedActivity mostProbableActivity = result.getMostProbableActivity(); ...
Can someone help with adding a rule? I do not want to disconnect all this together, but it fixes a problem.
source share