adb shell 내 pm 명령을 이용하여 package 경로 확인이 가능하다.
경로 확인 후 pull 을 이용하여 apk 파일을 꺼내오면 된다.
설치된 package 경로 확인(find path)
# pm list packages -f# pm list packages -f | grep camera
package:/system/app/FactoryCamera_FB/FactoryCamera_FB.apk=com.sec.factory.camera
package:/system/app/SamsungCamera3/SamsungCamera3.apk=com.sec.android.app.camera
.apk 파일 추출(extract apk file)
# adb pull / ~경로(path)# adb pull /system/app/SamsungCamera3/SamsungCamera3.apk
Usage
usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [FILTER]pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm list instrumentation [-f] [TARGET-PACKAGE]
pm list features
pm list libraries
pm path PACKAGE
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f]
[--algo <algorithm name> --key <key-in-hex> --iv <IV-in-hex>] PATH
pm uninstall [-k] PACKAGE
pm clear PACKAGE
pm enable PACKAGE_OR_COMPONENT
pm disable PACKAGE_OR_COMPONENT
pm disable-user PACKAGE_OR_COMPONENT
pm grant PACKAGE PERMISSION
pm revoke PACKAGE PERMISSION
pm set-install-location [0/auto] [1/internal] [2/external]
pm get-install-location
pm set-permission-enforced PERMISSION [true|false]
![]() |
HAHWULSecurity engineer, Gopher and H4cker! |
0 개의 댓글:
Post a Comment