jBART icon indicating copy to clipboard operation
jBART copied to clipboard

Update for cortesy API28 (Android Pie)

Open ale8530 opened this issue 6 years ago • 7 comments

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?

ale8530 avatar Sep 11 '18 21:09 ale8530

Confirmed

vagyula1 avatar Sep 11 '18 21:09 vagyula1

Accepted.

Does Jbart handle "API" when using hex?

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

BurgerZ avatar Sep 17 '18 10:09 BurgerZ

Thanks

ale8530 avatar Sep 17 '18 10:09 ale8530

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.

BurgerZ avatar Sep 17 '18 11:09 BurgerZ

https://github.com/JesusFreke/smali/issues/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.

ale8530 avatar Sep 17 '18 11:09 ale8530

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

BurgerZ avatar Sep 17 '18 15:09 BurgerZ

:+1: :)

ale8530 avatar Sep 17 '18 16:09 ale8530