Skip to content

Commit 61e86b2

Browse files
committed
Alternate way to get the Package version name
1 parent ad0d224 commit 61e86b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/apkOperations.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ function getDeviceAppVersion() {
436436
let i=$i+1
437437
fi
438438
done < <(adb -s ${1} wait-for-device shell dumpsys package ${2} | grep -i versionname | cut -f2 -d"=" | tr -d "\r")
439+
#done < <(adb -s ${1} wait-for-device shell pm dump ${2} | grep -i versionname | cut -f2 -d"=" | tr -d "\r")
439440

440441
APK_VERSION_COUNT=${#APK_VERSION_ARRAY[*]}
441442
formatMessage " Installed version(s):\n" "I"
@@ -454,4 +455,4 @@ function getDeviceAppVersion() {
454455
fi
455456
fi
456457
fi
457-
}
458+
}

0 commit comments

Comments
 (0)