Fix app crash

This commit is contained in:
Nullptr 2022-12-29 23:19:16 +08:00
commit 99c3e1fd9c
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,3 @@
# Magic
-keep class com.tsng.hidemyapplist.Magic { *; }
# Xposed
-keepclassmembers class icu.nullptr.hidemyapplist.MyApp {
boolean isHooked;
@ -14,3 +11,5 @@
-keep class icu.nullptr.hidemyapplist.data.UpdateData { *; }
-keep class icu.nullptr.hidemyapplist.data.UpdateData$* { *; }
-keep,allowoptimization class * extends androidx.preference.PreferenceFragmentCompat

View file

@ -45,7 +45,6 @@ object ServiceClient : IHMAService, DeathRecipient {
pm.transact(Constants.TRANSACTION, data, reply, 0)
reply.readException()
val binder = reply.readStrongBinder()
binder.linkToDeath(this, 0)
IHMAService.Stub.asInterface(binder)
} catch (e: RemoteException) {
Log.d(TAG, "Failed to get binder")
@ -56,6 +55,7 @@ object ServiceClient : IHMAService, DeathRecipient {
}
if (remote != null) {
Log.i(TAG, "Binder acquired")
remote.asBinder().linkToDeath(this, 0)
service = Proxy.newProxyInstance(
javaClass.classLoader,
arrayOf(IHMAService::class.java),