mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
Compare commits
3 Commits
e1544a8ae3
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
a82de55694 | ||
59c4b9870b
|
|||
|
bab5068484 |
@@ -61,15 +61,15 @@ libraries:
|
|||||||
version: 1.0.1
|
version: 1.0.1
|
||||||
com.highcapable.hikage:
|
com.highcapable.hikage:
|
||||||
hikage-core:
|
hikage-core:
|
||||||
version: 1.0.1
|
version: 1.0.2
|
||||||
hikage-compiler:
|
hikage-compiler:
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
hikage-extension:
|
hikage-extension:
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
hikage-widget-androidx:
|
hikage-widget-androidx:
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
hikage-widget-material:
|
hikage-widget-material:
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
com.highcapable.betterandroid:
|
com.highcapable.betterandroid:
|
||||||
ui-component:
|
ui-component:
|
||||||
version: 1.0.8
|
version: 1.0.8
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
package com.highcapable.yukihookapi.hook.core
|
package com.highcapable.yukihookapi.hook.core
|
||||||
|
|
||||||
|
import com.highcapable.kavaref.extension.classOf
|
||||||
import com.highcapable.kavaref.extension.isNotSubclassOf
|
import com.highcapable.kavaref.extension.isNotSubclassOf
|
||||||
import com.highcapable.yukihookapi.YukiHookAPI
|
import com.highcapable.yukihookapi.YukiHookAPI
|
||||||
import com.highcapable.yukihookapi.hook.bean.HookClass
|
import com.highcapable.yukihookapi.hook.bean.HookClass
|
||||||
@@ -545,6 +546,7 @@ class YukiMemberHookCreator internal constructor(private val packageParam: Packa
|
|||||||
*/
|
*/
|
||||||
private fun checkingReturnType(origin: Class<*>?, target: Class<*>?) {
|
private fun checkingReturnType(origin: Class<*>?, target: Class<*>?) {
|
||||||
if (origin == null || target == null) return
|
if (origin == null || target == null) return
|
||||||
|
if (origin == classOf<Any>()) return
|
||||||
origin.toJavaPrimitiveType().also { o ->
|
origin.toJavaPrimitiveType().also { o ->
|
||||||
target.toJavaPrimitiveType().also { t ->
|
target.toJavaPrimitiveType().also { t ->
|
||||||
if (o isNotSubclassOf t && t isNotSubclassOf o)
|
if (o isNotSubclassOf t && t isNotSubclassOf o)
|
||||||
|
@@ -509,6 +509,7 @@ internal object AppParasitics {
|
|||||||
?.optional(silent = true)
|
?.optional(silent = true)
|
||||||
?.firstFieldOrNull { name = "IActivityTaskManagerSingleton" }
|
?.firstFieldOrNull { name = "IActivityTaskManagerSingleton" }
|
||||||
?.get()
|
?.get()
|
||||||
|
singleton?.let {
|
||||||
SingletonClass.resolve()
|
SingletonClass.resolve()
|
||||||
.processor(AndroidHiddenApiBypassResolver.get())
|
.processor(AndroidHiddenApiBypassResolver.get())
|
||||||
.optional(silent = true)
|
.optional(silent = true)
|
||||||
@@ -520,6 +521,7 @@ internal object AppParasitics {
|
|||||||
mInstance2?.let {
|
mInstance2?.let {
|
||||||
mInstanceResolver2.set(IActivityManagerProxyImpl.createWrapper(IActivityTaskManagerClass, it))
|
mInstanceResolver2.set(IActivityManagerProxyImpl.createWrapper(IActivityTaskManagerClass, it))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
isActivityProxyRegistered = true
|
isActivityProxyRegistered = true
|
||||||
}.onFailure { YLog.innerE("Activity Proxy initialization failed because got an exception", it) }
|
}.onFailure { YLog.innerE("Activity Proxy initialization failed because got an exception", it) }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user