delete file exclude pattern: find . ! -name '*.apk*' -delete extract apk file unzip xxxx.apk -d ${target_dir} print file binary data hexdump -s 1598023 -n 32 test_offset_1598023_hellotestdynamicpack.apk or use python to read.