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

error pro.burgerz.bart.core.exceptions.CompileException: brut.androlib.e: brut.b.c: apktool.yml #94

Closed
igobig opened this issue May 30, 2015 · 15 comments

Comments

@igobig
Copy link

igobig commented May 30, 2015

Process log:
[30.05.2015 18:54:14] I: SATURDAY 30.05.2015 18:54:14
[30.05.2015 18:54:14] I: Copyright: 2012-2014, Andrei Zhukouski (BurgerZ@xda)
[30.05.2015 18:54:14] I: www: http://burgerz.pro
[30.05.2015 18:54:14] I: Email: az.burgerz@gmail.com
[30.05.2015 18:54:14] I: All Rights Reserved
[30.05.2015 18:54:14] I: **************************************************
[30.05.2015 18:54:14] I: Welcome to jBART v2a build 20150330.01
[30.05.2015 18:54:14] I: **************************************************
[30.05.2015 18:54:14] I: Apkengine version: Apktool 2.5.4-BZ
[30.05.2015 18:54:14] I: Java version: 1.8.0_45
[30.05.2015 18:54:14] I: OS name: Windows 8.1
[30.05.2015 18:54:14] I: OS version: 6.3
[30.05.2015 18:54:14] I: OS arch: 64 bit
[30.05.2015 18:54:14] I: Home directory: C:\JBart Tools\jBART-master Last\jBART-master
[30.05.2015 18:54:14] I:
[30.05.2015 18:54:19] W: Empty config: repo.miui.v6.extra.conf
[30.05.2015 18:54:19] W: Empty config: repo.miui.v6.patch.conf
[30.05.2015 18:54:20] W: Empty config: repo.miui.v6.extra.conf
[30.05.2015 18:54:20] W: Empty config: repo.miui.v6.patch.conf
[30.05.2015 18:54:45] I: Loaded JSON patcher config: C:\JBart Tools\jBART-master Last\jBART-master\data\patches\miui\smali\thememanager_method.conf
[30.05.2015 18:54:45] I: Loaded JSON patcher config: C:\JBart Tools\jBART-master Last\jBART-master\data\patches\miui\smali\updater_method.conf
[30.05.2015 18:54:45] I: Loaded JSON patcher config: C:\JBart Tools\jBART-master Last\jBART-master\data\patches\miui\manifest\manifest_patches.conf
[30.05.2015 18:54:45] I: ******** Installing frameworks ********
[30.05.2015 18:54:45] I: **** Decompiling Settings.apk ****
[30.05.2015 18:54:45] I: Loading resource table...
[30.05.2015 18:54:45] I: Decoding Shared Library (miui), pkgId: 8
[30.05.2015 18:54:45] I: Decoding Shared Library (android.miui), pkgId: 9
[30.05.2015 18:54:45] I: Decoding AndroidManifest.xml with resources...
[30.05.2015 18:54:46] I: Loading resource table from file: C:\JBart Tools\jBART-master Last\jBART-master\data\frameworks\1.apk
[30.05.2015 18:54:46] I: Loading resource table from file: C:\JBart Tools\jBART-master Last\jBART-master\data\frameworks\8.apk
[30.05.2015 18:54:46] W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103047f
[30.05.2015 18:54:46] W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030480
[30.05.2015 18:54:46] I: Regular manifest package...
[30.05.2015 18:54:47] I: Decoding file-resources...
[30.05.2015 18:54:47] I: Loading resource table from file: C:\JBart Tools\jBART-master Last\jBART-master\data\frameworks\9.apk
[30.05.2015 18:54:48] W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106012d
[30.05.2015 18:54:48] W: Could not decode attr value, using undecoded value instead: ns=android, name=tint, value=0x010600e5
[30.05.2015 18:54:48] W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106012d
[30.05.2015 18:54:48] W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106012d
[30.05.2015 18:54:48] W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106012d
[30.05.2015 18:54:49] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000001
[30.05.2015 18:54:50] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000001
[30.05.2015 18:54:50] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000001
[30.05.2015 18:54:51] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000401
[30.05.2015 18:54:52] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000401
[30.05.2015 18:54:52] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000401
[30.05.2015 18:54:52] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000401
[30.05.2015 18:54:52] W: Could not decode attr value, using undecoded value instead: ns=android, name=inset, value=0x00000401
[30.05.2015 18:54:53] W: Could not decode attr value, using undecoded value instead: ns=android, name=summary, value=0x01040698
[30.05.2015 18:54:54] W: Could not decode attr value, using undecoded value instead: ns=android, name=tint, value=0x010600e5
[30.05.2015 18:54:54] I: Decoding values / XMLs...
[30.05.2015 18:54:54] I: ******** Decompiling finished ********
[30.05.2015 18:54:54] I: Time elapsed: 0h 0m 9s 15ms
[30.05.2015 18:55:08] I: ******** Compiling file started ********
[30.05.2015 18:55:08] I: **** Compiling Settings.apk ****
[30.05.2015 18:55:08] S: pro.burgerz.bart.core.exceptions.CompileException: brut.androlib.e: brut.b.c: apktool.yml
[30.05.2015 18:55:08] I: Time elapsed: 0h 0m 0s 31ms

apk file
https://drive.google.com/file/d/0B3QXBNjbkCgrRVJfMW1QaTBlS2s/view?usp=sharing

@BurgerZ
Copy link
Owner

BurgerZ commented May 31, 2015

You need to install all MIUI frameworks:

system/framework:
framework-res.apk
framework-ext-res.apk
system/app:
miui.apk
MiuiFramework.apk

To do it, put all these files from rom to the:

jbart_dir/data/frameworks_single

And check "Install frameworks (...)" option at the Single File section of the jbart.

@BurgerZ
Copy link
Owner

BurgerZ commented May 31, 2015

I'm closing this as not confirmed.

@igobig
Copy link
Author

igobig commented May 31, 2015

@BurgerZ thanks for guide issue fix it.

@pedro77
Copy link

pedro77 commented Aug 22, 2015

I have the same problem with Email.apk, I putted files:

  • framework-miui-res.apk
  • framework-res.apk
  • mediatek-res.apk
  • MiuiSystemUI.apk

in data/framework_single directory, but the problem persist.

[22.08.2015 15:30:55] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/smali/thememanager_method.conf
[22.08.2015 15:30:55] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/smali/updater_method.conf
[22.08.2015 15:30:55] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/manifest/manifest_patches.conf
[22.08.2015 15:30:55] I: ******** Installing frameworks ********
[22.08.2015 15:30:55] I: Framework mediatek-res.apk installed to: /home/pedro/jbart/data/frameworks/2.apk
[22.08.2015 15:30:55] I: Framework framework-miui-res.apk installed to: /home/pedro/jbart/data/frameworks/6.apk
[22.08.2015 15:30:55] I: Framework framework-res.apk installed to: /home/pedro/jbart/data/frameworks/1.apk
[22.08.2015 15:30:55] I: Framework MiuiSystemUI.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:30:56] I: **** Decompiling Email.apk ****
[22.08.2015 15:30:56] I: Loading resource table...
[22.08.2015 15:30:56] I: Decoding AndroidManifest.xml with resources...
[22.08.2015 15:30:56] I: Loading resource table from file: /home/pedro/jbart/data/frameworks/1.apk
[22.08.2015 15:30:56] I: Regular manifest package...
[22.08.2015 15:30:56] I: Decoding file-resources...
[Loaded java.util.HashMap$1 from /usr/lib/jvm/java-7-oracle/jre/lib/rt.jar]
[22.08.2015 15:30:56] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_maxHeight, value=0x00004001
[22.08.2015 15:30:56] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_minHeight, value=0x00004001
[22.08.2015 15:30:56] I: Loading resource table from file: /home/pedro/jbart/data/frameworks/6.apk
[22.08.2015 15:30:57] I: Decoding values / XMLs...
[22.08.2015 15:30:57] I: ******** Decompiling finished ********
[22.08.2015 15:30:57] I: Time elapsed: 0h 0m 1s 366ms

