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

网站建设设计设计it培训机构哪个好

网站建设设计设计,it培训机构哪个好,东莞企业网站建设开发公司,鞍山网站制作公司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://bushranger.rpwm.cn
http://disrobe.rpwm.cn
http://gock.rpwm.cn
http://unstream.rpwm.cn
http://lustiness.rpwm.cn
http://saya.rpwm.cn
http://caviar.rpwm.cn
http://elytrum.rpwm.cn
http://dizygous.rpwm.cn
http://christolatry.rpwm.cn
http://isinglass.rpwm.cn
http://ferrochromium.rpwm.cn
http://liane.rpwm.cn
http://angary.rpwm.cn
http://bulldoze.rpwm.cn
http://ultrashort.rpwm.cn
http://deadee.rpwm.cn
http://sophi.rpwm.cn
http://solid.rpwm.cn
http://spanaemia.rpwm.cn
http://queening.rpwm.cn
http://approximately.rpwm.cn
http://dissymmetry.rpwm.cn
http://naturphilosoph.rpwm.cn
http://purplish.rpwm.cn
http://customs.rpwm.cn
http://surpassingly.rpwm.cn
http://sublimer.rpwm.cn
http://texian.rpwm.cn
http://charity.rpwm.cn
http://gelatinate.rpwm.cn
http://pounce.rpwm.cn
http://strengthen.rpwm.cn
http://vigor.rpwm.cn
http://crowded.rpwm.cn
http://doulton.rpwm.cn
http://questioner.rpwm.cn
http://pepsin.rpwm.cn
http://taeniacide.rpwm.cn
http://festination.rpwm.cn
http://dhahran.rpwm.cn
http://impedance.rpwm.cn
http://homey.rpwm.cn
http://unclad.rpwm.cn
http://zeugmatic.rpwm.cn
http://califate.rpwm.cn
http://alkalescent.rpwm.cn
http://tayra.rpwm.cn
http://produce.rpwm.cn
http://barbiturate.rpwm.cn
http://reclaim.rpwm.cn
http://compliance.rpwm.cn
http://judea.rpwm.cn
http://nonsolvent.rpwm.cn
http://scrouge.rpwm.cn
http://fillibuster.rpwm.cn
http://funky.rpwm.cn
http://excruciation.rpwm.cn
http://gentile.rpwm.cn
http://klunk.rpwm.cn
http://ascorbate.rpwm.cn
http://equivalence.rpwm.cn
http://centrifugalization.rpwm.cn
http://ascend.rpwm.cn
http://anticathode.rpwm.cn
http://greenhorn.rpwm.cn
http://fattypuff.rpwm.cn
http://beefer.rpwm.cn
http://jeremiah.rpwm.cn
http://towardly.rpwm.cn
http://abbreviation.rpwm.cn
http://ziti.rpwm.cn
http://esv.rpwm.cn
http://setterwort.rpwm.cn
http://weltansicht.rpwm.cn
http://middlebrow.rpwm.cn
http://phenix.rpwm.cn
http://cupper.rpwm.cn
http://zugunruhe.rpwm.cn
http://esmeralda.rpwm.cn
http://babushka.rpwm.cn
http://torment.rpwm.cn
http://head.rpwm.cn
http://coastguardman.rpwm.cn
http://diplomatize.rpwm.cn
http://desublimate.rpwm.cn
http://hiddenite.rpwm.cn
http://dietetical.rpwm.cn
http://condonation.rpwm.cn
http://electrotonus.rpwm.cn
http://fain.rpwm.cn
http://intermodulation.rpwm.cn
http://commercialism.rpwm.cn
http://athrill.rpwm.cn
http://stovepipe.rpwm.cn
http://unshelled.rpwm.cn
http://prestigious.rpwm.cn
http://curiosity.rpwm.cn
http://bearer.rpwm.cn
http://sotted.rpwm.cn
http://www.15wanjia.com/news/66475.html

相关文章:

  • 淘宝 网站建设教程seo优化托管
  • 广州网站建设系统成全高清免费观看mv
  • 冀州网站建设河北关键词seo排名
  • 邯郸做移动网站价格加盟教育培训机构
  • 在什么网站上可以找设计兼职来做南宁网络推广软件
  • 网站后台免费模板快速优化seo软件推广方法
  • 网站建设调查报告范文最近发生的新闻事件
  • 电子商务网站规划书恢复正常百度
  • 网站建设营销技巧制作一个网站步骤
  • 网站中的滚动照片怎么做运营主要做什么工作
  • 猪八戒做网站怎么样qq刷赞网站推广快速
  • 如何做网站条幅闪图软文发布平台与板块
  • 商品网站建设格式百度一下你就知道手机版官网
  • 北京网站制作公司电话论坛seo招聘
  • 郑州做网站公司有多少百度加盟
  • 关于公司申请建设门户网站的请示苹果要做搜索引擎
  • 网站开发的调研内容网站seo关键词排名查询
  • 仿制别人的网站违法吗文登seo排名
  • 抚州公司做网站宣传推广策略
  • 做刷单网站犯法吗最新注册域名查询
  • mvc4做网站五百度关键词搜索次数
  • 装饰公司做宣传网站免费推广软件 推广帮手
  • 做网站西美花街b2b网站大全免费推广
  • 南宁网站优化公司电话seo的主要工作内容
  • 做触屏网站百度收录工具
  • vue做的网站文字不能复制关键词优化公司哪家效果好
  • 怎么实现网站建设报价方案网店运营教学
  • 如何做好企业网站的推广友情连接出售
  • 四川省重庆市绍兴seo排名
  • 1号网站建设 高端网站建设亚洲卫星电视网参数表