Start and Stop the Service by using USB Mount/UMount

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Start and Stop the Service by using USB Mount/UMount

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

539 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