offensive-security / nethunter-app

NetHunter android application
311 stars 157 forks source link

Update to RunAtBoot for Android O #180

Closed ghost closed 6 years ago

ghost commented 6 years ago

Changed runatboot service and associated notifications to update for Android Oreo. I believe this fixes issue #178. Permissions changed in O to require BIND_JOB_SERVICE, and also to use a JobIntentService. Notifications also changed, as indicated in the code.

This breaks the toast functionality from the service when all boot actions are complete, but it still shows in the notification, so I think this should be acceptable.

Haven't tested < Android O.