yashsingh1/xdaforums huggingface dataset:
[General Accessories] dadam30:
Yes just like 5.X, I was unable to use the feature in 6.0.X but since 6.1 and/or last MiFit app (from apk mirror) it work.
[General Accessories] ATZ-007:
What link did you use?

http://www.mi.com/en/store/

only offers the original Mi Band (without hear rate monitor)
[General Accessories] kavonaj:
This is a bit misleading... It DOES connect with Endomondo, but heartrate reading is not done real-time/continuously. You need to take measure in native MiFit app and it gets simultaneously imported in Endomondo.

So far I have not found ANY app that could make continuous heartrate measurement with Xiaomi Mi Band 1S (AKA: HR, pulse). If you have, please let me know.

---------- Post added at 11:10 PM ---------- Previous post was at 11:01 PM ----------

I bought mine trough AliExpress... it was original. PM if you want direct link.
[General Accessories] Penz89:
If you try to pair mi band with endomondo and you start running mode in mi fit app, could continuous heartrate measurement works in endomondo?
[General Accessories] titsmaster:
Hey there, I don't know if I'll be able to get some help here but I'm trying to find a way to get the incoming call alert on Mi Band 1A. Thing is, because of the nasty *bluedroid_timer* wakelock bug, my battery life is terrible when I keep bluetooth enabled.

So I thought, why not disabling it, and create a task using apps like Automate enabling BT whenever I have an incoming call.

The thing is that I suspect the Mi Band notification only to be triggered when I get the incoming call, not when the phone is already ringing... right ?

What other solution could I have ?

Thanks
[General Accessories] ATZ-007:
Question regarding 1s

Does it randomly check heart rate (I.e whilst sleeping, resting, walking, etc) or only when you press "measure heart rate" in the Mi Fit app?
[General Accessories] matcho13579:
You can enable option "Check heart rate while sleeping to get best results" and in app you got "Running", wich MiBand continously measure your HR .. I recently woke up at night because of blinking HR sensor :D (I didnt mount MiBand on my hand very well)... Maybe in future they'll add new features to app for more HR measuring :)
[General Accessories] kentdream:
Here is some info about continuous HR

And the video showing continuous in endomondo while friend is washing dishes. :p

https://youtu.be/xPXbzl963J4
[General Accessories] kavonaj:
You Sir are a genius! THANK YOU! :good: It works! :victory:

It also works with Gliderun (http://xdaforums.com/android/apps-games/app-gliderun-alpha-t3057985)
[General Accessories] kentdream:
[MENTION=2011762]ATZ-007[/MENTION]

yes, there is a button inside settings to measure HR periodically, u can turn it off
[General Accessories] AAnderson298:
I never leave my fitbit connected to my phone. It drains battery very fast. It's really not convenience to manually sync it everyday. Good to know there is a product out there doesn't drain battery that fast. Thanks
[General Accessories] kentdream:
I finally got my own MiBand 1S.

Here is a comparision between a Omrom Blood Pressure Monitoring as i mentioned in #209 I Did a few test and find the wrist band is a little low on bpm (about 2-4bpm) compare with Omrom BPM

To see the video:

https://youtu.be/FZutdSp39qs

Please thanks button if you find my information helpful ~ :fingers-crossed:
[General Accessories] basta75:
thank's for that i Will bay one in short time

Envoyé de mon E5333 en utilisant Tapatalk
[General Accessories] harrymcqueen:
Mi Band no more pairing with CM13 after 2016/01/09. Worked fine before and also working using different phone.

Any solution available? Downgrading CM13 version should only be a temporarily solution.
[General Accessories] superawesomeme:
Same issue for me. Thought I was going mad. Glad to hear it had been working though.
[General Accessories] duartix:
Excellent guide. Unfortunately...

Unfortunately the Chinese version of the mi band app doesn't feature the Run button anymore.

Do you have an old apk lying aground?
[General Accessories] scoobychau:
Any one can get the Heart Rate working with Runtastic?

endomondo does not have Heart Rate logging function any more with out paying for their monthly subscription service.
[General Accessories] kentdream:
[MENTION=5177599]duartix[/MENTION]

the new version in mi app store(1.8.511) is not very good & work strangely with endomondo. fail to log my half-marathon event yesterday. old mi fit ver 1.8.111 seens better

View attachment 3613937

Here is my config/version works on a MiNote Pro:

wrist hardware version 4.15.11 20

wrist HR 1.3.71.16

endomondo ver 12.0.1
[General Accessories] duartix:
It works! :)

Thanked and mega thanks.
[General Accessories] kentdream:
i didn't use their subscription service, and i aren't a preminum user.

went for a ride and here is the log of HR.

I had no problem to view HR logging, do you mean HR logging on device's app?:confused:
[General Accessories] dieterlumpen:
Current cm13 messed the bluetooth stack up, same here on my n7100 - had to revert to backup...
[General Accessories] scoobychau:
that is Endomondo u are using eh?

the app did not show heartrate when i view history,

also. it seem like heart Rate Zone voice coaching need to be paid monothly fee to work...

i really hope that some one can get runtastic working so it is possible to HIIT (heart rate diven exercise) with the Mi band.
[General Accessories] KallaiR:
did anyone managed to use the HR function with runstatic or sportypal?
[General Accessories] kentdream:
Yes. That is endomondo web version(browser). In app i can't see HR log .

I am looking for runtastic to get working with 1S too.

I did a test with runtastic(v6.61) today, the runtastic app not even able to find the M1S band. However, endomondo is able to find the M1S in its app.

I tested with a app "Mi Band Notification v2", this app can activiate the HR monitor function on its own without help from MiFit app.

So i guess the connect/detection problem remain in runtastic.
[General Accessories] scoobychau:
Are you sure!?

did u get the app from Mi offical website?

---------- Post added at 10:20 AM ---------- Previous post was at 10:16 AM ----------

my Runtastic Pros seems to connect with M1S by choosing the 2nd "Other HR monitor" option. But no info/data is shown. On the other hand choosing the 1st bluetooth SMART search option, and Mi band is not found.

(while in endomondo, we connected using Bluetooth Smart.... so weird...)
[General Accessories] alewillywonka:
Hi! is possible to manage multiple mi bands with only a mobile?

Thanks
[General Accessories] scoobychau:
i don think so,

infact if u have mutiple band with in 10meter. the phone have problem pairing.
[General Accessories] kkkhattak:
Which app is the best to use with mi fitness band ?
[General Accessories] kristijan_m75:
My opinion is mi band tools well worth of the money
[General Accessories] superawesomeme:
I use the default one, it's more than adequate.
[General Accessories] kentdream:
I found a 2nd source of someone able to connect the M1S in the runtastic.

Orginal Link <-- Chinese

https://translate.google.com/translate?sl=zh-CN&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fpost.smzdm.com%2Fp%2F371530&edit-text= <-- Eng, translate by google

Endomondo:

This page shows a M1S work with endomondo with HR log viewable on app.

Somesay: When M1S was paired with mifit app, it will turn off its BT boardcast function so other apps can't see the device

If someone has got their M1S work with runtastic, please let us know, thanks ~
[General Accessories] Kirrrr:
Hey guys!

I tried to use MiBand as a trusted device for Smart Lock with my phone.

The scenario is going pretty ok but with one serious lack: the bluetooth connection area is too large — up to 10 meters. It is not suitable for real life security.

I understand that BT is not NFC and BT can't provide connection area of about 1 meter so the phone might be unlocked only when I hold it in my hand or when it lies nearby on my desktop.

As I know the branded Xiaomi phones with stock MIUI OS provide a possibility to use Smart Lock based on the Mi Band's signal strength (not by fact of the Mi Band's connection itself). By using a some "cutoff level" it simulates a behaviour of the NFC trusted device. But I don't have neither Xiaomi phone nor phone with MIUI (nor NFC in my phone).

The question: Is there a way (an app, an Xposed module, a tweak, etc.) for a typical Android firmware to set that "cutoff level" for bluetooth (for separate device or even for whole BT) thus the BT device with not very strong signal will be disconnected and (possibly) will behave like NFC device? :confused:

P.S. Sorry for clumsy English.
[General Accessories] dukynko:
I can set unlock area by my Sony Xperia z3, but KK only. On Lollipoop is it add you described.
[General Accessories] Kirrrr:
[MENTION=2813089]dukynko[/MENTION], thank you for your tip!

Thus looks like we have two known cases when BLE devices can be used for the proximity unlock based on signal strength: MIUI v6 and Xperia Z3 KitKat. And such situation is lasting without changes for more then one year.

Unbelievable.

Unlock by NFС has too short working distance. Unlock by BT has too far working distance. Unlock by WiFi hotspot has even longer work distance and is unsafe due to possibility of WiFi spoofing.

