Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App dont open. #275

Closed
tiryaki44 opened this issue Mar 26, 2023 · 1 comment · Fixed by #323
Closed

App dont open. #275

tiryaki44 opened this issue Mar 26, 2023 · 1 comment · Fixed by #323
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@tiryaki44
Copy link

crash.log (3).txt

@chenxiaolong chenxiaolong self-assigned this Apr 18, 2023
@chenxiaolong chenxiaolong added the bug/limitation elsewhere Bug/limitation in the ROM or another project label Apr 18, 2023
@chenxiaolong
Copy link
Owner

Closing this in favor of #303 so I can track the issue in one place.

Please see my comment in that thread: #303 (comment)

chenxiaolong added a commit that referenced this issue Apr 23, 2023
Some devices seem to have an issue where (presumably) resources from an
old version are being used with new code. This causes BCR to crash with
an error about the app theme not being derived from Theme.AppCompat.
This commit works around the issue in a brute force way by deleting
BCR's dalvik cache and package manager cache entry on every boot.

Fixes: #275, #303, #307

Signed-off-by: Andrew Gunnerson <[email protected]>
chenxiaolong added a commit that referenced this issue May 2, 2023
Some devices seem to have an issue where (presumably) resources from an
old version are being used with new code. This causes BCR to crash with
an error about the app theme not being derived from Theme.AppCompat.
This commit works around the issue in a brute force way by deleting
BCR's package manager cache entry on every boot.

Fixes: #275, #303, #307

Signed-off-by: Andrew Gunnerson <[email protected]>
chenxiaolong added a commit that referenced this issue May 2, 2023
On some devices, the system time is set too late in the boot process.
This, for some reason, causes the package manager service to not update
the cache entry in /data/system/package_cache despite the mtime of the
apk being newer than the mtime of the cache entry [1]. The outdated
cache entry causes BCR to crash with an error about the app theme not
being derived from Theme.AppCompat. This commit works around the issue
in a brute force way by deleting BCR's package manager cache entry on
every boot.

[1] https://cs.android.com/android/platform/superproject/+/android-13.0.0_r42:frameworks/base/services/core/java/com/android/server/pm/parsing/PackageCacher.java;l=139

Fixes: #275, #303, #307

Signed-off-by: Andrew Gunnerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants