Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Build fail with android:enableOnBackInvokedCallback not found #3041

Closed
oocast opened this issue Apr 13, 2023 · 2 comments · Fixed by #3063
Closed

[BUG] Build fail with android:enableOnBackInvokedCallback not found #3041

oocast opened this issue Apr 13, 2023 · 2 comments · Fixed by #3063
Labels
Milestone

Comments

@oocast
Copy link

oocast commented Apr 13, 2023

Information

  1. Apktool Version (apktool -2.7.0) -
  2. Operating System (Windows) -
  3. APK From? (Other) -

Stacktrace/Logcat

I: Using Apktool 2.7.0
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building resources...
W: D:\Investigation\Resign0413\Test\Decode2.7.0\AndroidManifest.xml:39: error: attribute android:enableOnBackInvokedCallback not found.

Steps to Reproduce

  1. get an apk whose AndroidManifest.xml contains android:enableOnBackInvokedCallback attribute.
  2. apktool decode to decode it
  3. apktool build to rebuild it

Other notes

enableOnBackInvokedCallback is an attribute introduced with Android SDK Version 33.
Tried to modify apktool.yml and make it targetSdkVersion '33', but same error persists.

APK

The APK cannot be shared

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?
    Yes, same error happens at build-time

  2. If you are trying to install a modified apk, did you resign it?
    Not there yet. Apktool fails to rebuild.

  3. Are you using the latest apktool version?
    Yes

@iBotPeaches
Copy link
Owner

It appears I never finished the internal framework upgrade. My last commit was to Preview 33.

057b35f

@iBotPeaches
Copy link
Owner

Added enableOnBackInvokedCallback to test suite alongside API34 framework and appears to be working. PR above will close this shortly.

iBotPeaches added a commit that referenced this issue May 13, 2023
@iBotPeaches iBotPeaches added this to the v2.8.0 milestone Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants