简体   繁体   English

Android-解压缩SystemUI以修改其中的文件

[英]Android - Unzip SystemUI to modify the files within

So, I asked a question earlier today about a similar topic, and got my answer. 因此,我今天早些时候问了一个关于类似主题的问题,并得到了答案。 But now I have another question... I've seen apps(rootbox is one of them) that can unzip your SystemUI.apk and then replace the images inside(like the battery images, the wifi images, the 4g images, ect.) So I wanted to make a small app like that. 但是现在我还有一个问题...我看到过可以解压缩SystemUI.apk的应用程序(rootbox是其中的一个),然后替换其中的图像(如电池图像,wifi图像,4g图像等)。 )因此,我想制作一个像这样的小型应用程序。 That'll theme your device. 这将成为您设备的主题。 Now I've made most of the app. 现在,我已经完成了大部分的应用程序。 The whole layout is down, everything works fine, except for one thing... The installation. 整个布局放下​​了,除了一件事之外,其他所有东西都工作正常……安装。 I cannot seem to be able to unzip the SystemUI.Apo, replace certain files, and then rezip, install, ect. 我似乎无法解压缩SystemUI.Apo,替换某些文件,然后重新压缩,安装等。 The battery mod, wifi mod, ect., are basically a zip file that you download. 电池模块,WiFi模块等基本上是您下载的一个zip文件。 Within them they have a res folder. 其中有一个res文件夹。 Inside the res folder are more folders, and inside those folders are the images. res文件夹中有更多文件夹,而这些文件夹中有图像。 So I have, for example, res/drawable-hdpi/images.png. 因此,例如,我有res / drawable-hdpi / images.png。 So I just need to copy those files into the systemUI folders. 因此,我只需要将这些文件复制到systemUI文件夹中即可。 I have tried a few times, all using scripts. 我尝试了几次,全部使用脚本。 I tried unziping the mod and systemUI, and then copying the files into the systemUI, but I cannot unzip the systemUI.apk.(I guess unzip can't unzip apks) I also tried copying the systemUI.apk and then zipped the systemUI.apk with the res folder containing my mods, but that didn't work either(bootloop). 我尝试解压缩mod和systemUI,然后将文件复制到systemUI,但是无法解压缩systemUI.apk。(我猜解压缩不能解压缩apk。)我也尝试复制systemUI.apk,然后压缩systemUI。包含我的mod的res文件夹的apk,但这也不起作用(bootloop)。 I am lost now. 我现在迷路了。 My question is simple: How do I unzip the systemUI, replace the files needed, and then resupply, chmod 644 it, ect. 我的问题很简单:如何解压缩systemUI,替换所需的文件,然后重新供应chmod 644等。 I hope I didn't annoy you guys with my silly question. 我希望我不要因为我这个愚蠢的问题而惹恼你们。 Thanks for reading! 谢谢阅读! :) :)

If you don't have root, what you ask for is impossible. 如果您没有root,那么您所要求的就是不可能的。

Assume that you have root on your device, in order to achieve that, you may try: 假设您已经在设备上拥有root用户,那么可以尝试执行以下操作:

  • pull the SYstemUI.apk file 拉SYstemUI.apk文件
  • use apktool to decompile the apk 使用apktool反编译apk
  • replace the images with yours 用您的图像替换图像
  • use apktool to recompile the apk 使用apktool重新编译apk
  • use a root brower to replace SystemUI.apk with the modified one 使用根浏览器将SystemUI.apk替换为修改后的

Apktool is a good tool for decompiling and recompiling APKs, Your devices must be rooted, or you can edit your ROM and flash it back. Apktool是用于反编译和重新编译APK的好工具,您的设备必须已植根,或者您可以编辑ROM并将其闪回。

here's a good link explaining how to use android-apktool 这是一个很好的链接,解释了如何使用android-apktool

How to EDIT SystemUI.apk/Apps Background 如何编辑SystemUI.apk / Apps背景

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM