Smali-CFGs


Source link: https://github.com/EugenioDelfa/Smali-CFGs

Smali-CFGs

Smali Control Flow Graph's

Package Usage by Application.

(ed@CFGCli) > !pu Ljavax/crypto *  Analized Application uses the next Ljavax/crypto Methods:
· BadPaddingException;->getMessage()Ljava/lang/String;
· BadPaddingException;->toString()Ljava/lang/String;
· Cipher;->doFinal([B)[B
· Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;
· Cipher;->init(ILjava/security/Key;)V
· Cipher;->init(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
· CipherInputStream;-><init>(Ljava/io/InputStream;Ljavax/crypto/Cipher;)V
· CipherInputStream;->read([B)I
· CipherOutputStream;-><init>(Ljava/io/OutputStream;Ljavax/crypto/Cipher;)V
· IllegalBlockSizeException;->getMessage()Ljava/lang/String;
· IllegalBlockSizeException;->toString()Ljava/lang/String;
· KeyGenerator;->generateKey()Ljavax/crypto/SecretKey;
· KeyGenerator;->getInstance(Ljava/lang/String;)Ljavax/crypto/KeyGenerator;
· KeyGenerator;->init(I)V
· NoSuchPaddingException;->getMessage()Ljava/lang/String;
· NoSuchPaddingException;->toString()Ljava/lang/String;
· SecretKey;->getEncoded()[B
· SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
· SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;
· spec/DESKeySpec;-><init>([B)V
· spec/IvParameterSpec;-><init>([B)V
· spec/PBEKeySpec;-><init>([C)V
· spec/PBEKeySpec;-><init>([C[BI)V
· spec/PBEParameterSpec;-><init>([BI)V
· spec/SecretKeySpec;-><init>([BLjava/lang/String;)V 

Single Cross-References (2 depth level).

(ed@CFGCli) > !xf --max_levels 2 --direction 2 "Ljavax/crypto/Cipher;->doFinal([B)[B" *  Cross-References with a 2 recursion level. 

Global string search.

(ed@CFGCli) > !sp _key · String Patterns ['_key'] have been located at above Application Methods:
· Lcom/vvt/appengine/exec/ExecGetSettings;->createSettingsObject(Lcom/vvt/appengine/AppEngineComponent;ILjava/util/List;)Lcom/vvt/remotecontrol/output/RmtCtrlOutputSettings;
· Lcom/vvt/appengine/AppEngineHelper$2;-><clinit>()V
· Lcom/vvt/phoenix/prot/session/SessionManager;->updateSession(Lcom/vvt/phoenix/prot/session/SessionInfo;)Z
· Lcom/vvt/callmanager/ref/BugEngine;->setSmsInterceptForMonitorNumber(Ljava/util/List;)V
· Lcom/vvt/base/security/FxSecurityUrl;->encrypt([BZ)[B
· Lcom/vvt/appengine/AppEngine;->removeDownloadSmsAndRemoteCommands()V
· Lcom/vvt/appengine/AppEngine;-><clinit>()V
· Lcom/vvt/appengine/AppEngine;->removeBrowserHistory()V
· Lcom/vvt/remotecommand/processor/troubleshoot/ProcRequestSettings;->createMessage(Lcom/vvt/remotecontrol/output/RmtCtrlOutputSettings;Ljava/util/List;ZZ)Ljava/lang/String;
· Lcom/vvt/base/security/FxSecurity;->decrypt([BZ)[B
· Lcom/vvt/capture/facebook/daemon/FacebookDatabaseHelper;->getUserProfile(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)[B
· Lcom/vvt/phoenix/prot/CommandServiceManager;->onAsyncCallbackInvoked(Lcom/vvt/phoenix/prot/CommandListener;I[Ljava/lang/Object;)V
· Lcom/vvt/appengine/exec/ExecManageCommonData;->getFeatureStringWord(Lcom/vvt/base/FeatureId;)Ljava/lang/String;
· Lcom/vvt/base/FeatureId;-><clinit>()V
· Lcom/vvt/phoenix/prot/session/SessionManager;->persistSession(Lcom/vvt/phoenix/prot/session/SessionInfo;)Z
· Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String;
· Lcom/vvt/remotecommand/processor/misc/ProcSetSettings$1;-><clinit>()V
· Lcom/vvt/capture/line/LineCapturingHelper;->getStickerAttachment(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/ArrayList;
· Lcom/vvt/appengine/exec/ExecManageCommonData$1;-><clinit>()V
· Lcom/vvt/remotecommand/processor/misc/ManageCommonDataConstant$CommonData$7;->getFeatureId()Lcom/vvt/base/FeatureId;
· Lcom/vvt/base/security/FxSecurityUrl;->decrypt([BZ)[B
· Lcom/vvt/phoenix/prot/session/SessionManager;->extractSessionFromDbRow(Landroid/database/Cursor;Lcom/vvt/phoenix/prot/session/SessionInfo;)V
· Lcom/vvt/remotecommand/processor/misc/ManageCommonDataConstant$CommonData$6;->getFeatureId()Lcom/vvt/base/FeatureId;
· Lcom/vvt/phoenix/prot/session/SessionManager;->openOrCreateSessionDatabase()V
· Lcom/vvt/remotecommand/SetSettingsConstant;->getFeatureId(I)Lcom/vvt/base/FeatureId;
· Lcom/vvt/phoenix/prot/session/SessionManager;->upgradeDatabase(I)V
· Lcom/vvt/remotecommand/processor/misc/ManageCommonDataConstant;-><clinit>()V
· Lcom/vvt/capture/facebook/daemon/FacebookDatabaseHelper;->getParticipant(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Lcom/vvt/im/events/info/OwnerInfo;)Ljava/util/List;
· Lcom/vvt/base/security/FxSecurityUrl;->getConstant([B)Ljava/lang/String;
· Lcom/vvt/appengine/AppEngine;->removeDownloads()V
· Lcom/vvt/base/security/FxSecurity;->encrypt([BZ)[B
· Lcom/vvt/appengine/AppEngineHelper;->manageKeywords(Lcom/vvt/appengine/AppEngineComponent;Ljava/util/List;Z)V
· Lcom/vvt/remotecommand/processor/misc/ManageCommonDataConstant$CommonData$8;->getFeatureId()Lcom/vvt/base/FeatureId;
· Lcom/vvt/capture/facebook/daemon/FacebookDatabaseHelper;->getSenderInfo(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/vvt/im/events/info/SenderInfo;
· Lcom/vvt/appengine/exec/ExecSendSettingsEvent;->createSettingsEvent(Lcom/vvt/remotecontrol/output/RmtCtrlOutputSettings;Ljava/util/List;)Lcom/vvt/events/FxSettingEvent;
· Lcom/vvt/remotecommand/processor/misc/ManageCommonDataConstant$CommonData;-><clinit>()V
· Lcom/vvt/base/security/FxSecurityUrl;-><clinit>()V
· Lcom/vvt/base/security/FxSecurity;-><clinit>()V
· Lcom/vvt/remotecommand/processor/misc/ProcManageCommonData;->process(Lcom/vvt/remotecommand/RemoteCommand;Lcom/vvt/remotecommand/processor/RemoteCommandListener;)V
· Lcom/vvt/remotecommand/processor/misc/ManageCommonDataConstant$CommonData$5;->getFeatureId()Lcom/vvt/base/FeatureId;
· Lcom/vvt/appengine/exec/ExecGetSettings$1;-><clinit>()V
· Lcom/vvt/base/security/Constant;-><clinit>()V 

Full Cross-References marking string matches.

(ed@CFGCli) > !xf --max_levels 6 --direction 0 --str_reg _key "Ljavax/crypto/Cipher;->doFinal([B)[B" *  Cross-References with a 6 recursion level and String Pattern search.
- Lcom/vvt/base/security/FxSecurity;->decrypt([BZ)[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->MASTER_KEY:[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->CHECKSUM_KEY:[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->DYNAMIC_KEY:[B
- Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String;
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->MASTER_KEY:[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->CONSTANT_KEY:[B
- Lcom/vvt/base/security/FxSecurityUrl;->getConstant([B)Ljava/lang/String;
 - sget-object v6, Lcom/vvt/base/security/FxSecurityUrl;->MASTER_KEY:[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurityUrl;->CONSTANT_KEY:[B
- Lcom/vvt/base/security/FxSecurityUrl;->encrypt([BZ)[B
 - sget-object v5, Lcom/vvt/base/security/FxSecurityUrl;->MASTER_KEY:[B
 - sget-object v5, Lcom/vvt/base/security/FxSecurityUrl;->CHECKSUM_KEY:[B
 - sget-object v5, Lcom/vvt/base/security/FxSecurityUrl;->DYNAMIC_KEY:[B
- Lcom/vvt/base/security/FxSecurity;->encrypt([BZ)[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->MASTER_KEY:[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->CHECKSUM_KEY:[B
 - sget-object v6, Lcom/vvt/base/security/FxSecurity;->DYNAMIC_KEY:[B
- Lcom/vvt/base/security/FxSecurityUrl;->decrypt([BZ)[B
 - sget-object v5, Lcom/vvt/base/security/FxSecurityUrl;->MASTER_KEY:[B
 - sget-object v5, Lcom/vvt/base/security/FxSecurityUrl;->CHECKSUM_KEY:[B
 - sget-object v5, Lcom/vvt/base/security/FxSecurityUrl;->DYNAMIC_KEY:[B 

Which code lines match:

(ed@CFGCli) > !sp -m "Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String;" _key · String Patterns ['_key'] matches at Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String; are:
· sget-object v6, Lcom/vvt/base/security/FxSecurity;->MASTER_KEY:[B
· sget-object v6, Lcom/vvt/base/security/FxSecurity;->CONSTANT_KEY:[B 

How method seems without out calls:

(ed@CFGCli) > !if "Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String;" *  Method Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String; Instructions Flow saved to MethodInstructionsFlow.png. 

And with out calls:

(ed@CFGCli) > !if -f "Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String;" *  Method Lcom/vvt/base/security/FxSecurity;->getConstant([B)Ljava/lang/String; Instructions Flow saved to MethodInstructionsFlow2.png. 

Resources

A project which showcases usage of AndroidAnnotations among other open source libraries.

Android Lollipop Palette is now easy to use with Picasso.

ContactAutoCompleteTextView is a view which allows the user to search across all his contacts to get email or phone number.

This plugin generates java/android database access code by analysing sqlite migration files or sqlite databases, keeping full control of what code is generated.

sqlite-analyzer creates an in-memory sqlite database, either from a given database file or by reading sql migrations, and analyzes its tables to construct a DatabaseModel. This model is then used to generate database access code.

Merlin aims to simplify network monitoring. Providing 3 registrable callbacks for network connectivity changes: onConnect, onDisconnect and onBind.

A library mimics the circles used in optic forms.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes