BurgerZ / jBART

Crossplatform (java based) Android ROMs Tools.
http://burgerz.pro/
101 stars 114 forks source link

Update for cortesy API28 (Android Pie) #223

Open ale8530 opened 5 years ago

ale8530 commented 5 years ago

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 commented 5 years ago

Confirmed

BurgerZ commented 5 years ago

Accepted.

Does Jbart handle "API" when using hex?

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

ale8530 commented 5 years ago

Thanks

BurgerZ commented 5 years ago

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 commented 5 years ago

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.

BurgerZ commented 5 years ago

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

ale8530 commented 5 years ago

:+1: :)