What do you mean with "autostart"? The App's UI or a service? What do you need to achieve?
UI: Not recommended as it is a "bad behaviour" when an app "just starts" out of the blue and disturbs your current activity
Service: Start the service as a foreground service and use a timer to process whatever you need. Backgroundservices won't work anymore/properly on newer devices.