上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: ELF(Executable and Linking Format)用于存储Linux程序。ELF文件分三种类型: 1、目标文件(通常是.o); 2、可执行文件(我们的运行文件) 3、动态库(.so)ELF头的各个字段:typedef struct { unsigned char e_ident... 阅读全文
posted @ 2014-11-24 10:12 LarryLawrence 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: 如下://头文件包含 #include #include #include #include #include #include #include #include #include #include //输出错误消息后退出程序 void die(const char *ms... 阅读全文
posted @ 2014-09-22 18:02 LarryLawrence 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 题目要求-------------1.请修改本apk的包名,使得在同一手机上面可以重复安装并正确运行;2.请写个Application类,并在Manifest里面注册你的Application。同时要求使用该Application加载原包的Application;3.本题3分,以非重打包的方式达到同... 阅读全文
posted @ 2014-09-22 17:00 LarryLawrence 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: 1.constructor我们知道运行一个类的时候会先调用static方法中的内容,比如: static { System.loadLibrary("qihooTest"); }为什么呢?上面这段代码用smali语言写出来是这样的:.method static constructor (... 阅读全文
posted @ 2014-09-22 10:10 LarryLawrence 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: 今天发现用Apktool和Jeb反编译出来的smali在语法上有一定区别,比如一个Java函数: private void packageNameCheck() { com.example.testfor360.MainActivity mm = new com.exa... 阅读全文
posted @ 2014-09-21 21:52 LarryLawrence 阅读(1523) 评论(0) 推荐(0) 编辑
摘要: 今天师姐问我安卓后台的问题,想起几年前做进制转换的时候特意研究了一下怎么才能「不驻留内存地退出」。虽然Android不推荐用户手动关闭进程,但是在那个内存捉襟见肘的年代,不得不考虑内存。首先直接按back键肯定是会驻留内存的,其次finish()也可以结束Activity,但是也驻留内存(我还清楚地... 阅读全文
posted @ 2014-09-10 21:03 LarryLawrence 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 在终端输入:vim ~/.bash_profile按i切换到INSERT模式。然后把路径按照下面的格式写进去。然后输入:wq保存退出。export PATH=${PATH}:/Users/DrunkPiano/Documents/workspace/android/platform-tools/ex... 阅读全文
posted @ 2014-08-27 13:46 LarryLawrence 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 首先记录一个问题,关于如何用javah生成头文件。为什么要生成头文件?在含有 static{ System.loadLibrary("hellojni"); }这样代码的类下面定义方法,比如 static public native String Pr... 阅读全文
posted @ 2014-08-08 10:25 LarryLawrence 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 1.用gedit打开.bashrclarry@larry-Rev:~$ sudo gedit ~/.bashrc2.ubuntu里安装软件有点像iOS里的Cydia,要添加软件源来在Ubuntu软件中心里下载。为了安装搜狗输入法,添加了一个奇怪的源,然后出现了各种错误,update-manager和... 阅读全文
posted @ 2014-08-08 09:21 LarryLawrence 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.SpaceSniffer 看看你的硬盘是被什么塞满了 2.fiddler 配合wireshark看json包 3.tcpdump 在Android中抓包(# /data/local/tcpdump -p -vv -s 0 -w /sdcard/capture.pcap) 阅读全文
posted @ 2014-08-07 15:33 LarryLawrence 阅读(216) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页