摘要: 记录某APP在我们设备上频繁崩溃(问题病没解决, 只是记录下如何通过ida 分析native crash ) 案例1 先看看崩溃栈 beginning of crash 09-28 11:05:49.640 3992 4046 F libc : Fatal signal 11 (SIGSEGV), 阅读全文
posted @ 2023-09-28 15:45 梦过无声 阅读(338) 评论(0) 推荐(0)
摘要: ### 3.2 目标文件是什么样 总体来说,目标文件编译后主要分成两段:程序指令和程序数据. **代码(.text)属于指令段,而.data和.bss段属于程序数据** 为什么要分开? 1. 安全 程序映射到内存区域, 程序指令区域内存映射为只读,程序数据区域内存映射为可读写 2. cpu缓存 现代 阅读全文
posted @ 2023-07-17 13:08 梦过无声 阅读(84) 评论(0) 推荐(0)
摘要: # input text 流程 ## sendMessage前 调用命令 `input text 'helo world'`,会进入到函数 nativeInjectInputEvent ```cpp static jint nativeInjectInputEvent(JNIEnv* env, jc 阅读全文
posted @ 2023-07-15 18:46 梦过无声 阅读(140) 评论(0) 推荐(0)
摘要: # Binder总结 首先感谢参考的博客 [Android Binder原理](http://liuwangshu.cn/framework/binder/7-javabinder-addservice.html),下面是我个人的总结,方便加深理解 ## 1.0 系统服务启动 1. 在service 阅读全文
posted @ 2023-07-14 16:42 梦过无声 阅读(156) 评论(0) 推荐(0)
摘要: 在NDK中使用`LOCAL_LDLIBS`进行链接 ``` LOCAL_LDLIBS := /home/tsh/work/ndk-demo/dobby/libdobby.a LOCAL_LDLIBS += -llog ``` 如果在AOSP环境中中可以使用 ``` LOCAL_SHARED_LIBR 阅读全文
posted @ 2023-06-04 15:36 梦过无声 阅读(347) 评论(0) 推荐(0)
摘要: [Vundle 安装](https://github.com/VundleVim/Vundle.vim) [YouCompleteMe 安装](https://github.com/ycm-core/YouCompleteMe#linux-64-bit) ### vim升级 ``` # 需要开启py 阅读全文
posted @ 2023-06-04 15:31 梦过无声 阅读(404) 评论(2) 推荐(0)
摘要: 参阅: ART中类的真实形态 源码分析 首先看java代码,在APP启动时候反射了DexFile.java中三个方法,分别是 getClassNameList defineClassNative dumpMethodCode // frameworks/base/core/java/android/ 阅读全文
posted @ 2023-05-05 14:53 梦过无声 阅读(577) 评论(0) 推荐(0)
摘要: 起因 新上的设备,发现hal不支持,因此记录下, 下图已经是修复了正常的了 36的对应的native函数是android_location_GnssLocationProvider_is_supported,这一看就是hal没有 static jboolean android_location_Gn 阅读全文
posted @ 2023-04-14 14:29 梦过无声 阅读(2525) 评论(0) 推荐(0)
摘要: Magisk 启动流程 rootfs 补丁 ####################################################################################### # Magisk Boot Image Patcher ############ 阅读全文
posted @ 2023-02-20 12:19 梦过无声 阅读(1049) 评论(0) 推荐(0)
摘要: Mount Bind bind mount 之前 mount --bind dir1 dir2 之后, dir2中的文件消失了 dir2或者dir1中创建文件 dir1 和 dir2中都有 取消挂载之后,之前创建的文件只有dir1中有 mount tmpfs mount -t tmpfs -o si 阅读全文
posted @ 2023-02-10 16:10 梦过无声 阅读(122) 评论(0) 推荐(0)