Tagged articles
55 articles
Page 1 of 1
Alibaba Cloud Observability
Alibaba Cloud Observability
Nov 10, 2025 · Mobile Development

Building a Reliable Android Crash Collection Framework: Java & Native Solutions

This article explains the challenges of Android app crashes and presents a comprehensive, cloud‑native solution that captures both Java/Kotlin and native crashes, details the underlying mechanisms such as UncaughtExceptionHandler, signal handling, minidump generation, stack unwinding, and offers practical guidance for integrating reliable crash reporting into mobile applications.

AndroidCrash ReportingJava
0 likes · 19 min read
Building a Reliable Android Crash Collection Framework: Java & Native Solutions
Alibaba Cloud Native
Alibaba Cloud Native
Nov 8, 2025 · Mobile Development

How to Capture and Analyze Android Crashes: From Java Exceptions to Native Minidumps

This technical guide explains the underlying mechanisms of Android crash collection for both Java/Kotlin and native code, outlines a four‑step capture process, compares popular solutions, and provides concrete implementation details—including signal handling, minidump generation, and stack deobfuscation—to help developers reliably record and diagnose app failures.

AndroidCrash HandlingJava
0 likes · 19 min read
How to Capture and Analyze Android Crashes: From Java Exceptions to Native Minidumps
OPPO Amber Lab
OPPO Amber Lab
Nov 29, 2024 · Information Security

5 Real Android Native Memory Bugs: Heap Overflows, UAF, and Fixes

This article reviews five high‑severity Android native vulnerabilities, detailing how missing length checks, unsigned integer wrap‑around, thread‑lifecycle misuse, unlocked vectors, and out‑of‑scope pointers lead to heap overflows or use‑after‑free bugs, and presents the remediation steps recommended by Google.

AndroidMemory VulnerabilitiesSecurity
0 likes · 12 min read
5 Real Android Native Memory Bugs: Heap Overflows, UAF, and Fixes
DaTaobao Tech
DaTaobao Tech
Sep 2, 2024 · Frontend Development

Evolution and Architecture of the Daily Must‑Grab Mini‑Program Order System

The Daily Must‑Grab mini‑program order system evolved from a DX XML‑based UI to a React‑like Rax framework and finally to a native Ao Chuang solution, delivering cross‑platform support, smaller bundles, faster launches, better async handling, and extensible plug‑in architecture while leveraging Taobao’s transaction core.

DXMini ProgramRax
0 likes · 13 min read
Evolution and Architecture of the Daily Must‑Grab Mini‑Program Order System
Tencent Cloud Developer
Tencent Cloud Developer
Aug 29, 2024 · Mobile Development

Kotlin Native: Architecture, Compilation, Memory Layout, Interoperability, and Future Outlook

Kotlin Native compiles Kotlin code to native binaries via an IR‑to‑LLVM pipeline, provides C/C++‑compatible memory layout, garbage‑collected runtime, and rich interop with C, C++, Objective‑C/Swift, while facing tooling and value‑type challenges that are being addressed through ongoing performance and language enhancements.

InteropKotlinMemoryManagement
0 likes · 58 min read
Kotlin Native: Architecture, Compilation, Memory Layout, Interoperability, and Future Outlook
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 12, 2024 · Mobile Development

In-depth Analysis of Android Binder IPC Mechanism (Android 14 & Kernel 6.1)

This article walks through Android Binder IPC on Android 14 and Linux 6.1, detailing client‑side service registration and lookup, the kernel driver’s handling of parcels, reference management, and how ServiceManager maps names to IBinder objects, culminating in a diagram of the full native‑to‑kernel transaction flow.

AndroidAndroid14Binder
0 likes · 22 min read
In-depth Analysis of Android Binder IPC Mechanism (Android 14 & Kernel 6.1)
DeWu Technology
DeWu Technology
Apr 15, 2024 · Mobile Development

Debugging Performance Degradation of Android 14 Debug Builds: Root Cause and Workarounds

The severe jank observed in Android 14 debug builds stems from the DEBUG_JAVA_DEBUGGABLE flag triggering DeoptimizeBootImage, which forces boot‑image methods onto the slow switch interpreter; a temporary hook clearing the flag and a permanent fix using UpdateEntrypointsForDebuggable restore performance, with Google planning an official fix in Android 15.

ARTAndroidDebugging
0 likes · 12 min read
Debugging Performance Degradation of Android 14 Debug Builds: Root Cause and Workarounds
Amap Tech
Amap Tech
Feb 28, 2024 · Mobile Development

Deep Dive into Android ClassLoader and findLoadedClass Mechanism for Code Coverage

The article details a high‑performance, high‑stability Android code‑coverage technique that creates a surrogate ClassLoader, copies the target PathClassLoader’s private classTable pointer, and invokes findLoadedClass on this loader to query a class’s load state without triggering Android’s native optimization that would otherwise automatically load the class.

AndroidReflectionRuntime
0 likes · 13 min read
Deep Dive into Android ClassLoader and findLoadedClass Mechanism for Code Coverage
DeWu Technology
DeWu Technology
Jun 30, 2023 · Mobile Development

Optimizing Android CPU Frequency, Core Affinity, and Thread Priority

The article explains how to boost Android app performance by programmatically raising CPU frequency using Qualcomm’s BoostFramework, setting thread‑core affinity with native sched_setaffinity calls, and increasing execution priority via Process.setThreadPriority, providing Kotlin and C examples that demonstrate measurable speed gains.

AndroidCPU optimizationKotlin
0 likes · 20 min read
Optimizing Android CPU Frequency, Core Affinity, and Thread Priority
Ctrip Technology
Ctrip Technology
Jun 1, 2023 · Frontend Development

Cross‑Platform Shared Web Components: Architecture, Implementation, and Host Integration

This article describes a cross‑platform solution that enables a single set of Web component code to be shared across Native, React Native, and mini‑program environments by leveraging Web Components, environment‑aware builds, and bridge communication, thereby reducing development effort and accelerating release cycles.

Mini ProgramReactfrontend development
0 likes · 14 min read
Cross‑Platform Shared Web Components: Architecture, Implementation, and Host Integration
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Mar 21, 2023 · Operations

How to Capture Precise Android Stack Traces: Native vs Instrumentation Methods

This article examines why a single Thread.currentThread().getStackTrace() call is insufficient for modern Android performance debugging, compares instrumentation and native stack‑capture approaches, and provides detailed step‑by‑step implementations, code snippets, and optimization tips for reliable stack tracing.

AndroidDebuggingInstrumentation
0 likes · 14 min read
How to Capture Precise Android Stack Traces: Native vs Instrumentation Methods
Baidu Geek Talk
Baidu Geek Talk
Oct 10, 2022 · Mobile Development

Thor Container Framework: Unified Java and Native Hook for Mobile Apps

Thor is a unified Android container framework that combines Java and native hooking into a lightweight, dynamically loadable module, ensuring backward compatibility, hot‑plug plugin deployment, fault‑tolerant operation, and cloud‑controlled toggling, while real‑world plugins for threads, I/O, privacy, and memory deliver measurable performance and stability gains.

AndroidDynamic PluginsHook
0 likes · 25 min read
Thor Container Framework: Unified Java and Native Hook for Mobile Apps
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 15, 2022 · Mobile Development

Understanding User‑Space Locks on Android: Java, JUC, and Native Locks

The article explains Android’s user‑space locking hierarchy—from Java intrinsic and JUC locks to C++ std::mutex and pthread mutexes—detailing their internal structures, state transitions, and reliance on futex system calls for kernel‑level blocking, helping developers optimize synchronization across Java and native layers.

AndroidJavaLocks
0 likes · 17 min read
Understanding User‑Space Locks on Android: Java, JUC, and Native Locks
Alibaba Terminal Technology
Alibaba Terminal Technology
Apr 20, 2022 · Frontend Development

Overcoming Webview Limits: When to Choose Web, Native, or Flutter

This article shares the author’s experience designing UC Browser’s next‑generation web container, examining its technical boundaries—such as complex media control, high‑performance long lists, parallax interactions, multi‑tab pages, and modal dialogs—and discusses when web, native, or Flutter solutions are most appropriate.

