- 博客(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 是如何找到触摸屏设备节点
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例子
2014-02-24
动态库 堆栈信息
2013-11-21
android widget 计算你还能活多长时间
2013-10-14
android 自定义系统服务 例子
2013-04-26
android 自定义 系统服务例子 patch
2013-04-26
python获取firefox网站视频缓存
2013-04-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人