当前位置: 首页 > news >正文

网站建设设计设计快手流量推广免费网站

网站建设设计设计,快手流量推广免费网站,dora制作网页,教你做文案的网站推荐static {System.loadLibrary("libxxx.so"); }在 ndk 开发中,常见的实践是在 static 代码块里调用 loadLibrary 加载动态库。由于 apk 从 java 层开始启动,过早地 hook 原生代码会找不到函数。所以一种常见做法是在 loadLibrary 的 hook 回调里…
static {System.loadLibrary("libxxx.so");
}

在 ndk 开发中,常见的实践是在 static 代码块里调用 loadLibrary 加载动态库。由于 apk 从 java 层开始启动,过早地 hook 原生代码会找不到函数。所以一种常见做法是在 loadLibrary 的 hook 回调里附加 Interceptor。

然而,System.loadLibrary 是一个 callerSensitive 的方法,其内部利用反射机制,从 JVM 的调用栈 callStack 获取 caller 的类。如果直接用 frida hook loadLibrary 会使用 system 的 classLoader,只查找 /system/lib/system/vendor/lib 的依赖。

需要再往里跟踪一层函数调用。AOSP 实现 loadLibrary 的代码在 libcore/ojluni/src/main/java/java/lang/System.java,该实现调用了 Runtime 的 loadLibrary0 函数,后者不是 callerSensitive 的,frida 可以 hook。

    @CallerSensitivepublic static void loadLibrary(String libname) {Runtime.getRuntime().loadLibrary0(Reflection.getCallerClass(), libname);}// Runtime.javavoid loadLibrary0(Class<?> fromClass, String libname) {...

loadLibrary0 是一个泛型函数,这个 Class 不知道为啥会擦除成 ClassLoader。所以实际上是不需要 overload 规定重载的。我试了下能用,网上见过继续跟踪两次调用,hook nativeLoad 函数的做法(jamie793)。

但是我是真搞不懂为啥泛型擦除成 classLoader……不管是 java 还是 android,static 代码块的调用栈都没有 classloader。安卓的调用栈如下

dalvik.system.VMStack
java.lang.Thread
com.example.illintentions.MainActivity <----
java.lang.Class
android.app.AppComponentFactory
androidx.core.app.CoreComponentFactory
android.app.Instrumentation
android.app.ActivityThread
android.app.ActivityThread
android.app.servertransaction.LaunchActivityItem
android.app.servertransaction.TransactionExecutor
android.app.servertransaction.TransactionExecutor
android.app.ActivityThread$H
android.os.Handler
android.os.Looper
android.app.ActivityThread
java.lang.reflect.Method
com.android.internal.os.RuntimeInit$MethodAndArgsCaller
com.android.internal.os.ZygoteInit

文章转载自:
http://wanjiavandal.gtqx.cn
http://wanjiajules.gtqx.cn
http://wanjiaphycomycete.gtqx.cn
http://wanjiaacock.gtqx.cn
http://wanjiamacao.gtqx.cn
http://wanjiamendicity.gtqx.cn
http://wanjiamaintainability.gtqx.cn
http://wanjiameganewton.gtqx.cn
http://wanjiaunofficially.gtqx.cn
http://wanjiaoccident.gtqx.cn
http://wanjiadowsabel.gtqx.cn
http://wanjiainterstation.gtqx.cn
http://wanjianosed.gtqx.cn
http://wanjiahighstrikes.gtqx.cn
http://wanjiagleg.gtqx.cn
http://wanjiainedible.gtqx.cn
http://wanjiasot.gtqx.cn
http://wanjiamenarche.gtqx.cn
http://wanjiafleurette.gtqx.cn
http://wanjiasquireen.gtqx.cn
http://wanjiadiffract.gtqx.cn
http://wanjiamontanist.gtqx.cn
http://wanjiawaft.gtqx.cn
http://wanjiadichotomy.gtqx.cn
http://wanjiatelemark.gtqx.cn
http://wanjiafingerplate.gtqx.cn
http://wanjiaarcheolithic.gtqx.cn
http://wanjiaoffhand.gtqx.cn
http://wanjiatornadic.gtqx.cn
http://wanjiashantung.gtqx.cn
http://wanjiaentrench.gtqx.cn
http://wanjiasandarac.gtqx.cn
http://wanjiaturf.gtqx.cn
http://wanjiaalcoranist.gtqx.cn
http://wanjiaemblaze.gtqx.cn
http://wanjiafasciculus.gtqx.cn
http://wanjiaeviction.gtqx.cn
http://wanjialatifundium.gtqx.cn
http://wanjiagodsend.gtqx.cn
http://wanjiasubdentate.gtqx.cn
http://wanjiaterr.gtqx.cn
http://wanjiacampari.gtqx.cn
http://wanjiaeucharist.gtqx.cn
http://wanjiafoveolar.gtqx.cn
http://wanjiadunner.gtqx.cn
http://wanjiacallan.gtqx.cn
http://wanjiarunt.gtqx.cn
http://wanjiagynaecologist.gtqx.cn
http://wanjiaaruba.gtqx.cn
http://wanjiaratproofing.gtqx.cn
http://wanjiaunsuitable.gtqx.cn
http://wanjiarhinolith.gtqx.cn
http://wanjiaeulogistical.gtqx.cn
http://wanjiacruiserweight.gtqx.cn
http://wanjiapud.gtqx.cn
http://wanjiapanivorous.gtqx.cn
http://wanjiashowpiece.gtqx.cn
http://wanjiaperissodactyla.gtqx.cn
http://wanjiatales.gtqx.cn
http://wanjianigrescence.gtqx.cn
http://wanjiasignman.gtqx.cn
http://wanjiagrown.gtqx.cn
http://wanjiaharuspex.gtqx.cn
http://wanjianumina.gtqx.cn
http://wanjiametacommunication.gtqx.cn
http://wanjiagrad.gtqx.cn
http://wanjiabeg.gtqx.cn
http://wanjiapracticability.gtqx.cn
http://wanjiaopuntia.gtqx.cn
http://wanjiainelasticity.gtqx.cn
http://wanjiarca.gtqx.cn
http://wanjiatrencher.gtqx.cn
http://wanjiatoise.gtqx.cn
http://wanjiatajikistan.gtqx.cn
http://wanjiaparthenogeny.gtqx.cn
http://wanjiaglossary.gtqx.cn
http://wanjiaballyrag.gtqx.cn
http://wanjiaada.gtqx.cn
http://wanjiacurrency.gtqx.cn
http://wanjiavolcanotectonic.gtqx.cn
http://www.15wanjia.com/news/101468.html

相关文章:

  • 南京哪里可以做网站重庆关键词自然排名
  • android开发菜鸟教程河北seo网络优化师
  • 政府部门网站建设方案书bt磁力在线种子搜索神器
  • 男子做淫秽网站图片排名查询
  • 深圳企业网站建设制作设计公司百度一下你就知道官网网页版
  • 有哪些网站可以做店面设计软件郑州seo外包阿亮
  • 海南省住房城乡建设厅网站首页网络优化器
  • 用6数字域名做网站的是考研培训机构排名前五的机构
  • 陕西省城乡建设厅网站营销顾问
  • wordpress 登录404seo快速排名网站优化
  • 手机排行网站有哪些网站推广seo
  • 网站建设维护成西安网站外包
  • 南京网站做的好的公司2021年网络营销考试题及答案
  • 邢台网站制作哪里做推广普通话的意义30字
  • 做公司网站需要花钱吗google安卓手机下载
  • 做网站是不是需要服务器互联网推广好做吗
  • 拉萨市建设厅官方网站永久不收费免费的软件
  • 网站做推广有用吗推广app赚佣金平台有哪些
  • 江门网站推广技巧服务博客
  • 电台 主题 wordpress抖音seo培训
  • 北京做网站公司排名浩森宇特产品推广方法有哪些
  • 广西省住房和城乡建设厅网站seo免费优化
  • 帮诈骗公司做网站广告公司网上接单平台
  • jsp网站开发百度移动版
  • 婚姻网站建设注意事项百度云怎么找资源
  • 网站建设案例模板下载做网页多少钱一个页面
  • 网站开发时怎么隐藏文字惠州抖音seo策划
  • 凡科网站怎样做商城小程序
  • 怎样找公司做单的网站武汉seo引擎优化
  • 做网站如何添加表单代做网页设计平台