2014年2月2日

【Brut.all】反编译so文件

摘要: 转自:http://forum.xda-developers.com/showpost.php?p=12853986&postcount=19Well... I have attached a debugger to native code, set breakpoints, analyzed registers, memory, etc. It wasn't that easy though. It took me several days to start debugging and get first key, but I got second one in about 阅读全文

posted @ 2014-02-02 03:46 圣光 阅读(1113) 评论(0) 推荐(0)

2014年1月26日

Dalvik虚拟机指令详解

摘要: Dalvik opcodesAuthor:Gabor PallerVx values in the table denote a Dalvik register. Depending on the instruction, 16, 256 or 64k registers can be accessed. Operations on long and double values use two registers, e.g. a double value addressed in the V0 register occupies the V0 and V1 registers.Boolean 阅读全文

posted @ 2014-01-26 11:31 圣光 阅读(364) 评论(0) 推荐(0)

Android杂谈--通过DDMS实现电脑与Android设备(如手机,平板)的网络连接、截图

摘要: 我们可以通过DDMS来截取通过USB数据线连接到电脑上的Android设备图片,因为Android设备联网也是有一个ip的,所以可以通过wifi来实现电脑和Andorid设备的联通。 需要将Android设备和电脑连接在一个局域网内adb server:adb server是计算机上的一个服务进程,进程名为adbadb daemon:Android设备上的服务进程,进程名为adbdadb client:可以认为计算机上的一个终端,如Linux的Terminal和Windows 的DOS窗口,进程名也是adb有三种方式可以实现:第一种:在AndroidMarket上下载wireless adb. 阅读全文

posted @ 2014-01-26 06:04 圣光 阅读(670) 评论(0) 推荐(0)

2013年12月4日

【转】在keil中使用printf()函数的要点

摘要: 在网上找资料时找到一篇介绍在keil中使用printf()函数的文章,copy到这里,作为备忘。在keil中printf默认是向串口中发送数据的,所以,如果应用该函数,必须先初始化串口,否则可能引起死机的情况,并且在printf之前应该先将TI置位,摘抄原因如下:1.printf函数是调用putchar函数输入的,而putchar应该是先判断ti是否为1,不为1则等待为1。如果为1则清0,然后送出一 个字符。因此你如果直接使用printf函数,你的程序就会在putchar函数中等待ti为1。这时你的程序就相当于直接死掉了。你可以通过改写 putchar函数实现自己的目的的。2.Keil的串口处 阅读全文

posted @ 2013-12-04 05:28 圣光 阅读(10208) 评论(0) 推荐(0)

2013年10月25日

(转)android Spinner 重新填充数据后 setSelection 总显示第一项

摘要: 此文转于 http://blog.csdn.net/boundis/article/details/7028014当在做两个spinner联动时,spinner2依据spinner1的选择填充数据,然后使用setSeletion(2)来设置默认项。结果发现:spinner2显示的总是第一项,但是实际选择的确实已经是position 2的位置 。 解决方法: 旧代码: spinner.setAdapter(adapter); spinner.setSelection(2);解决方案有二: (1) spinner.setAdapter(adapter); spinner.setSe... 阅读全文

posted @ 2013-10-25 06:57 圣光 阅读(2519) 评论(1) 推荐(0)

2013年8月9日

EXCEL删除单元格中的特殊字符

摘要: 在Sheet上右键,查看代码,输入:Sub Shanchu() Cells.Replace What:=Chr(9), Replacement:=""End Sub运行 阅读全文

posted @ 2013-08-09 03:58 圣光 阅读(2157) 评论(0) 推荐(0)

2013年8月7日

winhttp打开需要用户名密码验证的网页

摘要: Dim WinHttpReq As WinHttp.WinHttpRequestConst HTTPREQUEST_SETCREDENTIALS_FOR_SERVER = 0Const HTTPREQUEST_SETCREDENTIALS_FOR_PROXY = 1Private Sub Form_Load() Set WinHttpReq = New WinHttpRequestEnd SubPrivate Sub Command1_Click() WinHttpReq.Open "GET", _ "http://msdn.microsoft.com/downl 阅读全文

posted @ 2013-08-07 01:59 圣光 阅读(946) 评论(0) 推荐(0)

2013年8月2日

监测移动设备的HTTP请求

摘要: 在PC上监测web页面的HTTP请求是一件非常简单的事,我们有大量的软件可以来做,甚至浏览器就自带了有这样功能的开发插件。但是在移动设备上就没那么简单了,没有软件,权限控制……下面将介绍2种监测移动设备HTTP请求的方式。一、使用Charles在连上WIFI的前提下,android和ios设备都可以通过Charles来监测HTTP请求,原理是通过Charles在PC上架设一个代理,手机访问这个代理,Charles记录网络请求。ios设备,在“设置”-“无线局域网络”里可以直接设置代理,而android没有设置代理的功能,需要取得root权限后安装第三方软件来实现。操作步骤:下载Charles( 阅读全文

posted @ 2013-08-02 15:31 圣光 阅读(571) 评论(0) 推荐(0)

2013年6月29日

Google App Engine - Cookie Handling with URL Fetch

摘要: I started working on creating a web based solution (onGoogle App Engine, using the Python API of course) to send mass SMS messages through your Google Voice account this week, but ran into a couple of problems right off the bat during some initial testing. The problem was that I could not log into m 阅读全文

posted @ 2013-06-29 23:34 圣光 阅读(375) 评论(0) 推荐(0)

2013年6月26日

用VBS读写二进制文件

摘要: Function ReadBinary(FileName) Dim Buf(), I With CreateObject("ADODB.Stream") .Mode = 3: .Type = 1: .Open: .LoadFromFile FileName ReDim Buf(.Size - 1) For I = 0 To .Size - 1: Buf(I) = AscB(.Read(1)): Next .Close End With ReadBinary = BufEnd FunctionSub WriteBinary(FileName, Buf) Dim ... 阅读全文

posted @ 2013-06-26 13:29 圣光 阅读(1250) 评论(0) 推荐(0)

导航