Hello Amanrath,
I am writing this post based on the improvements what i have done till now to bring an app from end to end in android automotive.
That means,
I have written an application in android studio and was ableto access cars service using android.car.jar
The second part was to write new car service,
Lets say CarLevelControlService,
Here is have added types in types.hal with group as vendor,
I have added them also in VehiclePropertiyids.java,
created new class as CarLevelControlService.java and added listeners.
Added permission in androidmanifiest.xml
Registered it in Car.java
I am also able to build it .
There is small problem here , when i take android,car,jar in android studio am not able to list down vehicleproperties i have defined and also the
Permission which i have added .
I changed Current.txt and system_released.txt but am facing build issues as shown below
The changes may be compatible, but the signature file needs to be updated.
Diffs:
--- /home/daimler/Desktop/AOSP/packages/services/Car/car-lib/api/current.txt 2021-02-12 14:59:27.826383054 +0530
+++ /tmp/compat-diff-signatures-public6544694130843634726.txt 2021-02-12 15:44:33.035797463 +0530
@@ -37,7 +37,6 @@
field public static final String PERMISSION_READ_INTERIOR_LIGHTS = "android.car.permission.READ_CAR_INTERIOR_LIGHTS";
field public static final String PERMISSION_READ_STEERING_STATE = "android.car.permission.READ_CAR_STEERING";
field public static final String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
- field public static final java.lang.String PERMISSION_CONTROL_CAR_AP = "android.car.permission.CAR.LEVElCONTROL";
field public static final String PROPERTY_SERVICE = "property";
field @Deprecated public static final String SENSOR_SERVICE = "sensor";
}
-e
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1. You can add '@hide' javadoc comments to the methods, etc. listed in the
errors above.
2. You can update current.txt by executing the following command:
make android.car-stubs-docs-update-current-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
15:44:33 ninja failed with: exit status 1
#### failed to build some targets (10 seconds) ####
Any support or hint you can provide here ?
Thanks and Regards,
Rohit Iti