上一页 1 ··· 7 8 9 10 11
  2013年8月4日
摘要: 首先实现开机自启动:第一步创建一个广播接收者,如MyBootBroadcastReceiver.javaView Codepackage com.example;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;public class MyBootBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context contex... 阅读全文
posted @ 2013-08-04 12:51 农夫山药 阅读(2424) 评论(0) 推荐(0) 编辑
  2013年7月27日
摘要: 自Android 4.1引入了“Profile GPU rendering”这个开发工具以帮助分析应用程序性能并并精确定位渲染问题,Android 4.3增加了可视效果:On screen as bars/lines。模拟器中此功能生效要勾选AVD的:Emulation Options:User Host GPU。这个选项的开关实现位于settings中DevelopmentSettings.java中的函数writeTrackFrameTimeOptions:Codeprivate void writeTrackFrameTimeOptions(Object newValue) { ... 阅读全文
posted @ 2013-07-27 16:59 农夫山药 阅读(4190) 评论(1) 推荐(0) 编辑
  2013年7月22日
摘要: service可给Android 服务传消息,具体用法如下:Usage: service [-h|-?] service list service check SERVICE service call SERVICE CODE [i32 INT | s16 STR] ... Options: i32: Write the integer INT into the send parcel. s16: Write the UTF-16 string STR into the send parcel.在Android 4.2.2模拟器上运行如下命令:adb s... 阅读全文
posted @ 2013-07-22 23:05 农夫山药 阅读(5885) 评论(0) 推荐(0) 编辑
  2013年7月10日
摘要: ANDROID-8219321漏洞主要源自Android ZipFile函数漏洞:没有进行校验重名entry逻辑漏洞,逻辑漏洞细节详见Google+文章和Bluebox Security提报Android 绕过应用签名认证漏洞原理。原代码:for (int i = 0; i < numEntries; ++i) { ZipEntry newEntry = new ZipEntry(hdrBuf, bin); mEntries.put(newEntry.getName(), newEntry); }View Code 修补后:for (int i = 0; i < numEntrie 阅读全文
posted @ 2013-07-10 23:11 农夫山药 阅读(621) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11