
技海拾贝
yuyuanhuang
这个作者很懒,什么都没留下…
展开
-
Android自定义安全软件盘
3.增加DES/ECB/PKCS7Padding的加密方式,理论上引入的算法库可以支持的加密方式都可以做,只是目前项目中使用的是这种;研究了一下,主要涉及到自定义键盘,输入jni加密存储,全程在java内存中不出现明文密码,以及一些禁回写,禁截屏的操作。main分支在c层通过jni回调java层算法库进行加密,理论上明文在jni回调时还是会出现在java内存中。openssl分支在c++层使用openssl的加密库算法,实现真正意义的在java内存中不出现密码明文。1.使用CMake进行jni的编译;原创 2023-01-10 18:14:16 · 326 阅读 · 0 评论 -
ActionBarSherlock: changing homeAsUpIndicator doesn't work
文章摘自stackoverflow上的一个帖子,解决了actionBar上换home图标左侧的“ 原文如下: Ask: I'm want to change the up icon with applying the following style to my activity, but it doesn't work and but I still get the default原创 2015-02-21 21:15:50 · 671 阅读 · 0 评论 -
android使用post(Runnable)更新UI的误区
之前在公司的项目里经常见到这样的代码写法: Handler mHandler=new Handler(); mHandler.post(new Runnable(){ @Override public void run() { // TODO Auto-generated method stub } });其实我原创 2015-03-08 21:11:58 · 4236 阅读 · 0 评论