{"id":15395162,"url":"https://github.com/orhun/apkservinject","last_synced_at":"2025-04-16T00:08:44.442Z","repository":{"id":50669950,"uuid":"139141830","full_name":"orhun/ApkServInject","owner":"orhun","description":"Tool for injecting (smali) services to APK files","archived":false,"fork":false,"pushed_at":"2023-01-01T16:30:11.000Z","size":11775,"stargazers_count":37,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-16T00:08:25.225Z","etag":null,"topics":["apk","code-injection","injection"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orhun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"orhun","patreon":"orhunp"}},"created_at":"2018-06-29T11:33:00.000Z","updated_at":"2025-03-03T21:29:23.000Z","dependencies_parsed_at":"2023-01-31T23:46:22.888Z","dependency_job_id":null,"html_url":"https://github.com/orhun/ApkServInject","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2FApkServInject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2FApkServInject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2FApkServInject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2FApkServInject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orhun","download_url":"https://codeload.github.com/orhun/ApkServInject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173084,"owners_count":21224483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apk","code-injection","injection"],"created_at":"2024-10-01T15:26:17.693Z","updated_at":"2025-04-16T00:08:44.416Z","avatar_url":"https://github.com/orhun.png","language":"Java","funding_links":["https://github.com/sponsors/orhun","https://patreon.com/orhunp"],"categories":[],"sub_categories":[],"readme":"# ApkServInject \u003ca href=\"https://github.com/orhun/ApkServInject/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/orhun/ApkServInject.svg\"/\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/orhun/ApkServInject/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/orhun/ApkServInject.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/orhun/ApkServInject/pulls\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-pr/orhun/ApkServInject.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/orhun/ApkServInject/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/orhun/ApkServInject.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/orhun/ApkServInject/network\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/orhun/ApkServInject.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/orhun/ApkServInject/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/orhun/ApkServInject.svg\"/\u003e\u003c/a\u003e\n\n```\nusage: java -jar ApkServInject.jar [-a APK] [-s SMALI]\n\n -a,--apk     APK file to inject smali\n -s,--smali   (smali) Service file to inject.\n ```\n\n ```\n     _          _    ____                  ___        _           _   \n    / \\   _ __ | | _/ ___|  ___ _ ____   _|_ _|_ __  (_) ___  ___| |_ \n   / _ \\ | '_ \\| |/ \\___ \\ / _ | '__\\ \\ / /| || '_ \\ | |/ _ \\/ __| __|\n  / ___ \\| |_) |   \u003c ___) |  __| |   \\ V / | || | | || |  __| (__| |_ \n /_/   \\_| .__/|_|\\_|____/ \\___|_|    \\_/ |___|_| |__/ |\\___|\\___|\\__|\n         |_|@orhun                               |__/               \n\nApkServInject - a tool for injecting (smali) service to Android apk files\n\nusage: ApkServInject\n -a,--apk     APK file to inject smali\n -s,--smali   (smali) Service file to inject.\n\nFor additional info, see: http://github.com/orhun/ApkServInject\n\nTest files found. Would you like to perform a test injection? [y/n]: \ny\n[16:29:08] Starting...\n[16:29:08] Decompiling APK with ApkTool...\nS: WARNING: Could not write to (/home/k3/.local/share/apktool/framework), using /tmp instead...\nS: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path \nif the default storage directory is unavailable\n[16:29:15] \nI: Using Apktool 2.3.3 on test.apk\nI: Loading resource table...\nI: Decoding AndroidManifest.xml with resources...\nI: Loading resource table from file: /tmp/1.apk\nI: Regular manifest package...\nI: Decoding file-resources...\nI: Decoding values */* XMLs...\nI: Baksmaling classes.dex...\nI: Copying assets and libs...\nI: Copying unknown files...\nI: Copying original files...\n\n[16:29:15] Manifest file found: AndroidManifest.xml\n[16:29:15] Trying to find EntryPoint smali...\n[16:29:15] EntryPoint smali: com.test.testapp.MainActivity\n[16:29:15] Changing manifest file...\n[16:29:15] Moving and changing smali file...\n[16:29:15] Permissions found: \nandroid.permission.WRITE_EXTERNAL_STORAGE\nandroid.permission.READ_EXTERNAL_STORAGE\nandroid.permission.INTERNET\n\n[16:29:15] Merging permissions...\n[16:29:15] Permissions added to manifest.\n[16:29:15] Changing EntryPoint smali...\n[16:29:15] onCreate method found!\n[16:29:15] EntryPoint smali changed.\n[16:29:15] Building the APK...\nS: WARNING: Could not write to (/home/k3/.local/share/apktool/framework), using /tmp instead...\nS: Please be aware this is a volatile directory and frameworks could go missing, \nplease utilize --frame-path if the default storage directory is unavailable\n[16:29:23] \nI: Using Apktool 2.3.3\nI: Checking whether sources has changed...\nI: Smaling smali folder into classes.dex...\nI: Checking whether resources has changed...\nI: Building resources...\nI: Building apk file...\nI: Copying unknown files/dir...\nI: Built apk...\n\n[16:29:24] Signing...\n[16:29:25] APK signed ~ done.\n\n[16:29:25] New APK located at \"/home/k3/t3mp/ApkServInject/test_x.apk\"\n[16:29:25] Clearing workspace...\n```\n \n _This software is not working stable for every Android Package. (esp. for complex applications)_\n\n## TODO(s)\n\n* Regex pattern should be fixed for xml parsing.\n* Smali edit part must be changed depending on Android Apps SDK version.\n* Finding EP other than onCreate method feature should be added.\n* Main Thread may be seperated to functions for more readable code, but not necessary.\n\n## License\n\nGNU General Public License v3. (see [gpl](https://www.gnu.org/licenses/gpl.txt))\n\n## Copyright\n\nCopyright (c) 2018-2023, [orhun](https://www.github.com/orhun)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Fapkservinject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forhun%2Fapkservinject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Fapkservinject/lists"}