OPPO Kernel Craftsman
Author

OPPO Kernel Craftsman

Sharing Linux kernel-related cutting-edge technology, technical articles, technical news, and curated tutorials

237
Articles
0
Likes
691
Views
0
Comments
Recent Articles

Latest from OPPO Kernel Craftsman

100 recent articles max
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 23, 2024 · Mobile Development

Understanding Perfetto Data Flow Architecture and Reducing Trace Data Loss

Perfetto’s tracing system links multiple producers to a single consumer via shared‑memory buffers, where careful sizing of pages, chunks, and central buffers, along with tuned protobuf encoding and scheduling priorities, mitigates CPU overhead and prevents data loss, enabling reliable observability on Android devices.

AndroidPerfettoPerformance
0 likes · 26 min read
Understanding Perfetto Data Flow Architecture and Reducing Trace Data Loss
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 2, 2024 · Fundamentals

Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice

Linux’s shmem subsystem provides hybrid anonymous/file‑backed pages that enable diverse shared‑memory scenarios—parent‑child communication, IPC, tmpfs, Android ashmem, and memfd—by using APIs such as shmem_file_setup, handling page faults through cache and swap mechanisms, and employing a specialized reclamation process to manage memory efficiently.

Linux kernelVirtual Memorymemfd
0 likes · 10 min read
Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 26, 2024 · Fundamentals

Android Partition Mounting Process and Common Issues

The article outlines Android’s partition mounting sequence—metadata, super (system), and userdata—detailing dm‑linear device creation, AVB verification, and encryption handling, then enumerates frequent failures such as set_policy_failed, init_user0_failed, enablefilecrypto_failed, userdata mount errors, and ServiceManager crashes, providing log examples and troubleshooting guidance.

AndroidBoot ProcessFBE
0 likes · 14 min read
Android Partition Mounting Process and Common Issues
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 19, 2024 · Mobile Development

Device-Mapper, Vold, and Encryption Mechanisms in Android System Partitions

The article explains Android’s device‑mapper framework—including dm‑linear, dm‑verity, and default‑key metadata encryption—how vold orchestrates partition mounting and key initialization, and how to inspect dm devices with dmctl commands while managing encryption keys stored in /data/misc/vold/user_keys.

Android system partitionsVolddefault-key
0 likes · 19 min read
Device-Mapper, Vold, and Encryption Mechanisms in Android System Partitions
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 12, 2024 · Mobile Development

Analysis of Android Fingerprint Driver Initialization and DTS Matching in Linux Kernel 5.10

The article traces the Android fingerprint driver’s boot‑to‑initialization sequence in Linux kernel 5.10, detailing how fp_init and fp_probe are scheduled, how the Device Tree is parsed and turned into platform devices, and explains the three driver‑DTS matching mechanisms, offering insights applicable to other platform drivers.

AndroidBoot ProcessFingerprint Driver
0 likes · 9 min read
Analysis of Android Fingerprint Driver Initialization and DTS Matching in Linux Kernel 5.10
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 5, 2024 · Fundamentals

Read‑Write Semaphore (rw_semaphore) and Per‑CPU rwsem in the Linux Kernel (ARM64)

The article explains Linux kernel read‑write semaphores, detailing the classic rw_semaphore’s optimistic‑spinning and hand‑off mechanisms, then introduces the per‑CPU rwsem for ARM64, which replaces global counters with per‑CPU data and an RCU fast‑path to cut cache‑coherency traffic at the cost of losing optimistic spinning.

ARM64Linux kerneloptimistic spinning
0 likes · 12 min read
Read‑Write Semaphore (rw_semaphore) and Per‑CPU rwsem in the Linux Kernel (ARM64)
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 29, 2023 · Information Security

OPPO Releases White Paper on Mobile Application Trustworthy Technology at CAICT ICT+ Deep Observation Conference

At the CAICT ICT+ Deep Observation Conference, OPPO unveiled a white paper on mobile application trustworthy technology, analyzing lifecycle security risks, policy and patent developments, and the role of large‑model AI in intelligent terminals, while urging standardized security practices and accelerated AI‑driven vulnerability detection tools.

CAICTIntelligent TerminalsMobile Application Security
0 likes · 4 min read
OPPO Releases White Paper on Mobile Application Trustworthy Technology at CAICT ICT+ Deep Observation Conference
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 29, 2023 · Fundamentals

Overview of Linux Kernel Synchronization Mechanisms: Atomic Operations, Spinlocks, Semaphores, and Mutexes

The article systematically explains Linux kernel synchronization primitives—from basic atomic operations through queued spinlocks, counting semaphores, and sleeping mutexes to read‑write semaphores and per‑CPU variants—detailing their underlying data structures, memory‑barrier semantics, and the fast‑path and slow‑path acquisition and release APIs.

Linux kernelSemaphoreSpinlock
0 likes · 13 min read
Overview of Linux Kernel Synchronization Mechanisms: Atomic Operations, Spinlocks, Semaphores, and Mutexes
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 22, 2023 · Fundamentals

Overview of Embedded ROM Flashing Processes and Online Programming Techniques

The article explains embedded ROM updating terminology, compares factory‑level burner programming with board‑level online flashing, details the boot sequence and U‑Boot implementation, outlines security signatures, common USB‑related issues, and the evolution of flash storage, concluding that online flashing offers low‑cost, scalable, high‑speed production for smartphones.

FlashingROMUSB
0 likes · 15 min read
Overview of Embedded ROM Flashing Processes and Online Programming Techniques
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 15, 2023 · Mobile Development

Using the crash Tool to Analyze Android Kernel Kdump Dumps

The article explains how to use the Linux crash utility for efficient, on‑demand analysis of Android Kdump dumps on MTK and Qualcomm devices, covering dump loading parameters, baseline data collection, stack back‑tracing, local variable recovery, thread searching, and why crash outperforms memory‑heavy tools like trace32.

AndroidKDUMPKernel Debugging
0 likes · 29 min read
Using the crash Tool to Analyze Android Kernel Kdump Dumps