I'm trying to reverse engineer certain Samsung system apps in the Galaxy S6 firmware system image, such as KnoxAttestationAgent.apk. I'm a noob when it comes to reverse engineering, and so far my attempts have been unsuccessful. Here's what I've done so far.
- Run apktool on the APK. I got a few XML files, including the AndroidManifest, but no source. Apparently this is because there is no classes.dex in the package.
- Noticing that there's a KnoxAttestationAgent.odex in the arm64/ folder, I tried to run baksmali 2.1.1 on it. However, this version apparently doesn't support Android 5 versions of oat. The S6 firmware I'm working on is 5.1.1.
- I tried an earlier version of baksmali 2.0.8 which doesn't have the limitation, but I get another error "KnoxAttestationAgent.odex is not an apk, dex file or odex file."
- I tried to run AndroGuard on the APK, but was also unsuccessful. A bunch of errors.
Is there a way for these tools (or others) to work on system apps such as the Samsung Knox ones?