我们自己构造一个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>
我们把应用打包
![1870221-e7b14268b373f916.png](https://i-blog.csdnimg.cn/blog_migrate/9a12b78ec8b130cd2a75a26a2a5a76a9.webp?x-image-process=image/format,png)
image.png
然后用apktool工具去操作
apktool d -f
D:\Technology\Technology\FanBianYi\apktool\apktool\app-release.apk -o out
这样我们就把apk变成反编译文件
![1870221-c0c893561eb9617e.png](https://i-blog.csdnimg.cn/blog_migrate/6995e4e1fb8446f3c6c7ca90c598f2b7.webp?x-image-process=image/format,png)
image.png
打开res里面layout布局文件夹,找到相应布局文件,直接打开更改文字
![1870221-1e68162000b17634.png](https://i-blog.csdnimg.cn/blog_migrate/7cbf75ddb9c25e7f1e8d74d0cbd06e19.webp?x-image-process=image/format,png)
image.png
改完之后,我们要把文件夹打包成app。
apktool b out -o debug.apk
这样我们就得到未签名的apk了。
最后把apk打包。
signapk debug.apk
最后生成sign.apk
![1870221-ceec18fc696c6a68.png](https://i-blog.csdnimg.cn/blog_migrate/decc7eb9d9d4b3fc7b2d891b1f26d961.webp?x-image-process=image/format,png)
image.png
我们需要的工具有apktool 和 signapk ,直接百度下载最近版本的就好。