[22.08.2015 15:31:02] I: ******** Compiling file started ********
[22.08.2015 15:31:02] I: **** Compiling Email.apk ****
[22.08.2015 15:31:02] S: pro.burgerz.bart.core.exceptions.CompileException: brut.androlib.e: brut.b.c: apktool.yml
[22.08.2015 15:31:02] I: Time elapsed: 0h 0m 0s 64ms

In my rom files:

  • framework-ext-res.apk
  • miui.apk
  • MiuiFramework.apk

aren't present, so for desperation I tried to put all apk and jar in framework_single directory, nothing.

[22.08.2015 15:38:33] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/smali/thememanager_method.conf
[22.08.2015 15:38:33] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/smali/updater_method.conf
[22.08.2015 15:38:33] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/manifest/manifest_patches.conf
[22.08.2015 15:38:33] I: ******** Installing frameworks ********
[22.08.2015 15:38:33] I: Framework mediatek-res.apk installed to: /home/pedro/jbart/data/frameworks/2.apk
[22.08.2015 15:38:33] I: Framework DownloadProviderUi.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework BarcodeScanner.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework MTKTweak.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework HoloSpiralWallpaper.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] W: Can't find resources.arsc file
[22.08.2015 15:38:33] I: Framework DefaultContainerService.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework ApplicationsProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework SoundRecorder.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework KeyChain.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework SmsReg.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework framework-miui-res.apk installed to: /home/pedro/jbart/data/frameworks/6.apk
[22.08.2015 15:38:33] I: Framework MagicSmokeWallpapers.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:33] I: Framework PackageInstaller.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework framework-res.apk installed to: /home/pedro/jbart/data/frameworks/1.apk
[22.08.2015 15:38:34] I: Framework VoiceAssist.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiWallpaper.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework FusedLocation.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework DataHubProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework EngineerModeSim.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework TelephonyProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiLinkService.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework PhaseBeam.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework VpnDialogs.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MediaProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework jjmms.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Browser.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Backup.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Whetstone.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework BackupRestoreConfirmation.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework YellowPage.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework ChromeBookmarksSyncAdapter.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework PhotoTable.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Camera.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework LBESEC_MIUI.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework PaymentService.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework LiveWallpapers.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework CloudService.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiuiGallery.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiAssistant.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Notes.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework CertInstaller.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Userbook.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework YGPS.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Calendar.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework ThemeManager.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework UserbookProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiuiCompass.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] W: Can't find resources.arsc file
[22.08.2015 15:38:34] I: Framework Calculator.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework HTMLViewer.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MtkBt.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework PicoTts.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework NetworkAssistant2.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework DeviceRegister.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework FactoryMode.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework NoiseField.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Provision.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework ContactsProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Weather.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework DrmProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework GuardProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Mms.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MusicFX.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework O2O.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework GoogleServicesFramework.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Settings.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework BasicDreams.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiuiSystemUI.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework NetworkLocation.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Contacts.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiuiVideo.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Galaxy4.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework XiaomiServiceFramework.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework SettingsProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework LocationEM.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework GoogleLoginService.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework QuickSearchBox.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework VisualizationWallpapers.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Music.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework DeskClock.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework BaiduNetworkLocation.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework UserDictionaryProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework TrafficControl.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework GoogleCalendarSyncAdapter.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Mipay.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Email.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework GooglePinyin.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework LiveWallpapersPicker.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework FileExplorer.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework CellConnService.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework DownloadProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework AntiSpam.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiuiKeyboard.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework CalendarProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework KingSoftCleaner.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Stk1.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[Unloading class sun.reflect.GeneratedConstructorAccessor3]
[22.08.2015 15:38:34] I: Framework Phonesky.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework FM.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework GoogleContactsSyncAdapter.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework jjhome.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] W: Can't find resources.arsc file
[22.08.2015 15:38:34] W: Can't find resources.arsc file
[22.08.2015 15:38:34] I: Framework InputDevices.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework EngineerMode.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework WeatherProvider.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework wt_version_query.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework MiuiHome.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: Framework Phone.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[22.08.2015 15:38:34] I: **** Decompiling Email.apk ****
[22.08.2015 15:38:35] I: Loading resource table...
[22.08.2015 15:38:35] I: Decoding AndroidManifest.xml with resources...
[22.08.2015 15:38:35] I: Loading resource table from file: /home/pedro/jbart/data/frameworks/1.apk
[22.08.2015 15:38:35] I: Regular manifest package...
[22.08.2015 15:38:35] I: Decoding file-resources...
[22.08.2015 15:38:35] I: Loading resource table from file: /home/pedro/jbart/data/frameworks/6.apk
[22.08.2015 15:38:35] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_maxHeight, value=0x00004001
[22.08.2015 15:38:35] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_minHeight, value=0x00004001
[22.08.2015 15:38:35] I: Decoding values / XMLs...
[22.08.2015 15:38:36] I: ******** Decompiling finished ********
[22.08.2015 15:38:36] I: Time elapsed: 0h 0m 2s 233ms

