我們自己構(gòu)造一個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>
我們把應(yīng)用打包
image.png
然后用apktool工具去操作
apktool d -f
D:\Technology\Technology\FanBianYi\apktool\apktool\app-release.apk -o out
這樣我們就把apk變成反編譯文件
image.png
打開res里面layout布局文件夾,找到相應(yīng)布局文件,直接打開更改文字
image.png
改完之后,我們要把文件夾打包成app。
apktool b out -o debug.apk
這樣我們就得到未簽名的apk了。
最后把apk打包。
signapk debug.apk
最后生成sign.apk
image.png
我們需要的工具有apktool 和 signapk ,直接百度下載最近版本的就好。