下载你的碧蓝航线的的安装包或者使用以上任意一种提取安装包
查看安装包
打开classes.dex,假如有多个classes2.dex,classes3.dex,可以一起打开,UnityPlayerActivity的位置不固定
在浏览里打开com(文件夹)-->unity3d.player(文件夹)-->UnityPlayerActivity并打开
在与图片类似的位置粘贴下面代码
.method private static native init(Landroid/content/Context;)V
.end method
在与图片类似的位置粘贴下面代码
const-string v0, "Dev_Liu"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
invoke-static {p0}, Lcom/unity3d/player/UnityPlayerActivity;->init(Landroid/content/Context;)V
把仓库里libs文件夹里的三个文件夹复制到apk中lib文件夹里
一路保存并退出,别忘记勾选自动签名
卸载碧蓝航线,安装修改后的apk文件
(你可以选择重新下7G或者先把/sdcard/Android/data/(你的碧蓝航线包名)
包名一般包括 改一个名字,等重装完碧蓝航线再替换回原名字)
##1x0:Loading the library
Add the following method to UnityPlayerActivity
, anywhere above its onCreate
:
.method private static native init(Landroid/content/Context;)V
.end method
And these lines to onCreate
:
const-string v0, "Dev_Liu"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
invoke-static {p0}, Lcom/unity3d/player/UnityPlayerActivity;->init(Landroid/content/Context;)V
(Preferably without replacing other variables, such as between .locals 2
and const/4 v0, 0x1
.)