yashsingh1/xdaforums huggingface dataset:
[Amazfit] martinh22:
[MENTION=2750664]Neuer_User[/MENTION], [MENTION=4266990]Pi3rluigi[/MENTION] Do you have any solutions for the fall sports activities, change the language (cs, sk.pl, it)?

Installing a new ROM versions: VERSION 2: PERMANENT INSTALL
[Amazfit] Pi3rluigi:
Sport app seems to work, but I tried to record a walk and when I was prompted to save and confirm, app crashes as watch app too.

So, after Italian translation applied, you can't save tracks

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] martinh22:
Yesterday I tried sport activities in languages other than en or cn always stoped sports so I do not know :)
[Amazfit] Pi3rluigi:
Deleting all previous recorded activities, for me was a step forward.

My next goal is trying to clear cache and see what it happens

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] martinh22:
how to delete the activity?
[Amazfit] Pi3rluigi:
From watch, manually

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] Kaudii:
I translation this app in polish language

Wysłane z mojego MI 5 przy użyciu Tapatalka
[Amazfit] 1immortal:
its in the app list, the last one on the right.
[Amazfit] kukoo86:
Neuer User I want to collaborate with you and to share my translations in Spanish, voices in Spanish and screen images of activity block and images of the week with you.

How can I do it?
[Amazfit] Pi3rluigi:
From post #1

Community Project code:

The source code used to build the translated apps is available on the following GitLab repo:

https://gitlab.com/Neuer_User/PACEfied_AmazFit

If people want to contribute, log in, have a look around, download the files you want to translate, and send me the translated files, so I can include them.

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] MyriaBoa:
I would like to know

1. Is there a way to turn on the backlight permanently or at least for some minutes ( the 'always on' setting is not working for me)

2. Is it possible to switch the date format to dd.mm ?
[Amazfit] gwbs:
Hi guys; I just aupdated my watch to 1.2.8; everything seems fine. Still testing functions.

I already noted that the "weather screen" above clock time doesn't show air quality info on english version. Does anyone knows how to apply it for EN version?

I'm living in China, so this is a very usual feature ;)
[Amazfit] MyriaBoa:
I saw the strings for air quality in english, when I translated parts of the weather app.
[Amazfit] brunnogama:
Hey guys,

How can I connect to app after convert to english?

I did the first configuration with chinese amazfit app on Android. After install this ROM, I uninstalled and installed the english version (play store) of app but I cant connect to watch because the only way to connect is with QR code.

If I reset the ROM, it change to CN again and I have to use the companion CN.

If I can generate the QR code without reset or upgrade the app CN>EN without reinstall, it would be nice.

What I have to do?

Thanx
[Amazfit] a-paul:
https://xdaforums.com/showpost.php?p=71101205&postcount=875
[Amazfit] MyriaBoa:
Try this : Go to 'more settings' then 'about' then tap on thel legal statement (last one in the list)until it counts to zero.

Then tap on 'lab' and turn launcher on. Now the launcher can be found as the last item when you scroll to the right from your main screen. Tap on the apple and then qr.
[Amazfit] gwbs:
BR aqui man!

Hi Bruno, I'm a brazilian, maybe we can change some info in portuguese.

Você tem whatsapp? meu watch ta funcionando beleza, talvez possa te ajudar.
[Amazfit] kukoo86:
I have uploaded my files to the issues folder. I do not know if that is the right place.
[Amazfit] Neuer_User:
Thanks, fine. I will find them :)
[Amazfit] nem_da_huu_nghi:
anyone can help me about the notification?

My app on phone set permission for call, sms, facebook, email, but now only when have call it noti on watch.

I tried to uninstall and reinstall app but nothing change.

How to fix this, pls help me
[Amazfit] Pi3rluigi:
On which phone?

[MENTION=2750664]Neuer_User[/MENTION]

this morning I recorded a walk and tried to save, but SportApp FC.

Attached the logcat output; it seems to be the same exception that we talk about two weeks ago when you release 1.2.6c with Italian translation.

If someone else, with different language on watch (PL or CZ) could test SportApp and get a logcat, we can compare them