ContainerMobileWebView
0 likes · 26 min read
Overcoming Webview Limits: When to Choose Web, Native, or Flutter
TAL Education Technology
TAL Education Technology
Mar 3, 2022 · Mobile Development

Hybrid Mobile App Development: Native, Cross‑Platform, and Flutter Solutions

This article explains how web front‑end engineers can build native mobile apps by comparing pure native development, cross‑platform frameworks like React Native and Flutter, and hybrid approaches that combine native code, Flutter, and WebView, while providing project structure, code examples, compilation steps, and best‑practice tips.

DARTHybrid DevelopmentReact Native
0 likes · 24 min read
Hybrid Mobile App Development: Native, Cross‑Platform, and Flutter Solutions
ELab Team
ELab Team
Jan 14, 2022 · Frontend Development

Mastering HTML5 Drag-and-Drop: Native Implementation, Events, and React Alternatives

This article explains how to implement native HTML5 drag‑and‑drop, details the required draggable attribute, describes all related events, shows a simple JavaScript demo, discusses common pitfalls such as repeated ondragover and ghosting, and compares popular React libraries for drag‑and‑drop.

Drag-and-DropHTML5JavaScript
0 likes · 12 min read
Mastering HTML5 Drag-and-Drop: Native Implementation, Events, and React Alternatives
Ctrip Technology
Ctrip Technology
Oct 28, 2021 · Mobile Development

Embedding Flutter Views in React Native and Native Applications: Architecture, Implementation, and Lessons Learned

This article explores the practical integration of Flutter views within React Native and native mobile pages, detailing architectural choices, lifecycle management, event handling, and code implementations to enable seamless cross‑stack UI composition in a large‑scale travel app.

Embeddingcross-platformmobile-development
0 likes · 15 min read
Embedding Flutter Views in React Native and Native Applications: Architecture, Implementation, and Lessons Learned
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Aug 27, 2021 · Information Security

JavaTweakHook: A Lightweight Android Java Method Hook Framework without Xposed

The article introduces JavaTweakHook, a lightweight Android hook framework that avoids Xposed by directly manipulating ART structures, compares it with existing solutions, details the hook process—including method creation, ArtMethod copying, assembly trampolines, and native‑Java integration—and provides compilation, usage, and limitation notes.

AndroidHookJava
0 likes · 15 min read
JavaTweakHook: A Lightweight Android Java Method Hook Framework without Xposed
ByteFE
ByteFE
Jul 27, 2021 · Mobile Development

Bridge Communication Between Native and Webview in Hybrid Development: Methods, Implementation, and Event Handling

This article explains from a frontend perspective how JavaScript and native code communicate in hybrid apps, covering injection and interception bridge methods, their implementation details, SDK initialization, message flow, and native event listening with code examples and compatibility considerations.

HybridJavaScriptMobile
0 likes · 15 min read
Bridge Communication Between Native and Webview in Hybrid Development: Methods, Implementation, and Event Handling
DeWu Technology
DeWu Technology
Apr 2, 2021 · Fundamentals

How Android’s ART Runtime Manages Heap Memory: A Deep Dive into GC Structures

This article explains why reading the ART virtual‑machine source is valuable, compares Dalvik and ART, outlines the GC source hierarchy, details the Space class architecture—including accounting, allocator, collector, and specific spaces like LargeObjectSpace, BumpPointerSpace, and RegionSpace—then analyzes heap construction, PreZygoteFork processing, memory‑map layout, and the full Java‑object allocation flow in ART.

ARTAndroidGarbage Collection
0 likes · 43 min read
How Android’s ART Runtime Manages Heap Memory: A Deep Dive into GC Structures
vivo Internet Technology
vivo Internet Technology
Feb 25, 2021 · Mobile Development

Understanding File Descriptors and FD Leaks in Android

Android inherits Linux file descriptors, which are indexed by non‑negative integers and limited per process, and this article explains their kernel structures, common leak sources such as HandlerThread eventfd, unclosed streams, and SQLite cursor windows, plus practical commands and monitoring techniques to detect and fix FD leaks.

