attribute android:enableOnBackInvokedCallback not found

enableOnBackInvokedCallback 是API33之后引进来的新东西,主要是控制当前页面(Window/Activity)是否启用 OnBackInvokedCallback 回调机制,来响应物理返回键 / 系统返回手势。

用之前的架构框架反编apk,然后回编直接报错了,提示attribute android:enableOnBackInvokedCallback not found,查了下资料说是API导致的,下面是我的反编命令

python 复制代码
    cmd = 'java -Xmx4g -Xms2g -jar %s d %s -o %s -p %s --only-main-classes' % (apktool_path, game_apk_path, game_apk_output_path, apktool_framework)

问题出现在apktool_framework架构需要升级,其实这行文件就是android.jar转换的,路径在%ANDROID_HOME%\platforms\android-33\android.jar,然后重命名为 framework-res.apk,然后丢进cmd里面重新反编就可以了,如果觉得麻烦也可以在清单文件把对应的属性先删除了

相关推荐
jushi899921 小时前
抖音APP抖音助手增强版 内置逗音小手 支持无水印下载/音频提取/去广告等功能
android·智能手机·音视频
plainGeekDev1 天前
Android 专家岗 Kotlin 面试题:能答出这些,说明你对语言设计有自己的理解
android·kotlin
plainGeekDev1 天前
Android 资深岗 Kotlin 面试题:只会用协程不够,你得懂它为什么这么设计
android·kotlin
StarShip1 天前
第一阶段:应用层视图绘制
android
StarShip1 天前
第二阶段:RenderThread 渲染处理
android
通玄1 天前
Jetpack Compose 入门系列(一):从零搭建到基础控件使用
android
StarShip1 天前
Android 图形渲染流水线完整架构与执行流程分析
android
流年如夢1 天前
类和对象(上)
android·java·开发语言
用户86022504674721 天前
从入门到进阶的 React Native 实战指南
android·前端