BigMAC icon indicating copy to clipboard operation
BigMAC copied to clipboard

android-extract.sh Fails to parse policies and unpack lz4 compressed md5 files

Open P3nguin-M opened this issue 3 years ago • 0 comments

I have been tweaking this script for days now. The lz4 decompress seems to decompress a weird way files into other file paths which causes issues with multiple directories found or cd'ing into a empty directory looking for the files? No idea what's going on have tried fix after fix and just reverted back to your stock script. Here's the failure without any changes:

sudo ./android-extract.sh "/media/kevin/Seagate/Samsung Firmware/Galaxy S10+ (SM-G975U) Sprint/AP_G975USQS3CTA3_CL17369568_QB28697944_REV00_user_low_ship_MULTI_CERT_meta_OS10.tar.md5" samsung 1 1 DEPPATH: /home/kevin/gits/BigMAC/tools/atsh_setup Android Firmware Extraction tool:

Developed by researchers from the Florida Institute for Cybersecurity Research (FICS Research) Check out our webpage: https://atcommands.org

DEPPATH -> /home/kevin/gits/BigMAC/tools/atsh_setup WARN : some images may require alternative steps for extraction, in which case you should supply an additional argument (1). currently applies to: password protected Samsung (.zip) image files from firmwarefile.com Continuing after defaulting to 0!

ALERT: Now initiating extraction process samsung ALERT: Cleaning up temporary files from prior run (if any). umount: /home/kevin/atsh_tmp1/mnt*: no mount point specified. Output will be available in: extract/samsung/AP_G975USQS3CTA3_CL17369568_QB28697944_REV00_user_low_ship_MULTI_CERT_meta_OS10.tar unziping the image... handling Samsung images... Current working directory: /home/kevin/gits/BigMAC/tools/extract/samsung/AP_G975USQS3CTA3_CL17369568_QB28697944_REV00_user_low_ship_MULTI_CERT_meta_OS10.tar/extract_sub unarchiving each zip inside... attempting to untar * find: ‘*’: No such file or directory

cp: target '/home/kevin/gits/BigMAC/tools/extract/samsung/AP_G975USQS3CTA3_CL17369568_QB28697944_REV00_user_low_ship_MULTI_CERT_meta_OS10.tar/extract.usb' is not a directory summarizing...


This is my ouptut of script after i modified making it decompress each lz4 file before trying to unpack. It does almost everything including mounting sparse system.img and supposedly unpacks but does not process anything or extract any policies though: https://pastebin.com/3rrhVNz9

P3nguin-M avatar Apr 11 '22 13:04 P3nguin-M