AndroidFD LeakFileDescriptor
0 likes · 20 min read
Understanding File Descriptors and FD Leaks in Android
Tencent Music Tech Team
Tencent Music Tech Team
Feb 4, 2021 · Mobile Development

Adapting the QQ Music/Karaoke Android App to Arm64 Architecture

The QQ Music/Karaoke team migrated their Android app from 32‑bit to Arm64‑v8a by reconfiguring Gradle builds, recompiling or replacing over 120 native libraries, extending the dynamic‑resource loader for ABI selection, implementing ABI‑aware update channels, and fixing issues such as library path limits, I/O reliability, camera latency, and WebView cache corruption, completing the transition in early 2021.

ARM64AndroidBuild configuration
0 likes · 27 min read
Adapting the QQ Music/Karaoke Android App to Arm64 Architecture
Qunar Tech Salon
Qunar Tech Salon
Nov 18, 2020 · Mobile Development

Understanding Android Looper, MessageQueue, and Native Message Handling

This article explains how Android drives applications through a message‑driven model by detailing the roles of Message, MessageQueue, Looper, Handler, and ThreadLocal, and walks through the native implementation of ActivityThread's main loop, including prepareMainLooper, MessageQueue initialization, epoll integration, and the polling mechanisms that power the message processing cycle.

AndroidLooperMessageQueue
0 likes · 17 min read
Understanding Android Looper, MessageQueue, and Native Message Handling
Qunar Tech Salon
Qunar Tech Salon
Nov 10, 2020 · Mobile Development

Android Automation Interaction: Traditional ADB Scripts and Native Methods

This article examines Android automation techniques, comparing simple ADB script‑based interactions with native‑code approaches using activity lifecycle callbacks, view identification, and MotionEvent simulation, and discusses their advantages, limitations, and suitable application scenarios.

ADBAndroidAutomation
0 likes · 8 min read
Android Automation Interaction: Traditional ADB Scripts and Native Methods
Tencent Music Tech Team
Tencent Music Tech Team
Oct 23, 2020 · Mobile Development

Using Pigeon to Manage Flutter Plugin Interfaces Across Platforms

Pigeon lets Flutter developers define a single Dart API that automatically generates matching, type‑safe interface code for Android and iOS, eliminating manual method‑channel boilerplate, preventing naming mismatches, and keeping native and Dart implementations synchronized across platforms.

CodeGenerationDARTFlutter
0 likes · 14 min read
Using Pigeon to Manage Flutter Plugin Interfaces Across Platforms
Xianyu Technology
Xianyu Technology
Jun 11, 2020 · Mobile Development

Designing a Flutter Jank Monitoring System with Stack Trace Collection

The article outlines a Flutter jank monitoring system that detects frame stalls by measuring UI callback intervals and captures the offending Dart call stack, evaluating SDK modification, AOT native unwinding, and ultimately selecting a low‑overhead signal‑based stack‑collection method for production use.

Mobilejank monitoringnative
0 likes · 14 min read
Designing a Flutter Jank Monitoring System with Stack Trace Collection
Ctrip Technology
Ctrip Technology
Mar 5, 2020 · Fundamentals

Understanding Kotlin/Native Asynchronous Concurrency: Workers, Object Subgraphs, and Multithreaded Coroutines

This article explores Kotlin/Native's asynchronous concurrency model, detailing the three native approaches—OS‑level threads, Kotlin/Native coroutines, and Workers with object subgraphs—while also examining the preview multithreaded coroutine support, transfer modes, annotations, and practical code examples.

Workersmultithreadingmutex
0 likes · 24 min read
Understanding Kotlin/Native Asynchronous Concurrency: Workers, Object Subgraphs, and Multithreaded Coroutines
政采云技术
政采云技术
Feb 23, 2020 · Mobile Development

An Introduction to JSBridge: Origin, Dual‑Communication Principles, and Usage

This article explains the origin of JSBridge, compares H5 and native development, details the two‑way communication mechanisms—including URL Scheme interception, prompt rewriting, and API injection—and provides practical usage guidelines and code examples for integrating JSBridge in hybrid mobile apps.

