Skip to content

Commit

Permalink
Fix app crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG committed Dec 29, 2022
1 parent 22311fe commit 99c3e1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Magic
-keep class com.tsng.hidemyapplist.Magic { *; }

# Xposed
-keepclassmembers class icu.nullptr.hidemyapplist.MyApp {
boolean isHooked;
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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),
Expand Down

0 comments on commit 99c3e1f

Please sign in to comment.