Fix app crash
This commit is contained in:
parent
22311fe5db
commit
99c3e1fd9c
2 changed files with 3 additions and 4 deletions
5
app/proguard-rules.pro
vendored
5
app/proguard-rules.pro
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue