
Android
文章平均质量分 83
WaveDHW
这个作者很懒,什么都没留下…
展开
-
[智能电视] E96/99RS.E83/85RS.E96RA.E650S创维安卓电视安装软件不再受限 [My Backup]
From: http://www.hdpfans.com/thread-25245-1-1.html声明:此信息非官方发布,升级有风险,可能会对您的设备有所损坏,升级成砖与本人无关,自行试机,风险需自己承担.若使用此方法或软件表示已同意此声明.Skyworth云平台交流群-->172761369{此群为官方QQ群}官方群人员已满,现有Evangelion转载 2012-05-26 16:15:24 · 16228 阅读 · 5 评论 -
Linux Input子系统分析之eventX设备创建和事件传递
Linux Input子系统整体架构 注册eventX设备注册过程大致如下:input_register_device -> input_attach_handler -> input_match_device -> connectinput_register_device对input_handler_list中的每一个handler尝试inpu转载 2014-09-18 15:22:25 · 6742 阅读 · 0 评论 -
Android getevent/senevent
getevent&sendevent 是android系统下的一个工具,可以模拟多种按键和触屏操作,产生的是raw event,raw event经过event hub处理产生最终的gesture事件。 === getevent ===getevent 监控当前的事件,鼠标事件,按键事件,拖动滑动等 dd device 1: /dev/input/event转载 2014-09-17 22:47:54 · 2028 阅读 · 0 评论 -
android跨进程事件注入(程序模拟用户输入)
需求:需要在程序内模拟用户输入,比如点击屏幕,或者输入键盘。模拟用户的滑动等。具体的需求,比如测试的时候,测试打开浏览器1000次。或者通过网络发送命令给手机,在手机上执行点击或者输入。再或者,平板和蓝牙鼠标通过蓝牙通信,通过鼠标让平板上的鼠标能移动和点击。这些都需要用到事件注入。分析:模拟用户输入的方式有几种,一是monkeyrunner,这个的原理是在PC上,通过python调用a转载 2014-09-18 17:20:12 · 1574 阅读 · 0 评论 -
Android 模拟系统事件(三)
简介Android系统是基于Linux内核的,而Linux内核继承和兼容了丰富的Unix系统进程间通信(IPC)机制。Binder其实也不是Android提出来的一套新的进程间通信机制,它是基于OpenBinder来实现的。Binder是一种进程间通信机制,它是一种类似于COM和CORBA分布式组件架构,通俗一点,其实是提供远程过程调用(RPC)功能。功能向其它进程注入事件,比转载 2014-09-06 22:47:16 · 1145 阅读 · 1 评论 -
Android 模拟系统事件(二)
简介JNI(Java Native Interface)是本地编程接口,它允许Java代码和其他语言写的代码进行交互,它可以在 Java 虚拟机 (VM) 内部运行的 Java 代码与用其它编程语言(如 C、C++ 和汇编语言)编写的应用程序和库进行交互操作。功能通过jni实现向Android系统注入事件,从而实现模拟按键、模拟触屏等操作!用它直接跳过上面的Android平转载 2014-09-06 22:41:31 · 2323 阅读 · 2 评论 -
Android 模拟系统事件(一)
简介Android系统是在Linux 2.6版本上开发的,所以起使用设备驱动 /dev/input/event X (x为0到7)分别来映射不同事件。内容这里就简单介绍两种系统自带类来实现系统事件注入。方式一:需要使用的类如下:[java] view plaincopyandroid.os.Serv转载 2014-09-06 22:29:01 · 1337 阅读 · 0 评论 -
Programmatically Injecting Events on Android – Part 2
Our smartphones are capable of some impressive processing power, quickly replacing much of what we used the desktop PC for, in the past: mainly document management and communication. But there's alw转载 2014-09-07 18:29:39 · 1645 阅读 · 0 评论 -
Programmatically Injecting Events on Android – Part 1
The successful Android platform has been around for a few years now. End users get lots of bells and whistles in fancy applications, but for developers, this "open-intended" platform seems even more t转载 2014-09-07 17:18:54 · 1438 阅读 · 0 评论 -
Android keymaps
I recently bought a Bluetooth keyboard to use on Android; unfortunately some keys weren't recognised at all and others weren't quite mapped as I'd like. This is fairly easy to fix as an end user, as l原创 2014-08-24 10:36:06 · 958 阅读 · 0 评论 -
Connect Joystick to play games on android
All most all of the android v4.0 and higher tablets are USB host enabled and comes with kernel modules of ps3/xbox joystick etc but i had a cheap chinese made USB joystick (DragonRise gamepad) whic原创 2014-08-24 11:07:03 · 1349 阅读 · 0 评论 -
从NDK在非Root手机上的调试原理探讨Android的安全机制
最近都在忙着研究Android的安全攻防技术,好长一段时间没有写博客了,准备回归老本行中--Read the funcking android source code。这两天在看NDK文档的时候,看到一句话“Native debugging ... does not require root or privileged access, aslong as your application is d转载 2014-09-07 19:08:22 · 894 阅读 · 0 评论 -
Getting started with uinput: the user level input subsystem
uinput is a linux kernel module that allows to handle the input subsystem from user land. It can be used to create and to handle input devices from an application. It creates a character device in /转载 2014-09-07 23:28:44 · 1050 阅读 · 0 评论 -
How to map android keys to your usb/bluetooth keyboard
I couldn’t tell if this was covered in another post, so I thought I would pass it on.If you are using an external keyboard (via Bluetooth or usb), you may find that certain basic android key e原创 2014-08-23 22:24:41 · 1532 阅读 · 0 评论 -
How to Create a Customized Keylayout for Any USB or Bluetooth Keyboard (ROOTED)
How to Create a Customized Keylayout for Any USB or Bluetooth Keyboard (ROOTED)This tutorial describes how to create a customized keylayout for any USB or Bluetooth keyboard. You will need to be原创 2014-08-23 22:24:31 · 1725 阅读 · 0 评论 -
Android Native Development Kit (NDK)
1. IntroductionAndroid apps are typically written in Java, with its elegant object-oriented design. However, at times, you need to overcome the limitations of Java, such as memory management and转载 2014-09-07 23:21:58 · 2387 阅读 · 0 评论 -
External keyboard remapping for Android
DisclaimerThis short tutorial is based on my own research regarding missing keyboard layout mapping in stock Honeycomb/ICS Android for my Motorola XOOM. It is not intended to be a complete descrip原创 2014-08-23 16:17:12 · 1532 阅读 · 0 评论 -
Keymaps and Keyboard Input
This document describes how keyboard input gets translated into Android actions and how you can customize key layout and key character maps to match the needs of your own device.Android uses the s原创 2014-08-25 21:38:15 · 768 阅读 · 0 评论 -
安卓平台级开发指南 - Android Platform Developer's Guide
http://www.kandroid.org/online-pdk/guide/index.html原创 2014-08-25 22:30:33 · 1794 阅读 · 0 评论 -
文章推荐:Android BroadcastReceiver应用详解
BroadcastReceiver也就是“广播接收者”的意思,顾名思义,它就是用来接收来自系统和应用中的广播。在Android系统中,广播体现在方方面面,例如当开机完成后系统会产生一条广播,接收到这条广播就能实现开机启动服务的功能;当网络状态改变时系统会产生一条广播,接收到这条广播就能及时地做出提示和保存数据等操作;当电池电量改变时,系统会产生一条广播,接收到这条广播就能在电量低时告知用户原创 2014-09-21 21:33:06 · 910 阅读 · 0 评论 -
Key Layout Files from http://source.android.com
Key Layout FilesKey layout files (.kl files) are responsible for mapping Linux key codes and axis codes to Android key codes and axis codes and specifying associated policy flags.Device-spec原创 2014-08-25 21:58:39 · 1395 阅读 · 0 评论 -
Input Device Configuration Files - http://source.android.com
Input Device Configuration Files原创 2014-08-25 22:23:28 · 1603 阅读 · 0 评论 -
Key Character Map Files - http://source.android.com
Key Character Map Files原创 2014-08-25 22:25:02 · 1235 阅读 · 0 评论 -
Linux input.h
1 /* 2 * Copyright (c) 1999-2002 Vojtech Pavlik 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License versio原创 2014-09-11 23:15:10 · 16101 阅读 · 0 评论 -
Android BLE 蓝牙低功耗教程,中央BluetoothGatt和周边BluetoothGattServer的实现
Android4.3 规范了BLE的API,但是直到目前的4.4,还有些功能不完善。在BLE协议中,有两个角色,周边(Periphery)和中央(Central);周边是数据提供者,中央是数据使用/处理者;在iOS SDK里面,可以把一个iOS设备作为一个周边,也可以作为一个中央;但是在Android SDK里面,直到目前最新的Android4.4.2,Android手机只能作为中央来使用转载 2014-09-14 18:26:57 · 35895 阅读 · 11 评论 -
Android4.3 蓝牙BLE初步
一、关键概念:Generic Attribute Profile (GATT)通过BLE连接,读写属性类小数据的Profile通用规范。现在所有的BLE应用Profile都是基于GATT的。 Attribute Protocol (ATT)GATT是基于ATT Protocol的。ATT针对BLE设备做了专门的优化,具体就是在传输过程中使用尽量少的数据。每个转载 2014-09-14 18:15:28 · 2851 阅读 · 0 评论 -
Android 4.0 事件输入(Event Input)系统
1. TouchScreen功能在Android4.0下不工作 原来在Android2.3.5下能正常工作的TouchScreen功能,移植到Android 4.0就不能正常工作了。凭直觉,Android4.0肯定有鬼。真是不看不知道,一看吓一跳。在Android 4.0中,Event Input地位提高了,你看看,在Adroid2.3.5中,它在frameworks/base转载 2014-09-17 17:09:17 · 1111 阅读 · 0 评论 -
Android 中input event的分析
文章将分析Android 的Input Event 子系统的来龙去脉。 Android 系统里面有很多小工具,运行这些工具,我们对它们有一个感性的认识,进而阅读和分析这些小工具源代码,再顺藤摸瓜,就可以把整个子系统的来龙去脉弄清楚。 1.运行toolbox的getevent 工具。 # getevent -helpgetevent -help转载 2014-09-17 17:38:09 · 858 阅读 · 0 评论 -
Linux输入子系统:事件的编码 -- event-codes.txt
输入系统协议用类型types和编码codecs来表示输入设备的值并用此来通知用户空间的应用程序。这篇文档对这些类型和编码进行了说明并且指出什么时候和如何使用这些类型和编码。 一个单一的硬件事件可以产生多个输入事件,每个输入事件包含一个单一数据项的新的数据值。EV_SYN是一个特别的事件类型,它用来把同一时刻产生的多个输入数据分割为多个数据包。在下面的描述中,术语事件(event)是指一个涵转载 2014-09-17 22:49:33 · 760 阅读 · 0 评论 -
Multi-touch (MT) Protocol
Multi-touch (MT) Protocol------------------------- Copyright (C) 2009-2010 Henrik Rydberg Introduction------------In order to utilize the full power of the new multi-touch and multi-userdevic转载 2014-09-17 23:05:36 · 1223 阅读 · 0 评论 -
Android 【真机】与【模拟器】触摸屏事件的模拟差异分析
Android 真机和模拟器的差异问题,是永恒的话题,问不完的为什么,解不完的迷。模拟器的存在,有它的作用,但不要什么都相信模拟器。除非你是Android纯上层应用开发人员或者爱好者,否则我建议你扔掉模拟器。它理想化的引导给我们添了不少麻烦。当然,这也是件好事。最起码,让我有兴趣去寻求答案,让我收获了更多。 问题的缘由是有个自动化测试的需求,我需要写脚本模拟点击触摸屏的一系列操作转载 2014-09-17 23:11:16 · 944 阅读 · 0 评论 -
实现微信浏览器内打开App Store链接
微信浏览器是不支持打开App Store 页面的,不知道微信为什么这么做。比如你页面写 download ,在微信浏览器点击链接是没有反应的,但是如果是其他的链接地址,比如百度那就没有问题 后来我发现如果你在微信官方后台编辑图文,把原文链接写为:http://itunes.apple.com/us/app/id399608199 ,那就可以打开了,发现微信页面的“查看原文”是一个f转载 2014-11-10 19:07:00 · 27345 阅读 · 6 评论 -
js如何判断用户是否是用微信浏览器
微信内置浏览器屏蔽了下载链接,如果用户是用微信内置浏览器打开的,则提示用户换一个浏览器打开页面,那么该如何判断用户是否是用微信浏览器呢?转载 2014-11-10 19:09:33 · 2601 阅读 · 0 评论 -
如何混淆Android项目代码(ProGuard)
ProGuard简介 ProGuard是一个SourceForge上非常知名的开源项目。官网网址是:http://proguard.sourceforge.net/。 Java的字节码一般是非常容易反编译的。为了很好的保护Java源代码,我们往往会对编译好的class文件进行混淆处理。ProGuard的主要作用就是混淆。当然它还能对字节码进行缩减体积、优化等转载 2014-11-10 19:34:18 · 757 阅读 · 0 评论 -
Galaxy Tab S 8.4/10.5 Root 教程 + Recovery
先用電腦下載Odin沒有驅動程式的同學,去下個三星的KIES軟件http://www.samsung.com/cn/support/download/supportDownloadMain.do再把平板連接電腦一次。實際利用 ODIN 刷機的時候請把電腦上的 KIES 這套軟體關閉,包含右下角的圖示喔!註:有平板連不上Odin的可以試試這樣首先必須先到官方網站下載Kies程转载 2014-11-15 11:27:49 · 4106 阅读 · 0 评论 -
三星S4 (I9500) 4.4.2版本 Root中遇到的那些坑
项手头有一台三星S4需要Root原创 2014-10-29 20:00:07 · 3507 阅读 · 0 评论 -
Android常用开源项目
Android开源项目第一篇——个性化控件(View)篇 包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、其他Android开源项目第二篇——工具库篇 包括依赖注入、图片缓存、网络相关、数据库ORM工具包、Android公共库、高版本向低版本兼容库、多媒体、事件总转载 2014-11-03 00:32:18 · 2613 阅读 · 0 评论 -
Android 程序的安装、卸载和更新
安装程序:软件从无到有。卸载程序:软件从有到无。更新程序:软件的覆盖安装,可以保留原版本的数据,提升软件版本。 安装程序的方法: 1、 通过Intent机制,调出系统安装应用,重新安装应用的话,会保留原应用的数据。 String fileName =Environment.getExternalStorageDirectory() + apkName;Uri u转载 2014-11-26 19:05:29 · 1055 阅读 · 0 评论 -
Android一些经典的开源项目
1. android-pulltorefresh 一个强大的拉动刷新开源项目,支持各种控件下拉刷新ListView、ViewPager、WevView、ExpandableListView、GridView、(Horizontal)ScrollView、Fragment上下左右拉动刷新,比下面johannilsson那个只支持ListView的强大的多。并且他实现的下拉刷新List转载 2014-11-03 00:29:17 · 1116 阅读 · 0 评论 -
Android adb shell 获得点击屏幕的位置坐标
通过adb shell getevent命令获得点击屏幕的位置坐标的方法:第一步:计算比例首先通过命令adb shell getevent -p | grep -e "0035" -e "0036"获得event 体系里 宽(0035)和高(0036)以当前我使用的手机为例,命令会输出如下信息:0035 :转载 2014-11-30 23:08:05 · 26110 阅读 · 1 评论