Skip to content

Commit

Permalink
fix: Cannot find Firefox package on device with work profile
Browse files Browse the repository at this point in the history
Add '--user 0' to 'pm list packages' command to scan packages of the primary user by default.
  • Loading branch information
lm1 committed Sep 2, 2023
1 parent 27f4e7d commit 5d1ed46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/adb.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export default class ADBUtils {
'pm',
'list',
'packages',
'--user',
'0',
]);

return pmList
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test-util/test.adb.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ describe('utils/adb', () => {
'pm',
'list',
'packages',
'--user',
'0',
]);
});

Expand Down

0 comments on commit 5d1ed46

Please sign in to comment.