Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 382876da authored by Suprabh Shukla's avatar Suprabh Shukla Committed by Presubmit Automerger Backend
Browse files

[automerge] Stop crashing the system on hitting the alarm limit 2p: 87fd5061

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19109495

Bug: 234441463
Change-Id: I0826049a26f2a9718342f9e00386a886882160b3
Merged-In: Id5e94d44ac9ab24870a8213ec7583da0f592a5ff
parents 74a6adb8 87fd5061
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ import android.text.TextUtils;
import android.text.format.DateFormat;
import android.util.ArrayMap;
import android.util.ArraySet;
import android.util.EventLog;
import android.util.IndentingPrintWriter;
import android.util.Log;
import android.util.LongArrayQueue;
@@ -2031,7 +2032,11 @@ public class AlarmManagerService extends SystemService {
                                + " reached for uid: " + UserHandle.formatUid(callingUid)
                                + ", callingPackage: " + callingPackage;
                Slog.w(TAG, errorMsg);
                if (callingUid != Process.SYSTEM_UID) {
                    throw new IllegalStateException(errorMsg);
                } else {
                    EventLog.writeEvent(0x534e4554, "234441463", -1, errorMsg);
                }
            }
            setImplLocked(type, triggerAtTime, triggerElapsed, windowLength, interval, operation,
                    directReceiver, listenerTag, flags, workSource, alarmClock, callingUid,