--------- beginning of crash
E/AndroidRuntime( 860): FATAL EXCEPTION: main
E/AndroidRuntime( 860): Process: com.huami.watch.sport, PID: 860
[B]E/AndroidRuntime( 860): java.lang.NumberFormatException: Invalid float: "0,72"[/B]
E/AndroidRuntime( 860):	at java.lang.StringToReal.invalidReal(StringToReal.java:63)
E/AndroidRuntime( 860):	at java.lang.StringToReal.initialParse(StringToReal.java:164)
E/AndroidRuntime( 860):	at java.lang.StringToReal.parseFloat(StringToReal.java:323)
E/AndroidRuntime( 860):	at java.lang.Float.parseFloat(Float.java:306)
E/AndroidRuntime( 860):	at com.huami.watch.sport.sportservice.delegate.outdoor.OutdoorSportDelegate.stop(OutdoorSportDelegate.java:1075)
E/AndroidRuntime( 860):	at com.huami.watch.sport.sportservice.SportsDataManagerService$SportDataManagerServiceBinder.stopSport(SportsDataManagerService.java:345)
E/AndroidRuntime( 860):	at com.huami.watch.sport.sportservicemanager.SportDataManager.stopSport(SportDataManager.java:372)
E/AndroidRuntime( 860):	at com.huami.watch.sport.ui.SportActivity.onStopButtonClicked(SportActivity.java:276)
E/AndroidRuntime( 860):	at com.huami.watch.sport.ui.SportControlFragment.prepareStop(SportControlFragment.java:605)
E/AndroidRuntime( 860):	at com.huami.watch.sport.ui.SportControlFragment.access$700(SportControlFragment.java:41)
E/AndroidRuntime( 860):	at com.huami.watch.sport.ui.SportControlFragment$11.onClick(SportControlFragment.java:562)
[Amazfit] kukoo86:
https://gitlab.com/alain.morales86/PACEfied_AmazFit/issues/1

https://gitlab.com/alain.morales86/PACEfied_AmazFit/issues/2
[Amazfit] heger:
I just installed the permanent ROM 1.2.8. All is functioning well ( didn't test everything yet though), but I've a question about the "weekly sports" app. It comes via a notification? How? Didn't get any notifications about this. And where does it show? On the watch? In the phone (amazfit) app? Hope someone can show me the way to locate this app.
[Amazfit] brunnogama:
It works man!

Really thanx!!!
[Amazfit] Neuer_User:
You get a notification every Monday morning.
[Amazfit] heger:
Ok, thanks!
[Amazfit] Cracklydisc:
Last night I decided to decompile all amazfit app and the bug is inside the sportapp perhaps with a little bit of time I can find some system setting to fix.

Currently all languages ​​that use comma caught in sportapp crash.
[Amazfit] Pi3rluigi:
You mean comma in strings?

If so, the easiest way is remove them.. I can live without commas[emoji2] [emoji2]

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] Cracklydisc:
no i mean comma in android settings for decimal separator! :(
[Amazfit] Pi3rluigi:
Changing region could fix it?

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] penguinunix:
Do you successfully decompile all amazfit app? Is the source code readable? I want to see launcher and other apps maybe could find some way to make modification for system behaviour, because I tried to set screen_off_timeout on system with no success, I guess it hard coded somewhere in the launcher.
[Amazfit] Cracklydisc:
Yes, all app and all is readable!

https://xdaforums.com/smartwatch/other-smartwatches/amazfit-1-2-8-source-code-app-priv-app-t3560562

enjoy!
[Amazfit] martinh22:
[MENTION=2750664]Neuer_User[/MENTION]: I added the files https://gitlab.com/martinh22/PACEfied_AmazFit/issues?scope=all&state=all that I want to add to the priv app to complete Czech translation. Like if it had been enlisted into the next rom thanks
[Amazfit] penguinunix:
nice, I'll check it out :good:
[Amazfit] Neuer_User:
Well done. That could help better understand how the apps work.

What tools have you used for decompilation?

EDIT:

