kivy / kivy/python-for-android
unpackData is not called on service restart after MY_PACKAGE_REPLACED
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 2k
- Avg merge
- 12h 20m
- Merged PRs (30d)
- 9
Description
There is currently no call to `unpackData` when a `PythonService` is started in the background, as a response to `MY_PACKAGE_REPLACED` intent (on app background update). This leaves restarted service running out-of-date bytecode.
Sample code for `MY_PACKAGE_REPLACED` receiver: [MyBroadcastReceiver](https://github.com/kivy/kivy/wiki/Starting-Kivy-App-and-Service-on-bootup-on-Android)
Contributor guide
Research direction
Read the MY_PACKAGE_REPLACED receiver example and trace how a background-started PythonService is launched. Locate the service-restart path and existing unpackData calls, then verify that the restarted service refreshes bytecode after an app update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100