Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk extraction fix #603

Merged
merged 1 commit into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/P02_firmware_bin_file_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ P02_firmware_bin_file_check() {

write_csv_log "Entity" "data" "Notes"
write_csv_log "Firmware path" "$FIRMWARE_PATH" "NA"

if [[ -d "$FIRMWARE_PATH" ]]; then
export FIRMWARE_PATH="$LOG_DIR"/firmware/
fi

if [[ -f "$FIRMWARE_PATH" ]]; then
SHA512_CHECKSUM="$(sha512sum "$FIRMWARE_PATH" | awk '{print $1}')"
write_csv_log "SHA512" "${SHA512_CHECKSUM:-}" "NA"
Expand Down
3 changes: 2 additions & 1 deletion modules/P65_package_extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ apk_extractor() {
while read -r APK; do
APK_NAME=$(basename "$APK")
print_output "[*] Extracting $ORANGE$APK_NAME$NC package to the root directory $ORANGE$R_PATH$NC."
tar xpf "$APK" --directory "$R_PATH" || true
# tar xpf "$APK" --directory "$R_PATH" || true
unzip -o -d "$R_PATH" "$APK" || true
done < "$TMP_DIR"/apk_db.txt
done

Expand Down