Open GoogleCodeExporter opened 8 years ago
Issue resolved, explained below:
Logcat reports that ActivityManager crashed with error "Can't use
FLAG_RECEIVER_BOOT_UPGRADE here", although the only intent flag set in Anycut
application is FLAG_ACTIVITY_CLEAR_TOP.
The reason is that in jelly bean (4.1.1_r1), both these flags have same value.
frameworks/base/core/java/android/content/Intent.java:
public static final int FLAG_RECEIVER_BOOT_UPGRADE = 0x04000000;
public static final int FLAG_ACTIVITY_CLEAR_TOP = 0x04000000;
Anycut did not throw this error while running in earlier Android versions
because the constant values were different:
public static final int FLAG_RECEIVER_BOOT_UPGRADE = 0x08000000;
public static final int FLAG_ACTIVITY_CLEAR_TOP = 0x04000000;
Anyway, Anycut is sends this intent as broadcast, and not launch an activity
directly. So there is no point in setting any activity-related flag like
FLAG_ACTIVITY_CLEAR_TOP. The app works well after removing this flag.
Original comment by hcl.oem....@gmail.com
on 17 Jun 2013 at 7:20
Original issue reported on code.google.com by
hcl.oem....@gmail.com
on 29 May 2013 at 7:33