Very nice, indeed. E.g. this shows how the watch handles some of the texts/graphics shown:

if (needEnAssets) {
this.slptBgView1Mem = SimpleFile.readFileFromAssets(context, "sport/en/sport_slpt2_bg.png");
} else {
this.slptBgView1Mem = SimpleFile.readFileFromAssets(context, "sport/sport_slpt2_bg.png");
}

I'd really like to know the workflow you are using. I could add all sources to the GitLab repository and update it with every release. That could be the start of our own modifications . :)
[Amazfit] Neuer_User:
P.S:

And also this for the lockscreen:

for (i = 0; i < 10; i++) {
this.value_num[i] = SimpleFile.readFileFromAssets(this, String.format("sport/num_%d.png", new Object[]{Integer.valueOf(i)}));
}
for (i = 0; i < 10; i++) {
this.time_num[i] = SimpleFile.readFileFromAssets(this, String.format("sport/time_%d.png", new Object[]{Integer.valueOf(i)}));
}
}

They clearly forgot to use any English texts here (no "../en/.."). That's why I needed to copy over the existing English pngs also over the Chinese ones.
[Amazfit] balaala:
Hi, I need advice - I was with 1.3.0n firmware and suddenly the watch started to disconnect. I tried factory reset, unpair and pair again, all the available firmwares - no luck. I tried the iPhone with a bluetooth speaker - it is working. Then I noticed that when watch is right next to the phone, or over it the connection is stable but still Strava is not synchronizing. Is the watch broken?
[Amazfit] Pi3rluigi:
Well, if the range of Bluetooth and WiFi of the watch is 20/30 cm, welcome to the club!

Contact seller and send it back

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] penguinunix:
Very nice, at this moment, I still try to remove the "lockscreen" that is seem to be hardcoded in SettingsProvider, SettingsProvider\src\main\res\values integers.xml with value 14000 which is 14 seconds. Still trying to modify this settings with no luck, can't rebuild the apk because some import is missing :D:D
[Amazfit] balaala:
So it is a common problem?
[Amazfit] Beleriand:
You have 3 problems:

1. wrong thread, this about PACEfied ROM ;)

2. defective BT/WiFi

3. Strava sync problem
[Amazfit] Pi3rluigi:
Yes, search with google

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] penguinunix:
From dumpsys power found some interesting line:

Wireless Charger Detector State:

is it support wireless charger? :D

would be nice if someone try it
[Amazfit] Beleriand:
I think that's just in the code because of the other Android wear watches that have such a feature. My watch does not charge on a Qi compatible charger. ;)
[Amazfit] penguinunix:
Ah I see, so it just feature from PowerManager to check the wireless charger state. I see Neuer_User find some interesting code, hope that all other watch faces can be ported to the watch, which would be very nice...
[Amazfit] nem_da_huu_nghi:
Thanks for reading,

I use zenfone 3 ze520kl, android MM

In app i set notification for sms, fb, telephone service, email, but only call notify on watch

I set permission for app on phone too, but nothing happen. Even the permission of contact reading not run, call only display number, not contact name.
[Amazfit] MyriaBoa:
Did you allow autostart for Amazfit App on your phone?
[Amazfit] Neuer_User:
Try this one. It is compiled with

<integer name="def_screen_off_timeout">-1</integer>

Not sure, if that works.
[Amazfit] penguinunix:
Can't install it:

1757 KB/s (84375 bytes in 0.046s)

pkg: /data/local/tmp/SettingsProvider.apk

Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

I think it should be included in the update.zip files?

How you compile it? I try it with Android Studio with no luck, can you point me how to do it, just in case I can help develop something :D

I think I found the way:

adb remount

adb push SettingsProvider.apk /system/priv-app/SettingsProvider/

adb shell chmod 644 /system/priv-app/SettingsProvider/SettingsProvider.apk

adb reboot

Testing, seem not working, will test again....
[Amazfit] mikro269:
Amazfit problem

