AOSP 13 build error with KISS Launcher

188 views
Skip to first unread message

Mehran Alidoost Nia

unread,
Feb 23, 2024, 4:39:14 PMFeb 23
to Android Building
Hi everyone,

I just integrated the KISS Launcher application with my AOSP 13 project. I want to replace it with Launcher 3 as a system app. I did the following steps:
1- Added the package in packages/apps directory of AOSP 13. 
2- Added a new line to the base_product.mk file for including the new application to my build tree.
3- I got the following error in the late steps of the build process:
FAILED:
packages/apps/KISSLauncher/Android.mk:19: error: writing to readonly directory:
"packages/apps/KISSLauncher/app/build/outputs/apk/app-release-unsigned.apk"
15:36:29 ckati failed with: exit status 1

#### failed to build some targets (01:01 (mm:ss)) ####

What I did to address this error, but nothing was fruitful:
1- I changed the value of the following parameter in aosp_sunfish.mk:
PRODUCT_BUILD_SUPER_PARTITION := false
2- Checked the permissions to write in that folder by chmod and chown commands.
3- Added the following line:
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST+= \
   packages/apps/%

The Android.mk file of the KISS Launcher package is as follows:

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := KISSLauncher
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := KISSLauncher
LOCAL_PRODUCT_MODULE := true
kiss_root  := $(LOCAL_PATH)
kiss_dir   := app
kiss_out   := $(PWD)/$(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
kiss_build := $(kiss_root)/$(kiss_dir)/build
kiss_apk   := build/outputs/apk/$(kiss_dir)-release-unsigned.apk
$(kiss_root)/$(kiss_dir)/$(kiss_apk):
rm -Rf $(kiss_build)
mkdir -p $(kiss_out)
ln -sf $(kiss_out) $(kiss_build)
cd $(kiss_root)/$(kiss_dir) && gradle assembleRelease

LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(kiss_dir)/$(kiss_apk)
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)

==========
By looking at the above-mentioned make file, you can understand that the package intends to build the apk file somewhere within the packages/apps/KISSLauncher directory, and I guess the problem is behind this issue. Can you provide any solutions, suggestions or clues?

Best,
Mehran

Reply all
Reply to author
Forward
0 new messages