Add new System service giving compile errors ( lint error)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Add new System service giving compile errors ( lint error)

vermas...@gmail.com
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.

Thanks,
Sachin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/CA%2BYOsK%2B_OT%3DxAL%3DSA%3D5G2%3Di697_7qncVruQh8cEz0Jc5uEwyAw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Add new System service giving compile errors ( lint error)

vermas...@gmail.com
Hi All,
I am stuck at this point from week, Can some body please reply on the issue. It will be very helpful to me.

Thanks,
Sachin

On Monday, 8 March 2021 at 08:38:55 UTC+5:30 sachin verma wrote:
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.

Thanks,
Sachin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/db8fae7c-93ab-4009-9c91-e747c64e4fdfn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Add new System service giving compile errors ( lint error)

vermas...@gmail.com
In reply to this post by vermas...@gmail.com
Hi All,
I have resolved the issue by writing my service in different packages and apply lint ignore on the package in Android.bp

Thanks,
Sachin

On Sat, Mar 6, 2021, 09:04 sachin verma <[hidden email]> wrote:
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.

Thanks,
Sachin

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/CA%2BYOsK%2BNCqBu3H3fuVxRGR5dHJB9z1oTs62OT4r2ekNYcSC56w%40mail.gmail.com.