Infeasible
Status Update
Comments
ar...@google.com <ar...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Steps to reproduce
Please provide source code or apk of a sample application to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample application.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
Could you please explain the expected behavior.
Current output
Could you please explain the current behavior.
Steps to reproduce
Please provide source code or apk of a sample application to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample application.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
Could you please explain the expected behavior.
Current output
Could you please explain the current behavior.
fa...@gmail.com <fa...@gmail.com> #3
Hi,
Steps to reproduce:
I could not found the steps to reproduce problem. It starts to occur without any obvious reasons. After many hours the problems disappears itself.
If there is a problem "context.getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS)" method returns empty list. If the problem is disappeared, it return package list correctly.
If the method returns empty list, all other apps which use this method to list installed apps also fails.
Frequency:
On Wednesday evening, one of my installed app, which I also develop on the company I work, failed to work as intended. Even restarting the device does not fix the problem.
On Thursday morning, I wanted to share this production problem with my colleagues, but the problem was disappeared.
On Thursday afternoon, the problem started again on my device. After debugging, I found that Android SDK method to list installed packages returns empty list without any reason. I also noticed other apps which I downloaded from the store, also fails to list installed packages.
On Friday morning, the problem is disappeared.
Now on Friday evening, there is no problem. However, I don't sure whether during the day the problem occurred and disappeared again.
Steps to reproduce:
I could not found the steps to reproduce problem. It starts to occur without any obvious reasons. After many hours the problems disappears itself.
If there is a problem "context.getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS)" method returns empty list. If the problem is disappeared, it return package list correctly.
If the method returns empty list, all other apps which use this method to list installed apps also fails.
Frequency:
On Wednesday evening, one of my installed app, which I also develop on the company I work, failed to work as intended. Even restarting the device does not fix the problem.
On Thursday morning, I wanted to share this production problem with my colleagues, but the problem was disappeared.
On Thursday afternoon, the problem started again on my device. After debugging, I found that Android SDK method to list installed packages returns empty list without any reason. I also noticed other apps which I downloaded from the store, also fails to list installed packages.
On Friday morning, the problem is disappeared.
Now on Friday evening, there is no problem. However, I don't sure whether during the day the problem occurred and disappeared again.
ar...@google.com <ar...@google.com> #4
If you are still observing the issue, please provide the below requested information along with those in comment #2 to investigate further:
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
ar...@google.com <ar...@google.com> #5
We are closing this issue as we don't have enough actionable information. If you are still facing this problem, please open new issue and add the relevant information along with reference to earlier issue.
Description
Package manager cannot list installed packages sometimes. The problem is not about the code. Same code runs perfectly of different devices. On my Nexus 6P it returns empty list.
Device:
Model: Nexus 6P
Android version: 8.0.0
Build number: OPR5.170623.007
Problem:
On MainAcitivity of template app, "getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS)" returns empty list. Other flags are also returns empty list.
Detail:
I debugged my app and android code to see problem. getInstalledPackages(int,int) method on android.app.ApplicationPackageManager class retrieves null "parceledList" from mPM.getInstalledPackages(flags, userId) method. The parameters which sent to the methods are 8(flags) and 0(userId).
On variables section of debugger, mPM is {IPackageManager$Stub$Proxy@5115}
Frequency:
If it happens, it always happens on each try. Even restarting the device does not fix the problem.
The problem is not about a single app. My single line demo app, apps which list other apps, apps which list activities of other apps (e.g. Nova Launcher) etc. cannot list installed packages.
Sometimes the problem disappears without a reason.