How to remove a system service in Android

1,991 views
Skip to first unread message

Hai Nguyen

unread,
Apr 24, 2019, 2:35:28 PM4/24/19
to android-porting
Hi All,
in my android, i dont use some services such as IVibrator, IConsumerIr, IOemLock..
When android booting up, it show the log below:
[   19.366191] init: Received control message 'interface_start' for 'android.hardware.vibrator@1.0::IVibrator/default' from pid: 1086 (/system/bin/hwservicemanager)
[   19.381717] init: Could not find service hosting interface android.hardware.vibrator@1.0::IVibrator/default
[   19.392740] init: Received control message 'interface_start' for 'android.hardware.vibrator@1.0::IVibrator/default' from pid: 1086 (/system/bin/hwservicemanager)
[   19.407356] init: Could not find service hosting interface android.hardware.vibrator@1.0::IVibrator/default
[   19.418522] init: Received control message 'interface_start' for 'android.hardware.vibrator@1.0::IVibrator/default' from pid: 1086 (/system/bin/hwservicemanager)
[   19.434711] init: Could not find service hosting interface android.hardware.vibrator@1.0::IVibrator/default
[   19.445618] init: Received control message 'interface_start' for 'android.hardware.ir@1.0::IConsumerIr/default' from pid: 1086 (/system/bin/hwservicemanager)
[   19.460252] init: Could not find service hosting interface android.hardware.ir@1.0::IConsumerIr/default
[   19.609981] init: processing action (sys.sysctl.extra_free_kbytes=*) from (/init.rc:725)

 i dont want to see the log and dont want to init these service, So Could anyone can help me how to remove these services that don't make Android app crashes or something else...?

Thanks,
Hai

Tranphong Vu

unread,
Apr 26, 2019, 10:32:52 AM4/26/19
to nt.th...@gmail.com, android-porting
Hi friend,
You can disable this by remove hidl definition in manifest file and build config include in your board configuration (usually it is in /device directory )

Vào Th 5, 25 thg 4, 2019 lúc 01:35 Hai Nguyen <nt.th...@gmail.com> đã viết:
--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hai nguyen

unread,
Apr 29, 2019, 10:55:13 AM4/29/19
to android-porting
in my systen, there is no android manifest.xml like you said, so i go to ServiceManager.java to remove where initializes those services, right now, i have only 1 service is ISecureElement/Sim1 and ISecureElement/eSe1, i dont know where are them i can remove>

Tiến Lê

unread,
Apr 30, 2019, 11:37:27 AM4/30/19
to sd.hai...@gmail.com, android-porting
Like this:



--
Screenshot_20190429-220308.png
Screenshot_20190429-220244.png

Tranphong Vu

unread,
Apr 30, 2019, 11:37:28 AM4/30/19
to sd.hai...@gmail.com, android-porting
Which android version are you working ?

Vào 21:55, T.2, 29 Th4, 2019 hai nguyen <sd.hai...@gmail.com> đã viết:
--

Hai Nguyen

unread,
May 2, 2019, 12:06:34 PM5/2/19
to tranphon...@gmail.com, sd.hai...@gmail.com, android-porting
Hi Vu,

Do you know what are ISecureElement/eSE1 and ISecureElement/SIM1?
Btw,  i want remove them but dont know where are they. Can you help me this issue.

Thanks,
 Hai

On Wed, May 1, 2019 at 7:05 PM Hai Nguyen <nt.th...@gmail.com> wrote:
HI Vu,

Thanks for your reply. it is and 9. It is using for TV

Regards,

عباس احمد

unread,
May 8, 2019, 12:41:49 PM5/8/19
to android-porting
Reply all
Reply to author
Forward
0 new messages