{"id":5499,"date":"2013-12-26T22:56:34","date_gmt":"2013-12-27T03:56:34","guid":{"rendered":"http:\/\/www.techwalls.com\/?p=5499"},"modified":"2019-08-03T22:50:20","modified_gmt":"2019-08-04T02:50:20","slug":"extract-xml-code-apk-file-android","status":"publish","type":"post","link":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/","title":{"rendered":"How to Extract XML code from Apk file in Android"},"content":{"rendered":"<p>When you lost your data due to some reasons but you have a apk file. Then you can get the code from the apk file. To get the xml code from apk file.<!--more--><\/p>\n<p>There are two tools you have to need for getting xml code from apk file. These tools are listed following:<\/p>\n<ul>\n<li>Apktool.jar<\/li>\n<li>framework-res.apk<\/li>\n<\/ul>\n<p>Apktool can decode apk file to original form and rebuild them. It makes possible to debug small code step by step. You can download these software from the following links.<\/p>\n<ul>\n<li><a title=\"https:\/\/code.google.com\/p\/android-apktool\/downloads\/list\" href=\"https:\/\/code.google.com\/p\/android-apktool\/downloads\/list\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Apktool.jar <\/a><\/li>\n<li>framework-res.apk\u00a0<\/li>\n<\/ul>\n<p>There are following some steps to extract XML code from apk file:<\/p>\n<h2>Step 1:<\/h2>\n<p>First open the new folder and put these files step by step in it. Put apk file (which you want to decode). Now download the apktool.jar from the given link. Put the apktool v1.x and apktool install window in the same folder.<\/p>\n<h2><span style=\"line-height: 1.5em;\">Step 2:<\/span><\/h2>\n<p>After first step now you have to download \u201cframework-res.apk\u201d. Framework-res.apk file helps you to extract the apk file (which you want to decode) and also extract the resource files. From this we can get our resource files in layouts. You can also download from this link. When download is completed then put &#8220;framework-res.apk&#8221; file in same folder.<\/p>\n<h2>Step 3:<\/h2>\n<p>After second step you have to open command prompt. Go to left top of the window click file menu in that you have to click open command prompt. Then command prompt is open. Now in command prompt window you are automatically to the root directory of apktool. In command prompt window you have to write a command &#8220;apktool if framework-res.apk&#8221; and press enter for further execution. When execution is finished then again you have to write a command &#8220;filename.apk&#8221; (here filename refers to that file which you want to decode) and press enter execution is start. Now it fetches all the resource files. And new folder is generated as same name of apk (which you want to extract).<\/p>\n<p>Open that folder and now you can see res named folder in it. After that open res folder now you can see different files and folder in it. Now you can see layouts folder in it. Open layouts folder then you can see all the xml resource files in it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5508\" alt=\"apk\" src=\"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg\" width=\"628\" height=\"355\" srcset=\"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg 628w, https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk-300x170.jpg 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/p>\n<p>Here you get the xml code files from apk. Now you can easily read the xml files.<\/p>\n<p>Hopefully this information is helpful to you.<\/p>\n<p>Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you lost your data due to some reasons but you have a apk file. Then you can get the code from the apk file. To get the xml code from apk file.<\/p>\n","protected":false},"author":89,"featured_media":5508,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1146],"tags":[31,1147],"class_list":{"0":"post-5499","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-guide","8":"tag-android","9":"tag-guide-2","10":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Extract XML code from Apk file in Android<\/title>\n<meta name=\"description\" content=\"When you lost your data due to any reasons but you have a apk file. Then you can get the code from the apk file. To get the xml code from apk file. There are two tools you have to need for getting xml code from apk file\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Guest Authors\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/\",\"url\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/\",\"name\":\"How to Extract XML code from Apk file in Android\",\"isPartOf\":{\"@id\":\"https:\/\/www.techwalls.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg\",\"datePublished\":\"2013-12-27T03:56:34+00:00\",\"dateModified\":\"2019-08-04T02:50:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.techwalls.com\/#\/schema\/person\/440f216965cffca997e53e754f489c84\"},\"description\":\"When you lost your data due to any reasons but you have a apk file. Then you can get the code from the apk file. To get the xml code from apk file. There are two tools you have to need for getting xml code from apk file\",\"breadcrumb\":{\"@id\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#primaryimage\",\"url\":\"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg\",\"contentUrl\":\"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg\",\"width\":628,\"height\":355},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.techwalls.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Guide\",\"item\":\"https:\/\/www.techwalls.com\/guide\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Extract XML code from Apk file in Android\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.techwalls.com\/#website\",\"url\":\"https:\/\/www.techwalls.com\/\",\"name\":\"TechWalls\",\"description\":\"Technology News | Gadget Reviews | Tutorials\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.techwalls.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.techwalls.com\/#\/schema\/person\/440f216965cffca997e53e754f489c84\",\"name\":\"Guest Authors\",\"url\":\"https:\/\/www.techwalls.com\/author\/guestauthor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Extract XML code from Apk file in Android","description":"When you lost your data due to any reasons but you have a apk file. Then you can get the code from the apk file. To get the xml code from apk file. There are two tools you have to need for getting xml code from apk file","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/","twitter_misc":{"Written by":"Guest Authors","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/","url":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/","name":"How to Extract XML code from Apk file in Android","isPartOf":{"@id":"https:\/\/www.techwalls.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#primaryimage"},"image":{"@id":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#primaryimage"},"thumbnailUrl":"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg","datePublished":"2013-12-27T03:56:34+00:00","dateModified":"2019-08-04T02:50:20+00:00","author":{"@id":"https:\/\/www.techwalls.com\/#\/schema\/person\/440f216965cffca997e53e754f489c84"},"description":"When you lost your data due to any reasons but you have a apk file. Then you can get the code from the apk file. To get the xml code from apk file. There are two tools you have to need for getting xml code from apk file","breadcrumb":{"@id":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#primaryimage","url":"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg","contentUrl":"https:\/\/www.techwalls.com\/wp-content\/uploads\/2013\/12\/apk.jpg","width":628,"height":355},{"@type":"BreadcrumbList","@id":"https:\/\/www.techwalls.com\/extract-xml-code-apk-file-android\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.techwalls.com\/"},{"@type":"ListItem","position":2,"name":"Tech Guide","item":"https:\/\/www.techwalls.com\/guide\/"},{"@type":"ListItem","position":3,"name":"How to Extract XML code from Apk file in Android"}]},{"@type":"WebSite","@id":"https:\/\/www.techwalls.com\/#website","url":"https:\/\/www.techwalls.com\/","name":"TechWalls","description":"Technology News | Gadget Reviews | Tutorials","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.techwalls.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.techwalls.com\/#\/schema\/person\/440f216965cffca997e53e754f489c84","name":"Guest Authors","url":"https:\/\/www.techwalls.com\/author\/guestauthor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/posts\/5499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/comments?post=5499"}],"version-history":[{"count":0,"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/posts\/5499\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/media\/5508"}],"wp:attachment":[{"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/media?parent=5499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/categories?post=5499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techwalls.com\/wp-json\/wp\/v2\/tags?post=5499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}