Is it possible to make an app without an launcher icon even in android lollipop?
Not realistically. for apps to be distributed through typical channels (e.g., Play Store). You will need a UI to:
- Show the license agreement
- Provide access to documentation and support
- Request Android 6.0 runtime permissions, such as working with SMS
- Allow any of the rest of your code to ever run
Noteworthy exceptions:
- Apps that are shipped pre-installed on a device or custom ROM
- Apps that are purely plugins to some other app
And is it possible to start service on bootup?
Yes... once the user has clicked on your launcher activity, or something else uses an explicit Intent
to start up one of your components. If you lack a launcher activity, and you are not a pre-installed app, and you are not a plugin for another app, then your BOOT_COMPLETED
BroadcastReceiver
— which you would use to start your service — will never be invoked.
And one more thing that service is going to have access to sms of device and will trigger some action if there is some special predefined keyword in sms, is it possible?
Yes... but you will need a launcher activity to be able to request the required runtime permissions from the user, on Android 6.0 and higher.