Fading Coder

One Final Commit for the Last Sprint

Reading Cross-Process Memory Data for Android Mobile Game Reverse Engineering

Reading Target Process Memory To read memory from a target Android game, we first need the app's PID, which we already know how to dynamically retrieve. We will use a Linux system call to read cross-process memory, demonstrated with a shooter game example. Memory Reading via process_vm_readv Syscall...

Implementation Patterns for String Hashing in Android

String hashing converts variable-length text into fixed-size binary representations. Developers utilize these digests for caching keys, verifying file integrity, or managing authentication tokens. Standard Java Approach The String class exposes a native hashing function. This implementation uses a p...

Using the uses-feature Element in Android Manifest for Hardware and Software Capability Declaration

The <uses-feature> element in an Android manifest informs external systems about hardware or software capabilities an app requires or optionally uses. It enables services such as Google Play to filter apps so that they are visible only on devices meeting those capability requirements. Syntax &...

Integrating OkHttp3 as the Network Layer for Volley

Implementing a Custom OkHttpStack for Volley public class OkHttpStack extends HurlStack { private final OkHttpClient baseClient; public OkHttpStack(OkHttpClient client) { this.baseClient = client; } private void configureRequestMethod(okhttp3.Request.Builder builder, Request<?> volleyRequest)...

Integrating Unit Tests into Android Projects in 2024

What is a unit test? In the context of Android development, a unit test targets the smallest testable parts of an application, such as individual methods within a class. The testing pyramid places unit tests at the fonudation because they are fast to run and provide immediate feedback on logic corre...

Android Image Capture: Custom API and System Intent Approaches

Android offers two primary approaches for capturing images: delegating to a system camera application via an implicit Intent, or directly controlling the hardware using the Camera API. Deleagting to the system camera application involves constructing an Intent with the ACTION_IMAGE_CAPTURE action. T...

Essential Elements of the Android Manifest File: grant-uri-permission, instrumentation, intent-filter, manifest, and meta-data

The <grant-uri-permission> Element Syntax <grant-uri-permission android:path="string" android:pathPattern="string" android:pathPrefix="string" /> Contained Within <provider> Description Defines a subset of application data within the parent content pro...

Handling Bluetooth MTU Negotiation and Connection Failures on Android Devices

A known issue on certain Android handsets involves abrupt disconnections when invoking requestMtu immediately after establishing a GATT connection. This behavior can cascade into subsequent connection attempts failing with a SecurityException that mentions requiring BLUETOOTH_PRIVILEGED permission....

Implementing Authentication in Android Chat Application YQ

The following code demonstrates the implementation of user authentication within an Android chat application named YQ. The login activity handles user input and initiates the authentication process: public class LoginActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceS...

scrcpy: A Lightweight Open-Source Android Screen Mirroring Tool

Screen mirroring an Android device to a computer is a common need, but seamless integration is often limited to same-brand ecosystems (e.g., Huawei, Honor, Apple). For cross-brand setups, many third-party tools are either paid or bloated—until you discover scrcpy. scrcpy Overview GitHub Repository:...