{"id":16864787,"url":"https://github.com/38/adam","last_synced_at":"2026-03-04T12:01:27.512Z","repository":{"id":13203606,"uuid":"15887515","full_name":"38/adam","owner":"38","description":"Another Dalvik Abstract Machine","archived":false,"fork":false,"pushed_at":"2014-10-17T21:26:22.000Z","size":5710,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-11T10:36:19.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/38.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-14T01:05:00.000Z","updated_at":"2023-03-10T11:52:40.000Z","dependencies_parsed_at":"2022-08-01T02:38:52.908Z","dependency_job_id":null,"html_url":"https://github.com/38/adam","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/38/adam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fadam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fadam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fadam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fadam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/38","download_url":"https://codeload.github.com/38/adam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fadam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30079565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T11:57:42.557Z","status":"ssl_error","status_checked_at":"2026-03-04T11:56:10.793Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T14:43:53.280Z","updated_at":"2026-03-04T12:01:27.128Z","avatar_url":"https://github.com/38.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"ADAM\n========\nAnother Dalvik Abstract Machine\n\nThis is an experimental static analysis based security checker for Android Apps. \n\nHow to compile\n---\nSimplely `cmake . \u0026\u0026 make`\n\nMore Options\n---\nTo enable/disable building a tool package `cmake -Dbuild_\u003cpackage_name\u003e=yes|no .` \n\t\nTo change the log level and the optimization level, `L=\u003clog-level\u003e O=\u003copt-level\u003e cmake .`\n\nUse `make show-flags` to print the compile flags\n\nTest\n---\nPrepare the test data, use `make data` to download a sample input of ADAM from [http://www.cs.utah.edu/~haohou/adam/data.tar.gz](http://www.cs.utah.edu/~haohou/adam/data.tar.gz).\n\nThen run test cases `make test`\n\nHow to use\n---\nCurrently only Adam Debugger is avaliable. \n\nThis package is enabled by default, if you want to enable it explicitly, run `cmake - Dbuild_adb=yes .` before compilation.\n\nYou can use ADB to test the analyzer if you compile adam with ADB package.\n\nDalvik Disassemble Tool\n---\nADAM takes the output of [dex2sex](https://github.com/38/dex2sex) which produces S-Expression represention of dalvik disassmebly code.\n\nYou can get a compiled binary from [here](http://www.cs.utah.edu/~haohou/adam/dex2sex.tar.gz).\n\nTo disassmble a APK package, simple use `dex2sex \u003capk-package\u003e`. \n\nDocumentation\n---\nYou can either extract doxygen documentation from the source code by `make docs` \n\nor visit the online version documentation at [http://www.cs.utah.edu/~haohou/adam/html/](http://www.cs.utah.edu/~haohou/adam/html)\n\n\nLogging\n---\n\nThe default log config file is defined in include/constants.h.  By default it is log.cfg.\n\nIf you do not have log.cfg in adam/ directory, there will be noisy output.  The log.cfg file defines where to redirect log output of various levels (WARNING, ERROR, etc).\n\nDebugger\n---\n\nObtain android.jar and place in adam/test/de2sex/bin/lib/\nObtain dex2sex from my other repo.\n\nHow do I prepare a .dex file for analysis?\n\njava2s path/to/code output/dir \nOR\napk2s path/to/apk output/dir\n\nHow do I start the debugger?\n\nAfter building, run ./bin/adb, but no program is loaded yet.\n\nHow to load a program into the debugger?\n\n(load \"path/to/dir/with/sexpressionified-bytecode-files\")\n\nHow do I inject into a start state?\n\nAutocompletion is supported!!!\n\n(frame/new  [fully/qualified/classname/method(params,...) [object fully/qualified/returntype]])\n\nHow do I view the frame?\n\n(frame/info)\n\nOr as a dot file!!!\n\n(frame/dot)\n\nHow do I set parameter values?\n\n(frame/set v1 + - Z)\n\n(frame/allocate CLASSPATH)\n\n(frame/alloc v1 \"Some String\") \u003c- not yet supported, Cambells task\n\nHow do I add commands to the debugger?\n\nAdd the Command to adb/main.c with a handler.\n\nTODO\n---\n\ndata flow graph:\nfor each data tag: print file/line of occurences\n\ntracking variable name changes: \nif it changes drastically, then it may be an attempt to hide data\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F38%2Fadam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F38%2Fadam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F38%2Fadam/lists"}