自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (23)
  • 收藏
  • 关注

原创 【android 12】【app】设备状态变化感知

1.设备状态改变时,关注的对象需要能感知到这种变化,才能做相应的响应。可以通过监听、回调、轮询、广播等方式来感知。1.通过监听SettingsProvider中的值,感知设备状态变化。

2025-05-09 17:07:44 150

原创 【android】【编译】部分编译android.bp的方法

q framework-wifi //编译frameworks/base/wifi目录下的代码 ->1. 通过ninja工具,部分编译android.bp的代码模块,无须sdk整体编译,加快调试进度。# q libaudiopolicyenginedefault //加载上面静态库。//修改frameworks\av\services\audiopolicy\。# q libaudiopolicyengine_common //生成静态库。

2025-04-08 17:55:47 526

原创 【android 9】【app】动态拦截系统弹窗

1. android设备有各种各样的弹窗,包括系统触发的、app触发的等,客户在使用设备的过程中,这些弹窗非常影响体感,如果设备不是接鼠标操控的,这样关闭弹窗也非常麻烦。本代码修改的思想,是通过设置一个弹窗的白名单,记录在一个数据库中,系统在弹窗时读取白名单,只弹出允许的弹窗,来动态控制。3. 在2的基础上添加弹窗中的button控制。3、在3的基础上,优化白名单遍历。

2025-04-08 16:33:16 147

原创 【android 12】【权限】间接的动态的给app授予root权限,执行root操作

1. 在一些非root的设备上,app是无法获取到root权限的,对于一些特殊场景,如产测应用,需要具有root权限才能执行一些设备测试操作。本代码修改的思想,是通过创建一个具有root权限的系统服务来代替app执行root权限的操作,然后系统服务通过socket接口接收app传下来的指令,到达间接执行root权限操作。

2025-04-08 15:29:56 268

原创 【android 12】【网络】wifi与以太网共存操作

1. android系统原生代码只支持单网存在,即接入hdmi后,wifi无法使用,也不可以网络切换。下面的代码修改,可以使wifi与以太网共存,并根据场景实现不同的功能。2. 在1的基础上,解决wifi与以太网共存时,app无法获取以太网ip地址的问题,且设置以太网优先。3. 在2的基础上做网络动态切换,当双网共存时,以太网此时没有网络,切换到wifi,且能互切。1. wifi与以太网共存,且wifi优先。

2025-04-08 15:13:30 372 1

原创 【android 12】【audio】音量等级映射到100级

1. android系统原生的音量等级是16级,如果直接做除法运算进行16到100的转换是无法等分的,通过定制100级步阶到16级步阶的映射,转换音量等级到100级。

2025-04-08 14:39:41 296

原创 【android 12】【权限】动态控制selinux开启和关闭

1. 实现的思想:首先在一个独立分区内(如rk平台的vendor分区)写下一个标志位,用来标记产测模式和正常使用模式;其次,产测app在产测时,写入产测模式标志,且产测结束时,写入正常模式标志;然后,在设备的boot中,从独立分区里取出标志位,写入cmdline的环境变量;1. 设备在生产的时候,需要进行硬件测试,测试代码需要很多selinux权限,但是非测试环境下不能开启这些selinux权限,这就需要实现一种通过代码可以动态开关selinux权限的机制。2. boot端修改代码。

2025-04-08 12:01:41 207

原创 【android 12】【display】控制app获取指定的扩展显示器

在android系统原生代码中,对显示器分了下面几类: Display.TYPE_INTERNAL,Display.TYPE_EXTERNAL,Display.TYPE_OVERLAY,Display.TYPE_WIFI。当有多个外接扩展显示器时,这些显示器的id是累加的,即插拔一次累加1。当一个app只控制2个屏幕(一个主显、一个扩展),但是设备有3个屏幕时,即2个扩展,那么app获得的控制屏id是随机的,导致app在扩展屏上的显示也是随机的。1. 只让app识别一个扩展屏。

2025-04-08 11:30:40 158 1

原创 【android 12】【time】缩短NTP服务器时间同步频次

1. android原生的时间同步的触发时机如下代码,默认的定时同步是1天时间,可以通过参数,缩短时间同步频次,提高时间实时性。

