Hello Andrew,
I would suggest that you start with a service which is started by a
system intent
as first example
Means you create your own BrodcastReceiver , which will called via
BOOT_COMPLETED
and this receiver then start via the local Binder Pattern you Service
class ..
<receiver android:enabled="true"
android:name="AndrewSystemstartReceiver">
<intent-filter>
<action
android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
I know that this approach is not so popular in this forum, but
nevertheless use them as a starting point for yourself.
And the structure of the files i.e. a vendor extension directory is
not different to a normal app.
Examples for the Android.mk can you find i.e. for the different Apps
of the plattform , i.e. the Settings-App or
others under app/mydroid/packages/apps
The contents can maybe the following one :
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-subdir-java-files) \
src/<yourpackage>/IAndrewInterface.aidl \
LOCAL_PACKAGE_NAME := AndrewService
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))
Good luck !
Frank
> > > Android App -> System Service -> JNI (native) library -> Device Driver- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -