
Android
文章平均质量分 67
cfy_phonex
这个作者很懒,什么都没留下…
展开
-
Android Widevine 基本概念
Android Widevine Android Widevine 自 Honey Comb ( 对手机是Ice Cream Sandwitch 4.0) 推出后成为CTS强制测试选项,厂商必须支持。无论是网络传输或者是消费类电子设备,Widevine针对数字媒体提供了视频格式无关的加解密方式。 截止2012年,已经有5.39亿台设备支持 Android Widevine.原创 2012-12-07 10:48:14 · 30538 阅读 · 3 评论 -
解压缩Android 根文件系统 ramdisk
解压缩命令 1)mv ramdisk.img ramdisk.img.gz // gunzip 默认文件名必须为 .gz 后缀, 因此需要重命名为 .gz2) gunzip ramdisk.img.gz // 将解压缩生成 ramdisk原创 2014-03-17 17:38:32 · 1094 阅读 · 0 评论 -
android自动测试
为了自动测试拨打电话功能,自动化脚本需要使用相关的接口。 方法之一:AT command 1) adb shell2) enter AT command mode ( platform specific )3) atd112; // 拨打1124) ath原创 2014-01-21 13:56:48 · 1811 阅读 · 0 评论 -
怎样使一个Android应用不被杀死?
From: http://blog.sina.com.cn/s/blog_3e3fcadd0100yjo2.html方法:对于一个service,可以首先把它设为在前台运行:public void MyService.onCreate() {super.onCreate();Notification notification = new Notification(andro转载 2013-09-27 09:50:09 · 2028 阅读 · 1 评论 -
几个有用的 repo command
repo abandon --help Usage: repo abandon [...] This subcommand permanently abandons a development branch bydeleting it (and all its history) from your localrepository. It is equivalent t转载 2013-08-29 16:19:54 · 3342 阅读 · 0 评论 -
Android procrank
Android procrank (/system/xbin/procrank) 工具,能够列出进程所占用的内存使用情况。顺序为从高到低。每个进程占用内存大小以 VSS, RSS , PSS, USS 的形式列出。为了简化描述,内存占用以页为单位表述,而不是字节。 通常每页为 4096 字节。 VSS ( 等同于 ps 命令列出的 VSZ) 是单个进程全部可访问的地址空间。翻译 2013-07-18 13:07:35 · 16078 阅读 · 0 评论 -
Android monkey监视系统状态
When monkey tests are running in android phones, phones have memory leakage and are difficult to trace system status,although logcat, kernel log can provide some information.Android limitation原创 2013-03-22 13:57:41 · 1417 阅读 · 0 评论 -
Android watchdog分析
1) system server 进程初始化 watchdog2) watchdog 注册两个BroadcastReceiver. 一个是 RebootReceiver, 一个是 RebootRequestReceiver3) 需要被监视的目标 service 需要实现 Monitor 接口4)Watchdog.java 另外开启一个 heartbeatHan原创 2013-01-21 16:00:20 · 1304 阅读 · 0 评论 -
Android kernel wakelock分析
1. Linux kernel wakelock 定义A wake_lock prevents the system from entering suspend or other low power states when active. If the type is set to WAKE_LOCK_SUSPEND, the wake_lock prevents a full syste原创 2013-01-25 14:45:05 · 12793 阅读 · 1 评论 -
Android reboot分析
/system/core/android_reboot.cint android_reboot(int cmd, int flags, char *arg)该函数作为通用API, 可以分别用在如下地方:adb shell mode rebootfastboot downloading mode rebootrecovery mode rebootCharging mode re原创 2013-01-11 15:16:03 · 5701 阅读 · 0 评论 -
Android 关机umount
Java layerHelper Java Power class : framework/base/core/java/android/os/power.javapublic class Power{ // can't instantiate this class private Power() { } /** * Wake lo原创 2013-01-11 14:12:15 · 2090 阅读 · 0 评论 -
shutdown thread分析
Android shutdown thread namespace is "package com.android.internal.app"design pattern is singleton提供了公有静态成员函数 public static void shutdown(final Context context, boolean confirm)confirm 输入原创 2013-01-11 11:04:37 · 4778 阅读 · 0 评论 -
Android f_rndis 分析笔记
背景说明RNDIS是一个以太网端口 ( Ethernet port )。最开始是微软控制的,用以取代 CDC Ethernet 的协议。公开发布的 RNDIS规范很模糊,并且不必要的复杂。 ActiveSync 等规范术语使情况更糟糕。简而言之,它是一个微软控制的,而不是开源生态系统控制的协议。 Linux 支持它仅仅是因为微软不支持 CDC以太网标准。RNDIS数据传原创 2014-03-31 17:50:24 · 9089 阅读 · 0 评论