Hi i have got problem When i go to activity in polish language then show the message unfortunately the sport has stopped and is not working.Any solutions?
[Amazfit] Cracklydisc:
He doesn't compile the source code, he use apktool for unpack and repack apk and changed one integer params.
[Amazfit] penguinunix:
Ah thanks for letting me know, yes I read about apktool, but not yet used it.
[Amazfit] nem_da_huu_nghi:
I did it, and when I unset permission for camera of this app, phone said that the app is for older Android version, is it the problem?
[Amazfit] penguinunix:
Just tried to install Google Maps, unfortunately the WIFI seem to be offline after a while, if somebody can enable the wifi to keep on...

Google maps is running, but after accept & continue, it fails to connect because the wifi is offline

[IMG="google maps"]http://i65.tinypic.com/263zg54_th.jpg[/IMG]
[Amazfit] Pi3rluigi:
This is an issue common to all languages except English.

It's related with use of comma instead of dot between numbers.

Just go back a couple of pages and read my post of this morning and the answer

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] sleviz:
Hi all,

from saturday after update the companion app to 1.3.1 version (android) I lose all the notification on the watch, still I can recieve the call notification. I update the watch to 1.2.8 pacefied (before I was using 1.2.7 pacefied) but still no notification. I formatted the watch and downgrade the companion app (uninstalling the 1.3.1 version) but still no notification. It's not a big issue but I can't understand why I lose the notification on the watch. Someone have the same problem?
[Amazfit] kukoo86:
Have you found my files?

Do i have to do something else?
[Amazfit] Neuer_User:
Yes, this is the right way. Reason is that the apk is not complete, because the code is in an actual odex file. So, the apk cannot be installed. But you can exchange the original apk the way you described.
[Amazfit] Neuer_User:
For me, it is working correctly. App 1.3.1, PACEfied 1.2.8
[Amazfit] sleviz:
I think that I found the culprit, saturday I installed a new xposed module (ad block), after I uninstalled this module the notifications startto pup up again also in the watch. It's really odd but now everything working smooth as usual
[Amazfit] L0cke:
Hi guys, not strictly related to the ROM, (I can't find any general forums)... I'm on the stock English firmware and tried to install the latest 1.3.1 companion app and it fails to sync my data. Throws an error in the app. Is that normal and does it all work okay with this ROM?

I intend to flash this soon anyway as want all the new features, but just checking.
[Amazfit] Pi3rluigi:
Was your watch already half translated to English?

Inviato dal mio D6633 utilizzando Tapatalk
[Amazfit] tekfreak:
No full chinese
[Amazfit] Pi3rluigi:
Step 5 in post #1 for you isn't optional! If you want it in English you have to setprop... en

Inviato dal mio D6633 utilizzando Tapatalk
[Amazfit] tekfreak:
Ok I will try latter.
[Amazfit] f@bien:
I did some testing this morning with PACEfied. Unfortunately, the watch display miles and count miles.
[Amazfit] chincheang:
i downloaded huanghe-1.2.5a-mb.img twice and both time gave me MD5 of b9b471bfe46ec6426f855ffbfc98d7ad that is different from the MD5 listed in the enclosed text file. Can anyone confirm that the listed MD5 is correct or I had 2 bad downloads consecutively?

Thanks
[Amazfit] f@bien:
I don't yet install my apk, because I don't know how to come back if needed. That's why it's better to do like PACEfied version : A temporary boot.

There is a topic on facebook group : https://www.facebook.com/groups/227999507621434/246125032475548/

On how to install apk., with instruction. I think it's the same way for my apk.

But, as I said, my watch display and count with miles. With my modified apk, it well be able to display Km instead miles, but it will still count with miles. I think it's a build.prop issue.
[Amazfit] Neuer_User:
The point is, if you resign the app, you need to resign the whole rom (all apps and framework). silver-alx is doing this for his russian rom. I may do this one day, too.
[Amazfit] f@bien:
What a pain ! If only huami's US dev were fast ! But it's california's compagny, so cool, so relax. Swimming pool at 15h. :laugh:
[Amazfit] kkti:
I can modify apk without resign it. I used it for English translation of WearHealth.apk and TrainPlan.apk as well. If you are interested I can provide you more details. It is very simple.
[Amazfit] drbourbon:
yes, it's correct

$ md5 huanghe-1.2.5a-mb.img
MD5 (huanghe-1.2.5a-mb.img) = b9b471bfe46ec6426f855ffbfc98d7ad
[Amazfit] Neuer_User:
Yes, I do the same. But as soon as you start modifying application code, you need to resign. Silver-alx is doing this.
[Amazfit] chincheang:
I am at the last step fastboot boot but it stay there for a long time and not rebooting, what is wrong and what can I do?

ccwongs-MacBook-Pro:~ ccwong$ /Volumes/Macintosh\ HD/Users\ Data/Users/ccwong/Android/android-sdk/platform-tools/fastboot boot /Volumes/Macintosh\ HD/Users\ Data/Users/ccwong/Android/android-sdk/platform-tools/boot-huanghe-1.2.5a-mb.img

ERROR: could not clear input pipe; result e0004051, ignoring...

ERROR: could not clear output pipe; result e0004051, ignoring....
[Amazfit] kkti:
Ok thanks for explanation.

I have couple of questions.

What do I need to modify system.img to add there TrainPlan in English?

I can unpack it but I would like to know what tool are you using for repack system.img after modification?

If you tell me how to modify boot.img it should be also interesting ;)

