Hello Dimple, It is helpful session, looking forward for new videos in various topics. I want to know one thing where I will find core.mk file in AOSP 12. please let me know.
Hi Dimple, This is very much helpful. 1 question: Where can I check in aosp source code all the available macro functions to learn? For example, What if I want to use retrofit for API calls, how to add that or any other library.?
Hello Dimple, Explanation was good. I was able to create a system app [runs as a service , doesnt have any UI]. Is it possible to deploy a ML model on android system app ? as we only have Android.mk and AndroidManifest.xml file If you have any resource link for same, can you please share ? Thanks.
Why we can't use custom system service directly in dummy app running on emulator and why we need to create system application to use our custom system service ? I mean we can use other system services like LOCATION_SERVICE, NOTIFICATION_SERVICE etc... directly in dummy app running on Android Emulator... then what is case with custom system service ? Kindly reply to clear my doubt asap.
Hi ohri, yes the system service i hav written shd b accessed via system app... Because this is customized and APIs related to this service are not generalized... In other cases of power manager or alarm manager or any such manager for tat case, the APIs provided by them are standardized and hence we can access via dummy app. Remember here we hav written customized system service and this service is not exposed to outer world
I have created custom system service and trying to use that aosp SDK in android studio SDK and running the app and check if the service called getting error in main activity.java at getSystemService(Context.TEST_SERVICE); help me!!
@@dimples_android_geek 10-07 12:24:11.913 1814 1814 I SystemServer: Test Service 10-07 12:24:11.913 1474 1474 E SELinux : avc: denied { add } for service=test pid=1814 uid=1000 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0 10-07 12:24:11.913 1474 1474 E ServiceManager: add_service('test',82) uid=1000 - PERMISSION DENIED 10-07 12:24:11.913 1814 1814 W SystemServer: *********************************************** 10-07 12:24:11.913 1814 1814 E SystemServer: BOOT FAILURE Starting Test Service These are the logs I collected test service is my custom service, I guess u would get clarity with this logs. Thanks for revert.
@@TalesbySwe , I guess you are using this on Android N and above. SE Policy was introduced from Android N and above, due to that there are permission issues
@@TalesbySwe , Please refer to the following link , source.android.com/security/selinux/device-policy You have to create a separate file and provide label to it and then build and flash the device to avoid avc denials
Good one
Thanks
Thanks 🎉
Very much appreciate the effort.
Thank you
Hello Dimple,
It is helpful session, looking forward for new videos in various topics.
I want to know one thing where I will find core.mk file in AOSP 12.
please let me know.
Will upload soon
Hi Dimple,
This is very much helpful.
1 question:
Where can I check in aosp source code all the available macro functions to learn?
For example,
What if I want to use retrofit for API calls, how to add that or any other library.?
Refer AndroidXref for the source code
u r the best
Hello Dimple,
Explanation was good. I was able to create a system app [runs as a service , doesnt have any UI].
Is it possible to deploy a ML model on android system app ? as we only have Android.mk and AndroidManifest.xml file
If you have any resource link for same, can you please share ?
Thanks.
Hi Azmal, Thank you . I'm really not sure of ML model on Android system app nor do I have any resource link for the same
Why we can't use custom system service directly in dummy app running on emulator and why we need to create system application to use our custom system service ? I mean we can use other system services like LOCATION_SERVICE, NOTIFICATION_SERVICE etc... directly in dummy app running on Android Emulator... then what is case with custom system service ? Kindly reply to clear my doubt asap.
Hi ohri, yes the system service i hav written shd b accessed via system app... Because this is customized and APIs related to this service are not generalized... In other cases of power manager or alarm manager or any such manager for tat case, the APIs provided by them are standardized and hence we can access via dummy app. Remember here we hav written customized system service and this service is not exposed to outer world
Why don't you put this full course on udemy? As for framework limited resources available.
Hey thanks for your support . I will think of it
Which android version source code are you using? I am using android-10 r45 and I can't find core.mk inside build/target/product.
When i did this video I was referring to android M . Yes in android 10/Q things have changed
You can add in base.mk or target path make file. Please ensure you added under PRODUCT_PACKAGES
can i develop new app using kotlin ?
Yes u can
I have created custom system service and trying to use that aosp SDK in android studio SDK and running the app and check if the service called getting error in main activity.java at getSystemService(Context.TEST_SERVICE); help me!!
Please check if u have imported all the packages correctly ..Can you be more specific on your error ? What error your receiving
@@dimples_android_geek 10-07 12:24:11.913 1814 1814 I SystemServer: Test Service
10-07 12:24:11.913 1474 1474 E SELinux : avc: denied { add } for service=test pid=1814 uid=1000 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
10-07 12:24:11.913 1474 1474 E ServiceManager: add_service('test',82) uid=1000 - PERMISSION DENIED
10-07 12:24:11.913 1814 1814 W SystemServer: ***********************************************
10-07 12:24:11.913 1814 1814 E SystemServer: BOOT FAILURE Starting Test Service
These are the logs I collected test service is my custom service, I guess u would get clarity with this logs.
Thanks for revert.
@@TalesbySwe , I guess you are using this on Android N and above. SE Policy was introduced from Android N and above, due to that there are permission issues
@@dimples_android_geek yes I'm working on 9 any solution or other way for this now?
@@TalesbySwe , Please refer to the following link , source.android.com/security/selinux/device-policy
You have to create a separate file and provide label to it and then build and flash the device to avoid avc denials