反编译--更改布局文件的文字

我们自己构造一个app,布局就一个TextView,java代码也不用写

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="ssy.com.fapplication.Main2Activity">
<TextView
    android:gravity="center"
    android:textSize="30dp"
    android:text="我的故事"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
</android.support.constraint.ConstraintLayout>

我们把应用打包

image.png

然后用apktool工具去操作
apktool d -f
D:\Technology\Technology\FanBianYi\apktool\apktool\app-release.apk -o out
这样我们就把apk变成反编译文件
image.png

打开res里面layout布局文件夹,找到相应布局文件,直接打开更改文字
image.png

改完之后,我们要把文件夹打包成app。
apktool b out -o debug.apk
这样我们就得到未签名的apk了。
最后把apk打包。
signapk debug.apk
最后生成sign.apk
image.png

我们需要的工具有apktool 和 signapk ,直接百度下载最近版本的就好。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容