Tagged articles
NDK
18 articles · Page 1 of 1
This article details the construction of a high-performance demuxing pipeline for a HarmonyOS VR player using OH_AVSource and OH_AVDemuxer, covering track selection, sample reading with ReadSampleBuffer, DRM handling, seek optimization, and multi-threaded pre-reading for 4K/8K playback.
AVDemuxerDRMHarmonyOS
0 likes · 10 min read

This guide covers HarmonyOS AVScreenCapture for screen recording, detailing features like hardware-accelerated H.264/H.265 encoding, dual audio tracks, full-screen and region capture, plus complete ArkTS and C++ NDK code examples with configuration parameters and development workflows.
ArkTSHarmonyOSNDK
0 likes · 6 min read

This guide covers HarmonyOS AVRecorder's supported formats (AAC/MP3, H.264/H.265, MP4/M4A), provides step-by-step ArkTS and C++ NDK code examples for recording workflow, and outlines key development practices including state machine rules, resource cleanup, and permission handling.
AVRecorderArkTSHarmonyOS
0 likes · 6 min read

Google’s shift to 16KB memory pages in Android 15, mandatory for Play Store submissions after November 1 2025, brings performance gains, reduces TLB misses, and forces native‑code developers to update build flags and eliminate hard‑coded 4KB assumptions to stay compliant.
AndroidNDKPlay Store
0 likes · 8 min read

This article provides a comprehensive introduction to Android NDK development, covering JNI fundamentals, data type mappings, method registration (static and dynamic), JNIEnv usage, CMake build configuration, and multiple practical code examples in Kotlin, C++, and C.
AndroidC++CMake
0 likes · 12 min read

This article walks through why Android 15’s 16 KB page size is a hidden trap for native libraries, shows how to locate 4 KB assumptions in code, and provides step‑by‑step CMake/Android‑mk adjustments, tooling commands, and debugging tips to ensure your .so files load correctly.
16KB page sizeAndroidCMake
0 likes · 9 min read

This guide explains two practical methods—editing the binary ipconfig.txt file and porting the open‑source ifplugd daemon—to automatically assign a fixed IP address to the second Ethernet port on an RK3568 Android development board when a cable is connected.
AndroidEthernetFixed IP
0 likes · 15 min read

This article explains what variable refresh rate is on Android, how the platform determines the final refresh rate when multiple apps request different rates, and provides detailed SDK and NDK methods—including DisplayManager listeners, Surface.setFrameRate, and AChoreographer callbacks—to query and set refresh rates, as well as the underlying SurfaceFlinger vote and policy mechanisms that enforce these settings.
NDKSDKSurfaceFlinger
0 likes · 30 min read

This article explains the new CameraX ImageAnalysis feature that adds YUV‑420_888 to RGBA_8888 conversion, discusses the underlying YUV and RGBA formats, compares Java/Kotlin, RenderScript and native libyuv implementations, and provides performance results and usage guidance for Android developers.
AndroidCameraXImageAnalysis
0 likes · 8 min read

The article explains Android native crashes (NE) by describing .so file composition, the need for un‑stripped libraries, how to view and generate stripped/un‑stripped binaries, and detailed workflows using ndk‑stack, DropBox, BreakPad, objdump, addr2line, and minidump_stackwalk to reconstruct stack traces and pinpoint source lines.
AndroidBreakpadDebugging
0 likes · 18 min read

This article explains practical anti‑debugging methods for Android applications—covering Java tools like Proguard and debugger checks, as well as NDK strategies such as ptrace, file‑node monitoring, Inotify, SO hash verification, and timing analysis—to raise reverse‑engineering difficulty.
AndroidAnti-debuggingNDK
0 likes · 7 min read

The article explains why Android developers split large NDK‑generated .so files from the APK to reduce package size, outlines how to design comprehensive test points for dynamic loading, and provides practical suggestions for handling download, installation, compatibility, and upgrade scenarios.
AndroidDynamic LoadingNDK
0 likes · 6 min read

This article introduces the minicap tool—a native NDK‑based screen‑capture solution for Android—explaining its advantages over the built‑in screencap command, how to compile or obtain binaries, install them on a device, and run it to obtain high‑speed, low‑size screenshots for automation testing.
AndroidNDKminicap
0 likes · 5 min read

This article introduces the open‑source Android screen‑capture tool Minicap, examines its architecture and command‑line usage, and details code modifications that enable real‑time rotation detection, dynamic resolution changes, and inclusion of rotation metadata in the image stream for more reliable remote device display.
AndroidNDKclient‑server
0 likes · 12 min read

This article introduces Android NDK fundamentals, explains the Android layered architecture, clarifies the roles of SDK, NDK, and JNI, and provides a detailed step‑by‑step tutorial for creating and debugging native C/C++ projects in Android Studio.
JNINDKTutorial
0 likes · 8 min read

This article explains the reasons for using LLVM to obfuscate Android applications, describes various LLVM-based obfuscation techniques such as instruction substitution, control‑flow flattening, bogus control flow, and custom passes, and illustrates their effects with diagrams.
AndroidLLVMNDK
0 likes · 2 min read

The article explains how upgrading the Android NDK introduces threading pitfalls such as ANR and FindClass failures, and provides step‑by‑step solutions using main‑thread class lookup, global references, and thread attachment to safely execute JNI calls in background threads.
AndroidFindClassJNI
0 likes · 4 min read

This article provides a step‑by‑step tutorial on setting up the development environment, installing essential tools, and performing APK reverse engineering and security analysis on Android applications, covering JDK, SDK, NDK, Apktool, Dex2jar, JD‑GUI, IDA, WinHex, and Eclipse.
APKAPKToolAndroid
0 likes · 16 min read
