Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AOSPA/android_packages_apps_ParanoidSense
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: uvite
Choose a base ref
...
head repository: AOSPA-overlook/android_packages_apps_ParanoidSense
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: uvite
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Dec 25, 2023

  1. ParanoidSense: Replace make pending intents immutable

    They aren't changed anyway
    
    Change-Id: I3986c52c78389703a6b259ee5bca2503b3c7ba94
    StyloGey authored and BladeRunner-A2C committed Dec 25, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    BladeRunner-A2C Impala#67
    Copy the full SHA
    3e9d6f5 View commit details
  2. ParanoidSense: Fix SecurityException with registerReceiver

    Required on A14 onwards.
    
    Log: https://katb.in/kotijojocuy
    
    Change-Id: Id3b0349e99f470085decb6d2cba64a6c83913b80
    neobuddy89 authored and BladeRunner-A2C committed Dec 25, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    BladeRunner-A2C Impala#67
    Copy the full SHA
    51f375c View commit details
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/co/aospa/sense/SenseService.kt
8 changes: 4 additions & 4 deletions src/co/aospa/sense/SenseService.kt
Original file line number Diff line number Diff line change
@@ -260,20 +260,20 @@ class SenseService : Service() {
mIdleTimeoutIntent = PendingIntent.getBroadcast(
applicationContext, 0, Intent(
ALARM_TIMEOUT_FREEZED
), PendingIntent.FLAG_MUTABLE
), PendingIntent.FLAG_IMMUTABLE
)
mLockoutTimeoutIntent = PendingIntent.getBroadcast(
applicationContext, 0, Intent(
ALARM_FAIL_TIMEOUT_LOCKOUT
), PendingIntent.FLAG_MUTABLE
), PendingIntent.FLAG_IMMUTABLE
)
val intentFilter = IntentFilter()
intentFilter.addAction(ALARM_TIMEOUT_FREEZED)
intentFilter.addAction(ALARM_FAIL_TIMEOUT_LOCKOUT)
intentFilter.addAction(Intent.ACTION_SCREEN_OFF)
intentFilter.addAction(Intent.ACTION_USER_PRESENT)
intentFilter.priority = IntentFilter.SYSTEM_HIGH_PRIORITY
registerReceiver(mReceiver, intentFilter)
registerReceiver(mReceiver, intentFilter, Context.RECEIVER_NOT_EXPORTED)
if (Util.IS_DEBUG_LOGGING) {
Log.d(TAG, "OnCreate end")
}
@@ -643,4 +643,4 @@ class SenseService : Service() {
private const val LOCKOUT_TYPE_PERMANENT = 2
private const val LOCKOUT_TYPE_IDLE = 3
}
}
}