[HELP] De- and Recompile Freebuds 2 App for Translation

Status
Not open for further replies.

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
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
 
Last edited:

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
Erm.... I know Chinese... In fact I am Chinese. Do ask me if you need any translation?
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
 

tommisjtp

Member
Jan 3, 2019
7
1
0
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
Fantastic, just got mine today.

Can you share us translated app once it's completed?
 

tommisjtp

Member
Jan 3, 2019
7
1
0
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
Fantastic, can't wait! :)
 

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
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.Screenshot_20190103_221102_com.huawei.wings.ota.jpeg

Sent from my Mate 20 Pro using Tapatalk
 

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
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
 

Fafner76

Senior Member
Aug 1, 2009
107
15
0
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).
 

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
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).
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
 
Last edited:

Fafner76

Senior Member
Aug 1, 2009
107
15
0
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

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.
 

Koong1

Senior Member
Nov 21, 2017
125
28
0
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?
 

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
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?
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
 

superio

Member
Jan 24, 2006
19
1
0
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
 

MirageBlader

Senior Member
May 9, 2012
662
228
0
Munich
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
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
 

HSMQ

New member
Jan 8, 2019
2
0
0
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.
 

Fafner76

Senior Member
Aug 1, 2009
107
15
0
Dear all,

- Once I connected the earphones I updated their firmware to the latest version.

Please feel free to ask any questions.

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.
 
Status
Not open for further replies.