kivy / kivy/python-for-android

unpackData is not called on service restart after MY_PACKAGE_REPLACED

Open
#2,327 0 comments 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.