[HELP] De- and Recompile Freebuds 2 App for Translation - Huawei Mate 20 Pro Themes, Apps, and Mods

Hello everyone,
i was planning to translate the Freebuds 2 Assistant app since its only avaidable in chinese.
I was able to decompile it using APKTools but not have issue to compile it back so i can install it.
The App can be downloaded here: http://appstore.huawei.com/app/C100420969
If anyone who did this already could help me with the recompilation, it would be much appriciated.
My Freebuds 2 Pro arrive next week and i wanted to translate the app to make the usage easier.
Hopefully it would help others too.
Many thanks in advance and happy new year
EDIT:
This is what i get if i try to recompile the apk without any modifications:
c:\Windows>apktool b huawei
I: Using Apktool 2.3.4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (C:\Users\********\AppData\Local\apktool\framework), using C:\Users\********\AppData\Local\Temp\ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: ERROR: 9-patch image c:\Windows\huawei\res\drawable-xxxhdpi\download_button.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.
W: ERROR: Failure processing PNG image c:\Windows\huawei\res\drawable-xxxhdpi\download_button.9.png
W: ERROR: 9-patch image c:\Windows\huawei\res\drawable-xxxhdpi\button_background.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.
W: ERROR: Failure processing PNG image c:\Windows\huawei\res\drawable-xxxhdpi\button_background.9.png
W: ERROR: 9-patch image c:\Windows\huawei\res\drawable\schedule.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.
W: ERROR: Failure processing PNG image c:\Windows\huawei\res\drawable\schedule.9.png
W: ERROR: 9-patch image c:\Windows\huawei\res\drawable\schedule_bg.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.
W: ERROR: Failure processing PNG image c:\Windows\huawei\res\drawable\schedule_bg.9.png
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\FRONTO~1\AppData\Local\Temp\brut_util_Jar_8797507990411023629.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 27, --version-code, 1, --version-name, 1.0.0.106, --no-version-vectors, -F, C:\Users\FRONTO~1\AppData\Local\Temp\APKTOOL4926485481336695816.tmp, -0, arsc, -0, assets/introduction_en.files/image001.png, -0, assets/introduction_en.files/image002.png, -0, assets/introduction_en.files/image003.png, -0, assets/introduction_en.files/image004.png, -0, assets/introduction_en.files/image005.png, -0, assets/introduction_en.files/image006.png, -0, assets/introduction_en.files/image007.png, -0, assets/introduction_en.files/image008.png, -0, assets/introduction_en.files/image009.png, -0, assets/introduction_en.files/image010.png, -0, assets/introduction_en.files/image011.png, -0, assets/introduction_en.files/image012.png, -0, assets/introduction_en_standard.files/introduction_en_standard1247.png, -0, assets/introduction_en_standard.files/introduction_en_standard1360.png, -0, assets/introduction_en_standard.files/introduction_en_standard26.png, -0, assets/introduction_en_standard.files/introduction_en_standard3244.png, -0, assets/introduction_en_standard.files/introduction_en_standard37.png, -0, assets/introduction_en_standard.files/introduction_en_standard567.png, -0, res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-mdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, gif, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/button_background.9.png, -0, res/drawable-xxxhdpi-v4/download_button.9.png, -0, res/drawable-xxxhdpi-v4/en_group.9.png, -0, jpg, -0, res/drawable-xxxhdpi-v4/toast.9.png, -0, res/drawable/base_action_bar_shadow.9.png, -0, res/drawable/schedule.9.png, -0, res/drawable/schedule_bg.9.png, -0, res/drawable/waiting_number.9.png, -0, arsc, -I, C:\Users\FRONTO~1\AppData\Local\Temp\1.apk, -S, c:\Windows\huawei\res, -M, c:\Windows\huawei\AndroidManifest.xml]
EDIT 2:
I tried now multiple apks and all of them worked just fine.
I have really no idea why this one keep failing.
I tried to decompile it (this worked) and then just build again and i keep getting this error.
EDIT2:
PROBLEM SOLVED! APKTool did some mess on the 9.png compression. Fixed it and the translation is almost done! Whooop

Erm.... I know Chinese... In fact I am Chinese. Do ask me if you need any translation?

Koong1 said:
Erm.... I know Chinese... In fact I am Chinese. Do ask me if you need any translation?
Click to expand...
Click to collapse
Thanks a lot. Will definitely do.
ATM I working on fixing the length of the translations since Chinese use symbols for a sentence then we do and some parts don't support super long sentences.
Once done, I can send you mine and the original translation and you can look over it.
[emoji16]
Sent from my LYA-L29 using Tapatalk

MirageBlader said:
Thanks a lot. Will definitely do.
ATM I working on fixing the length of the translations since Chinese use symbols for a sentence then we do and some parts don't support super long sentences.
Once done, I can send you mine and the original translation and you can look over it.
[emoji16]
Sent from my LYA-L29 using Tapatalk
Click to expand...
Click to collapse
Fantastic, just got mine today.
Can you share us translated app once it's completed?

tommisjtp said:
Fantastic, just got mine today.
Can you share us translated app once it's completed?
Click to expand...
Click to collapse
Yes, that's the plan. I will have to wait until mine arrive so I can test everything and make sure it works.
Sent from my Mate 20 Pro using Tapatalk

MirageBlader said:
Thanks a lot. Will definitely do.
ATM I working on fixing the length of the translations since Chinese use symbols for a sentence then we do and some parts don't support super long sentences.
Once done, I can send you mine and the original translation and you can look over it.
[emoji16]
Sent from my LYA-L29 using Tapatalk
Click to expand...
Click to collapse
Fantastic, can't wait!

Here is a screenshot of how it will look like.
I fixed now the fonts and all graphics are fixed. APKTool messed up a lot of the .9.png
Also did a full translation but I have to see it in the app. Can't go any further because my Freebuds 2 are not yet delivered.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Mate 20 Pro using Tapatalk

My Freebuds 2 are scheduled to be delivered next Thursday.
I will post the translated APK next weekend.
I renamed it from Freebuds 2 to Freebuds 2 Companion and also changed the version number. So it can be updated without overwriting your settings.
The rest of the app is 100% same.
Sent from my Mate 20 Pro using Tapatalk

Looking forward to it. But what does this app exactly do, apart from a quickstart guide? Does it include some sound options?
Asking this because EMUI itself seems to already have some sort of native support: once your Freebuds 2 are connected, you can access a config page where it's possible to set up gestures and, apparently, to update the firmware (there's an option to automatically download updates when connected to WiFi).

Fafner76 said:
Looking forward to it. But what does this app exactly do, apart from a quickstart guide? Does it include some sound options?
Asking this because EMUI itself seems to already have some sort of native support: once your Freebuds 2 are connected, you can access a config page where it's possible to set up gestures and, apparently, to update the firmware (there's an option to automatically download updates when connected to WiFi).
Click to expand...
Click to collapse
Oh wow, I didn't know that.
Well, it gives you options for Bone ID setup.
Update firmware and assign actions to the taps. Settings for noise cancellation and some other options.
I am checking atm the possibility to replace some action like weepay and alipay, which are not used outside of china, with Google pay or other stuff.
Also support for Google assistant and such.
Maybe it's not even needed. But can't say since mine didn't arrived yet.
But thank you for the information.
EDIT: also not sure if this page pops up once you open the box. There is a page on the phone screen, which shows up as a overlay showing battery and some stats once the box is open. Not sure if this is also natively.
Sent from my Mate 20 Pro using Tapatalk

MirageBlader said:
Oh wow, I didn't know that.
Well, it gives you options for Bone ID setup.
Update firmware and assign actions to the taps. Settings for noise cancellation and some other options.
I am checking atm the possibility to replace some action like weepay and alipay, which are not used outside of china, with Google pay or other stuff.
Also support for Google assistant and such.
Maybe it's not even needed. But can't say since mine didn't arrived yet.
But thank you for the information.
EDIT: also not sure if this page pops up once you open the box. There is a page on the phone screen, which shows up as a overlay showing battery and some stats once the box is open. Not sure if this is also natively.
Sent from my Mate 20 Pro using Tapatalk
Click to expand...
Click to collapse
No noise cancellation stuff in the native options, and I couldn't find any payment related stuff so far either. Thus I guess it's still going to be useful, at least for the noise cancellation options.

Well, even if it's becoming useless or Huawei release a English version. It is "why not".
Sent from my Mate 20 Pro using Tapatalk

Payment options should only work with wechat pay and alipay and Huawei pay for now. I have don't think it supports Google pay or any other payments apps.
OP. You still need to read through the translations against the original Chinese version?

Koong1 said:
Payment options should only work with wechat pay and alipay and Huawei pay for now. I have don't think it supports Google pay or any other payments apps.
OP. You still need to read through the translations against the original Chinese version?
Click to expand...
Click to collapse
Well, me and a friend investigating if we can modify this. No results yet since we both working and been a bit busy.
Yes please, I will upload the English and Chinese string.xml later when I got home.
Just check if I made any critical mistakes. Also keep in mind that some stuff needs to be shorter then chinese. Like the User Agreement.
Sent from my Mate 20 Pro using Tapatalk

嗯哼

Freebuds 2 Pro
Dear all,
I just received my earbuds yesterday. Was pretty excited over it but ran into some problems/issues.
1) How do you know which is the left earpiece and which is the right earpiece? Should the "hole" in the earpiece points towards or away from your ear canal/ ear drum?
2) Is there any software that allows us to change the equaliser? Or have more options/settings? The default software for freebuds 2 doesn't seem to have much options.
3) The case seems to be a fingerprint magnet. Is there a recommended casing for it?
Thank you so much!
Den

superio said:
Dear all,
I just received my earbuds yesterday. Was pretty excited over it but ran into some problems/issues.
1) How do you know which is the left earpiece and which is the right earpiece? Should the "hole" in the earpiece points towards or away from your ear canal/ ear drum?
2) Is there any software that allows us to change the equaliser? Or have more options/settings? The default software for freebuds 2 doesn't seem to have much options.
3) The case seems to be a fingerprint magnet. Is there a recommended casing for it?
Thank you so much!
Den
Click to expand...
Click to collapse
1. No idea matey didn't have mine but some people here got theirs and can answer this for sure.
2. Yes, as far I know you can adjust this in the settings and it seems the app has also settings for this.
3. Measure the size of the box. I am pretty sure the size is the same as the Apple ones. All other stuff like silicon add-ons for bigger ears fits as well. Maybe there is something on Amazon or AliExpress.
Hope I could help a bit.
Sent from my Mate 20 Pro using Tapatalk

Hm where is this App now ?
How do you know which is the left earpiece and which is the right earpiece? Should the "hole" in the earpiece points towards or away from your ear canal/ ear drum?
Click to expand...
Click to collapse
That makes no sense to me, the buds fit only in one direction to the ear ?
For cases: https://de.aliexpress.com/wholesale...20190108034902&SearchText=freebuds+2+pro+case

Dear all,
Thanks for all your efforts. I got mine yesterday, and been messing around with it for some time. I have a Samsung Note 8, and this is my review of the Freebuds 2 Pro till this minute.
+ The program
- Regarding the program, I've been using Google Translate to help me with screenshots of the program.
- Once I connected the earphones I updated their firmware to the latest version.
- I noticed that the program has no equalizer, nor any options for noise cancellation or Bone ID.
- The Program has no indications of any battery percentage.
+ The Earphones ( Freebuds 2 Pro )
- All great and very responsive.
- No noise cancellation, I am sure it's a software issue.
- Battery is good.
- Noticed some annoying sound delay in games, probably also software issue.
This is a summary of my issues and opinions till now.
Please feel free to ask any questions.

HSMQ said:
Dear all,
- Once I connected the earphones I updated their firmware to the latest version.
Please feel free to ask any questions.
Click to expand...
Click to collapse
What's the current firmware for you? I don't have the Freebuds 2 app, at least yesterday the native EMUI stuff didn't notify me about a newer firmware, my Freebuds are on 102 version.

Related

[Q] How to recompile Dolphin Browser HD

Hi to all of you!
I have a problem with decompiling, editing and recompiling Dolphin Browser Hd.
I use apktool both in Windows Seven and Ubuntu 11.10, I have the same problem in both operative system.
I am able to decompile the apk, but when I try to recompile it, even if I haven't edited anything, I received this error:
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8222021305781533885.tmp, -I, /home/bibi/apktool/framework/1.apk, -S, /home/bibi/apktool/mobi.mgeek.TunnyBrowser-1/res, -M, /home/bibi/apktool/mobi.mgeek.TunnyBrowser-1/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8222021305781533885.tmp, -I, /home/bibi/apktool/framework/1.apk, -S, /home/bibi/apktool/mobi.mgeek.TunnyBrowser-1/res, -M, /home/bibi/apktool/mobi.mgeek.TunnyBrowser-1/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Can anyone help me? I have found a lot of people having this issue but no one can solve it. These are two threads about it: http://code.google.com/p/android-apktool/issues/detail?id=277&sort=-id&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary http://code.google.com/p/android-apktool/issues/detail?id=282
I have the same problem if I try do recompile all the apk in /data/app.
Not exactly at all, I have this issue just with Dolphin Browser Hd, I upload that apk for you with my framework.
I am able to recompile this Dolphin Browser Hd apk, version 4.0.
I think it gives error if the dependency source file is not there, I'm not sure.have successfully decompiled the go launcher but recompiling gave me errors.
Sent from my GT-I9100 using xda premium
Why are you telling the source file is not there? I have framework-res.apk and twframework-res.apk. Isn't enough?
I have found Dolphin apk I attached and I was able to recompile it. I don't know why, it is the same version of mine.

recompile sony ICS apk's with APKTOOL

i tried recompiling the Home.apk, in the same condition i decompiled it, but it gives an error,
i installed
SemcGenericUxpRes.apk and framework-res.apk and it succesfully decompiled.
also: i tried an older version of apktool , 1.4.1 which was succesfull with some samsung phones in other threads but no success with that either
i also tried copying the latest aapt from the sdk to the apktool installation, nothing.
so if anyone has had success recompiling sony ICS apks, then help..
gandhar said:
i tried recompiling the Home.apk, in the same condition i decompiled it, but it gives an error,
i installed
SemcGenericUxpRes.apk and framework-res.apk and it succesfully decompiled.
also: i tried an older version of apktool , 1.4.1 which was succesfull with some samsung phones in other threads but no success with that either
i also tried copying the latest aapt from the sdk to the apktool installation, nothing.
so if anyone has had success recompiling sony ICS apks, then help..
Click to expand...
Click to collapse
You should ask question in general section anyway...
Sent from my WT19i using XDA
What error you get?
Also, wrong section.
Someguyfromhell said:
What error you get?
Also, wrong section.
Click to expand...
Click to collapse
oh sorry for the wrong section, but i do not think someone in the general section would have answered this one..
this is exactly the error
C:\Users\gandhar\apktool>apktool d Home.apk Home
Destination directory (C:\Users\gandhar\apktool\Home) already exists. Use -f swi
tch if you want to overwrite it.
C:\Users\gandhar\apktool>apktool d Home.apk Home
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\gandhar\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\gandhar\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\gandhar\apktool>apktool b Home Home1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\gandhar\apktool\Home\res\values\styles.xml:4: error: Error retrieving p
arent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\gandhar\AppData\Local\Temp
\APKTOOL762609809719293048.tmp, -I, C:\Users\gandhar\apktool\framework\1.apk, -I
, C:\Users\gandhar\apktool\framework\2.apk, -S, C:\Users\gandhar\apktool\Home\re
s, -M, C:\Users\gandhar\apktool\Home\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\gandhar\AppData\Local\Temp\APKTOOL762609809719293048.tmp, -I, C:\Users\gand
har\apktool\framework\1.apk, -I, C:\Users\gandhar\apktool\framework\2.apk, -S, C
:\Users\gandhar\apktool\Home\res, -M, C:\Users\gandhar\apktool\Home\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\gandhar\apktool>
i have the latest version of java
danist727 said:
You should ask question in general section anyway...
Sent from my WT19i using XDA
Click to expand...
Click to collapse
i thought ROM modders would have come across this error before, so, here..
edit:
@sumguyfromhell,
i have latest aapt from sdk, java jdk, jre
Seems like you have made a mistake while editing a .xml file, as it is unable to compile the file(xml files are compiled to a bit different language).
Someguyfromhell said:
Seems like you have made a mistake while editing a .xml file, as it is unable to compile the file(xml files are compiled to a bit different language).
Click to expand...
Click to collapse
i just did that, no editing done, i directly recompiled after the decompiling..
edit:
say i just want to change the values.xml, so is there a workaround maybe?
edit: i mean integers.xml
Hurray!!! i found something,
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
it's from this thread,
http://forum.xda-developers.com/showthread.php?t=1276332
just recompiled, thank you guys
can someone close this thread?
gandhar said:
Hurray!!! i found something,
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
it's from this thread,
http://forum.xda-developers.com/showthread.php?t=1276332
just recompiled, thank you guys
can someone close this thread?
Click to expand...
Click to collapse
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..
whalesplaho said:
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..
Click to expand...
Click to collapse
update your sdk to latest version, then copy aapt.exe from platform-tools to apktool directory, that was the fix i had found on the apktool bugtracker.
edit:you have to install frameworks again after replacing aapt
how about decompiling and recompiling framework-res.apk, settings.apk, systemui.apk, and other semc ics apks bro gandhar ??
iiandskater said:
how about decompiling and recompiling framework-res.apk, settings.apk, systemui.apk, and other semc ics apks bro gandhar ??
Click to expand...
Click to collapse
a lot of people including me are waiting for the next version of apktool just because of the errors that are met when recompiling ICS apks..
it does not accept some parts of a lot of xml files, so many need to be changed just to recompile the file, many files excluding the actual modifications we need to do..
well i am no expert at this, so i may be wrong, but my experience in trying to recompile leads me to conclude that i should wait for the next version
gandhar said:
a lot of people including me are waiting for the next version of apktool just because of the errors that are met when recompiling ICS apks..
it does not accept some parts of a lot of xml files, so many need to be changed just to recompile the file, many files excluding the actual modifications we need to do..
well i am no expert at this, so i may be wrong, but my experience in trying to recompile leads me to conclude that i should wait for the next version
Click to expand...
Click to collapse
i'm agree with you,
i've try many ways but its always end with no luck..
that's doesn't matter my bro,
i also hope for new version / way that will works perfectly,
thanks for ur answer..

Phone.apk compile error, don't ignore me please

Hey, please don't ignore this problem. Every project I started is stopped by this error, I can't fix many of my roms because of it. I can't continue my work so please help me. Don't think I am another one person who has no idea what he is doing, I have some experience in porting but no one wants help me.
I have done many ports for my LG Swift and now I started developement for Xperia J.
But I'm struggling with error that doesn't allow me to fix the worse bugs in my ports.
The situation:
I have succesfull decompiled, patched and compiled framework.jar for my MIUI5 port, same with LiGux, MIUI4 and many others.
But when I try to fix Phone.apk ( values/bools.xml ) then it gives me this error when smailing (no matter which rom I'm poring):
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, H:\DOCUME~1\ks\USTAWI~1\Temp\APKT
OOL1846198324772815581.tmp, -0, arsc, -I, H:\Documents and Settings\ks\apktool\f
ramework\1.apk, -S, C:\apktools2\LiGux\Phone\res, -M, C:\apktools2\LiGux\Phone\A
ndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, H:
\DOCUME~1\ks\USTAWI~1\Temp\APKTOOL1846198324772815581.tmp, -0, arsc, -I, H:\Docu
ments and Settings\ks\apktool\framework\1.apk, -S, C:\apktools2\LiGux\Phone\res,
-M, C:\apktools2\LiGux\Phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, H:\DOCUME~1\ks\USTAWI~1\Temp\APKTOO
L1846198324772815581.tmp, -0, arsc, -I, H:\Documents and Settings\ks\apktool\fra
mework\1.apk, -S, C:\apktools2\LiGux\Phone\res, -M, C:\apktools2\LiGux\Phone\And
roidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
This error appears with MIUI, Lewa, LiGux, every rom I try to port.
YES! I remember about if framework-res.apk and if ANY_ADDIITONAL_FRAMEWORK_HERE.apk
I tried to recompile those Phone.apk's on Ubuntu too but still the same error.
I have tried many versions of apktool, I have tried various tools for recompiling, I have tried to do it manually too.
I never works, always the same error.
Please help me with this, I can't finish most of my ports beacuse of it : (
lozohcum said:
*snip*
Click to expand...
Click to collapse
What aapt did u used?
1.5.2 and older
lozohcum said:
1.5.2 and older
Click to expand...
Click to collapse
not the apktool i meant the AAPT
The same, the newest version from this site: http://code.google.com/p/android-apktool/
The phone apk has been a problem for awhile now. It can't be recompiled by any means at the moment and needs to be built from source.
Wayne Tech Nexus
So how can I build it from source? For MIUI5, LiGux ?
lozohcum said:
So how can I build it from source? For MIUI5, LiGux ?
Click to expand...
Click to collapse
For MIUI you cant. and if the other one doesnt provide source then you cant from them either.
Great,,, so there is no ability to fix not working micro in my LiGux port and Unlock Sim Code in Xperia MIUI port :/
Use miui's apktool: https://github.com/MiCode/patchrom_tools/blob/jellybean/aapt.exe and https://github.com/MiCode/patchrom_tools/blob/jellybean/apktool.jar
apktool d -t miui -f Phone.apk
apktool b -f Phone unsigned-Phone.apk
java -jar signapk.jar platform.x509.pem platform.pk8 unsigned-Phone.apk signed-Phone.apk
zipalign -v -f 4 signed-Phone.apk Phone.apk
Click to expand...
Click to collapse
Thanks, will try
Phone.apk
For Phone.apk, you will encounter a lot of errors on the recompile thanks to bad XML files in a few languages. The key here is to read the errors and correct them. Essentially there are the following problems with strings:
Strings that were broken onto multiple lines. Make them on one line.
For the above lines, remove the extra double quotes that are on the inside of the ><.
Look for apostrophes and put a \ in front of them.
Lastly there will be a bunch of lines with variable replacement codes in them like %1$d. These are all just text strings for some kind of error messages. Seems to be problems with all the stuff surrounding throttling. I simply removed the codes as I don't really care about such messages. Wish I understood the variables better but again, these were very limited messages and I don't see this as a major issue.
There is a lot to clean up, but don't let anyone tell you that this cannot be done because it most certainly can.

[help] APKTool recompile issues

I am looking for help with APKTool. I have tried using the current stable version, as well as the 2.x beta. Both with same result. I am even using the dependancies on the official google code site. My android sdk is fully updated, and both JRE and JDK are installed (both installations done about 2 weeks ago, with no prompt to update since)
Code:
C:\Development\android>apktool.bat b framework-res framework-res-new.apk
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Development\android\framework-res\res/values
-mcc454-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Shanno
n\AppData\Local\Temp\brut_util_Jar_147258541274646456.tmp, p, --min-sdk-version,
17, --target-sdk-version, 17, -F, C:\Users\Shannon\AppData\Local\Temp\APKTOOL12
39664133003724430.tmp, -x, -0, arsc, -S, C:\Development\android\framework-res\re
s, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Shannon\AppData\Local\Temp\brut_util_Jar_14725854127464
6456.tmp, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Shann
on\AppData\Local\Temp\APKTOOL1239664133003724430.tmp, -x, -0, arsc, -S, C:\Devel
opment\android\framework-res\res, -M, C:\Development\android\framework-res\Andro
idManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Shannon\
AppData\Local\Temp\brut_util_Jar_147258541274646456.tmp, p, --min-sdk-version, 1
7, --target-sdk-version, 17, -F, C:\Users\Shannon\AppData\Local\Temp\APKTOOL1239
664133003724430.tmp, -x, -0, arsc, -S, C:\Development\android\framework-res\res,
-M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
Skaeren said:
I am looking for help with APKTool. I have tried using the current stable version, as well as the 2.x beta. Both with same result. I am even using the dependancies on the official google code site. My android sdk is fully updated, and both JRE and JDK are installed (both installations done about 2 weeks ago, with no prompt to update since)
Click to expand...
Click to collapse
Error log says could not find resources. It means you have not installed framework-res.apk (in case of Samsung Touchwiz phones install twframework also).
Solution :-
Pull framwork-red.apk and for Samsung TW phones pull twframawork-res.apk and put it where you keep files in apktool.
If you are using APK Multitool with GUI, then first button is for installing framework.
If you are using command line apktool, type
Code:
apktool if framework-res.apk
to install framework.
Then decompile and recompile.
Press Thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
hnkotnis said:
Error log says could not find resources. It means you have not installed framework-res.apk (in case of Samsung Touchwiz phones install twframework also).
Solution :-
Pull framwork-red.apk and for Samsung TW phones pull twframawork-res.apk and put it where you keep files in apktool.
If you are using APK Multitool with GUI, then first button is for installing framework.
If you are using command line apktool, type
Code:
apktool if framework-res.apk
to install framework.
Then decompile and recompile.
Press Thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
Click to expand...
Click to collapse
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
Code:
C:\Development\android>apktool.bat d framework-res.apk
I: Using Apktool 2.0.0-Beta7 on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
Code:
C:\Development\android>apktool.bat b framework-res framework-res-new.apk
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Development\android\framework-res\res/values
-mcc454-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Shanno
n\AppData\Local\Temp\brut_util_Jar_3655706423395563843.tmp, p, --forced-package-
id, 1, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ve
rsion-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F, C:\Users\Shannon\AppData\Local
\Temp\APKTOOL5651618845894214526.tmp, -x, -0, arsc, -S, C:\Development\android\f
ramework-res\res, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Shannon\AppData\Local\Temp\brut_util_Jar_36557064233955
63843.tmp, p, --forced-package-id, 1, --min-sdk-version, 17, --target-sdk-versio
n, 17, --version-code, 17, --version-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F,
C:\Users\Shannon\AppData\Local\Temp\APKTOOL5651618845894214526.tmp, -x, -0, ars
c, -S, C:\Development\android\framework-res\res, -M, C:\Development\android\fram
ework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Shannon\
AppData\Local\Temp\brut_util_Jar_3655706423395563843.tmp, p, --forced-package-id
, 1, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --vers
ion-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F, C:\Users\Shannon\AppData\Local\T
emp\APKTOOL5651618845894214526.tmp, -x, -0, arsc, -S, C:\Development\android\fra
mework-res\res, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
C:\Development\android>
Skaeren said:
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
................................................................
Try with Android Multitool.
If it does not work give me that apk and framework. I will try to decompile it.
Wait........ Is it a 3rd party app? (I mean not a system app?)
Then it might be possible that developer is using some other resources, different than in your framework.
Click to expand...
Click to collapse
hnkotnis said:
Skaeren said:
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
................................................................
Try with Android Multitool.
If it does not work give me that apk and framework. I will try to decompile it.
Wait........ Is it a 3rd party app? (I mean not a system app?)
Then it might be possible that developer is using some other resources, different than in your framework.
Click to expand...
Click to collapse
Thanks, but it didn't help. I will keep the tool, ask my girlfriend to look over the log when there is time, but so far, still an error. I have not been able to recompile.
It is a system app. I modified one file to enable calls on my TF300TG. I have included 7zip files of the apk, and of the values folder. The values folder goes inside the res folder of the decompiled apk, before recompiling. If you could recompile for me, I will give you all the cookies!
Click to expand...
Click to collapse
Skaeren said:
hnkotnis said:
Thanks, but it didn't help. I will keep the tool, ask my girlfriend to look over the log when there is time, but so far, still an error. I have not been able to recompile.
It is a system app. I modified one file to enable calls on my TF300TG. I have included 7zip files of the apk, and of the values folder. The values folder goes inside the res folder of the decompiled apk, before recompiling. If you could recompile for me, I will give you all the cookies!
Click to expand...
Click to collapse
You did not tell me you had JellyBean. I found it when I took a look at framework-res.apk manifest.
There is some problem with decompiling and recompiling JB Framework. (No problem for other apks)
So I did a bit searching and I found this
monstaX said:
Grab an ICS framework-res apk. Replace manifest resources.arsc and res from the ICS apk with the one from jb apk. Then dexompile with apktool142.jar and then edit. Then recompile with apktoll144.jar. then open the apk that recompiled and take out manifest resources.arsc and res and place back in jb framework sorry if its to confusing. But just a quick write up
Sent from my SPH-L710 using XDA App
Click to expand...
Click to collapse
Added at 28/01/2014 04:00 PM IST
I also found this thread
This contains JB Decompiling tool and there are some guides of framework-res modifications.
Click to expand...
Click to collapse
hnkotnis said:
Skaeren said:
I will try to do it.
Click to expand...
Click to collapse
thanks
Click to expand...
Click to collapse
@Skaeren
Please read my updated post above.
hnkotnis said:
@Skaeren
Please read my updated post above.
Click to expand...
Click to collapse
I thank you for your assistance. I will take a look at the link when I get home. I know it might be asking a lot, but would it be possible for you to make the required resources.arsc for me? Basically, I only need two variabls in bools.xml changed. I have attached my bools.xml file.
If you are able to, I greatly appreciate the help. Hell, I greatly appreciate the help anyway. This stuff is a little beyond my current knowledge pool though.
is this proble solved? you want recompiled system file like systemui.apk?
try to delete folder "values-mcc9989-mnc999" in your decopile folder /res/here
press thanks button if i helped you
Problem while decompiling SystemUI.apk
I can decompile framework-res.apk but i cant able to decompile SystemUI.apk 4.2.2.
Any Solution???
thanks in advance

HELP NEEDED! Compiling Framework & SystemUI

Hello all. Need some of your expert advice ASAP!
I'm very familiar with using APKTool and Compiling/Decompiling Apps. I've run into a problem with the framework-res and SystemUI apps.
Current ROM/App info:
Samsung Galaxy Tab 3 8.0
Android 4.2.2 (Samsung Touchwiz)
Framework Installed in APKTool: framework-res.apk, twframework-res.apk and SystemUI.apk
APKTool Version: 2.0 (I've tried almost every version of APKTool and AAPT)
Java Version: 1.7 (as required by APKTool 2.0)
OS: Windows and Linux (same results on each OS)
The framework and SystemUI apps decompile fine. No errors and all the XML/Smali files are perfect. The problem is that I can not recompile either of them. Each time I attempt, I get the same error regarding the Android Manifest file....
Code:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: c
\brut_util_Jar_8264547236691306049.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --
me, 4.2.2-T310UEUAMH2, -F, C:\Users\Adam\AppData\Local\Temp\APKTOOL3953045592385201216.tmp, -0
:\Users\Adam\Desktop\Project_Tab3_4.15\OriginalFiles\SystemUI\res, -M, C:\Users\Adam\Desktop\P
xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:439)
at brut.androlib.Androlib.buildResources(Androlib.java:367)
at brut.androlib.Androlib.build(Androlib.java:290)
at brut.androlib.Androlib.build(Androlib.java:262)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command:
236691306049.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17
-F, C:\Users\Adam\AppData\Local\Temp\APKTOOL3953045592385201216.tmp, -0, arsc, -I, C:\Users\A
roject_Tab3_4.15\OriginalFiles\SystemUI\res, -M, C:\Users\Adam\Desktop\Project_Tab3_4.15\Origi
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:473)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:420)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Adam\AppData\Local\Tem
kage-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-n
Temp\APKTOOL3953045592385201216.tmp, -0, arsc, -I, C:\Users\Adam\apktool\framework\1.apk, -S,
stemUI\res, -M, C:\Users\Adam\Desktop\Project_Tab3_4.15\OriginalFiles\SystemUI\AndroidManifest
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:467)
... 6 more
I have spent the past 6 hours searching and reading for possible solutions and nothing has worked. I know some dev's have been able to sucessfully compile these apps (even though MANY people have had this exact same problem).
Can anyone provide any assistance on what the fix/workaround is to get these apps compiled? FYI - I have even tried compiling the stock apps without any mods and I get the same errors.
Let me know if you need further clarification on my situation. And please, only respond if you have a known solution. I have speculated all day and chased every possible hunch.
Thanks in advance!!!!
arshull said:
Hello all. Need some of your expert advice ASAP!
I'm very familiar with using APKTool and Compiling/Decompiling Apps. I've run into a problem with the framework-res and SystemUI apps.
Current ROM/App info:
Samsung Galaxy Tab 3 8.0
Android 4.2.2 (Samsung Touchwiz)
Framework Installed in APKTool: framework-res.apk, twframework-res.apk and SystemUI.apk
APKTool Version: 2.0 (I've tried almost every version of APKTool and AAPT)
Java Version: 1.7 (as required by APKTool 2.0)
OS: Windows and Linux (same results on each OS)
The framework and SystemUI apps decompile fine. No errors and all the XML/Smali files are perfect. The problem is that I can not recompile either of them. Each time I attempt, I get the same error regarding the Android Manifest file....
Code:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: c
\brut_util_Jar_8264547236691306049.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --
me, 4.2.2-T310UEUAMH2, -F, C:\Users\Adam\AppData\Local\Temp\APKTOOL3953045592385201216.tmp, -0
:\Users\Adam\Desktop\Project_Tab3_4.15\OriginalFiles\SystemUI\res, -M, C:\Users\Adam\Desktop\P
xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:439)
at brut.androlib.Androlib.buildResources(Androlib.java:367)
at brut.androlib.Androlib.build(Androlib.java:290)
at brut.androlib.Androlib.build(Androlib.java:262)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command:
236691306049.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 17
-F, C:\Users\Adam\AppData\Local\Temp\APKTOOL3953045592385201216.tmp, -0, arsc, -I, C:\Users\A
roject_Tab3_4.15\OriginalFiles\SystemUI\res, -M, C:\Users\Adam\Desktop\Project_Tab3_4.15\Origi
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:473)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:420)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Adam\AppData\Local\Tem
kage-id, 127, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-n
Temp\APKTOOL3953045592385201216.tmp, -0, arsc, -I, C:\Users\Adam\apktool\framework\1.apk, -S,
stemUI\res, -M, C:\Users\Adam\Desktop\Project_Tab3_4.15\OriginalFiles\SystemUI\AndroidManifest
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:467)
... 6 more
I have spent the past 6 hours searching and reading for possible solutions and nothing has worked. I know some dev's have been able to sucessfully compile these apps (even though MANY people have had this exact same problem).
Can anyone provide any assistance on what the fix/workaround is to get these apps compiled? FYI - I have even tried compiling the stock apps without any mods and I get the same errors.
Let me know if you need further clarification on my situation. And please, only respond if you have a known solution. I have speculated all day and chased every possible hunch.
Thanks in advance!!!!
Click to expand...
Click to collapse
are these apps are deodexed?
install deodexed framework and systemui apps
Vaibhav Chauhan said:
are these apps are deodexed?
install deodexed framework and systemui apps
Click to expand...
Click to collapse
Yes, all apps/ROM is DeOdexed
arshull said:
Yes, all apps/ROM is DeOdexed
Click to expand...
Click to collapse
make sure you have compiled same rom's apps
Do you have the android SDK updated?
Bat cave One
can u specify what modifications u made in the apk...
zelendel said:
Do you have the android SDK updated?
Bat cave One
Click to expand...
Click to collapse
Yes, SDK is updated to the latest.
Sent from my HTC One using XDA Free mobile app
theprakhar said:
can u specify what modifications u made in the apk...
Click to expand...
Click to collapse
Very basic mods.... Color changes mostly. But I can not even recompile unmodified apps after I decompile them.
Sent from my HTC One using XDA Free mobile app
arshull said:
Very basic mods.... Color changes mostly. But I can not even recompile unmodified apps after I decompile them.
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
you can try other tools for compile
Vaibhav Chauhan said:
you can try other tools for compile
Click to expand...
Click to collapse
I have tried everything possible. I'm going to set up a separate dev environment with some different tools/drivers and see if that has any effect.
Sent from my HTC One using XDA Free mobile app
arshull said:
I have tried everything possible. I'm going to set up a separate dev environment with some different tools/drivers and see if that has any effect.
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
ok try it
Same here
Vaibhav Chauhan said:
ok try it
Click to expand...
Click to collapse
I'm having the exact same problem for modding a keyboard. I have my JAVA PATH set to correct Java JDK location; correct paths set to android SDK files, which were placed in C:\windows (per advise for this problem). Also tried different APKTools. Nothing works

Categories

Resources