-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Recompilation error: "invalid value for type 'layout'. Expected a reference" #2618
Comments
I replicate. Logging some info to help for debugging this later.
|
Can confirm having the same issue on M1 Mac and Windows. Recompiling the Instagram app. |
Any update on this issue? |
Hey there, just had the same error and steps how I fixed it in my case:
|
I do confirm, it fixed the latest whatsapp beta compilation errors. |
not work for me |
from what ive found source: method(jadx) X.C1Mj.getLayout(int) and X.C24601Mp.A00() the resource format seems to contain axml blocks too |
I thought about this a bit. Clearly Instagram is doing some trickey here with storing references to their odd We could easily patch out this check and see how the application reacts. It just seems dangerous for Apktool as this is a good build-time check that is only becoming a problem for apps like Instagram. |
@iBotPeaches Could this have been done on purpose to prevent people from reverse engineering their way out of their recent mandatory dialog box to accept being tracked for ads? The unskippable dialog box has been driving me crazy for weeks so I spent these last few days learning about apktool and Smali, and of course now it blocks compilation at the end. You know I don't care if instagram steals and sells all my data but I'm not giving consent. Is there perhaps some other way to bypass this behaviour? Any suggestions are highly appreciated. |
I'm able to compile using |
First I tried to sign the original one (just to see if instagram plays any trickery) and worked just fine. Then I did the same for just the recompiled apk and (as mentioned above) althought I was able to open the app, the momment I logged-in it crashed... So I'm really skeptical as to if this is a problem with |
Any updates on this bug? Has anyone found a workaround ? |
i also got same error + 2 more (it's start on newest updated apk's only, on old apk version still works)
|
I would like to ask if this problem has been solved. I have also encountered |
I also encounter this issue. Andy idea how to solve it? |
any one found solution to this problem ? i have tried "Delete framework\1.apk" and disable aapt2 , but did not work #EDIT 1:
#EDIT 2: [Worked for me]
|
✅ It worked, thank you @mikeanjelo1 - I deleted the 2 - I installed version 2.7.0 : https://bitbucket.org/iBotPeaches/apktool/downloads/ 3 - Now run the command: |
@Alawsi What is the solution for m1 mac? |
definitely delete old framework file and use aapt1 works for build but app will crashes before login. Probably instagram added some new things... |
it's definitely work for latest alpha bases on instafel too |
Information
apktool -version
) - 2.5.1Stacktrace/Logcat
Sample of layouts.xml:
...
<item type="layout" name="guide_grid_row">L|46188|5C4|BCF2</item>
<item type="layout" name="guide_ufi_bar">L|4674C|F90|E5CC</item>
<item type="layout" name="gumstick">L|476DC|A50|AC5A</item>
...
Steps to Reproduce
apktool d ig-196-apkpure.apk
apktool b --use-aapt2 -o out.apk ig-196-apkpure
Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(
.apks
that live in/system/framework
or/system/priv-app
)APK
armeabi-v7a / Android 5.0+
Questions to ask before submission
apktool d
,apktool b
without changing anything? yesThe text was updated successfully, but these errors were encountered: