
android零散笔记
文章平均质量分 76
wildbison
这个作者很懒,什么都没留下…
展开
-
android JNI 分析:
JNI是Java Native Interface的缩写,译为Java本地接口。它允许Java代码和其他语言编写的代码进行交互。在android中提供JNI的方式,让Java程序可以调用C语言程序。android中很多Java类都具有native接口,这些接口由本地实现,然后注册到系统中。 主要的JNI代码放在以下的路径中:frameworks/base/core/jni/,这个路径转载 2011-11-25 17:15:17 · 598 阅读 · 0 评论 -
adnroid中:::::wpa_supplicant()分析(未完)
:去打开wpa_supplicant.命令行如下:service wpa_supplicant /system/bin/wpa_supplicant -Dfawext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -ddmain()解析传入参数后初始化:iface->confname=/data/misc/wifi/wpa_原创 2011-11-25 17:29:18 · 1175 阅读 · 0 评论 -
Android 编译系统分析
把Android所有的Make文件分为4种: 1、For config 这类文件主要来配置product,board,以及根据你的Host和Target选择相应的工具以及设定相应的通用编译选项: build/core/config.mk summary of config build/core/envsetup.mk genera转载 2011-11-16 11:14:42 · 430 阅读 · 0 评论 -
wifi.c中函数分析: :::int wifi_connect_to_supplicant()
/* Make sure supplicant is running */查看属性,保存在supp_status判断是否运行:否返回-1 if (!property_get(SUPP_PROP_NAME, supp_status, NULL) || strcmp(supp_status, "running") != 0) { LOG原创 2011-11-16 11:19:05 · 4451 阅读 · 0 评论 -
libwpa_client动态库的在android中使用:
hardware/libhardware_legacy/Android.mk 9: LOCAL_SHARED_LIBRARIES := libutils libbinder libcutils libwpa_clientNot all matches shown. Open the file to see them all.Duplicate files原创 2011-11-16 11:19:59 · 2334 阅读 · 0 评论 -
android中wifi框架:::
<!--p {margin-bottom:0.21cm}--><!--p {margin-bottom:0.21cm}-->在 SystemServer启动的时候,会生成一个ConnectivityService的实例,try {Log.i(TAG,"Starting ConnectivityService.");Servic原创 2011-11-16 11:18:42 · 1441 阅读 · 0 评论 -
wifi.c中函数分析: ::::int wifi_start_supplicant()
根据属性文件查看状态属性:/* Check whether already running */ if (property_get(SUPP_PROP_NAME, supp_status, NULL) && strcmp(supp_status, "running") == 0) { return 0; }判断配置文件是否原创 2011-11-16 11:19:30 · 3091 阅读 · 0 评论 -
android APP 获得system权限
搜集网络资源:实践验证记录如下:1. 在应用程序的AndroidManifest.xml中的manifest节点中加入android:sharedUserId="android.uid.system"这个属性。2. 修改Android.mk文件,加入LOCAL_C原创 2011-09-26 21:15:17 · 1352 阅读 · 0 评论 -
Android Property System | Android属性系统
属性系统是android的一个重要特性。它作为一个服务运行,管理系统配置和状态。所有这些配置和状态都是属性。每个属性是一个键值对(key/value pair),其类型都是字符串。 从功能上看,属性与windows系统的注册表非常相似。许多android应用程转载 2011-09-26 21:19:08 · 379 阅读 · 0 评论 -
Android Binder设计与实现 – 设计篇
Binder是Android系统进程间通信(IPC)方式之一。Linux已经拥有管道,system V IPC,socket等IPC手段,却还要倚赖Binder来实现进程间通信,说明Binder具有无可比拟的优势。深入了解Binder并将之与传统 IPC做对比有助于我们深入领会进转载 2011-09-09 10:14:48 · 571 阅读 · 0 评论 -
链接资料
http://hi.baidu.com/%CD%F5%D5%F1%C1%D6wzl/blog/item/0061d4b50291604508230232.htmlhttp://blog.youkuaiyun.com/xuxinyl/article/details/6533211原创 2011-08-30 16:46:31 · 425 阅读 · 0 评论 -
android源码结构:::
Android 2.1|-- Makefile|-- bionic (bionic C库)|-- bootable (启动引导相关代码)|-- build (存放系统编译规则及generic等基础开发包配置)|-- cts (Android兼容性测试套件标准)转载 2011-11-25 17:29:56 · 532 阅读 · 0 评论