Skip to content

Commit 5d1ed46

Browse files
committed
fix: Cannot find Firefox package on device with work profile
Add '--user 0' to 'pm list packages' command to scan packages of the primary user by default.
1 parent 27f4e7d commit 5d1ed46

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/util/adb.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ export default class ADBUtils {
9393
'pm',
9494
'list',
9595
'packages',
96+
'--user',
97+
'0',
9698
]);
9799

98100
return pmList

tests/unit/test-util/test.adb.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ describe('utils/adb', () => {
228228
'pm',
229229
'list',
230230
'packages',
231+
'--user',
232+
'0',
231233
]);
232234
});
233235

0 commit comments

Comments
 (0)