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

我们自己构造一个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
image.png

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

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

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

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值