zjn0505/adb-alfred

Extract facebook apk failed

W-quan opened this issue · 4 comments

[11:01:53.613] STDERR: adb[Run Script] Execute command: ~/Library/Android/sdk/platform-tools/adb -s 988dd231314e593035 shell pm path com.facebook.katana

 Result: package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/base.apk
package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/split_arservicesoptional.apk
package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/split_papaya.apk
package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/split_pytorch.apk

 Execute command: ~/Library/Android/sdk/platform-tools/adb -s 988dd231314e593035 pull /data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/base.apk
package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/split_arservicesoptional.apk
package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/split_papaya.apk
package:/data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/split_pytorch.apk ~/Desktop/com.facebook.katana-379.0.0.24.109.apk
[11:01:53.620] adb[Run Script] Processing complete
[11:01:53.622] adb[Run Script] Passing output 'Failed to extract apk
' to Debug
[11:01:53.623] adb[Debug] 11'Failed to extract apk
', {
  aapt_path = "~/Library/Android/sdk/build-tools/29.0.2/aapt"
  adb_path = "~/Library/Android/sdk/platform-tools/adb"
  apksigner_path = ""
  config_clipboard = "1"
  device_api = "28"
  emulator_path = "~/Library/Android/sdk/emulator/emulator
~/Library/Android/sdk/emulator/emulator
~/Library/Android/sdk/emulator/emulator
/Users/wzq/Library/Android/sdk/emulator/emulator"
  full_info = "Samsung - Sm-G9500 - Android 9, API 28, arm64-v8a"
  func = ""
  function = "extract_apk"
  his_tag = "988dd231314e593035"
  ip = "192.168.110.194/24"
  name = "Sm-G9500"
  package = "com.facebook.katana"
  pretty_version = "379.0.0.24.109"
  ro.product.manufacturer = "Samsung"
  self_script_app_1 = "Open in Google Play|self_scripts/open_in_google_play.py"
  self_script_app_2 = "Open in Exodus|self_scripts/open_in_exodus.py"
  self_script_app_3 = ""
  self_script_device_1 = "Toggle Airplane Mode|self_scripts/toggle_airplane_mode.py"
  self_script_device_2 = "List IME|self_scripts/list_ime.py"
  self_script_device_3 = ""
  serial = "988dd231314e593035"
  status = "device"
}
[11:01:53.626] adb[Debug] Processing complete
[11:01:53.627] adb[Debug] Passing output 'Failed to extract apk
' to Post Notification
[11:01:53.628] adb[Debug] Passing output 'Failed to extract apk
' to Play Sound

What will be the output if you run

adb shell pm path com.facebook.katana

It looks the correct dump command shall be

adb pull /data/app/com.facebook.katana-MmYxRVxicSrIj2RzmN0C5A==/base.apk ~/Desktop/com.facebook.katana-379.0.0.24.109.apk

In your case, there are some split apks in the result of pm path command.

❯ adb shell pm path com.facebook.katana

package:/data/app/com.facebook.katana-Gjc_ZhM2vZI2nkUBMaVG-Q==/base.apk
package:/data/app/com.facebook.katana-Gjc_ZhM2vZI2nkUBMaVG-Q==/split_arservicesoptional.apk
package:/data/app/com.facebook.katana-Gjc_ZhM2vZI2nkUBMaVG-Q==/split_papaya.apk
package:/data/app/com.facebook.katana-Gjc_ZhM2vZI2nkUBMaVG-Q==/split_pytorch.apk

I guess the splitted apks are coming from app bundle.

Append a fix to pull base apk. 01991bf

thx.