Start and Stop the Service by using USB Mount/UMount

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Start and Stop the Service by using USB Mount/UMount

835 次查看
vinothkumars
Senior Contributor IV

Dear NXP,

 

I am working on developing the Android service (BSP) in Android 9, it will run boot time. I configured this in init.rc. 

 

Now, service run properly at Android booting. But, I needs to configure the service to start and stop when USB Stick Mount/UMount time.

 

1)  When USB Stick Connected

USB Mounted == 1

      start service

2) When USB Stick Disconnected

USB UMount ==1

     stop service

 

I need to implement this logic in init.rc file.

 

 

 

Thanks & Regards,

VInothS,

Regards,
Vinothkumar Sekar
0 项奖励
回复
1 回复

768 次查看
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, the free support does not cover the implementation of Android services. If you want to add a new service, I suggest you go with professional service support.

Professional Support for Processors and Microcontrollers | NXP 

Best regards,

Diego.

0 项奖励
回复