Skip to content

Commit 4ce6947

Browse files
committed
LSPass is being killed, use HiddenApiBypass method for S+ (updatable ART)
1 parent 48bede9 commit 4ce6947

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/org/akanework/gramophone/logic/GramophoneApplication.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import org.akanework.gramophone.R
6868
import org.akanework.gramophone.logic.ui.BugHandlerActivity
6969
import org.akanework.gramophone.logic.utils.Flags
7070
import org.akanework.gramophone.ui.LyricWidgetProvider
71+
import org.lsposed.hiddenapibypass.HiddenApiBypass
7172
import org.lsposed.hiddenapibypass.LSPass
7273
import org.nift4.gramophone.hificore.UacManager
7374
import uk.akane.libphonograph.Constants
@@ -91,7 +92,9 @@ class GramophoneApplication : Application(), SingletonImageLoader.Factory,
9192
init {
9293
@SuppressLint("DefaultUncaughtExceptionDelegation")
9394
Thread.setDefaultUncaughtExceptionHandler(this)
94-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
95+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
96+
HiddenApiBypass.setHiddenApiExemptions("")
97+
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
9598
LSPass.setHiddenApiExemptions("")
9699
}
97100
if (BuildConfig.DEBUG) {

0 commit comments

Comments
 (0)