随笔分类 -  Android

摘要:from:https://blog.csdn.net/u012932409/article/details/105075851 动态分区 Android 10支持了动态分区,这是一种可以通过无线下载 (OTA) 更新来创建、销毁分区或调整分区大小的用户空间分区系统。系统为设备分配一个 super 分 阅读全文
posted @ 2021-03-11 17:30 aspirs 阅读(843) 评论(0) 推荐(0)
摘要:from: https://ressrc.com/2018/10/26/android-verified-boot-2-0%E7%AE%80%E8%A6%81-thanksgining/ 简要 AVB2.0被用于启动引导,此用法添加一个“vbmeta.img”镜像。public key被编译到boo 阅读全文
posted @ 2021-03-04 21:12 aspirs 阅读(1304) 评论(0) 推荐(0)
摘要:Android SWT 即 Android Software Watchdog Timeout。 https://blog.csdn.net/ch853199769/article/details/88244689 阅读全文
posted @ 2021-01-21 10:25 aspirs 阅读(320) 评论(0) 推荐(0)
摘要:Android.bp // Android.bp sample cc_defaults( deps = [ "libc", ], ) cc_library( name = "cmd", srcs = [ "main.c", ], ) subdirs = ["subdir1", "subdir2"] 阅读全文
posted @ 2020-08-24 20:26 aspirs 阅读(787) 评论(0) 推荐(1)
摘要:android / platform / bionic from: https://android.googlesource.com/platform/bionic/ readelf -d (so或者bin) |grep libclibc.so.6 代表是glibclibc.so 代表是bionic 阅读全文
posted @ 2020-08-20 17:19 aspirs 阅读(179) 评论(0) 推荐(0)
摘要:android OTA package packing and extract to partition 1. 打包image并将写image到对应partition的命令写入OTA升级脚本里 device/google/dragon/releasetools.py def FullOTA_Inst 阅读全文
posted @ 2020-06-07 15:30 aspirs 阅读(575) 评论(0) 推荐(0)
摘要:【文件】updater-script实例讲解 from: https://blog.csdn.net/twk121109281/article/details/90764839 Android刷机脚本updater-script实例讲解 在这里引用的是c8812的深度os刷机脚本 assert(ge 阅读全文
posted @ 2020-06-07 13:39 aspirs 阅读(669) 评论(0) 推荐(0)
摘要:什么是ANR? ANR:Application Not Responding,即应用无响应 ANR日志Trace文件获取 系统生成的Trace文件保存在data/anr,可以用过命令adb pull data/anr/取出 traces.txt只保留最后一次ANR的信息,Android系统有个Dro 阅读全文
posted @ 2020-05-22 11:37 aspirs 阅读(2896) 评论(0) 推荐(0)
摘要:1.ANR介绍 1.1 何为ANR ANR全名Application Not Responding, 也就是"应用无响应". 当操作在一段时间内系统无法处理时, 系统层面会弹出上图那样的ANR对话框. 1.2 为什么会产生ANRAndroid里, App的响应能力是由Activity Manager 阅读全文
posted @ 2020-05-22 11:31 aspirs 阅读(1798) 评论(0) 推荐(0)
摘要:Total number of allocations 476778 进程创建到现在一共创建了多少对象 Total bytes allocated 52MB 进程创建到现在一共申请了多少内存 Total bytes freed 52MB 进程创建到现在一共释放了多少内存 Free memory 77 阅读全文
posted @ 2020-05-22 11:30 aspirs 阅读(1604) 评论(0) 推荐(0)
摘要:am force-stop com.android.tv.settingsam start -S com.android.tv.settings/com.xxx.systemsettings.MainActivity-S表示每次启动前先强行停止 阅读全文
posted @ 2020-03-31 13:35 aspirs 阅读(214) 评论(0) 推荐(0)
摘要:问题 在开发过程中发现一个问题,我们需要在开机的时候判断硬件版本号去启动服务, 服务的名字是ledservice和ledservice4,但是发现每次烧录完固件后,服务启动不 成功,需要再复位重启一次,服务才可以正常启动。 日志如下 [ 5.328699] init: Service 'logd-r 阅读全文
posted @ 2020-03-21 14:32 aspirs 阅读(1811) 评论(0) 推荐(0)
摘要:在service.cpp中的Start()调用ExpandArgsAndExecv() system/core/init/service.cpp static bool ExpandArgsAndExecv(const std::vector<std::string>& args) { std::v 阅读全文
posted @ 2020-03-20 15:37 aspirs 阅读(369) 评论(0) 推荐(0)
摘要:android init.rc中service console option的含义、作用 void service_start(struct service *svc, const char *dynamic_args) needs_console = (svc->flags & SVC_CONSO 阅读全文
posted @ 2020-03-14 14:05 aspirs 阅读(1173) 评论(0) 推荐(0)
摘要:实例演示 关闭和启动init.rc中的console 服务 service console /system/bin/sh class core console disabled user shell group log 代码实现 shell : setprop ctl.start service_n 阅读全文
posted @ 2020-03-13 20:48 aspirs 阅读(1319) 评论(0) 推荐(0)
摘要:总结下linux kernel switch driver。 这里的switch driver是为监听CPU gpio口状态变化的,switch可以理解为gpio口状态变化。 switch driver是因android引入的。 总结地说,就是在switch driver中创建kernel thre 阅读全文
posted @ 2019-11-30 20:42 aspirs 阅读(1541) 评论(0) 推荐(0)
摘要:system/core/libutils/include/utils/Thread.hsystem/core/libutils/Threads.cpp 阅读全文
posted @ 2019-11-27 13:34 aspirs 阅读(185) 评论(0) 推荐(0)
摘要:test/vts/script/cts_test_list.txt 阅读全文
posted @ 2019-10-05 18:21 aspirs 阅读(848) 评论(0) 推荐(0)
摘要:audio DevicesFactory xref: /hardware/interfaces/audio/common/all-versions/default/service/service.cpp xref: /system/libhidl/transport/include/hidl/Leg 阅读全文
posted @ 2019-09-28 22:08 aspirs 阅读(1171) 评论(0) 推荐(0)
摘要:以add hidl service为例记录下hidl和binder driver的交互。 BpHwServiceManager::_hidl_add() 在BpHwServiceManager::_hidl_add()里有call Parcel的writeStrongBinder(),这个函数会ca 阅读全文
posted @ 2019-09-25 16:28 aspirs 阅读(770) 评论(0) 推荐(0)