I have updated Smali and the ApkTool to the latest version but its still not working.
It works with a few of APKs but not with the most of them. I tried this one [ com.facebook.orca.apk ]
Thank you.
here is the error logs:
11 Sep 2015 10:44:32,859 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Check APK
11 Sep 2015 10:44:32,859 [pool-1-thread-1] INFO FileCheckStep - Checking APK...
11 Sep 2015 10:44:32,859 [pool-1-thread-1] INFO FileCheckStep - Success.
11 Sep 2015 10:44:32,859 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Check APK
11 Sep 2015 10:44:32,859 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Hash APK
11 Sep 2015 10:44:37,687 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Hash APK
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Create Folders
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG SetupFileSystemStep - Setting up analysis directory for: com.facebook.orca.apk
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG SetupFileSystemStep - The analysis will be stored at: /home/lroot/gholi/SAAF/bytecode
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG SetupFileSystemStep - The appdirectory will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The decoded content will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/bytecode
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The apk content will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/apk_content
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The smali files will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/bytecode/smali
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The mainfest will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/bytecode/AndroidManifest.xml
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Create Folders
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Setup Separate Logfile
11 Sep 2015 10:44:37,690 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Setup Separate Logfile
11 Sep 2015 10:44:37,690 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Extract APK
11 Sep 2015 10:44:37,690 [pool-1-thread-1] INFO ExtractApkStep - Coyping apk-file to /home/lroot/gholi/SAAF/apps
11 Sep 2015 10:44:38,689 [pool-1-thread-1] INFO ExtractApkStep - Extracting content to /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/apk_content
11 Sep 2015 10:44:41,276 [pool-1-thread-1] INFO ExtractApkStep - Decoding extracted content to /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/apk_content
11 Sep 2015 10:44:41,277 [pool-1-thread-1] INFO Analysis - Storing results. Backtracking: 0 Heuristic: 0
11 Sep 2015 10:44:41,278 [pool-1-thread-1] DEBUG AnalysisEntityManager - Saving parent object of com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8
11 Sep 2015 10:44:41,278 [pool-1-thread-1] DEBUG ApplicationEntityManager - Trying to save entity: Application [applicationName=com.facebook.orca]
11 Sep 2015 10:44:41,279 [pool-1-thread-1] DEBUG ApplicationEntityManager - Entity does not have ID. Creating new record...
11 Sep 2015 10:44:41,285 [pool-1-thread-1] DEBUG AbstractXMLDataSource - Validating additional configuration...
11 Sep 2015 10:44:41,296 [pool-1-thread-1] DEBUG AbstractXMLDataSource - Additional configuration valid.
11 Sep 2015 10:44:41,357 [pool-1-thread-1] DEBUG ApplicationEntityManager - Entity was stored in the database during a previous run. Getting the ID ...
11 Sep 2015 10:44:41,358 [pool-1-thread-1] DEBUG ApplicationEntityManager - The id of the previously saved entity is: 1
11 Sep 2015 10:44:41,359 [pool-1-thread-1] DEBUG AnalysisEntityManager - Trying to save entity: com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8
11 Sep 2015 10:44:41,360 [pool-1-thread-1] DEBUG AnalysisEntityManager - Entity does not have ID. Creating new record...
11 Sep 2015 10:44:41,361 [pool-1-thread-1] DEBUG AnalysisEntityManager - Record created with ID: 51
11 Sep 2015 10:44:41,362 [pool-1-thread-1] INFO Analysis - Results stored.
11 Sep 2015 10:44:41,363 [pool-1-thread-1] ERROR SAAFThreadPoolExecutor - Analysis failed with exception!
java.util.concurrent.ExecutionException: java.lang.Error: Unresolved compilation problems:
Unhandled exception type DirectoryException
Unhandled exception type DirectoryException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at de.rub.syssec.saaf.SAAFThreadPoolExecutor.afterExecute(SAAFThreadPoolExecutor.java:84)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Error: Unresolved compilation problems:
Unhandled exception type DirectoryException
Unhandled exception type DirectoryException
at de.rub.syssec.saaf.analysis.steps.extract.ApkDecoderInterface.decode(ApkDecoderInterface.java:147)
at de.rub.syssec.saaf.analysis.steps.extract.ExtractApkStep.doProcessing(ExtractApkStep.java:58)
at de.rub.syssec.saaf.analysis.steps.AbstractStep.process(AbstractStep.java:112)
at de.rub.syssec.saaf.analysis.Analysis.doPreprocessing(Analysis.java:255)
at de.rub.syssec.saaf.analysis.Analysis.run(Analysis.java:154)
at de.rub.syssec.saaf.AnalysisTask.run(AnalysisTask.java:56)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
... 2 more
11 Sep 2015 10:44:41,364 [pool-1-thread-1] ERROR SAAFThreadPoolExecutor - Something unexpected occurred, see above. Will now perform an unclean exit (DB connections are not closed etc, but ShutdownHooks are run)!
I have updated Smali and the ApkTool to the latest version but its still not working.
It works with a few of APKs but not with the most of them. I tried this one [ com.facebook.orca.apk ]
Thank you.
here is the error logs:
11 Sep 2015 10:44:32,859 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Check APK
11 Sep 2015 10:44:32,859 [pool-1-thread-1] INFO FileCheckStep - Checking APK...
11 Sep 2015 10:44:32,859 [pool-1-thread-1] INFO FileCheckStep - Success.
11 Sep 2015 10:44:32,859 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Check APK
11 Sep 2015 10:44:32,859 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Hash APK
11 Sep 2015 10:44:37,687 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Hash APK
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Create Folders
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG SetupFileSystemStep - Setting up analysis directory for: com.facebook.orca.apk
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG SetupFileSystemStep - The analysis will be stored at: /home/lroot/gholi/SAAF/bytecode
11 Sep 2015 10:44:37,688 [pool-1-thread-1] DEBUG SetupFileSystemStep - The appdirectory will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The decoded content will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/bytecode
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The apk content will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/apk_content
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The smali files will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/bytecode/smali
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG SetupFileSystemStep - The mainfest will be at: /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/bytecode/AndroidManifest.xml
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Create Folders
11 Sep 2015 10:44:37,689 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Setup Separate Logfile
11 Sep 2015 10:44:37,690 [pool-1-thread-1] DEBUG AbstractStep - Stop Analysis Step: Setup Separate Logfile
11 Sep 2015 10:44:37,690 [pool-1-thread-1] DEBUG AbstractStep - Start Analysis Step: Extract APK
11 Sep 2015 10:44:37,690 [pool-1-thread-1] INFO ExtractApkStep - Coyping apk-file to /home/lroot/gholi/SAAF/apps
11 Sep 2015 10:44:38,689 [pool-1-thread-1] INFO ExtractApkStep - Extracting content to /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/apk_content
11 Sep 2015 10:44:41,276 [pool-1-thread-1] INFO ExtractApkStep - Decoding extracted content to /home/lroot/gholi/SAAF/bytecode/com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8/apk_content
11 Sep 2015 10:44:41,277 [pool-1-thread-1] INFO Analysis - Storing results. Backtracking: 0 Heuristic: 0
11 Sep 2015 10:44:41,278 [pool-1-thread-1] DEBUG AnalysisEntityManager - Saving parent object of com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8
11 Sep 2015 10:44:41,278 [pool-1-thread-1] DEBUG ApplicationEntityManager - Trying to save entity: Application [applicationName=com.facebook.orca]
11 Sep 2015 10:44:41,279 [pool-1-thread-1] DEBUG ApplicationEntityManager - Entity does not have ID. Creating new record...
11 Sep 2015 10:44:41,285 [pool-1-thread-1] DEBUG AbstractXMLDataSource - Validating additional configuration...
11 Sep 2015 10:44:41,296 [pool-1-thread-1] DEBUG AbstractXMLDataSource - Additional configuration valid.
11 Sep 2015 10:44:41,357 [pool-1-thread-1] DEBUG ApplicationEntityManager - Entity was stored in the database during a previous run. Getting the ID ...
11 Sep 2015 10:44:41,358 [pool-1-thread-1] DEBUG ApplicationEntityManager - The id of the previously saved entity is: 1
11 Sep 2015 10:44:41,359 [pool-1-thread-1] DEBUG AnalysisEntityManager - Trying to save entity: com.facebook.orca_d1058e05bbb5fe6a618740885f3600706aaa54a8
11 Sep 2015 10:44:41,360 [pool-1-thread-1] DEBUG AnalysisEntityManager - Entity does not have ID. Creating new record...
11 Sep 2015 10:44:41,361 [pool-1-thread-1] DEBUG AnalysisEntityManager - Record created with ID: 51
11 Sep 2015 10:44:41,362 [pool-1-thread-1] INFO Analysis - Results stored.
11 Sep 2015 10:44:41,363 [pool-1-thread-1] ERROR SAAFThreadPoolExecutor - Analysis failed with exception!
java.util.concurrent.ExecutionException: java.lang.Error: Unresolved compilation problems:
Unhandled exception type DirectoryException
Unhandled exception type DirectoryException
Caused by: java.lang.Error: Unresolved compilation problems:
Unhandled exception type DirectoryException
Unhandled exception type DirectoryException
11 Sep 2015 10:44:41,364 [pool-1-thread-1] ERROR SAAFThreadPoolExecutor - Something unexpected occurred, see above. Will now perform an unclean exit (DB connections are not closed etc, but ShutdownHooks are run)!