2025-04-08 11:02:05 213

原创 【android 12】【time】添加多NTP服务器轮询

1. android原生框架中,默认只设置一个NTP服务器,如果该服务器网络通讯异常,会导致设备的时间同步功能异常,即无法时间同步。这会影响依赖时间的操作,如http请求等。针对这个问题,可以修改代码,设置多个NTP服务器轮询,当一个NTP服务器无法同步时,切换到另外一个NTP服务器做时间同步。

2025-04-08 10:42:41 168

原创 【android 11】【app】屏蔽应用全屏操作

1. 在需要导航栏常驻的场景中,app使用全屏的参数启动时会隐藏导航栏,无法到达预期效果。此代码改动,可以实现屏蔽应用的全屏操作,使导航栏不被应用主动隐藏。

2025-04-08 10:23:00 255

android 5-12 以太网wifi共存

android5-12 以太网和wifi共存的补丁

2025-04-08

动态给应用root权限

在一些非root的设备上,app是无法获取到root权限的,对于一些特殊场景,如产测应用,需要具有root权限才能执行一些设备测试操作。本代码修改的思想,是通过创建一个具有root权限的系统服务来代替app执行root权限的操作,然后系统服务通过socket接口接收app传下来的指令,到达间接执行root权限操作。

2025-04-08

动态拦截dialog弹窗

android设备有各种各样的弹窗,包括系统触发的、app触发的等,客户在使用设备的过程中,这些弹窗非常影响体感,如果设备不是接鼠标操控的,这样关闭弹窗也非常麻烦。本代码修改的思想,是通过设置一个弹窗的白名单,记录在一个数据库中,系统在弹窗时读取白名单,只弹出允许的弹窗,来动态控制。

2025-04-08

Rockchip_Developer_Guide_Trust_CN.pdf

Rockchip_Developer_Guide_Trust_CN

2021-04-13

Rockchip-Developer-Guide-USB-Performance-Analysis-CN.pdf

本文档提供Rockchip平台USB 2.0/3.0模块传输性能分析的方法以及支持的最大传输速率。 本文档将分别对USB Host和USB Device(Peripheral)两部分进行介绍。其中,USB Host将会介绍USB Disk、USB Ethernet以及USB Camera的传输性能分析。USB Device(Peripheral)将会介绍USB MTP、USB MSC(Mass Storage Class)、USB Gadget Webcam、USB Rndis、USB Gadget HID的传输性能分析。

2019-12-23

Rockchip-Developer-Guide-USB-PHY-CN.pdf

本文档提供 Rockchip 平台 USB PHYs 的开发指南,通过该文档可以更加快速地了解 USB PHYs 的硬件设计框架、主 要寄存器说明、PHY的功耗管理、PHY的tuning流程以及PHY的常见问题处理等。本文档可作为 USB PHYs 驱动开发 的参考文档,但不能替代PHY的手册。

2019-12-23

USB Type-C 规范1.2(中文版).pdf

USB Type-C 规范1.2(中文版)

2019-12-23

Consumer Electronics Control (CEC) .pdf

cec规范 CEC 13.7 Deck Control .............................................................................................................. 41 CEC 13.7.1 Messages .............................................................................................................41 CEC 13.7.2 Feature Description..............................................................................................42 CEC 13.7.3 Behavior with Earlier Versions .............................................................................42 CEC 13.8 Tuner Control............................................................................................................. 43 CEC 13.8.1 Messages .............................................................................................................43 CEC 13.8.2 Feature Description..............................................................................................43 CEC 13.8.3 Behavior with Earlier Versions .............................................................................44 CEC 13.9 Vendor Specific Commands..................................................................................... 44 CEC 13.9.1 Messages .............................................................................................................44 CEC 13.9.2 Feature Description..............................................................................................44 CEC 13.9.3 Behavior with Earlier Versions .............................................................................45 CEC 13.10OSD Display ............................................................................................................... 45 CEC 13.10.1 Messages ...........................................................................................................45 CEC 13.10.2 Feature Description............................................................................................46 CEC 13.10.3 Behavior with Earlier Versions ...........................................................................46 CEC 13.11Device OSD Name Transfer.............................................................................

2019-12-23

HYM8563-Haoyu.pdf

The HYM8563 is a CMOS real time clock/calendar, which provides seconds, minutes, hours, day, date, month, and year information. The number of days in each month and leap years are automatically adjusted. The clock can operate in two modes: one is the 12-hour mode with an AM/PM indicator,the other is the 24-hour mode. The clock/calendar is full binary-coded decimal (BCD). In addition, the HYM8563 contains a programmable clock output, a timer, an alarm, a voltage-low detector. All address and data are transferred serially via I 2C bus and The HYM8563 operates as a slave device on the serial bus. The built-in word address register is incremented automatically after each written or read data byte. The HYM8563 is designed to operate on very low power consumption

2019-12-23

rockchip_drm_integration_helper-zh.pdf

概述 DRM全称是Direct Rendering Manager,管理进行显示输出的, buffer分配, 帧缓冲. libdrm库提供了一系列友好的控制封装, 使用户可以方便的进行显示的控制, 但并不是 只能通过libdrm库来 控制drm, 用户可以直接操作drm的ioctl或者是使用framebuffer的 接口实现显示操作. 后面重点介绍kernel态 drm的机制. 以下为drm显示大致框架:

2019-12-23

RTL8211F(D)(I)-CG_DataSheet_1.9.pdf.pdf

1 概述......................................................................................................................................................2 2 主要支持功能......................................................................................................................................2 3 SDK 获取说明.....................................................................................................................................3 3.1 获取 SDK.............................................................................................................................3 3.2 补充说明..............................................................................................................................4 4 SDK 编译说明.....................................................................................................................................4 4.1 JDK 安装 .............................................................................................................................4 4.2 编译模式..............................................................................................................................4 4.3 代码编译..............................................................................................................................4 4.3.1 uboot 编译步骤...........................................................................................................4 4.3.2 kernel 编译步骤..........................................................................................................4 4.3.3 Android 编译步骤 .......................................................................................................5 5 刷机说明..............................................................................................................................................5

2019-12-23

openjdk7.zip

java-7-openjdk-amd64.tar.gz下载

2021-04-13

Rockchip-Developer-Guide-UBoot-nextdev.pdf

前⾔ 概述 本⽂主要指导读者如何在U-Boot next-dev分⽀进⾏项⽬开发。 读者对象 本⽂档(本指南)主要适⽤于以下⼯程师: 技术⽀持⼯程师 软件开发⼯程师 各芯⽚feature⽀持状态

2019-12-23

Rockchip-Developer-Guide-Trust.pdf

概述 Trust 作为Rockchip平台SDK里的固件之一,因为涉及安全性和保密性,目前完整源码仅对内部的部分工程师开放 (RK322x/RK3328/RK3368/RK3399/平台的基础功已经开源[0])。本文档仅对Trust 进行概要介绍(以64位平台 作为范例),意在让读者明白它在整个系统架构中的角色和作用。同时指导读者在实际使用中遇到问题时如何进行 问题收集和反馈。

2019-12-23

RK3288_ANDROID5.1-RBOX-SDK_V1.00_20150722发布说明.pdf

1 概述......................................................................................................................................................2 2 主要支持功能......................................................................................................................................2 3 SDK 获取说明.....................................................................................................................................3 3.1 获取 SDK.............................................................................................................................3 3.2 补充说明..............................................................................................................................4 4 SDK 编译说明.....................................................................................................................................4 4.1 JDK 安装 .............................................................................................................................4 4.2 编译模式..............................................................................................................................4 4.3 代码编译..............................................................................................................................4 4.3.1 uboot 编译步骤...........................................................................................................4 4.3.2 kernel 编译步骤..........................................................................................................4 4.3.3 Android 编译步骤 .......................................................................................................5 5 刷机说明..............................................................................................................................................5

2019-12-23

Magisk-v20.3.1.zip

Welcome to the official Magisk Release / Announcement thread! Installing Magisk will give you ROOT, a super powerful Systemless Interface, Magisk Modules support, and hide from tons of integrity tests like SafetyNet! Magisk does NOT have a website. Do NOT download Magisk from unofficial sites. Official Links: Magisk Github Release Highlights Open Source: 100% open source and easy to build on all Google supported platforms. Magic Mount: Modify system (vendor) without tampering the partitions. MagiskSU: Unleash your device's root access. MagiskHide: Hide Magisk from detections: Google SafetyNet, enterprise / bank system integrity checks, game tamper checks. Resetprop: Modify or delete any system properties, including read-only props. Online Module Repo: Install Magisk Modules from the community driven Magisk Module Repo. Android Version Support Android 4.2+: MagiskSU and Magisk Modules Only (*1) Android 4.4+: All features available (*2) Android 6.0+: MagiskHide guaranteed support (*3) Android 7.0+: MagiskHide full protection Android 9.0+: Magisk Manager full hide capability CLICK TO SHOW CONTENT Instructions Link to Installation Instructions Link to Tutorials (Including OTA Installation and Best Practices for MagiskHide)

2020-03-17

VESA Proposed DisplayPort (DP) Standard.pdf

Summary The DisplayPort standard specifies an open digital communications interface for use in both internal connections, such as interfaces within a PC or monitor, and external display connections. Suitable external display connections include interfaces between a PC and monitor or projector, between a PC and TV, or between a device such as a DVD player and TV display. DP v1.1a was revised to correct errata items and add clarifications to DP v1.1. DP v1.2 was revised to add enhancements including higher speed operation, more flexible topology management, multiple streams on a single connection, higher speed Auxiliary Channel communications, improved support for audio, and a new smaller connector. It also corrected errors and added clarifications to DP v1.1a. This version corrects errors and adds clarification to DP v1.2. Furthermore, this version adds DP_PWR voltage level options to a downstream DisplayPort device. DP v1.2a was revised to correct errata items and add clarifications to DP v1.2.

2019-12-23

Magisk-master-1.zip

Magisk Downloads | Documentation | XDA Thread Introduction Magisk is a suite of open source tools for customizing Android, supporting devices higher than Android 4.2 (API 17). It covers the fundamental parts for Android customization: root, boot scripts, SELinux patches, AVB2.0 / dm-verity / forceencrypt removals etc. Furthermore, Magisk provides a Systemless Interface to alter the system (or vendor) arbitrarily while the actual partitions stay completely intact. With its systemless nature along with several other hacks, Magisk can almost perfectly hide modifications within userspace. Note that since 2020.3, the CTS check of Google's SafetyNet API will NOT pass. Bug Reports Only reports using debug canary builds will be accepted. Access canary builds by upgrading to either canary Magisk Manager: Canary Manager (Release) Canary Manager (Debug) For installation issues, upload both boot image and install logs. For Magisk issues, upload boot logcat or dmesg. For Magisk Manager crashes, record and upload the logcat when the crash occurs. Building Environment Requirements Python 3: run build.py script Java Development Kit (JDK) 8: Compile Magisk Manager and sign zips Latest Android SDK: set ANDROID_HOME environment variable to the path to Android SDK Android NDK: Install NDK along with SDK ($ANDROID_HOME/ndk-bundle), or optionally specify a custom path ANDROID_NDK_HOME (Windows Only) Python package Colorama: Install with pip install colorama, used for ANSI color codes

2020-03-17

RTL8211E_VB IEEE Waveform Measurement Application note_V1.2.pdf

1 概述......................................................................................................................................................2 2 主要支持功能......................................................................................................................................2 3 SDK 获取说明.....................................................................................................................................3 3.1 获取 SDK.............................................................................................................................3 3.2 补充说明..............................................................................................................................4 4 SDK 编译说明.....................................................................................................................................4 4.1 JDK 安装 .............................................................................................................................4 4.2 编译模式..............................................................................................................................4 4.3 代码编译..............................................................................................................................4 4.3.1 uboot 编译步骤...........................................................................................................4 4.3.2 kernel 编译步骤..........................................................................................................4 4.3.3 Android 编译步骤 .......................................................................................................5 5 刷机说明..............................................................................................................................................5

2019-12-23

openjdk8.zip

openjdk-8-jdk_8u45-b14-1_amd64.deb

2021-04-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除