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

Update for cortesy API28 (Android Pie) #223

Open
ale8530 opened this issue Sep 11, 2018 · 7 comments
Open

Update for cortesy API28 (Android Pie) #223

ale8530 opened this issue Sep 11, 2018 · 7 comments

Comments

@ale8530
Copy link
Contributor

ale8530 commented Sep 11, 2018

Last version jbart not working with framework.jar on android Pie.

framework.jar

When use baksmali/smali 2.2.5 not recompile classes2.dex because not possibile set api 28 on process baksmali/smali

Log error on jbart

[11.09.2018 22:58:22] INFO: Smaling classes2.dex... [11.09.2018 22:58:34] WARNING: MIUI_developer/jBART-polaris_9.0/projects/jbart_8.9.7_polaris_9.0_V10_549955dacb_deodexed.zip.bzprj/baseROM/system/framework/smali_classes2/android/widget/RemoteViews$ReflectionAction.smali[567,4] null [11.09.2018 22:58:34] WARNING: MIUI_developer/jBART-polaris_9.0/projects/jbart_8.9.7_polaris_9.0_V10_549955dacb_deodexed.zip.bzprj/baseROM/system/framework/smali_classes2/android/widget/RemoteViews$ViewContentNavigation.smali[126,4] null [11.09.2018 22:58:35] INFO: Zipping classes2.dex... [11.09.2018 22:58:35] INFO: File classes2.dex was not packed (/home/ale8530/MIUI_developer/jBART-polaris_9.0/projects/jbart_8.9.7_polaris_9.0_V10_549955dacb_deodexed.zip.bzprj/baseROM/system/framework/classes2.dex)

For resolve i have try

Decompile
java -jar baksmali.jar disassemble -a 28 classes2.dex (Extract all the content inside the out folder)
Recompile
java -jar smali.jar assemble -a 28 out -o classes2.dex (Create out.dex without problem if not set api i have same error jbart)

Does Jbart handle "API" when using hex?

@vagyula1
Copy link
Contributor

vagyula1 commented Sep 11, 2018

Confirmed

@BurgerZ
Copy link
Owner

BurgerZ commented Sep 17, 2018

Accepted.

Does Jbart handle "API" when using hex?

No. I'll check what changed in smali source code and add fixes to jbart.

@ale8530
Copy link
Contributor Author

ale8530 commented Sep 17, 2018

Thanks

@BurgerZ
Copy link
Owner

BurgerZ commented Sep 17, 2018

Decompile
java -jar baksmali.jar disassemble -a 28 classes2.dex (Extract all the content inside the out folder)
Recompile
java -jar smali.jar assemble -a 28 out -o classes2.dex (Create out.dex without problem if not set api i have same error jbart)

Well, baksmali.jar doesn't have "a" (api) option, but smali.jar does. I'll add api to the smali and let you know.

@ale8530
Copy link
Contributor Author

ale8530 commented Sep 17, 2018

JesusFreke/smali#647

Reply jesus-->Please don't attach images of errors/logs. Text is so much more useful than an image :p

Based on the info in the linked bug, it looks like you need to specify the appropriate api level when disassembling with baksmali.

@BurgerZ
Copy link
Owner

BurgerZ commented Sep 17, 2018

Thanks, I was looking for an api option here, but didn't find this option. But then I found it here :)

@ale8530
Copy link
Contributor Author

ale8530 commented Sep 17, 2018

👍 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants