随笔分类 -  Android

摘要:alarm timer kernel里的alarm timer可以由以下方式来设置: 1. android alarmmanagerservice来设置,此时的timer type要为RTC_WAKEUP或者ELAPSED_REALTIME_WAKEUP,在alarmmanagerservice j 阅读全文
posted @ 2022-07-23 13:03 aspirs 阅读(286) 评论(0) 推荐(0) 编辑
摘要:AVB相关image(vbmeta.img/system.img)的生成 vbmeta.img/vbmeta_system.img(chain partition)的生成 调用build-vbmetaimage-target生成vbmeta.img 3762 $(INSTALLED_VBMETAIM 阅读全文
posted @ 2022-05-16 00:06 aspirs 阅读(2492) 评论(0) 推荐(0) 编辑
摘要:android related image generation 调用build_image.py的cmd如下,system.img、userdata.img、cache.img、vendor.img都是调用这个cmd去生成image的 ./build/tools/releasetools/buil 阅读全文
posted @ 2022-05-15 22:31 aspirs 阅读(233) 评论(0) 推荐(0) 编辑
摘要:selinux misc selinux class definition in te file system/sepolicy/private/access_vectors 7# 8# Define a common prefix for file access vectors. 9# 10 11 阅读全文
posted @ 2021-10-28 15:31 aspirs 阅读(241) 评论(0) 推荐(0) 编辑
摘要:sdcardfs sdcardfs_read() call flow [ 70.421020] CPU: 0 PID: 4007 Comm: Binder:2841_2 Tainted: P O 4.19.116+ #21 [ 70.429301] Hardware name: xxx (DT) [ 阅读全文
posted @ 2021-10-19 17:02 aspirs 阅读(200) 评论(0) 推荐(0) 编辑
摘要:PowerManagerService.WakeLocks wake lock acquire call stack Line 5713: 09-19 09:06:40.206 3291 3291 E power : in acquire_wake_lock: is pmswakelocks. Li 阅读全文
posted @ 2021-10-14 18:06 aspirs 阅读(171) 评论(0) 推荐(0) 编辑
摘要:android STR suspend/resume framework console:/sys/power # cat wake_lock PowerManager.SuspendLockout PowerManagerService.Display console:/sys/power # c 阅读全文
posted @ 2021-10-14 11:39 aspirs 阅读(1238) 评论(0) 推荐(0) 编辑
摘要:Result<Success> SetKptrRestrictAction(const BuiltinArguments&) { std::string path = KPTR_RESTRICT_PATH; if (!SetHighestAvailableOptionValue(path, KPTR 阅读全文
posted @ 2021-10-02 19:40 aspirs 阅读(189) 评论(0) 推荐(0) 编辑
摘要:android framework misc Intent发送与接收 系统(framework)发送Intent,可以发送Intent的API如下:sendBroadcastsendOrderedBroadcastsendBroadcastAsUser apk注册Intent接收,在系统(frame 阅读全文
posted @ 2021-09-28 14:55 aspirs 阅读(128) 评论(0) 推荐(0) 编辑
摘要:android malloc_debug tool malloc_debug使用方法 130|console:/ # cat /data/local.prop libc.debug.malloc.options=backtrace=16 guard=8 fill_on_free=16 free_tr 阅读全文
posted @ 2021-09-24 17:30 aspirs 阅读(1483) 评论(0) 推荐(0) 编辑
摘要:一个简单的android测试程序的Android.bp example如下,在android根目录下make slub_debug_test.bin即可: cc_binary { srcs: ["slub_debug_test.c"], name: "slub_debug_test.bin", pr 阅读全文
posted @ 2021-09-05 18:51 aspirs 阅读(108) 评论(0) 推荐(0) 编辑
摘要:文章参考 Android 9.0 源码,以翻译为主,留做备用参考。Sepolicy 工具位于 system/sepolicy/tools/ build_policies.sh 为多个目标并行构建SELinux策略的工具。这对于在多个目标上快速闫增新的测试或Neveralow规则很有用。 用法: ./ 阅读全文
posted @ 2021-08-15 20:14 aspirs 阅读(647) 评论(0) 推荐(0) 编辑
摘要:selinux misc . selinux语法 Section 5.2. Types, Attributes, and Aliases https://flylib.com/books/en/2.803.1.40/1/ type type_name [ alias alias_set ] [, a 阅读全文
posted @ 2021-08-11 16:09 aspirs 阅读(27) 评论(0) 推荐(0) 编辑
摘要:android的system.img分为两种,一种是raw ext4 image,其特点是完整的ext4分区镜像(包含很多全零的无效填充区),可以直接使用mount进行挂载,因此比较大 $ file system.imgsystem_raw.img: Linux rev 1.0 ext4 files 阅读全文
posted @ 2021-06-19 19:05 aspirs 阅读(576) 评论(0) 推荐(0) 编辑
摘要:usb 拔出插入android log: Line 568: 06-16 01:09:42.075 3270 3463 D UsbHostManager: Removed device at /dev/bus/usb/001/003: TransMemory Line 1699: 06-16 01: 阅读全文
posted @ 2021-06-19 11:10 aspirs 阅读(319) 评论(0) 推荐(0) 编辑
摘要:userdata.img里的block count等于userdata partition size/block_size build/core/Makefile define build-userdataimage-target $(call pretty,"Target userdata fs 阅读全文
posted @ 2021-05-22 22:32 aspirs 阅读(422) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示