Hello,
I'm trying to build custom AAOS 14 based on nxp code. I extended CarSystemUI and flashed our board. When I tried to boot it booting stuck on bootanimation screen. And I looping this logs:
[ 2105.344347][ T6738] servicemanager: Caller(pid=6552,uid=1041,sid=u:r:audioserver:s0) Tried to start aidl service activity as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.
[ 2106.332379][ T221] servicemanager: Caller(pid=6552,uid=1041,sid=u:r:audioserver:s0) Since 'activity' could not be found trying to start it as a lazy AIDL service. (if it's not configured to be a lazy service, it may be stuck starting or still starting).
[ 2106.360997][ T1] init: Control message: Could not find 'aidl/activity' for ctl.interface_start from pid: 221 (/system/bin/servicemanager)
[ 2106.375408][ T6739] servicemanager: Caller(pid=6552,uid=1041,sid=u:r:audioserver:s0) Tried to start aidl service activity as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.
Hello,
activity
within the aidl
directory structure. This usually means the AIDL file or the directory structure is missing or incorrectly configured. To resolve this, ensure the AIDL file (e.g., activity.aidl
) exists in the correct location and that the build system is configured to recognize AIDL files.
activity.aidl
file exists. activity.aidl
file is placed within the src/main/aidl
directory of your Android project, or the appropriate source set if you're using custom source sets. package com.example.app.aidl;
) must match the directory structure where it's located. If the file is in src/main/aidl/com/example/app/
, the package declaration should be package com.example.app.aidl;
.
aidl
build feature is enabled in your app/build.gradle
file. android {
buildFeatures {
aidl true
}
}
sourceSets
block. android {
sourceSets {
main {
aidl {
srcDirs 'src/main/aidl'
}
}
}
}
Build > Clean Project
and then Build > Rebuild Project
.
IMyInterface
and you want to use it in your activity.IMyInterface.aidl
: // IMyInterface.aidl
package com.example.app.aidl;
interface IMyInterface {
void doSomething();
}
src/main/aidl/com/example/app/
:
my_app/
├── src/
│ └── main/
│ ├── aidl/
│ │ └── com/
│ │ └── example/
│ │ └── app/
│ │ └── IMyInterface.aidl
app/build.gradle
:
android {
buildFeatures {
aidl true
}
}
Hi @Bio_TICFSL
Thank you for your respond. Here is what I found:
1) I tried to find `activity.aidl` in all AAOS folders and it doesn't exist.
2) In our code we don't use any `.aidl`
3) I tried to find in all AAOS code the call of `aidl/activity` by `grep` and there is no such a call.
4) The default CarSystemUI is working fine and we extended it without changing anything in the base code.