Hybrid DevelopmentJSBridgeWebView
0 likes · 14 min read
An Introduction to JSBridge: Origin, Dual‑Communication Principles, and Usage
JD Retail Technology
JD Retail Technology
Dec 24, 2019 · Mobile Development

Implementing Java and Native Crash Monitoring on Android with the Eagle Eye System

This article explains how to capture and report both Java and native crashes on Android using the Eagle Eye monitoring system, detailing the use of Thread.UncaughtExceptionHandler, Linux signal mechanisms, sigaction registration, alternative stacks, and native stack parsing with libbacktrace to improve app stability.

AndroidEagle EyeMobile Development
0 likes · 12 min read
Implementing Java and Native Crash Monitoring on Android with the Eagle Eye System
JavaEdge
JavaEdge
Oct 30, 2019 · Fundamentals

Inside the Java Launcher: How the JVM Starts and Executes Main

This article walks through the native entry point of the Java launcher, explaining how the main function delegates to JLI_Launch, initializes the JVM, loads the main class, constructs arguments, and finally invokes the Java main method with detailed code excerpts.

CJVMJava
0 likes · 8 min read
Inside the Java Launcher: How the JVM Starts and Executes Main
iQIYI Technical Product Team
iQIYI Technical Product Team
Jun 21, 2019 · Mobile Development

xCrash: An Open-Source Android Crash Capture SDK Overview

xCrash is an open‑source Android SDK that reliably captures both Java and native crashes across Android 4.0‑9.0 and multiple CPU architectures by using async‑signal‑safe handlers, a dedicated dumper process, and pre‑allocated resources to generate tombstone‑style dump files without root, offering richer diagnostics than BreakPad and extensible future features.

AndroidCrash ReportingSDK
0 likes · 17 min read
xCrash: An Open-Source Android Crash Capture SDK Overview
Amap Tech
Amap Tech
Jun 12, 2019 · Mobile Development

Accelerating Stack Trace for Android Native Memory Leak Detection Using TLS and Compiler Instrumentation

By instrumenting every C++ function with GCC’s ‑finstrument‑functions and recording call addresses in per‑thread TLS, the team built a fast, lock‑free stack‑trace mechanism that outperforms libunwind by up to 60×, integrates with Android’s malloc_debug, and powers an automated native‑memory‑leak detection framework with web‑based analysis.

AndroidTLSnative
0 likes · 11 min read
Accelerating Stack Trace for Android Native Memory Leak Detection Using TLS and Compiler Instrumentation
Tencent Music Tech Team
Tencent Music Tech Team
Apr 19, 2019 · Mobile Development

Common Wrapper Classes for Android BufferQueue: Surface and SurfaceTexture

The article explains BufferQueue’s internal design and shows how Android developers typically use its wrapper classes—Surface as the producer and SurfaceTexture as the consumer—detailing their constructors, dequeue/queue workflows, lock/unlock mechanisms, and a complete SurfaceView example that illustrates buffer production and consumption by SurfaceFlinger.

AndroidBufferQueueC
0 likes · 13 min read
Common Wrapper Classes for Android BufferQueue: Surface and SurfaceTexture
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Sep 11, 2018 · Mobile Development

Cross‑Platform Native Fusion: Expert Insights from IMWeb Conf 2018

The IMWeb Conf 2018 Native Cross‑Platform Fusion session explored the challenges of “write once, run anywhere,” presented expert talks on frameworks like Taro, Hippy, and Weex, and featured a detailed Q&A on React Native, JSBridge optimization, and choosing sustainable mobile development solutions.

HippyJSBridgeReact Native
0 likes · 12 min read
Cross‑Platform Native Fusion: Expert Insights from IMWeb Conf 2018
Qunar Tech Salon
Qunar Tech Salon
Jul 11, 2018 · Mobile Development

Evolution of Native Mobile Development and Heterogeneous Solutions: From Small Apps to Dynamic Components and Cross‑Platform Frameworks

The article reviews the history of native Android development, describes the shift from small‑app architectures to static and dynamic componentization, examines hybrid and cross‑platform solutions such as WebView‑based, script‑DSL, and independent runtimes, and outlines future trends and strategic choices for mobile teams.

ComponentizationMobileReact Native
0 likes · 12 min read
Evolution of Native Mobile Development and Heterogeneous Solutions: From Small Apps to Dynamic Components and Cross‑Platform Frameworks
Tencent Music Tech Team
Tencent Music Tech Team
Dec 22, 2017 · Mobile Development

Organizing Native Layer Code and Implementing Dynamic Loading/Unloading of .so Libraries in Android

The article outlines a systematic method for structuring native‑layer code and using dlopen, dlsym, and dlclose to dynamically load and unload .so libraries on Android, enabling selective loading, reduced memory usage, hot‑fix updates, and solutions to STL version, permission, and C++ name‑mangling challenges.

AndroidCDynamic Loading
0 likes · 14 min read
Organizing Native Layer Code and Implementing Dynamic Loading/Unloading of .so Libraries in Android
JD Retail Technology
JD Retail Technology
Dec 14, 2017 · Information Security

Android Signature Verification and JNI Registration: Security Challenges and Mitigation Strategies

This article explains the background of Android app signing, outlines the core security objectives of confidentiality, integrity and availability, compares static and dynamic JNI registration methods, demonstrates native signature verification and certificate integrity checks, and summarizes common cracking techniques together with practical hardening solutions.

AndroidJNISecurity
0 likes · 16 min read
Android Signature Verification and JNI Registration: Security Challenges and Mitigation Strategies
Hujiang Technology
Hujiang Technology
Jul 20, 2017 · Mobile Development

Understanding WKWebView: Comparison with UIWebView, Usage, Issues, and Solutions

This article introduces WKWebView, compares it with the legacy UIWebView in terms of performance and memory usage, explains usage patterns, delegate protocols, JavaScript‑Native interaction, common pitfalls such as cookie handling, process crashes, caching, and offers practical solutions and best‑practice recommendations for iOS developers.

CookieJavaScriptUIWebView
0 likes · 18 min read
Understanding WKWebView: Comparison with UIWebView, Usage, Issues, and Solutions
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 13, 2017 · Frontend Development

Mastering Weex Build: Dual Configurations for Web and Native

This article walks through the practical differences and best‑practice setups for building Weex applications on web and native platforms, covering webpack configurations, preprocessors, style quirks, navigation, data passing, image handling, incremental updates, and production tips.

Build configurationVueWeex
0 likes · 10 min read
Mastering Weex Build: Dual Configurations for Web and Native
Liulishuo Tech Team
Liulishuo Tech Team
Apr 22, 2017 · Mobile Development

Design Evolution and Best Practices for Android Audio Recorder in the FluentSpeak App

This article details the evolution of the Android Recorder used in the FluentSpeak app, covering API choices, AudioFocus handling, processing patterns, encountered challenges such as encoder blocking, testing difficulties, and native crashes, and presents solutions like ProcessThread, AudioProcessor abstraction, WavFileRecorder, and ServiceWrapper to improve reliability and extensibility.

AndroidAudioProcessorAudioRecorder
0 likes · 6 min read
Design Evolution and Best Practices for Android Audio Recorder in the FluentSpeak App
Ctrip Technology
Ctrip Technology
Aug 12, 2016 · Mobile Development

Card-Based Native App Engine: Design, Implementation, and Optimization at Qunar

This article presents Qunar's card‑based native app engine, detailing its design origins, advantages such as reuse, dynamic page organization, style theming, operational delivery, data‑driven personalization, and performance optimizations, while also outlining the framework's boundaries, implementation process, and future roadmap.

UIcard frameworkiOS
0 likes · 8 min read
Card-Based Native App Engine: Design, Implementation, and Optimization at Qunar
21CTO
21CTO
Apr 14, 2016 · Mobile Development

Why Choose a Hybrid Framework? Architecture, WebView Loading, and Caching Explained

This article explains the motivations behind adopting a hybrid framework for Android apps, outlines the overall architecture, details the WebView loading flow, jump protocol, resource interception, asynchronous image handling, cache version management, and interaction mechanisms, providing practical code examples.

AndroidHybridWebView
0 likes · 18 min read
Why Choose a Hybrid Framework? Architecture, WebView Loading, and Caching Explained