[22.08.2015 15:39:02] I: ******** Compiling file started ********
[22.08.2015 15:39:02] I: **** Compiling Email.apk ****
[22.08.2015 15:39:02] S: pro.burgerz.bart.core.exceptions.CompileException: brut.androlib.e: brut.b.c: apktool.yml
[22.08.2015 15:39:02] I: Time elapsed: 0h 0m 0s 58ms

For this test I used jBART v2a, JAVA 64bit 1.7.0_80 on a Linux 64bit, the MIUI version is JHBCNBL30.0, the rom is MIUI_30_Newman_K1_RR.zip downloaded from 4PDA forum (post, link).

What's wrong?

@BurgerZ
Copy link
Owner

BurgerZ commented Aug 22, 2015

You have not installed framework-res.apk (that one is needed - it's id is 1)

@pedro77
Copy link

pedro77 commented Aug 23, 2015

I don't understand... framework-res.apk is in framework_single directory and jBART find it when decompiling

[23.08.2015 10:18:46] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/smali/thememanager_method.conf
[23.08.2015 10:18:46] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/smali/updater_method.conf
[23.08.2015 10:18:46] I: Loaded JSON patcher config: /home/pedro/jbart/data/patches/miui/manifest/manifest_patches.conf
[23.08.2015 10:18:46] I: ******** Installing frameworks ********
[23.08.2015 10:18:46] I: Framework mediatek-res.apk installed to: /home/pedro/jbart/data/frameworks/2.apk
[23.08.2015 10:18:46] I: Framework framework-miui-res.apk installed to: /home/pedro/jbart/data/frameworks/6.apk
[23.08.2015 10:18:46] I: Framework framework-res.apk installed to: /home/pedro/jbart/data/frameworks/1.apk
[23.08.2015 10:18:46] I: Framework MiuiSystemUI.apk installed to: /home/pedro/jbart/data/frameworks/127.apk
[23.08.2015 10:18:46] I: **** Decompiling Email.apk ****
[23.08.2015 10:18:46] I: Loading resource table...
[23.08.2015 10:18:47] I: Decoding AndroidManifest.xml with resources...
[23.08.2015 10:18:47] I: Loading resource table from file: /home/pedro/jbart/data/frameworks/1.apk
[23.08.2015 10:18:47] I: Regular manifest package...
[23.08.2015 10:18:47] I: Decoding file-resources...
[23.08.2015 10:18:48] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_maxHeight, value=0x00004001
[23.08.2015 10:18:48] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_minHeight, value=0x00004001
[23.08.2015 10:18:48] I: Loading resource table from file: /home/pedro/jbart/data/frameworks/6.apk
[23.08.2015 10:18:48] I: Decoding values / XMLs...
[23.08.2015 10:18:49] I: ******** Decompiling finished ********
[23.08.2015 10:18:49] I: Time elapsed: 0h 0m 2s 620ms

But when compiling I get the error

[23.08.2015 10:23:53] I: ******** Compiling file started ********
[23.08.2015 10:23:53] I: **** Compiling Email.apk ****
[23.08.2015 10:23:53] S: pro.burgerz.bart.core.exceptions.CompileException: brut.androlib.e: brut.b.c: apktool.yml
[23.08.2015 10:23:53] I: Time elapsed: 0h 0m 0s 72ms

@pedro77
Copy link

pedro77 commented Aug 26, 2015

Others possibility?

@BurgerZ
Copy link
Owner

BurgerZ commented Aug 26, 2015

Could you provide a link to this apk and all framework apks?

@pedro77
Copy link

pedro77 commented Aug 26, 2015

@BurgerZ
Copy link
Owner

BurgerZ commented Aug 26, 2015

I've just downloaded the full rom, moved framework-res.apk, framework-miui-res.apk and mediatek-res.apk to the jbart/data/frameworks_single directory. At the Single File pane I choose "Install frameworks...." option and that's the result:

[26.08.2015 15:15:23.812] I: ******** Installing frameworks ********
[26.08.2015 15:15:24.297] I: Framework framework-miui-res.apk installed to: /home/burgerz/jbart_miuipro/data/frameworks/6.apk
[26.08.2015 15:15:24.562] I: Framework framework-res.apk installed to: /home/burgerz/jbart_miuipro/data/frameworks/1.apk
[26.08.2015 15:15:24.687] I: Framework mediatek-res.apk installed to: /home/burgerz/jbart_miuipro/data/frameworks/2.apk
[26.08.2015 15:15:25.739] I: **** Decompiling Email.apk ****
[26.08.2015 15:15:26.566] I: Loading resource table...
[26.08.2015 15:15:26.597] I: Decoding AndroidManifest.xml with resources...
[26.08.2015 15:15:26.816] I: Loading resource table from file: /home/burgerz/jbart_miuipro/data/frameworks/1.apk
[26.08.2015 15:15:26.910] I: Regular manifest package...
[26.08.2015 15:15:27.035] I: Decoding file-resources...
[26.08.2015 15:15:27.934] I: Loading resource table from file: /home/burgerz/jbart_miuipro/data/frameworks/6.apk
[26.08.2015 15:15:28.721] I: Decoding values */* XMLs...
[26.08.2015 15:15:28.893] I: Copying raw classes.dex file...
[26.08.2015 15:15:28.971] I: Copying assets and libs...
[26.08.2015 15:15:28.987] I: Copying unknown files...
[26.08.2015 15:15:29.018] I: Copying original files...
[26.08.2015 15:15:29.065] I: ******** Decompiling finished ********
[26.08.2015 15:15:29.065] I: Time elapsed: 0h 0m 5s 269ms

I have no errors.

@pedro77
Copy link

pedro77 commented Aug 26, 2015

Compile, the error is when compile

@BurgerZ
Copy link
Owner

BurgerZ commented Aug 26, 2015

No!
You had errors with DEcompile (so apktool.yml file was not created and the result - compile errors).
I compiled this apk without any errors:

[26.08.2015 16:32:48.941] I: ******** Compiling file started ********
[26.08.2015 16:32:48.972] I: **** Compiling Email.apk ****
[26.08.2015 16:32:49.081] I: Copying /home/burgerz/jbart_miuipro/Email.apk.bzprj/decompiled/Email.apk classes.dex file...
[26.08.2015 16:32:49.769] I: Building resources...
[26.08.2015 16:32:59.014] I: Copy original files...
[26.08.2015 16:32:59.014] I: Copy AndroidManifest.xml...
[26.08.2015 16:32:59.030] I: Copy META-INF...
[26.08.2015 16:32:59.046] I: Building apk file...
[26.08.2015 16:33:03.374] I: Copying unknown files/dir...
[26.08.2015 16:33:04.244] I: ******** Compiling finished ********
[26.08.2015 16:33:04.244] I: Time elapsed: 0h 0m 15s 303ms

@pedro77
Copy link

pedro77 commented Aug 26, 2015

Ok, problem born in the decompiling process, but... what is the cause?
In my decompilation I had only 2 warnings:

[23.08.2015 10:18:48] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_maxHeight, value=0x00004001
[23.08.2015 10:18:48] W: Could not decode attr value, using undecoded value instead: ns=internal, name=layout_minHeight, value=0x00004001

Can be here the problem?

@pedro77
Copy link

pedro77 commented Sep 1, 2015

I solved my problem using apktool (without understand it):

pedro@pc-pedro:~/tmp/email$ ls -lh
totale 22M
-rw-rw-r-- 1 pedro pedro 6,0M ago 26 22:26 Email.apk
-rw-rw-r-- 1 pedro pedro 4,6M ago 26 22:28 framework-miui-res.apk
-rw-rw-r-- 1 pedro pedro 9,6M ago 26 22:28 framework-res.apk
-rw-rw-r-- 1 pedro pedro 1,2M ago 26 22:28 mediatek-res.apk

set 01, 2015 10:50:55 PM brut.androlib.res.AndrolibResources installFramework
INFORMAZIONI: Framework installed to: /home/pedro/apktool/framework/1.apk
pedro@pc-pedro:~/tmp/email$ apktool -v if framework-miui-res.apk 
set 01, 2015 10:51:13 PM brut.androlib.res.AndrolibResources installFramework
INFORMAZIONI: Framework installed to: /home/pedro/apktool/framework/6.apk
pedro@pc-pedro:~/tmp/email$ apktool -v if mediatek-res.apk 
set 01, 2015 10:51:22 PM brut.androlib.res.AndrolibResources installFramework
INFORMAZIONI: Framework installed to: /home/pedro/apktool/framework/2.apk

pedro@pc-pedro:~/tmp/email$ ls -lh ~/apktool/framework/
totale 1,9M
-rw-rw-r-- 1 pedro pedro 1,3M set  1 22:50 1.apk
-rw-rw-r-- 1 pedro pedro 132K set  1 22:51 2.apk
-rw-rw-r-- 1 pedro pedro 432K set  1 22:51 6.apk

pedro@pc-pedro:~/tmp/email$ apktool d -d -f Email.apk
I: Using Apktool 2.0.1 on Email.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/pedro/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: /home/pedro/apktool/framework/6.apk
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

pedro@pc-pedro:~/tmp/email$ ls -lh
totale 22M
drwxrwxr-x 7 pedro pedro 4,0K set  1 22:53 Email
-rw-rw-r-- 1 pedro pedro 6,0M ago 26 22:26 Email.apk
-rw-rw-r-- 1 pedro pedro 4,6M ago 26 22:28 framework-miui-res.apk
-rw-rw-r-- 1 pedro pedro 9,6M ago 26 22:28 framework-res.apk
-rw-rw-r-- 1 pedro pedro 1,2M ago 26 22:28 mediatek-res.apk

pedro@pc-pedro:~/tmp/email$ ls -lha Email
totale 64K
drwxrwxr-x   7 pedro pedro 4,0K set  1 22:53 .
drwxrwxr-x   4 pedro pedro 4,0K set  1 22:53 ..
-rw-rw-r--   1 pedro pedro  32K set  1 22:53 AndroidManifest.xml
-rw-rw-r--   1 pedro pedro  991 set  1 22:53 apktool.yml
drwxrwxr-x   3 pedro pedro 4,0K set  1 22:53 assets
drwxrwxr-x   3 pedro pedro 4,0K set  1 22:53 original
drwxrwxr-x 111 pedro pedro 4,0K set  1 22:53 res
drwxrwxr-x  10 pedro pedro 4,0K set  1 22:53 smali
drwxrwxr-x   6 pedro pedro 4,0K set  1 22:53 unknown

Now I have a question, what did jBart?

pedro@pc-pedro:~$ ls -lh ~/jbart/Email.apk.bzprj/decompiled/Email.apk/
totale 36K
-rw-rw-r--   1 pedro pedro  32K set  1 22:57 AndroidManifest.xml
drwxrwxr-x 111 pedro pedro 4,0K set  1 22:57 res

So, I copied the content of Email folder under jBART Email.apk.bzprj, nothing... but, when I do the same under Email.apk folder under MIUI_30_Newman_K1_RR.zip.bzprj (jBART ROM project) and recompile full ROM I got the Email.apk package and manually install it in my phone

@pedro77
Copy link

pedro77 commented Sep 1, 2015

Thank you for help me to find the right direction!

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