avatar
文章
70
标签
27
分类
12
主页
文章
标签
分类
AI
关于
墨香博客
主页
文章
标签
分类
AI
关于
ANR-实例分析-Input dispatching timed out
发表于2024-11-04|ANR
上一篇中也介绍了Input dispatching timed out的ANR,不过和这篇不同,这篇介绍另外一种情况。 其实Input dispatching timed out有两种类型, Input dispatching timed out (Application does not have a focused window) Input dispatching timed out((server) is not responding. Waited 5002ms for FocusEvent(hasFocus=false)) 一个是没有焦点窗口类型的ANR,一个是server没有相应的ANR,这两个类型是不一样的。 第一步:看trace 123456789101112131415161718192021222324----- pid 3450 at 2024-07-20 15:00:45.488171976+0800 -----Cmd line: com.android.launcherBuild fingerprint: ...ABI:...
ANR-实例分析-启动应用失败
发表于2024-10-28|ANR
前面四章介绍了ANR分类,分析流程,trace信息分析,Event log分析,Logcat分析,这些都是ANR分析的基础知识,以及分析问题的关键信息,熟练掌握以上信息才能让ANR分析尽可能又快又准确。 这章开始分析一些我在开发中遇到的一些ANR实例,通过总结这些实例的分析流程以及一些关键信息,帮助我们对ANR有更多的了解。 这里我们再重复贴一次分析流程: 首先看trace信息: 12345678910111213141516171819202122232425----- pid 2758 at 2024-05-30 12:15:49.504759099+0800 -----Cmd line: com.android.launcherBuild fingerprint: 'xxxxxxxx:user/release-keys'ABI: 'arm64'Build type: optimizedsuspend all histogram: Sum: 1.340s 99% C.I. 2.663us-6123.885us Avg:...
ANR-分析之基础知识介绍:logcat
发表于2024-10-21|ANR
前面介绍了分析ANR的基础知识:trace信息和event log,这一章继续介绍ANR分析需要的基础:logcat(main_log)。 logcat包含很多信息,系统预设的一些log信息,还有应用自己添加的一些log信息,这些信息很多,分析ANR很多时候需要分析Logcat信息,比如Looper信息,AnrManager信息,WindowManager信息等等。这些信息会辅助我们分析发生的ANR是哪些原因导致的。 首先是AnrManager信息(下面是我过滤出来的信息,因此会带有行号): 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697//...
Google-Jetpack-Compose-Animation
发表于2024-08-25|Android Official Source
Developer Source Animations in Compose | Jetpack Compose | Android Developers Choose an animation API | Jetpack Compose | Android Developers Quick guide to Animations in Compose | Jetpack Compose | Android Developers Animation modifiers and composables | Jetpack Compose | Android Developers Value-based animations | Jetpack Compose | Android Developers Animated vector images in Compose | Jetpack Compose | Android Developers Advanced animation example: Gestures | Jetpack Compose ...
ANR-分析之基础知识介绍:event log
发表于2024-08-24|ANR
上一章介绍了ANR分析基础知识trace信息,trace信息是ANR分析的必要信息之一,里面包含了ANR发生事件,ANR发生时堆栈信息,线程状态等。 本章介绍一下另外一个必要信息:Event log。 下面信息基于Android 14的代码。 Event log分类 am相关信息 app相关信息 dispatcher相关信息 server相关信息 systemui相关信息 vm相关信息 Event log抓取1adb logcat -b events > event.log 如果想要获取更详细的信息可以加对应参数 12// 查看前台Activityadb logcat -b events -s am_on_resume_called Event...
ANR-分析之基础知识介绍:trace信息
发表于2024-08-19|ANR
上一章ANR-分类以及分析流程介绍了ANR分类,ANR成因分类,以及ANR分析流程。这一章介绍一下分析ANR需要的基础知识。 分析ANR问题需要一些信息 trace信息 通过抓取bugreport获取,通常位于bugreport/FS/ANR/目录下。 event...
ANR-分类以及分析流程
发表于2024-08-17|ANR
本篇开始整理一些关于ANR的知识,包括:分类,分析流程,基础知识,实例,以及原理等。 由于本人技术水平有限,而ANR的问题涉及整个系统的影响,因此很多复杂的ANR,或者系统ANR本人无法解决。 另外,由于本人对于系统层知识了解比较浅显,因此很多ANR问题也只能分类或者很多找到的原因不太准确,还是需要读者自己去深入学习。 ANR分类 Service Timeout:前台服务在20s内未执行完成,后台为200s; BroadcastQueue Timeout:前台广播在10s内未执行完成,后台为60s; ContentProvider Timeout:内容提供者在publish超时10s; InputDispatching Timeout:输入事件分发超时5s,包括按键和触摸事件; 后台的anr,即isSilentANR值为true,那么不显示ANR对话框,直接kill掉ANR所在进程; 如果内部框架有问题比如窗口管理器存在死锁也不会显示ANR对话框,但最后会触发安卓 WatchDog...
Google官方Android开发资料整理之-App architecture(架构)
发表于2024-07-01|Android Official Source
本章主要整理Goole官方提供的App architecture相关资源 App architecture | Android Developers (google.cn) Guide to app architecture Guide to app architecture | Android Developers (google.cn) UI layer Guide to app architecture | Android Developers (google.cn) UI events | Android Developers (google.cn) State holders and UI State | Android Developers (google.cn) UI State production | Android Developers (google.cn) Domain layer Domain layer | Android Developers (google.cn) Data layer Data layer ...
Kotlin-Coroutines
发表于2024-07-01|Kotlin
本章整理Kotlin Coroutines(协程)的源码,API文档,以及Jetbrain官方文档,Google官方的Coroutine for Android文档资源。 源码 kotlinx.coroutines: Library support for Kotlin coroutines–源码 All modules (kotlinlang.org)–协程API Jetbrain 官方 Coroutines guide | Kotlin Documentation (kotlinlang.org) Coroutines basics | Kotlin Documentation (kotlinlang.org) Coroutines and channels − tutorial | Kotlin Documentation (kotlinlang.org) Cancellation and timeouts | Kotlin Documentation (kotlinlang.org) Composing suspending functions |...
Google官方Android开发资料整理之-Jetpack Compose
发表于2023-07-03|Android Official Source
Jetpack Compose is the modern toolkit for building native Android UI. Here’s where you’ll find the latest information about using Compose. Overview: See all the resources available to Compose developers. Tutorial: Get started with Compose, by using it to build a simple UI. Foundation Thinking in Compose: Learn how Compose’s declarative approach is different from the view-based approach you may have used in the past, and how to build a mental model of working with Compose. Managing state:...
1234…7
avatar
墨香
因为兴趣所以选择,因为选择所以坚持。
文章
70
标签
27
分类
12
Follow Me
公告
路虽远,行则将至;事虽难,做则可成。
最新文章
Hermes Agent 源码解析:一个可复用的 Agent 运行模型2026-10-31
OpenAI Codex 原理与架构:一个 while 循环与五层工程体系2026-10-31
Claude Code 原理与架构:模型负责思考,Harness 负责行动2026-10-31
Android Performance Studio:11 个性能工具,一个桌面应用2026-10-30
从海量 Log 到可审计结论:llm-anr 的设计思想、开发流程与最终结果2026-06-17
分类
  • AI4
  • ANR12
  • AOSP1
  • Android Official Source8
  • AndroidOS13
  • Android代码推荐1
  • Kotlin1
  • Launcher7
标签
高效Mac Test App architecture View绘制 Gradle Jetpack Compose Animation View AI Performance Launcher3 Launcher Android Coroutines AOSP Resource Codex Mind Understand Android Guide Hermes Android Performance Agent Safe ANR Claude AndroidOS
归档
  • 十月 20264
  • 六月 20261
  • 五月 20264
  • 四月 20261
  • 三月 20261
  • 九月 20251
  • 四月 20251
  • 二月 20251
网站资讯
文章数目 :
70
本站访客数 :
本站总访问量 :
最后更新时间 :
©2016 - 2026 By 墨香
框架 Hexo|主题 Butterfly