Tagged articles
Native
57 articles · Page 1 of 1
This article recounts the three‑week, single‑developer journey of building NMLeak—a 5,881‑line Android native memory‑leak detection library—by manually splitting the architecture, applying AI‑assisted module coding and spec‑driven design, and highlights which practices succeeded and where human oversight remains essential.
AI codingAndroidCounting Bloom Filter
0 likes · 16 min read

This article dissects Android's rendering pipeline, quantitatively compares Native, Lottie, PAG, SurfaceView and TextureView animation implementations, and presents a step‑by‑step selection guide with practical code examples to help developers achieve high‑performance, low‑lag UI effects.
AndroidLottieNative
0 likes · 39 min read

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

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

This article explains how HarmonyOS developers can reuse native C/C++ file upload code across iOS, Android, and HarmonyOS by employing Node‑API thread‑safe functions to asynchronously report upload progress, errors, and completion from native threads back to the ArkTS UI thread.
ArkTSFile UploadHarmonyOS
0 likes · 14 min read

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 VulnerabilitiesNative
0 likes · 12 min read

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.
DXNativeRAX
0 likes · 13 min read

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

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

This article details a Kafka consumer issue where the offset unexpectedly becomes a large timestamp due to a native C++ method altering JVM memory, explains the debugging steps, reproduces the bug with Java code, and highlights the risks of unsafe native interactions.
DebuggingJavaKafka
0 likes · 7 min read

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

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.
AndroidClassLoaderNative
0 likes · 13 min read

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

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.
Frontend DevelopmentNativeReact
0 likes · 14 min read

This article explains how to improve Android local‑search latency by embedding JavaScriptCore via JNI, detailing the performance bottlenecks, the integration workflow, essential JSC APIs, JNI usage patterns, and concrete C++/Java code examples that cut processing time by roughly half.
AndroidC++JNI
0 likes · 10 min read

Spring Native beta lets developers compile Spring Boot applications into GraalVM native images, delivering sub‑100 ms startup, peak performance and reduced resource usage, while providing Maven/Gradle plugins, AOT conversion, and seamless integration with start.spring.io for both Java and Kotlin projects.
AOTGraalVMJava
0 likes · 11 min read

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.
AndroidDebuggingNative
0 likes · 14 min read

This article explains how the Android Runtime (ART) implements the Java synchronized keyword at the native level, detailing the roles and interactions of Monitor, LockWord, and native Object classes, as well as the thin‑lock to fat‑lock upgrade process and monitor entry/exit mechanisms.
ARTAndroidLockWord
0 likes · 15 min read

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.
AndroidJavaNative
0 likes · 25 min read

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

DX, Alibaba’s DinamicX native dynamic framework, has evolved from a homepage solution to a multi‑layered system supporting IDE, list containers, and event chains, addressing performance, stability, and development efficiency challenges across mobile, content, and e‑commerce scenarios.
DXIDELowCode
0 likes · 17 min read

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.
NativeWebViewcontainer
0 likes · 26 min read

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 DevelopmentMobile App
0 likes · 24 min read

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

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.
EmbeddingNativecross-platform
0 likes · 15 min read

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.
AndroidJavaNative
0 likes · 15 min read

This article presents Sliver, an Android‑focused method‑trace framework that combines low‑overhead stack sampling, thread‑suspend techniques, and lock‑information capture to reliably detect and diagnose ANR and jank issues in production environments while maintaining minimal performance impact.
ANRAndroidMethodTrace
0 likes · 23 min read


ByteFEJul 27, 2021 · Mobile Development
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.
JavaScriptNativeSDK
0 likes · 15 min read

This article describes the design, mmap‑based implementation, architecture, and performance evaluation of a lightweight, low‑overhead mobile logging SDK for Android/iOS, highlighting its compression, encryption, policy‑driven upload, and significant CPU and GC improvements over traditional Java log libraries.
Nativemmapmobile logging
0 likes · 12 min read

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.
ARTAndroidHeap
0 likes · 43 min read

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

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.
AndroidBuild ConfigurationDynamic Loading
0 likes · 27 min read

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.
AndroidEpollLooper
0 likes · 17 min read

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.
ADBAndroidNative
0 likes · 8 min read

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

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.
Nativejank monitoringmobile
0 likes · 14 min read

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.
MultithreadingMutexNative
0 likes · 24 min read


政采云技术Feb 23, 2020 · Mobile Development
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 DevelopmentJSBridgeNative
0 likes · 14 min read

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.
AndroidCrash MonitoringEagle Eye
0 likes · 12 min read

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.
C++JVMJava
0 likes · 8 min read

This article explains how to protect communication in hybrid Android applications by using native C/C++ encryption libraries, secure HTTPS handling, zip‑based Web resource protection, and anti‑tampering/replay mechanisms, providing practical code examples and architectural guidance for developers.
AndroidHTTPSHybrid App
0 likes · 12 min read

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 ReportingNative
0 likes · 17 min read

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.
AndroidNativeTLS
0 likes · 11 min read

This article examines Kotlin Multiplatform's evolution, detailing native compilation, cinterop bindings, platform libraries, bidirectional Swift/Objective‑C interop, and practical cross‑platform implementations for logging, file I/O, and SQLite, while outlining future directions and tooling recommendations.
IOKotlinLogging
0 likes · 21 min read

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

This article shares WeChat's engineering experience in detecting and preventing various Android memory leaks—including Activity, Bitmap, native, and thread leaks—by building custom tools, refining monitoring pipelines, and applying fallback protection to keep the app stable at scale.
AndroidBitmapMemory Leak
0 likes · 21 min read

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.
FrameworksHippyJSBridge
0 likes · 12 min read

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.
ComponentizationNativeReact Native
0 likes · 12 min read

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.
AndroidC++Dynamic Loading
0 likes · 14 min read

This article explores the Weex SDK architecture on iOS, detailing its cross‑platform workflow, the division of JS, bridge, and native layers, the registration of modules and components, and the role of WXSDKInstance in loading and rendering JS bundles.
NativeWeexbridge
0 likes · 17 min read

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.
AndroidJNINative
0 likes · 16 min read

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.
CookieJavaScriptNative
0 likes · 18 min read

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 ConfigurationFrontend DevelopmentNative
0 likes · 10 min read

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

This article explains Android's linker workflow for loading and linking native .so libraries, detailing the do_dlopen sequence, ELF parsing, memory mapping, soinfo allocation, relocation handling, and constructor calls, and concludes with a brief overview of common SO packing techniques.
AndroidELFNative
0 likes · 19 min read

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.
NativeUIcard framework
0 likes · 8 min read


21CTOApr 14, 2016 · Mobile Development
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.
AndroidNativeWebView
0 likes · 18 min read
