Lint error on compiling AOSO11

88 views
Skip to first unread message

vermas...@gmail.com

unread,
Mar 5, 2021, 4:41:08 PM3/5/21
to Android Building
Hi All,
I am adding one system service in  AOSP 11. I am working on Qualcomm RB3 plateform. So checkout the code from repo init -u https://android.googlesource.com/platform/manifest -b master and
Build:
. ./build/envsetup.sh
lunch db845c-userdebug
make -j4
but getting many lint errors(please check attached screen)


Modified these files to register and add new service
    modified:   Android.bp  //add the path of aidl in filegroup
    modified:   core/java/android/app/ContextImpl.java
    modified:   core/java/android/app/SystemServiceRegistry.java
    modified:   core/java/android/content/Context.java
    modified:   services/java/com/android/server/SystemServer.java

my dummy AIDL is as below
package android.os;

interface IWeightSensor{

/**
* {@hide}
*/
@nullable String setWeight(in int val);
int getWeight();
}
I unable to try what is emitted in the terminal, (method 1 is not possible, since autogenerated file; method 1 is not possible, since mentioned folder is not available ). Please check the screen shot attached for the reference
lint_error_aosp11.PNG
Reply all
Reply to author
Forward
0 new messages