utzcoz's perosnal blog

Focus on AOSP, XR, and testing tools.

Working on open-source projects:Robolectric,boringdroid,MaruOS,DigitalisX64,aospbooks

Recent posts

43 total

Don't use empty space after variable in Android makefile

In Android makefile, we always assign a value to a variable. But if we add one or more empty space after variable value, it may cause some build error. For example, If we want to add a preinstall apk to system, we may use makefile template such as below: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := LeanbackSampleApp LOCAL_SRC_FILES :=...

aospmakefilebuild-system

Android 6.0 JNI uses long to store pointer address

Android 6.0 JNI uses long to store pointer address, which Android 5.0 JNI use int to store pointer address. In Android 5.0, some system servers use long to store pointer address of native object, which is stored as int. If system servers want to use pass it to native methods, it will force cast long parameter to int, for example...

androidjnindk