{"id":4412,"date":"2019-05-02T18:23:35","date_gmt":"2019-05-02T12:53:35","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=4412"},"modified":"2019-05-03T09:07:20","modified_gmt":"2019-05-03T03:37:20","slug":"how-to-get-source-code-of-any-android-application","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-get-source-code-of-any-android-application\/","title":{"rendered":"How to get source code of any android application"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">How to decompile android application<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Date : 02\/05\/2019<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisite<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1.Initially, download <strong>apktool<\/strong> via this link.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/ibotpeaches.github.io\/Apktool\/install\/\" target=\"_blank\" rel=\"noopener\">http:\/\/ibotpeaches.github.io\/Apktool\/install\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, you can also use command line to install it. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install apktool<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2.Therefore, download java decompiler in .jar format preferably than any other OS oriented packages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/jd.benow.ca\/\" target=\"_blank\" rel=\"noopener\">http:\/\/jd.benow.ca\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Most importantly, download dex2jar via this the link. It will leads to git hub repo.i have downloaded the first package. Then extract it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/pxb1988\/dex2jar\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/pxb1988\/dex2jar<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Convert into jar file<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Subsequently, download any android application in .apk format and It will be in single file. So move this file into the <strong>dex2jar<\/strong> folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Meanwhile, now ensure dex2jar folder&#8217;s files are executable by you.use the command <strong>sh d2j-dex2jar.sh -f &lt;apk file.apk&gt;.<\/strong> You will get output like the below in your cmd.In my case it is Myjio application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After that, take Zomato application.<br> dex2jar Zomato.apk -&gt; .\/Zomato-dex2jar.jar<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In short, now open the java decompiler <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"432\" height=\"438\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-02-22-07-44.png\" alt=\"\" class=\"wp-image-4497\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-02-22-07-44.png 432w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-02-22-07-44-296x300.png 296w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click the jar file to checkout the java source code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For file other than java use <strong>apktool d &lt;apk-file.apk&gt;<\/strong> in .apk directory to get src file for the application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for using pheonixsolutions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You find this tutorial helpful? Share with your friends to keep it alive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to decompile android application Date : 02\/05\/2019 Prerequisite 1.Initially, download apktool via this link. http:\/\/ibotpeaches.github.io\/Apktool\/install\/ However, you can also [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1021],"tags":[638,640,639],"class_list":["post-4412","post","type-post","status-publish","format-standard","hentry","category-mobile-flutter","tag-android-de","tag-decompiler","tag-source-code","psol-cat-mobile-flutter"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-19a","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4412"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4412\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}