Tag

Native

0 views collected around this technical thread.

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.

DXNativePerformance
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.

KotlinMemoryManagementMultiplatform
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)
JD Retail Technology
JD Retail Technology
Apr 29, 2024 · Backend Development

Investigation of a Kafka Consumer Offset Anomaly Caused by Native C++ Memory Modification

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.

JavaKafkaMemory Corruption
0 likes · 7 min read
Investigation of a Kafka Consumer Offset Anomaly Caused by Native C++ Memory Modification
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.

AndroidNativePerformance
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.

AndroidClassLoaderCode Coverage
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.

Frontend DevelopmentNativeTaro
0 likes · 14 min read
Cross‑Platform Shared Web Components: Architecture, Implementation, and Host Integration
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 14, 2022 · Mobile Development

Understanding Android ART Native Implementation of synchronized: Monitor, LockWord, and Object

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.

AndroidLockWordMonitor
0 likes · 15 min read
Understanding Android ART Native Implementation of synchronized: Monitor, LockWord, and Object
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2022 · Mobile Development

Using JVMTI to Monitor Memory Allocation and Release on Android

This article explains how to employ the Java Virtual Machine Tool Interface (JVMTI) in native Android code to record memory allocation and deallocation events, filter relevant classes, store logs efficiently with mmap, and integrate the agent from the Java layer for comprehensive memory‑leak analysis.

AndroidJVMTINative
0 likes · 15 min read
Using JVMTI to Monitor Memory Allocation and Release on Android
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.

AndroidConcurrencyFutex
0 likes · 17 min read
Understanding User‑Space Locks on Android: Java, JUC, and Native Locks
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.

DartFlutterNative
0 likes · 24 min read
Hybrid Mobile App Development: Native, Cross‑Platform, and Flutter Solutions
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
Watermelon Video Tech Team
Watermelon Video Tech Team
Aug 16, 2021 · Mobile Development

Sliver: A High‑Performance Android Method Trace System for ANR and Jank Diagnosis

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.

ANRAndroidJank
0 likes · 23 min read
Sliver: A High‑Performance Android Method Trace System for ANR and Jank Diagnosis
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.

BridgeHybridJavaScript
0 likes · 15 min read
Bridge Communication Between Native and Webview in Hybrid Development: Methods, Implementation, and Event Handling
JD Retail Technology
JD Retail Technology
Jul 26, 2021 · Mobile Development

Design and Implementation of a High‑Performance Mobile Logging System Using mmap

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.

MMAPNativePerformance
0 likes · 12 min read
Design and Implementation of a High‑Performance Mobile Logging System Using mmap
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.

ARM64AndroidNative
0 likes · 27 min read
Adapting the QQ Music/Karaoke Android App to Arm64 Architecture