The unlock by BT based on signal strength is the golden mean in this task. But it is stucked in a bog.

It looks like redundant proximity unlock has been turned out just a marketing gimmick from the vendors' point of view. :(
[General Accessories] KallaiR:
proximity unlock is the key for safe unlocking using the mi band.. Unfortunately i can't find a way to use this feature with my phone. it seems that only miui roms supports it.. My phone is zenfone 2 with lollipop rom and i can find no way to use the proximity unlock feature so i have my phone unlocked that way.. If only it was embedded in the mi fit app and not the miui system..
[General Accessories] Kirrrr:
[MENTION=4278293]zoufri[/MENTION] just PMed me with an advice to the page on MIUI forum http://en.miui.com/thread-219372-1-1.html where the trick for proximity unlock activation is described.

Unfortunately I can't reproduce the steps described there cause my system behaves differently (CM12.1 on Galaxy S4 mini I9192, btw). I can't gain that "Unlock device using band . . . . On" text in the action list to be displayed. I just have "Unlock device using band" without "On". When I pressing this item the screen with button "START" is displayed not the screen with phone in hand and checkmark. If I press that "START" button the "Security" settings are displayed, but that is wrong place cause Smart Lock is configured under "Lock screen" settings!

It is quirious the Smart Lock is working in this situation! But it seems like "Mi Fit" don't know about it thus don't give us an option to set up proximity lock. :eek: Weird tangled thing...

Must be some other way to get it into work. Or it is really impossible without MIUI onboard. :(
[General Accessories] zoufri:
Probably, yes. I have a Xiaomi Mi3. You could try the last Miui version (1.8.511) French version.

Edit: just forgot that I can't post a link. You've got a PM :)
[General Accessories] Kirrrr:
Miui? Looks like you want to say Mi Fit.

Anyway I tried all described above exactly with this version, apk is brought from Mi Market. :(

BTW: Did you get my PM? I submitted it but my Sent folder is empty. Loks like some glitch in the PM mechanism.
[General Accessories] zoufri:
My bad, it's the Mi fit Apk, you're right. But the Playstore version is different. You should try one of these French translated version, from the link I send you.

No problem with your PM, I got it !!
[General Accessories] Kirrrr:
[MENTION=4278293]zoufri[/MENTION], if you have an access can you please sent to me /system/build.prop file from your phone? I am providing some horrific experiments. =)
[General Accessories] kentdream:
MiFit has a new version 1.8.711

Fixed some bugs. No wirst band firmwares was updated.

1.8.711 Link:

http://m.app.mi.com/download/68548?dcp=page=detail&id=68548

Tested 3rd Parties App HR boardcast

Endomondo - worked

Runtastic - Nope

RideWithGPS - Nope
[General Accessories] zoufri:
Done.
[General Accessories] Kirrrr:
Thank you for your share! Got it, employ it. =)

I've achieved pretty good results in forcing Mi Fit to behave on CM12 like it behaves on MIUI. I've even got to work that bloody 10 times tap! Without final positive result though. I will post detailed info a bit later.

[MENTION=4278293]zoufri[/MENTION] I will ask you for the last (I hope =) ) thing so I can go further and dig deeper.

Can you please peek into your /data/data/com.android.providers.settings/databases/settings.db, table 'secure' (UPD: and table 'global' too) and check the value of the bluetooth_address_to_unlock setting? I guess it will be a MAC address like F0:FE:F3:15:21:1E but I am not shure. Kind regards!
[General Accessories] zoufri:
No problem
[General Accessories] Kirrrr:
Thank you, [MENTION=4278293]zoufri[/MENTION]!

My hypothesis was right.

Though I don't know is it good or not. =) Cause now I've stuck with pretty serious BLE and OS-aware questions.

I guess I need a community help here. So I'm thinking about where is the right place to post my info to get valuable response. Where is the Mi Band-ed Android-geeks with non-MIUI phones (like me) are hanging out? =)
[General Accessories] KallaiR:
hopefully it is not necessery to be only mi band device but every BTE device. the problem from what i saw when i was trying to overcome this problem, was that android OS couldn't recognise mi band as a trusted bte device. does the miui system recognises the mi band as a trust device? it's the first question that has to be answered.

it would be really helpful in general terms if we could configure at what distance the device is unlocked by the bluetooth and not only when it is on range. so i guess it's more system specific question and not only mi band question.

