5

Since I update Android Studio to 3.5, when I launch a Run to build and deploy my app, my custom accessibility service is turn off automatically (not a crash, just turn off within the settings).

Can you help me please ?

Hugo Mallet
  • 200
  • 7

3 Answers3

4

What's happening is that Studio force-stops the service before reinstalling the new version. I don't think it's possible to disable that unfortunately.

Command-line installation doesn't follow the same process, so it doesn't disable the service.

Phil Weaver
  • 738
  • 3
  • 7
  • But that wasn't true for previous Android Studio versions. Maybe that's because of Instant Run/App Deploy changes in the latest release that broke something. – Bringoff Aug 27 '19 at 07:03
  • 1
    Yes I agree with you @Bringoff I open an issue at google if you want add a comment or just vote for this issue https://issuetracker.google.com/issues/140056246 – Hugo Mallet Aug 27 '19 at 08:40
1

In my case, Android Studio was disabling the service every time I hit the run button.

When I tried opening the app manually, it worked!

Vivek
  • 566
  • 5
  • 6
  • 1
    You can open an issue on google tracker or add a comment within this one https://issuetracker.google.com/issues/140056246 . This issue is pretty old but not closed yet. – Hugo Mallet Aug 09 '22 at 14:13
0

This issue is pretty old but not closed yet. You can upvote and comment here https://issuetracker.google.com/issues/140056246

Hugo Mallet
  • 200
  • 7