Start and Stop the Service by using USB Mount/UMount

cancel
Showing results for 
Search instead for 
Did you mean: 

Start and Stop the Service by using USB Mount/UMount

132 Views
vinothkumars
Senior Contributor III

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 Kudos
1 Reply

65 Views
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 Kudos