(excuse my english! :P )
[General Accessories] Kirrrr:
[MENTION=2887617]KallaiR[/MENTION], I guess we are talking about two different approaches.

Your idea is about utilization of BLE devices in general to use it for proximity unlock. It is darn cool but it is rather about development then about tweaking. First of all there are no means in Android to cofigure that unlocking distance based on the BLE RSSI value. And those means must be created.

At the other hand my idea is to get to work Mi Band and Mi Fit on the non-MIUI systems like they work on MIUI. Well, it is not so cool and not so elegant as a fullstack solution development but it is way more realistic. But the root question is "can Mi Fit work in MIUI way on the non-MIUI systems or not?".

Speaking frankly I know very little about how Mi Fit works to make Mi Band an unlock device. I just trying dig a bit into the app to enforce it to do what I want using present resources.
[General Accessories] Enxus:
Hi guys.

I want to connect my miband 1s to endomondo, but I can' do it. I've tried to unpair it in miband app (play store version) and then pair it in endomondo but when I tried to find it in 'bluetooth smart sensors', it didn't show up there. I've also tried to find it in 'bluetooth classic sensors', it takes me to bluetooth settings, the band shows up there, but when I click on it, nothing happens. Then I have to click 'back' button and it goes back to endomondo and it says 'no hr device has been paried yet. Go to bluetooth sttings and search fot your hr device'.

What am I doing wrong?
[General Accessories] KallaiR:
yes u are right. ur approach seems more easy to make it happen. from my point of view, the key must be in the miui roms code. they must have some special mi band specific code to make it work out of the box with proximity function.
[General Accessories] Kirrrr:
I guess it is doubtable.

The origin of the BLE proximity sensitivity in the app is Android BluetoothGatt API and it's readRemoteRssi() function. It is not something proprietary to MIUI and this function is indeed used in the Mi Fit (as it seen in smalies).

Anyway a futher digging is required. :cool:
[General Accessories] KallaiR:
i did some search and i found this:

https://github.com/KashaMalaga/XiaomiMiBand

Ι think the "key" for our problem lies in this miui security bluetooth settings framework.
[General Accessories] Kirrrr:
[MENTION=2887617]KallaiR[/MENTION], wow!

How did you find it? By a wide search or there are some secret places over the internet where such things are discussed?

Unfortunately my experience seems too weak to get how can I exploit it. Is this patch must be applied to Xiaomi Mi Band apk unpacked by ApkTool or something?

Concerning this: "Patch to show Unlock Screen Feature without Miui device". There is a big difference between "to show Unlock Screen Feature" and "to use Unlock Screen Feature". My tweaks of build.prop and settings.db parameters are leading to "show Unlock Screen Feature" too but without further success.

We need to go deeper...
[General Accessories] KallaiR:
unfortunately this (MiuiSecurityBluetoothSettings Framework) must be where the code about how mi band unlocks the miui rom using proximity. and it is in the miui rom. so my ipothesis is that if we find out how this is embedded in the miui rom, we might find out what we should tweak to make it work on no-miui roms.

i am not a developer so i cant go further than this :(
[General Accessories] Kirrrr:
Err... But there is stated "Need Lollipop OR MiuiSecurityBluetoothSettings Framework". Thus I stick my spade tighter and keep digging... =)
[General Accessories] KallaiR:
in lollipop the smart lock is used so we dont have the proximity function. BUT in the miuisecuritybluetoothsettings framework there is this function.

that's why we must dig in the MiuiSecurityBluetoothSettings Framework in order to find out how this (proximity unlock) is succeeded in the miui rom. and then we should found out a way to port it in no-miui roms.
[General Accessories] Kirrrr:
Sounds logical.

But why there are Bluetooth getRssi() and readRemoteRssi() Android functions calls in smali code? If RSSI control is incapsulated inside MiuiSecurityBluetoothSettings Framework then why those low level Android functions present in code? It looks suspiciously.

Obviously it can be just a dev's whim but I hope that there is some useful thing behind it.
[General Accessories] KallaiR:
from my point of view, the mi band unlocking is tricky.what i believe is that the code is divined in 2 parts.

the mi band part and the miui part. the mi band follows the authentication pattern the miui system supplies to it. thus it is recognised as trust device.

in the miui rom part, it is embedded that when a mi band is detected, there must be an authentication before it is allowed to unlock the phone. plus a proximity parameter is used in order to have a more safe unlocking.

in the other hand, on lollipop systems, we have 2 problems..

1st. mi band can't be recognised as a trusted device.

2nd. we don't know if, when it will be recognised as a trusted device, it will use proximity parameters or not.

so the first that we should figure out is how to make it get recognised as a trusted device.
[General Accessories] ecalou:
Hi!

You can use the playstore version of mifit app with edomondo, simply follow the guide few pages before, and use the app activity launcher to launch cn.com.smartdevices.bracelet.gps.ui.RunningMainActivity to enter un "running mode"

Sorry for my bad english !
[General Accessories] KallaiR:
really useful info that the feature is still there but hidden! but how does it stops afterwards? like in the chinese edition app?
[General Accessories] ecalou:
When you press the back key of your phone you come back on the home of the mi band app like in the chinese app

[YOUTUBE]S4uYgmsTp1s[/YOUTUBE]
[General Accessories] dj_aj:
Dude, This is great! Thanks for finding out that the feature was only hidden on the play store app version. I created a shortcut on the homescreen which runs the app activity and it takes me directly to the 'Running Mode'.

It works fairly well with Endomondo, but I only wished that it worked with Runtastic also.

Thanks!
[General Accessories] Butch3r:
i also use the Mi Fit (1.8.511) in combination with Endomondo 12.0.1. Heart Rates are transmitted when i use the "running" Mode of Mi Fit, thats really nice.

But the chinese voice is very strange... is there any way to disable this voice messages because the status should only comes from Endomondo
[General Accessories] umcrying:
Is it possible to enable " google fit sync " on Mi Fit (xiao mi version)?
[General Accessories] zoufri:
Have a look at the Mitools apk. Latest version includes Google fit integration. Don't know if it works though
[General Accessories] Butch3r:
i am figured out to change the sounds in /assets/voice/ with german voices , kicked out some files in res /values-* (ar,am,bn,bg,tr...) and packed the file again. Nice, now there is no longer any "miau" in my ears...

the xml flag to enable the google fit sync in the version 1.8.511 are in assets/config.json

Set googleFitEnable : true showing me the sync menue in 8.511 and 1.8.711, but the linked files are missing, so

these files missing and removed in smali /com/ *google*

Just putting this from 4.11 will not fix it, have to check..

give error:

: Smaling smali folder into classes.dex...

Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short value out of range: 66065

at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)

at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:315)

at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1025)

at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:801)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:250)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:228)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:57)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:378)

at brut.androlib.Androlib.buildSources(Androlib.java:305)

at brut.androlib.Androlib.build(Androlib.java:288)

at brut.androlib.Androlib.build(Androlib.java:261)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)
[General Accessories] leonleibo:
I can't make the band work with endomondo. It finds the band and connect it but when I start the activity the band does not measure my heart rate even once.
[General Accessories] tom888tom:
Any progress here?
[General Accessories] nunomilheiro:
bluetooth broadcast version?

Which version is it that has the blutetooth broadcast version?

I'm currently trying to make strava app get HR from the 1S without success :(
[General Accessories] kentdream:
[MENTION=7309265]nunomilheiro[/MENTION]

I aren't sure which version is has bluetooth boardcast(the op didn't mention it)

Here is a old MiFit(1.4.924) apps found in bbs.xiaomi.cn which claims it will downgrade the firmware. You may try this at your risk and see if app provide BT boardcast.

View attachment Mi_Fit_1.4.924_1.0.9.65_fm_downgrade.apk
[General Accessories] anekselektos:
Nice post!
[General Accessories] leonleibo:
Does anyone know how can I change the language to English on the new Mi Fit version 2.0?
[General Accessories] saumil25:
Can you send the link to the new version? Also, what's new?
[General Accessories] strofo:
Here is the link to the new MiFit app, but app is completely in Chinese language so I am not able to check what is new, but UI is redesigned. Is it possible to change app language to english or we need modified apk?

https://drive.google.com/file/d/0B-9Dasu5MV1ATVJTTmVxNHRXMXc/view?usp=sharing

EDIT: Or you can download it directly from Mi Store
[General Accessories] kentdream:
- the new 2.0 has a more accurate step count.

- no bluetooth boardcast fucntion .

- no english interface.

- endomondo fail to recieve HR data half way through during workout.

- swipe left or swipe right on screen = force quit.

And the new v2.0 HR still work with endomondo.

Runtastic still fail.