共 44 篇文章 |
|
使用input工具其实很简单,首先进入adb shell,然后输入:[plain]#input keyevent <keycode> 或者直接在终端下输入:[plain]$adb shell input keyevent <keycode> 其中<keycode>表示按键代码,它值在$ANDOIRD/frameworks/base/include/ui/KeycodeLabels.h头文件中定义,如下:[cpp] 阅447 转2 评0 公众公开 13-01-10 16:07 |
收集Android程序测试代码覆盖率。~/android-sdk/platform-tools/aapt package -v -f -M /home/shiyimin/research/multiplatformdemoproject/AndroidManifest.xml -S /home/shiyimin/research/multiplatformdemoproject/res -I /home/shiyimin/android-sdk/platforms/android-8/android.jar -F multiplatformdemoproject.unsigned.apk /home/shi... 阅391 转1 评0 公众公开 13-01-09 15:42 |
什么是汽车ACC电路 ACC Power ?什么是ACC?ACC 电源,汽车用的电源,由车钥匙控制,为汽车音响等部分器件供电。ACC:字面意思是附件,在汽车里,ACC是指在汽车还没有发动之前,如果有钥匙ACC档,只要将钥匙拨到这个位置,一些用电不太大的设备,比如:收音机,点烟器等就通电了,当汽车点火的时候,需要一个强电流,这时ACC位停止供电,等汽车... 阅13151 转23 评0 公众公开 12-11-22 16:02 |
系统中所有使用android.uid.system作为共享UID的APK,都会首先在manifest节点中增加android:sharedUserId="android.uid.system",然后在Android.mk中增加LOCAL_CERTIFICATE := platform。系统中所有使用android.uid.shared作为共享UID的APK,都会在manifest节点中增加android:sharedUserId="android.uid.shared",然后在An... 阅295 转0 评0 公众公开 12-06-20 10:34 |
Android 安全机制概述 Permission 1 Android 安全机制概述。一个 Package 如果要添加 Dynamic permissions ,首先必须要在 manifest 中申明 <permission-tree> 标签,它实际上是一个权限的名字空间(例如,“ com.foo.far ”这个权限就是 permission-tree “com.foo ”的成员),本身不是一个权限。public int checkPermission(String pe... 阅190 转0 评0 公众公开 12-06-20 10:24 |
Ubuntu Git Install 1.7.5 and WhyUbuntu Git Install 1.7.5 and Why.If you use Git a lot, you probably want to run the latest version.How to Upgrade Git.Set up this PPA:PLAIN TEXTCODE:sudo add-apt-repository ppa:pdoes/ppa/ubuntu 2.Apparently with 1.7.4 new recursive merge strategies came into play that should alleviate t... 阅126 转0 评0 公众公开 12-02-28 13:27 |
* The arguments which may be supplied in the recovery.command file: * --send_intent=anystring - write the text out to recovery.intent * --update_package=root:path - verify install an OTA package file * --wipe_data - erase user data (and cache), then reboot * --wipe_cache - wipe cache (but not user data), then ... 阅1148 转9 评0 公众公开 12-02-03 17:55 |
for one in all_methods.keys():if parent_methods.has_key(one):myoutfile.write(gen_funcname(one)+" [shape=rectangle];/n")else:if child_methods.has_key(one):myoutfile.write(gen_funcname(one)+" [shape=ellipse];/n")for one in method_calls.keys():for two in method_calls[one]:myoutfile.write(gen_funcname(... 阅266 转2 评0 公众公开 11-11-28 17:03 |
repo的用法。下载 repo 的地址: http://android.git.kernel.org/repo ,可以用 wget http://android.git.kernel.org/repo 或者 curl http://android.git.kernel.org/repo >~/bin/repo 来下载 repo , chmod a+x ~/bin/repo 用repo sync 在抓去 android source code 的时候,会经常出现一些错误导致 repo sync 中断,每次都要手动... 阅3978 转9 评0 公众公开 11-11-28 15:05 |
可以看到,创建好的线程会把该线程和它的Id保存在AudioFlinger的成员变量mPlaybackThreads中,mPlaybackThreads是一个Vector,AudioFlinger创建的线程都会保存在里面,最后,openOutput返回该线程的Id,该Id也就是所谓的audio_io_handle_t,AudioFlinger的调用者这能看到这个audio_io_handle_t,当需要访问时传入该audio_io_handle_t,AudioFli... 阅553 转7 评0 公众公开 11-11-22 14:24 |