DeWu Technology
Nov 27, 2020 · Mobile Development
Analysis and Fix of Android Memory Leak Caused by AsyncTask SerialExecutor Blocking on Vivo Devices
The analysis reveals that on Vivo devices running Android 9, a static AsyncTask SERIAL_EXECUTOR blocks the UpdateBottomFlagTask in several order‑related activities, leaking the Activity context, and the fix replaces this executor via reflection with a custom parallel SerialExecutorProxy to prevent the leak.
AndroidAsyncTaskPerformance optimization
0 likes · 14 min read