自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (14)
  • 收藏
  • 关注

原创 android 关于 netlink uevent

用户空间 system/core/libcutils/uevent.cint uevent_open_socket(int buf_sz, bool passcred){    struct sockaddr_nl addr;    int on = passcred;    int s;    memset(&addr, 0, sizeof(addr));

2013-02-22 16:44:26 2776

原创 android 睡眠流程图

2013-02-22 09:44:33 1237

原创 android 是如何找到触摸屏设备节点

1.触摸屏属于input设备,住、主设备号是固定是13,但是次设备号,应该不是固定。2.android会遍历/dev/input, 进行ioctl,读取设备的信息,来判断是不是触摸屏设备。位置frameworks/base/services/input/EventHub.cppstatus_t EventHub::openDeviceLocked(const char *devic

2013-02-21 17:39:03 4535 1

原创 linux sysfs中目录和文件节点的创建

在sys下,建立power 目录 power_kobj = kobject_create_and_add("power", NULL);在power目录下建立,几个设备文件sysfs_create_group(power_kobj, &attr_group);static struct attribute * g[] = {        &state_attr.att

2013-02-21 10:26:18 6355 1

原创 selinux android 权限测试

<!--@page {margin:2cm}p {margin-bottom:0.21cm; direction:ltr; color:#000000; widows:0; orphans:0}p.western {font-family:"Liberation Serif","Times New Roman",serif; font-size:12pt

2013-02-20 15:38:01 3614

原创 se android 在google nexus 运行(有bug)

source build/envsetup.sh lunch full-eng./run_emulater.shhttps://developers.google.com/android/nexus/drivers#magurojop40cGalaxy Nexus (GSM/HSPA+) binaries for Android 4.2/4.2.1 (JOP40C an

2013-02-20 10:24:00 765

原创 循环队列(c语言)

#include #include struct QueueRecord{ int capacity; int front; int rear; int size; char * array;};struct QueueRecord * createqueue(int size){ char * p; struct QueueRecord *queue; p=(cha

2013-02-19 16:36:56 622

原创 selinux android property_context作用(待完成)

property_context是给属性务打标签。/system/core/init/property_service.c./system/core/init/init.c 790 struct selabel_handle* selinux_android_prop_context_handle(void) external/libselinux/src/label.c st

2013-02-04 19:03:08 1504

原创 selinux android max_permissions.xml seapp_contexts 关系。

external/sepolicy/mac_permissions.xml 是原始的文件,通过insertkeys.py  external/sepolicy/keys.conf    得到最终的mac_permissions.xml 。out/host/linux-x86/bin/insertkeys.py -t eng -c /home/public/workspace/seandroid

2013-02-04 15:41:58 4103

原创 selinux android setool 工具

http://wenku.baidu.com/view/e77d19fc770bf78a65295465.htmlsetool --build whitelist /tmp/com.dianxinos.powermanager.apk0202044e0bf751300d06092a864886f70d0101050500306f310b300906035504061302434e3

2013-02-04 14:22:11 2639

native service例子

smack.tar 是一个native server 的例子 native_service.tar 是一个apk,验证native server。 http://blog.csdn.net/xiayu98020214/article/details/8895567

2014-02-24

anndroid 动态库 堆栈信息

android 动态库 堆栈信息解析工具

2013-11-23

动态库 堆栈信息

android so 中的堆栈可以打出来,但是看不见符号名称,注意要用有符号的so。例如 D/ ( 1104): #00 pc 00020166 /system/lib/libhwui.so (deleted) D/ ( 1104): #01 pc 00016586 /system/lib/libhwui.so (deleted) D/ ( 1104): #02 pc 00013e46 /system/lib/libhwui.so (deleted) 使用本工具可以看到名称。 python analyze_stack.py log 1:使用前修改 ANDROID_PRODUCT_NAME 2: 在源码目录中,执行。

2013-11-21

android widget 计算你还能活多长时间

参照源码中media widget,写的,用到了widget broadcastreceiver startd server SharedPreferences

2013-10-14

android widget

android widget 小应用。用到了intent ,broadcastreceiver,日期控件。

2013-10-10

surfaceflinger dump

surfaceflinger dump的调用过程。在linux下,用dia画的图。

2013-06-15

android 自定义系统服务 例子

http://blog.csdn.net/xiayu98020214/article/details/8850430,是配合博客的android4.04patch ,还有添加的文件,还有测试apk

2013-04-26

android 自定义 系统服务例子 patch

http://blog.csdn.net/xiayu98020214/article/details/8850430,我的博客的patch,不包括添加的文件,只是修改的patch

2013-04-26

自定义打log,方便取消log

自定义打log(printf),方便取消log.

2013-04-25

python获取firefox网站视频缓存

在fedore环境下,获取firefox的sohu视频缓存。用法:要先清理Cache.其他的看源码就很清楚了。导出数据放在/tmp/friend/下,按数字取名。

2013-04-25

vba编写的cad批量打印成pdf

自己编的vba程序,可以批量打印成pdf。有源码

2013-04-24

包外调用本地服务

和我的包内调用本地服务是一起的。这个包中会调用包外的本地服务。

2013-04-24

android 本地服务 例子

android 包内调用本地服务。外加activity生命周期,打的log。

2013-04-24

android 本地服务 代码例子

android 本地服务(local service)使用intent启动服务。外加activity的生命周期的log

2013-04-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除