Skip to content

Commit f187d76

Browse files
M-ReimerRob--W
authored andcommitted
fix: Allow comma as separator when checking permissions via adb
The separator between permission name and "granted=true" is a comma on older Android versions. Verified on Samsung Galaxy S5 (original ROM).
1 parent f0e8e53 commit f187d76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/adb.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export default class ADBUtils {
160160
// Set to true the required permissions that have been granted.
161161
for (const line of pmDumpLogs) {
162162
for (const perm of permissions) {
163-
if (line.includes(`${perm}: granted=true`)) {
163+
if (line.includes(`${perm}: granted=true`) ||
164+
line.includes(`${perm}, granted=true`)) {
164165
permissionsMap[perm] = true;
165166
}
166167
}

0 commit comments

Comments
 (0)