Thanx
[Amazfit] Neuer_User:
I will release a new version with added TrainingPlan and small layout fixes to Watchfaces soon. I am just waiting to include the next Friday update of the Chinese version, too.

If you want to modify the system image, you can simply mount it. It is a standard ext4 image. Boot image is a raw kernel image with embedded, cpio compressed ramdisk, which needs to be unpacked first.
[Amazfit] chincheang:
It finally proceed with a few error messages after like 30 mins.

ERROR: usb_read failed with status e00002ed

ERROR: usb_write failed with status e00002ed

ERROR: usb_write failed with status e000404f

downloading 'boot.img'...

ERROR: usb_write failed with status e00002c0

FAILED (command write failed (Invalid argument))

finished. total time: 0.000s

I had to long press the button and reboot. After reboot, it is mostly translated to English except "Today steps", "Heart Rate", "stop watch" and "Training Centre". Is this how it is suppose to be?
[Amazfit] Neuer_User:
To be honest, no.

The "FAILED" is normal, the usb_read and usb_write errors are NOT. Get a different usb cable. Repeat the whole procedure (including pushing the image to the sdcard).

Except Training Center most should be translated.
[Amazfit] nem_da_huu_nghi:
I have same problem with nothing change in the phone :(
[Amazfit] Cracklydisc:
Keyboard on Amazfit!

After some tests I got where I wanted!

Keyboard: https://docs.google.com/file/d/0B0a0XyLZjfUxQmdLVDhVTHB2ME0/edit

Note app: https://f-droid.org/repo/com.tomaszmarzeion.notepad_7.apk

To install the apk you can use apkinstaller or adb commands.

After install to enable and set the new keyboard should be used adb, activate the new input method and turn off old (amazfit app):

adb shell ime enable com.whirlscape.minuum/.MinuumKeyboardService mSettingsActivityName=com.whirlscape.minuum.MinuumPreferenceActivity
adb shell ime set com.whirlscape.minuum/.MinuumKeyboardService mSettingsActivityName=com.whirlscape.minuum.MinuumPreferenceActivity
adb shell ime disable com.huami.watch.input/.HuamiIME mSettingsActivityName=com.huami.watch.input.SetupActivity

Going into the wifi selection will reactivate the old input method (amazfit app)
[Amazfit] nem_da_huu_nghi:
Today all the app notification appear with nothing change, don't know why :confused:

now my problem is, phone notification not display the contact name, but sms app displayed it.

Anyone can help me?

I use zenfone 3 Ze520KL, android MM
[Amazfit] sleviz:
Have you tried to unpair the Watch? It May help. The xposed module is called adblocker Reborn. Now I Stick with adaway and everything is nice, ad usual

Inviato dal mio MI 5 utilizzando Tapatalk
[Amazfit] nem_da_huu_nghi:
I tried 3 times, even reset factory, but nothing help.

Now I think problem is on the phone where Amazfit Watch app not compatible with Adr MM or with my phone contact service/app
[Amazfit] Neuer_User:
Could someone test this:

adb shell setprop persist.sys.language en
adb shell setprop persist.sys.country IT
adb reboot

I am interested, if the Sports App works correctly, then. This should still use English as the language, currently, but if this works without forced close of the Sports app, I could probably make it display other language this way without the current comma problem.
[Amazfit] Pi3rluigi:
I will test ASAP and report

[MENTION=2750664]Neuer_User[/MENTION] please check your PM

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] idaadi:
I installed the mini google maps , but how do I start it ?

