{"id":353,"date":"2011-02-27T14:27:17","date_gmt":"2011-02-27T13:27:17","guid":{"rendered":"\/Blog\/?p=353"},"modified":"2019-01-17T14:18:48","modified_gmt":"2019-01-17T13:18:48","slug":"unpack-change-and-repack-android-apps","status":"publish","type":"post","link":"https:\/\/seegras.discordia.ch\/Blog\/unpack-change-and-repack-android-apps\/","title":{"rendered":"Unpack, Change and Repack Android Apps"},"content":{"rendered":"<p>Some time ago, I read <a href=\"https:\/\/web.archive.org\/web\/20101028111532\/http:\/\/intrepidusgroup.com\/insight\/2010\/05\/lock-down-your-android-apk-permissions\/\">Lock down your Android APK permissions<\/a> by benn from Intrepidus Group. <\/p>\n<p>I decided to automate the whole procedure, at least the unpacking, signing and repacking. Each app has to have it&#8217;s own key (lest the apps signed with the same key can access each others ressources!) which was the thing that most needed automation. <\/p>\n<p>So I wrote some shell-scripts. The scripts are not only useful for changing the permissions of an app from any source (unpack, edit AndroidManifest.xml, resign), but also for android developers themselves. it&#8217;s much easier to manage keys and sign different apps with them. <\/p>\n<p>So here they are: <\/p>\n<ul>\n<li><a href=\"http:\/\/seegras.discordia.ch\/Programs\/android-unpack\">android-unpack<\/a> Stupid script to decode .apk-files, all of those in a directory, actually.<\/li>\n<li><a href=\"http:\/\/seegras.discordia.ch\/Programs\/android-resign\">android-resign<\/a> Script to pack .apk-files, and sign them. Each project with it&#8217;s own key. <\/li>\n<\/ul>\n<p>Of course, if you re-sign foreign apps with your own key, they won&#8217;t be the same ones as on the Android Market, and thus not automatically upgradeable and will not use the same configuration. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some time ago, I read Lock down your Android APK permissions by benn from Intrepidus Group. I decided to automate the whole procedure, at least the unpacking, signing and repacking. Each app has to have it&#8217;s own key (lest the apps signed with the same key can access each others ressources!) which was the thing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95,2,67],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-android","category-computers","category-security"],"_links":{"self":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":8,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":1189,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts\/353\/revisions\/1189"}],"wp:attachment":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}