We can get the output information from makefile and package config.
# com.android.nfc_extras.xml
file="/system/framework/com.android.nfc_extras.jar"
Get all jar from android image.
adb pull system/framework
Android 6 use art runtime so the jar files are empty and the code is in oat and odex files.
-
framework.jar framework\x86_64 boot.oat
-
service.jar framework\oat\x86_64 services.odex
Convert to jar,https://medium.com/@_sushil/oat2dex-android-pentesting-6f99e9c57198 Use oat2dex to convert oat and odex to dex. And use d2j-dex2jar to convert dex to jar.
# framework.jar
java -jar oat2dex.jar boot boot.oat
d2j-dex2jar.bat dex/framework.dex
d2j-dex2jar.bat dex/framework-classes2.dex
# service.jar
java -jar oat2dex.jar services.odex dex/
d2j-dex2jar.bat services.dex
Use the framework.jar extract from Android image.