Thank you in advance.
[Amazfit] Pi3rluigi:
Tested!

No Sports App FC, I was able to record and a save a little walk in my yard(I don't have time to go out)

adb shell getprop
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.heapgrowthlimit]: [64m]
[dalvik.vm.heapmaxfree]: [2m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [384m]
[dalvik.vm.heapstartsize]: [64m]
[dalvik.vm.heaptargetutilization]: [0.75]
[dalvik.vm.image-dex2oat-Xms]: [64m]
[dalvik.vm.image-dex2oat-Xmx]: [64m]
[dalvik.vm.isa.mips.features]: [default]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[debug.force_rtl]: [0]
[dev.bootcomplete]: [1]
[huami_launcher_boot_complete]: [true]
[init.svc.adbd]: [running]
[init.svc.bootanim]: [stopped]
[init.svc.console]: [running]
[init.svc.debuggerd]: [running]
[init.svc.delay_sleep]: [stopped]
[init.svc.flash_recovery]: [stopped]
[init.svc.gpsd]: [running]
[init.svc.hardware_adapter]: [stopped]
[init.svc.healthd]: [running]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.lmkd]: [running]
[init.svc.logd]: [running]
[init.svc.logwatch]: [running]
[init.svc.media]: [running]
[init.svc.netd]: [running]
[init.svc.sdcard]: [running]
[init.svc.serial_numbers]: [stopped]
[init.svc.servicemanager]: [running]
[init.svc.surfaceflinger]: [running]
[init.svc.ueventd]: [running]
[init.svc.voicewakeup]: [restarting]
[init.svc.vold]: [running]
[init.svc.zygote]: [running]
[media.stagefright.use-awesome]: [true]
[net.bt.name]: [Android]
[net.change]: [net.qtaguid_enabled]
[net.hostname]: [Amazfit_Sports_Watch-94CB]
[net.qtaguid_enabled]: [1]
[net.tcp.default_init_rwnd]: [60]
[B][persist.sys.country]: [IT][/B]
[persist.sys.dalvik.vm.lib.2]: [libart.so]
[persist.sys.gps.agps]: [2017-02-22T00:00:00Z,2]
[persist.sys.gps.version]: [9192,205d386,0,0,0]
[B][persist.sys.language]: [en][/B]
[persist.sys.profiler_ms]: [0]
[persist.sys.timezone]: [Europe/Rome]
[persist.sys.usb.config]: [mtp,adb

PACEfied 1.2.8 Temporary
[Amazfit] Neuer_User:
Thanks a lot for testing. I will then store the custom translations in the next release differently (e.g. under language "en" and country "it"), hoping that this will work and (as it seems) not change the number format from "." to ",".
[Amazfit] powerforward:
CN or US

Hi everyone, if I get the US version(pace) and install the PACEfied ROM, would I be getting the cycling activity and be able to change MI to KM?

Cant decide if should get the CN version or the US version watch
[Amazfit] Neuer_User:
yes
[Amazfit] Neuer_User:
Good news: Just tested it in my lunch break. It seems to be working. So, with next release there is a high chance that other languages will be working correctly without and Force Closes.
[Amazfit] Pi3rluigi:
If you want release a Temporary beta, I should test it.

Inviato dal mio MI 5s utilizzando Tapatalk
[Amazfit] Neuer_User:
Thanks for the offer, but I probably will not be able to release something before next weekend, where everybody is expecting the next release anyway :)