Related
Folks,
I have leaved my HTC touch HD with windows 6.1 to Android 2.3 Gingerbread on the android Galaxy SII.
Well, I am enthousiastic because for the moment I'm not satisfied but I am confidant that this platform will be improved soon.
Here after the lacks / regressions I have identified:
many apps require too much permissions (access to contact for instance) and it is not possible to refuse without cancelling the installation
android 2.3 does not allow to tune the frequency of Gmail email and calendar synchronisation
email application does not allow to store on the phone more than 1 month of email for off line access, attachment are not available offline
the lock screen code cannot be tuned to request the code only after X minutes
the widget with toggles cannot be customised
and the clues to improve :
The app "permission denied" allows to manage permissions unfortunatly it doesn t work on android 2.3. I wait for the next cyanogen rom
It is possible to use the native email application with exchange but there is some other lacks...
.... no clue
.... no clue
OnOff Widgets Pack does but you need to pay for it. Not expansive but amazing after buying such an expansive device
Hope it helps
Hope you can help me too
•The app "permission denied" allows to manage permissions it shall be installed with the chainfire's modified kernel. This app is succefully tested on several games / apps.
Best toggling bar is :
http://jaumard.android.free.fr/widgetsoid/index.php?lang=fr_FR
Unfortunatly it adds a bar instead of modifying the already existing one in the status bar but it is already a great app.
HERVEG said:
many apps require too much permissions (access to contact for instance) and it is not possible to refuse without cancelling the installation
The app "permission denied" allows to manage permissions unfortunatly it doesn t work on android 2.3. I wait for the next cyanogen rom
Click to expand...
Click to collapse
try LBE Privacy Guard and DroidWall combo
p107r0 said:
try LBE Privacy Guard and DroidWall combo
Click to expand...
Click to collapse
Hey, thanks for your advice but this apps are "only firewall" while Permission denied allows to modify all permissions. This is a really powerfull tool. Indeed with the kernel modded by chainfire this app is fully fonctionnal.
Anyway, I am also interested in firewalls and I rally appreciate lbe that could pop up each time an app try to access internet to set up the permissions (as for root permissions).
HERVEG said:
Folks,
I have leaved my HTC touch HD with windows 6.1 to Android 2.3 Gingerbread on the android Galaxy SII.
Well, I am enthousiastic because for the moment I'm not satisfied but I am confidant that this platform will be improved soon.
Here after the lacks / regressions I have identified:
many apps require too much permissions (access to contact for instance) and it is not possible to refuse without cancelling the installation
android 2.3 does not allow to tune the frequency of Gmail email and calendar synchronisation
email application does not allow to store on the phone more than 1 month of email for off line access, attachment are not available offline
the lock screen code cannot be tuned to request the code only after X minutes
the widget with toggles cannot be customised
and the clues to improve :
The app "permission denied" allows to manage permissions unfortunatly it doesn t work on android 2.3. I wait for the next cyanogen rom
It is possible to use the native email application with exchange but there is some other lacks...
.... no clue
.... no clue
OnOff Widgets Pack does but you need to pay for it. Not expansive but amazing after buying such an expansive device
Hope it helps
Hope you can help me too
Click to expand...
Click to collapse
The solution is here : http://forum.xda-developers.com/showthread.php?t=1086976
I m close to be happy with this mobile!
HERVEG said:
the lock screen code cannot be tuned to request the code only after X minutes
Click to expand...
Click to collapse
This functionality is available in the latest 2.3.4 updates...
Dickie
Now I can day that my SGSII is the best phone I have ever owned. The last missing is that the attachment in email do not download automaticly.
Do anyone knows about a xay to do it?
HERVEG said:
Now I can day that my SGSII is the best phone I have ever owned. The last missing is that the attachment in email do not download automaticly.
Do anyone knows about a xay to do it?
Click to expand...
Click to collapse
GSaver will not auto download attachements, but it will let you save any attachements, not only those allowed
For many reasons (not using push to save battery, task sync, full callendar sync...) I use my google.account in exchange protocol using native email app. Gsaver is useless for me.
What I m looking for is an app or mod that automaticly download attachments. This option featured on my old htc touch hd... Sic
Hello
I just stumbled over this document: micro-modular.com/docs/AddlRsrc/GSD4e OSP Manual (CS-129291-DC-9).pdf
So, for example on site 119 for example you can see that it is possible to disable the static navigation filter by sending the corresponding Payload Sequence to the SirfIV chipset. The only question which remains is "how can we send these strings to the chipset".
And this is the point where we need some really brilliant XDA developers. If someone would manage to open the communication way to the sirf IV chipset, it would be possible to reconfigure this chipset totaly free.
At the beginning it can be a really simple tool where you have to enter the Start sequence, payload and end sequence which should be send manually. This would be good enough. But the biggest part will be to find a way to communicate with the GPS chipset. Maybe someone knows some good tools to find out how to communicate with the GPS chipset.
I'm very curious on your suggestions.
Best regards,
Chris
And here we can see what static navigation is doing with our tracks. On the right side I was running (high speed) and on the left side I was walking (slow speed). You can see that the static navigation feature freezes the track if you do not move very wide within approx. 30 seconds and releases the freeze if you moved a certain distance. This continues until you are moving at higher speeds.
To generate the tracks the original NMEA data from the SirfIV GPS chipset was dumped every second.
Because of the zoom level you can not see every timestamp, but there IS a trackpoint every second. While at higher speeds they are aligned along the track (right side) the are lying at exactly the same place during the freeze on the left track.
Best regards,
Chris
Maybe an interesting place to search for is the file:
/system/lib/hw/gps.s5pc210.so
Inside this you will find strings like:
MI_SetStaticNav
NL_GetStaticNavMode
NL_SetStaticNavMode
NL_Get_StaticNav_Status
NL_GetStaticNavMode_NL3
NL_SetStaticNavMode_NL3
NL_StaticNav
MI_GetStaticNav
StaticNav: %s3SV
NL_SetStaticNavMode()
NL_StaticNav()
Seems to be interesting.
Best regards,
Chris
And for the usage of the "MI_GetStaticNav" and "MI_SetStaticNav" functions see:
read.pudn.com/downloads28/sourcecode/embed/88065/SDK%20Users%20Guide%20Part%201%20-%20Software.pdf
Page Nr. 196
Is it possible to use the functions defined within the .so file from your own programs???
segelfreak2 said:
Is it possible to use the functions defined within the .so file from your own programs???
Click to expand...
Click to collapse
Yes, it is possible and easily done.
segelfreak2 said:
Hello
I just stumbled over this document: micro-modular.com/docs/AddlRsrc/GSD4e OSP Manual (CS-129291-DC-9).pdf
So, for example on site 119 for example you can see that it is possible to disable the static navigation filter by sending the corresponding Payload Sequence to the SirfIV chipset. The only question which remains is "how can we send these strings to the chipset".
And this is the point where we need some really brilliant XDA developers. If someone would manage to open the communication way to the sirf IV chipset, it would be possible to reconfigure this chipset totaly free.
At the beginning it can be a really simple tool where you have to enter the Start sequence, payload and end sequence which should be send manually. This would be good enough. But the biggest part will be to find a way to communicate with the GPS chipset. Maybe someone knows some good tools to find out how to communicate with the GPS chipset.
I'm very curious on your suggestions.
Best regards,
Chris
Click to expand...
Click to collapse
Not Applicable.
The GS2 has a GSD4t, not a GSD4e. It's the "crippled" version of the Star IV that uses the host processor to do all the work.
Entropy512 said:
Not Applicable.
The GS2 has a GSD4t, not a GSD4e. It's the "crippled" version of the Star IV that uses the host processor to do all the work.
Click to expand...
Click to collapse
Hello Entropy512,
thank you for your comment. I know that the SGS2 has a GSD4t unit. But despite the document is named GSD4e OSP Manual... it is also applicable to the GSD4t version. So it is written in the document. And as I posted, there is a .so file who has all these functions in it. We just need to use it. And I think that the functions provided within gps.s5pc210.so are really worth a try.
aerobahn said:
Yes, it is possible and easily done.
Click to expand...
Click to collapse
Hello aerobahn,
many thanks also to you for your input. Your answer sounds great in my ears . I think it should be worth a try if it is really so easy to use functions defined within a .so library file. I do not have any experience in programming for android, but if someone who has would try it I would appreciate that. Because without static navigation the SGS2 would be a very good GPS logger too. And this can be somtimes very valuable, for geocaching, hiking tours, even low speed navigation...
Best regards,
Chris
No one who wants to try? Please. If you succeed I'm willing to honor your effort.
I have no programming skills at all but i am able to test whatever lib is generated
I can test daily in a 30 Km path (and 30 Km back).
segelfreak2, what you really want is to enable satic navigation and not disable it, as it is already disabled by Samsung. Static navigation disabled means filtering is ON. Static navigation enabled means filtering OFF. It is a common misconception.
Nevertheless, I have developed a tool called GPS Control for SGS2. You can check it out on market. It does exactly what you need. Just remember to reboot after changing Static Navigation config. It requires root access and works only on I9100.
You are welcome to propose any additions you might want in future versions.
The app doesn't work with CM7. I'd like to know if static navigation is enabled in CM7 by default.
Sent from my GT-I9100 using XDA App
Yes, it is not supposed to work with CM (yet). Just send me your gps library file (.so) and I can update the app so that it works with CM also. (or I'll just send you a modified .so)
It's not working with MIUI too. If you tell me which file(s) you need, I would give them to you. At the moment it just says unknown driver.
Sent from my GT-I(OVER 9000!!!!) using XDA App
In recent stock firmwares the file is /system/lib/hw/gps.s5pc210.so
In older ones the file was /system/lib/hw/gps.GT-I9100.so
steffato said:
segelfreak2, what you really want is to enable satic navigation and not disable it, as it is already disabled by Samsung. Static navigation disabled means filtering is ON. Static navigation enabled means filtering OFF. It is a common misconception.
Nevertheless, I have developed a tool called GPS Control for SGS2. You can check it out on market. It does exactly what you need. Just remember to reboot after changing Static Navigation config. It requires root access and works only on I9100.
You are welcome to propose any additions you might want in future versions.
Click to expand...
Click to collapse
I'm curious, why did Samsung disable static navigation by default?
I think this would be good for those who uses the phone to track their marathons etc
mengsuan said:
I'm curious, why did Samsung disable static navigation by default?
I think this would be good for those who uses the phone to track their marathons etc
Click to expand...
Click to collapse
As long as you don't walk the marathon, you should be fine
@ steffato: I've sent you a pm with the .so files
Just updated the app in the market. It now should support both MIUI and CM. Try it and I 'm waiting for results. Thanks for your input.
Please be patient. The update may take some time to show up in the market.
Raudi1 said:
As long as you don't walk the marathon, you should be fine
@ steffato: I've sent you a pm with the .so files
Click to expand...
Click to collapse
I tried endomondo on the phone. It does "pause" my location and then update seconds later. Average speed is 9-10km/h
Sent from my GT-I9100 using Tapatalk
Don't forget to reboot after changing setting. It's required or there will be no change. On some cases the phone may crash and reboot on its own, unless you rebooted after changing settings.
If you want to check your gps behaviour after enabling static navigation, you should try disabling any filtering options that you app might have. I test with locus after disabling filters.
Don't test it with googlemaps. There is filtering in that app, therefore gps behaves the same either with sn enabled or disabled.
Sent from my GT-I9100 using xda premium
thank you.
your program is working quite good.
mayby you should create a separate topic in the original dev forum?
the question is how it influence battery life?
Sent from my GT-I9100 using Tapatalk
Hi all,
If you've read the text that USED to exist here before, scratch that. Big Thanks to @Sunius1 for clarifying what I thought was a win. Due to this, I DID find something interesting in regards to the ExtensibilityApp class (Windows.Phone.System.LockscreenExtensibility.ExtensibilityApp). I happened to also find a hidden capability "ID_CAP_SHELL_DEVICE_LOCK_UI_API" (Seems to be a locked CAP because it only works on Emulator. I get a deployment error on my if I try including this capability). I suspected that these two worked together, but I wanted to make sure of this.
Before we get started, read through the documentation from this site: http://msdn.microsoft.com/en-us/lib...lockscreenextensibility.extensibilityapp.aspx.
We have the following methods:
BeginUnlock
EndUnlock
GetLockPinpadHeight
IsLockScreenApplicationRegistered
IsSystemOverlayApplicationRegistered
RaiseToastNotifications
RegisterLockScreenApplication
RegisterSystemOverlayApplication
UnregisterLockScreenApplication
UnregisterSystemOverlayApplication
EDIT: After the release of the Live Lock Screen app, my speculations about the ID_SHELL_CAP_DEVICE_UI_API capability and the ExtensibilityApp object were correct. Thanks to @jessenic for finding out a good bit of info on this with me.
It seems that in order to get this working, we have to add an Extension to the WMAppManifest.xml
<Extension ExtensionName="LockScreen_Application" ConsumerID="XXXXX" TaskID="_default" ExtraFile="Extensions\\LockAppExtension.xml" />
In the LockAppExtension.xml:
<?xml version="1.0"?>
<x:Extension xmlns:x="urn:LockApp">
<AppID>AppNameForLockScreen</AppID>
</x:Extension>
As usual, Microsoft doesn't really give us much in terms of documentation.. Probably because it isn't meant to be used by the normal developer Confirmed: For now we have to actually ask for permission in order to use the cap. As to whether we'll get that granted? Who knows....
All of these methods have no parameters at all, but I can almost guarantee this has to do with having an application that can control the lock screen.
This thread will be for efforts in breaking this open and seeing whether we can create lockscreen applications..
Homebrew Lockscreen Apps:
Lockscreen App by @-W_O_L_F-
There are actually two Windows.winmd files in Windows Phone SDK, one for Silverlight 8.1 apps and one for Jupiter 8.1 phone apps (located in C:\Program Files (x86)\Windows Phone Silverlight Kits\8.1\ and C:\Program Files (x86)\Windows Phone Kits\8.1\). There's only one the phone. And some APIs support only one app type (it's phone limitation it seems: faking .winmd file results in Platform::InvalidOperationException, saying you cannot use that API from this app type). That explains why the one on the phone has more APIs available than either of for single app type.
As for LockscreenExtensibility - it's documented, just not available for Jupiter apps:
http://msdn.microsoft.com/en-us/lib...ows.phone.system.lockscreenextensibility.aspx
Sunius1 said:
There are actually two Windows.winmd files in Windows Phone SDK, one for Silverlight 8.1 apps and one for Jupiter 8.1 phone apps (located in C:\Program Files (x86)\Windows Phone Silverlight Kits\8.1\ and C:\Program Files (x86)\Windows Phone Kits\8.1\). There's only one the phone. And some APIs support only one app type (it's phone limitation it seems: faking .winmd file results in Platform::InvalidOperationException, saying you cannot use that API from this app type). That explains why the one on the phone has more APIs available than either of for single app type.
As for LockscreenExtensibility - it's documented, just not available for Jupiter apps:
http://msdn.microsoft.com/en-us/lib...ows.phone.system.lockscreenextensibility.aspx
Click to expand...
Click to collapse
Well that is very good to know! Thanks for the clarification. The best part is that I was actually able to compile without receiving an error (somehow).
I found something that may be of use in order to get the LockscreenExtensibility working (I just tried on a Silverlight 8.1 app and got access denied).
<Capability Name= "ID_CAP_SHELL_DEVICE_LOCK_UI_API"/> <----. Can't be used OOTB
EDIT: I just tested this in the Emulator and it really IS the capability that the LockscreenExtensibility needs in order for it to work.
snickler said:
I found something that may be of use in order to get the LockscreenExtensibility working (I just tried on a Silverlight 8.1 app and got access denied).
<Capability Name= "ID_CAP_SHELL_DEVICE_LOCK_UI_API"/> <----. Can't be used OOTB
EDIT: I just tested this in the Emulator and it really IS the capability that the LockscreenExtensibility needs in order for it to work.
Click to expand...
Click to collapse
I assume this is the thing Rudy Hyun used to create the lockscreen app at Build?
TheInterframe said:
I assume this is the thing Rudy Hyun used to create the lockscreen app at Build?
Click to expand...
Click to collapse
I speculate that this is what he's using. I bet there's more going on that we have yet to figure out. It also could be that the base class EXISTS, but the full implementation isn't available yet. Who knows.
snickler said:
I speculate that this is what he's using. I bet there's more going on that we have yet to figure out. It also could be that the base class EXISTS, but the full implementation isn't available yet. Who knows.
Click to expand...
Click to collapse
Ah, Yes that makes sense. I wonder if there are any other "half-baked" API's in the SDK?
Edit: I Know it sounds stupid but honestly I think we should have a thread dedicated to finding odd API's (Just found one: Windows.Phone.System.SystemProtection, nothing terribly useful though)
TheInterframe said:
Ah, Yes that makes sense. I wonder if there are any other "half-baked" API's in the SDK?
Edit: I Know it sounds stupid but honestly I think we should have a thread dedicated to finding odd API's (Just found one: Windows.Phone.System.SystemProtection, nothing terribly useful though)
Click to expand...
Click to collapse
there are also some hidden APIs in the current SDK for 3D Touch-enabled Apps!
From WP Central:
Some of the features include APIs for gestures, side interactions and even heat maps.
Crazy stuff.
Believe it or not, some of these APIs for developers are in the current SDK, they're just not visible. What this mean though is developers will have access to this 3D Touch technology for their apps. It also means that Microsoft will have a small batch of third-party apps supporting this 3D Touch technology on launch day.
Click to expand...
Click to collapse
source: http://www.wpcentral.com/microsofts-next-flagship-windows-phone-november-3d-touch
Yea, even though those 3D touch APIs may be available, they're not particularly useful, as they require special hardware to work.
Sunius1 said:
Yea, even though those 3D touch APIs may be available, they're not particularly useful, as they require special hardware to work.
Click to expand...
Click to collapse
That is true. Sort of of a side question though, has anyone made a OEM account and looked over the API documentation there? There maybe some useful things we could learn about WP and maybe further a jailbreak for all WP devices....
TheInterframe said:
That is true. Sort of of a side question though, has anyone made a OEM account and looked over the API documentation there? There maybe some useful things we could learn about WP and maybe further a jailbreak for all WP devices....
Click to expand...
Click to collapse
API isn't much useful as long as you cant really use most of functions due to policies.
ultrashot said:
API isn't much useful as long as you cant really use most of functions due to policies.
Click to expand...
Click to collapse
Ah, Yes that makes sense....
http://www.wpcentral.com/joe-belfiore-announces-new-updates-sheds-details-lock-screen-app
Sounds like there will be a dev preview update to enable lockscreen functionality quite soon. Joe also mentioned keeping the lock screen in memory. So 512 MB devices won't get the functionality soon....
Good stuff. Another question: can apps show the action center? Because I want code an app to show notifications on lockscreen. Thanks
Marocco2 said:
Good stuff. Another question: can apps show the action center? Because I want code an app to show notifications on lockscreen. Thanks
Click to expand...
Click to collapse
something to force the volume/music control on the lock screen to automatically open would be really useful as well
Updated first post with some more data since the Live Lockscreen App debuted yesterday. There's more I didn't get into, but I want others to dig in and find out
I suppose we can only speculate how it works at this point, but if I had to guess, it goes like this:
1. You have 2 projects in your LockScreenApp solution, one for the application to register the lockscreen, and the second one for the actual lock screen application.
2. The former would use ExtensibilityApp APIs to register the the second one, coupled with the manifests so it's all "valid".
3. The second application is just a another app that is able to process input and draw whatever it wants on the screen. That would explain why there's a delay at it starting when you press lock screen button while the phone is sleeping (probably it's a time for .NET to startup? Direct3D app should be able to start much faster).
Although this is only speculation, I think this makes sense, because that's how background tasks work on Windows, at least. I wonder though, why Microsoft is not releasing the APIs to be used in public - are they afraid somebody will make a lockscreen application that will drain the battery fast or something?
Sunius1 said:
I suppose we can only speculate how it works at this point, but if I had to guess, it goes like this:
1. You have 2 projects in your LockScreenApp solution, one for the application to register the lockscreen, and the second one for the actual lock screen application.
2. The former would use ExtensibilityApp APIs to register the the second one, coupled with the manifests so it's all "valid".
3. The second application is just a another app that is able to process input and draw whatever it wants on the screen. That would explain why there's a delay at it starting when you press lock screen button while the phone is sleeping (probably it's a time for .NET to startup? Direct3D app should be able to start much faster).
Although this is only speculation, I think this makes sense, because that's how background tasks work on Windows, at least. I wonder though, why Microsoft is not releasing the APIs to be used in public - are they afraid somebody will make a lockscreen application that will drain the battery fast or something?
Click to expand...
Click to collapse
I don't think its that but most likely the fact that the API is un-optimized, some of the facts you stated (i.e. Slow start up, documentation is lacking) etc... The fact the OS needs to be updated to show a section telling the user what lock screen app has taken over (since the setting page doesn't now)
Edit: Remember what Joe said about keeping the lockscreen in memory and 512MB devices might not be supported for that reason? Yeah seems like they aren't doing that since you can see the resume time for the lo screen is wayyy to much
Sunius1 said:
I suppose we can only speculate how it works at this point, but if I had to guess, it goes like this:
1. You have 2 projects in your LockScreenApp solution, one for the application to register the lockscreen, and the second one for the actual lock screen application.
2. The former would use ExtensibilityApp APIs to register the the second one, coupled with the manifests so it's all "valid".
3. The second application is just a another app that is able to process input and draw whatever it wants on the screen. That would explain why there's a delay at it starting when you press lock screen button while the phone is sleeping (probably it's a time for .NET to startup? Direct3D app should be able to start much faster).
Although this is only speculation, I think this makes sense, because that's how background tasks work on Windows, at least. I wonder though, why Microsoft is not releasing the APIs to be used in public - are they afraid somebody will make a lockscreen application that will drain the battery fast or something?
Click to expand...
Click to collapse
You are correct. Two projects: One is the settings page, which is the main entrypoint of the app when it's opened from the start menu and the second one is the actual lockscreen app.
The settings page uses the ExtensibilityApp APIs to register the second one as a lock screen application. That second application is another 8.1 Silverlight app that uses a LockScreen_Bridge WinRT component that has native access to read what is shown on the lockscreen from the WP Settings item.
It then uses some storyboards to make it do different things as you're swiping up and down on the LayoutRoot grid. It does use a timer so that's where that little lag comes from.
The only background stuff it's doing is latching on to system events ("Start button being touched for example").
I can see where MS would be protective of this. They DID say that they would be releasing a public version of the API at some point. I'm hoping it's not one of the situations that leaves it public only when they've approved you to be able to use it.
It does suck that it's restricted to 8.1 Silverlight though. I could see some Music Apps wanting to take advantage of the lockscreen like this.
snickler said:
You are correct. Two projects: One is the settings page, which is the main entrypoint of the app when it's opened from the start menu and the second one is the actual lockscreen app.
The settings page uses the ExtensibilityApp APIs to register the second one as a lock screen application. That second application is another 8.1 Silverlight app that uses a LockScreen_Bridge WinRT component that has native access to read what is shown on the lockscreen from the WP Settings item.
It then uses some storyboards to make it do different things as you're swiping up and down on the LayoutRoot grid. It does use a timer so that's where that little lag comes from.
The only background stuff it's doing is latching on to system events ("Start button being touched for example").
I can see where MS would be protective of this. They DID say that they would be releasing a public version of the API at some point. I'm hoping it's not one of the situations that leaves it public only when they've approved you to be able to use it.
It does suck that it's restricted to 8.1 Silverlight though. I could see some Music Apps wanting to take advantage of the lockscreen like this.
Click to expand...
Click to collapse
Quite interesting...!
The API in itself is quite powerful, custom lockscreens with weather animations are possible! http://wmpoweruser.com/wp8-1-live-l...amazing-lock-screen-weather-animations-video/
Since there is no Forum for the Mi Band ...
After receiving my Mi Band yesterday I started digging inside the sourcecode of the Mi Band App to find out interesting stuff.
It works with all BLE device, not only Xiaomi ones
It uses an unsecure protocoll which can be reverse engineered, so you could build an API out of it or port it to other mobile OS.
I will update algorithms & the protocol asap, but there is already a lot of usefull stuff on the protocol inside my blog: http://allmydroids.blogspot.de/2014/12/xiaomi-mi-band-ble-protocol-reverse.html
If someone is interested in writing an API, contact me.
Great! But some questions:
1) when you say "I started digging inside the sourcecode" you mean the smali decompiled from the app apk, right? Or is there some open code I missed?
2) if we create an apk which exposes the API (for example via android intents) can it connect to the device at the same time with the original Mi app? Or is the pairing exclusive to an app so we have to hack the app itself (for example via an Xposed module)? (Note: I'm extremely ignorant about bluetooth LE).
Thank you!
bitblaster said:
Great! But some questions:
1) when you say "I started digging inside the sourcecode" you mean the smali decompiled from the app apk, right? Or is there some open code I missed?
Click to expand...
Click to collapse
Decompiled and looked at smali + java from smali (which skips stuff so make sure to check original smali, too)
bitblaster said:
if we create an apk which exposes the API (for example via android intents) can it connect to the device at the same time with the original Mi app? Or is the pairing exclusive to an app so we have to hack the app itself (for example via an Xposed module)? (Note: I'm extremely ignorant about bluetooth LE).
Click to expand...
Click to collapse
We are currently developing a BLE app to a customer and I agree that it is horrible. Android has really messed up everything they could when it comes to BLE.
Other apps could access at the same time. Pairing is done through the Android not the app itself. Although it could be that the band itself limits this somehow. I will check that soon.
Awesome...I'm glad I found this. I just got my band and didn't realize it only worked with the app from XIAOMI. Very disappointed. Also, I can't even set mine up right now. I set up an account and when I go to sign in it says I have the wrong password! When I go to reset the password it has to SMS me a verification code and it NEVER COMES. Total waste.
I hope you guys get this working soon and we can use it with apps that won't send our data back to mainland China. Do you know if this will work with 'Sleep as Android'? That's what I got this for. I thought it was a basic bluetooth device, not some proprietary POS.
NeoMatrixJR said:
Do you know if this will work with 'Sleep as Android'? That's what I got this for. I thought it was a basic bluetooth device, not some proprietary POS.
Click to expand...
Click to collapse
I uploaded a very first Android App today but it can do only very few things yet - but currently it doesn't do the setup. I don't know that app so I don't know if it can interact with other devices and if, how good. But the Miband can detect sleep phases (pretty good for me) and can wake you, so I guess it could be possible.
motioncoding said:
I uploaded a very first Android App today but it can do only very few things yet - but currently it doesn't do the setup. I don't know that app so I don't know if it can interact with other devices and if, how good. But the Miband can detect sleep phases (pretty good for me) and can wake you, so I guess it could be possible.
Click to expand...
Click to collapse
Downloaded and tried to install your app. Unfortunately gave me an error. Looking forward to a new version.
Thanks for your effort [emoji106]
andbroe said:
Downloaded and tried to install your app. Unfortunately gave me an error. Looking forward to a new version.
Click to expand...
Click to collapse
Does your device support Bluetooth LE and is Bluetooth enabled?
motioncoding said:
Does your device support Bluetooth LE and is Bluetooth enabled?
Click to expand...
Click to collapse
Yes and yes. The problem is during installation. "Error parsing the package"
My phone is a Samsung Note 3
Cheers from Switzerland
andbroe said:
Yes and yes. The problem is during installation. "Error parsing the package"
Click to expand...
Click to collapse
Ah you tried the .apk from /bin? Thats not working. You have to compile it. I will upload a working one when it has some more features.
Hello again,
downloaded and installed Android Studio. Compiled your project, all went quite smooth. Unfortunatly the app still does not quite work. Without the band close it quickly complains that there is no band around (good). With my miband close, it scans for ever (not good). Somehow it does not communicate with it.
The BLE Device Monitor detects it well.
Regards
andbroe said:
Hello again,
downloaded and installed Android Studio. Compiled your project, all went quite smooth. Unfortunatly the app still does not quite work. Without the band close it quickly complains that there is no band around (good). With my miband close, it scans for ever (not good). Somehow it does not communicate with it.
The BLE Device Monitor detects it well.
Regards
Click to expand...
Click to collapse
Hi,
I tried the same actions. Seems problem with discovering.
According to google:
startLeScan: Added in API level 18 This method was deprecated in API level 21.
Changed API from default 21 to 18 - nothing has changed.
MI device is visible in other BLE apps, in Bluetooth settings as well. Original translated app working well.
Nexus 4, android 4.4.4
Android Studio 1.0.1
Regards,
Klym
yeah, I commented out the code that actually loads data. Will fix that.
Could you get the Mi Band to sync with Google Fit?
---------- Post added at 09:45 PM ---------- Previous post was at 08:49 PM ----------
motioncoding said:
I uploaded a very first Android App today but it can do only very few things yet - but currently it doesn't do the setup. I don't know that app so I don't know if it can interact with other devices and if, how good. But the Miband can detect sleep phases (pretty good for me) and can wake you, so I guess it could be possible.
Click to expand...
Click to collapse
There is an api for Sleep as Android.
https://sites.google.com/site/sleepasandroid/doc/sleepcloud-api
How about accelerometer raw data or sleep data, is it available?
Hi,
i try to connect my miBand with my laptop.
I found this site with some source code:
https://bitbucket.org/OscarAcena/mibanda
I installed all dependencies and run this as sudo python miband.py:
Code:
from gattlib import DiscoveryService
service = DiscoveryService("hci0")
devices = service.discover(2)
for address, name in devices.items():
print("name: {}, address: {}".format(name, address))
But after 10 seconds, I get an empty result.
My hciconfig shows this:
Code:
[email protected]:~$ hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:C2:C6:59:91:73 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1475 acl:0 sco:0 events:71 errors:0
TX bytes:1723 acl:0 sco:0 commands:47 errors:0
Does anyone know, what to do?
I'd happily swing a few bucks for an app where it can link with google fit.
reconchrist said:
I'd happily swing a few bucks for an app where it can link with google fit.
Click to expand...
Click to collapse
Well...
I just have a quick questions about the possible functionality of the MiBand and what has been discovered thus far. Can the LEDs be individually controlled? Also, I know you can dismiss an alarm by touching the MiBand, does it detect this touch through motion or is there a capacitive switch in the MiBand?
I don't know how much help I can be, but I'm just curious about the technologies that they've been able to pack into the band.
Devo7v said:
I know you can dismiss an alarm by touching the MiBand, does it detect this touch through motion or is there a capacitive switch in the MiBand?
Click to expand...
Click to collapse
Seems there is no "touchpad", when needed (alarm and pairing) bracelet just detect vibrations from finger knocks.
Very likely it's internal firmware function and can't be accessed outside.
Also some advertising: useful additions for Mi Band
@motioncoding
Can you please tell me what Bluetooth profiles are supported by Mi Band ?
For this:
1. Go to the Bluetooth settings on your phone
2. There you will see the names of Bluetooth devices listed including the Mi Band
3. There will be a gear (or options) icon beside the name... tap on that and please post a screenshot of the screen that appears.
Thank You
I've updated from KK to MM (Note 4 f version).
I seem to have lost certain features from the "upgrade"
1. Can anyone recommend a multi window app, that wound allow me to add custom apps to the supported app list. So I can use them in multi windows?
I've used this in the past https://play.google.com/store/apps/details?id=com.bjbinc.mwmphone but it says I need to be rooted. Which I am.
I don't think it's compatible with MM.
2. Is there a do not disturb mode within MM, that allows you to block mobile data between certain times?
I used to use it in KK, to block data through the night, but, MM's version just seems to block sounds etc.
3. When using KK, apps like Clean Master, used to allow me to block apps from secretly starting up and allow me to clear cache/junk.
Since updating to MM, Clean Master and other apps I've tried all fail to do either.
They appear to clear the cache/junk, but if I reboot it's still there.
(At the moment I'm using "App Settings" via Xposed to block app start ups).
4. Is there a way of unlocking the phone from off, using the fingerprint scanner?
At the moment, I have to use a password (not pattern) and then use the scanner from sleep.
The Samsung Tab S2, allows a pattern or password from off and then the scanner from sleep.
5. The handwriting to text converter in S-Note as been removed in MM.
Thanks for any help.
Reply to your 2nd question :
Download a app called 'profile scheduler +' from google playstore and install it. Edit the normal profile according to your needs. Then edit any other profile and give it DND as the name. Configure the various settings for DND profile and save it. Then create a new rule. Set the activation and deactivation time. Set the rule type as scheduler. Save it. Make sure that the new rule is prefixed with the green symbol in tasks list of the profile scheduler + app. If you like, purchase the pro version which will come without ads. It is cheaper too. Enjoy.
Reply to your 3rd question :
Download and purchase (to disable the in app ads) app cache cleaner pro app from the google playstore. Configure it so that the app which uses maximum cache space is shown first (size descending order). Just make the app to manually scan for temp / cache files.
"Go to the individual app properties in the settings --> application manager (in android 6.0.1) and tap on storage. Then choose clear cache"
Do as said (in double quotes) for each and every app.
What to do man?. Google is removing all essential features :
Android 4.3 - Access to flight mode by all third party apps is disabled
Android 4.4 and its sub versions - Write access to the memory card by all third party apps (lile x-plore, es file manager, bookmarksb pro, app backup and restore pro etc) was also blocked
Android 5.0.1 - battery draining quickly
Android 6.0.1 - Disabled all third party apps to access the bookmarks of the stock browser. Because of this, the facility to import the bookmarks (from the stock browser) to the android firefox is also missing in the firefox settings under android 6.0.
sudhakar35 said:
Reply to your 2nd question :
Download a app called 'profile scheduler +' from google playstore and install it. Edit the normal profile according to your needs. Then edit any other profile and give it DND as the name. Configure the various settings for DND profile and save it. Then create a new rule. Set the activation and deactivation time. Set the rule type as scheduler. Save it. Make sure that the new rule is prefixed with the green symbol in tasks list of the profile scheduler + app. If you like, purchase the pro version which will come without ads. It is cheaper too. Enjoy.
Click to expand...
Click to collapse
Thank you very much. I'll try that out.
I couldn't find "profile scheduler +", but I guess you mean this https://play.google.com/store/apps/details?id=com.wetpalm.ProfileScheduler
The other 2 apps called "profile scheduler" seem to be for audio only.
Yes. The same app. Enjoy. I think buying option is within the app.
sudhakar35 said:
Yes. The same app. Enjoy. I think buying option is within the app.
Click to expand...
Click to collapse
OK, thanks.
I've just tried the app, but I can't make it switch off mobile data at a scheduled time.
If I do other things within the same rule, like switch on WiFi, switch off BT and increase brightness, they all work.
So I know I've created and activated the rule.
For #1, you can use Firefds Kit xposed module.
For #4, you can use No Lock Home xposed module (but only works when connected to wifi).
GrippingSphere said:
For #1, you can use Firefds Kit xposed module.
For #4, you can use No Lock Home xposed module (but only works when connected to wifi).
Click to expand...
Click to collapse
Awesome, thank you.
Firefds Kit, is a million times better than the current version of Wanam i.e. most things work on MM.
I've not tried the other one, I don't leave WiFi on.
Have you also lost notification previews by any chance? I'm unclear as to whether this is just me or the same for everyone.
http://forum.xda-developers.com/note-4/help/n910f-marshmallow-6-0-1-notification-t3384131
0-0-0 said:
OK, thanks.
I've just tried the app, but I can't make it switch off mobile data at a scheduled time.
If I do other things within the same rule, like switch on WiFi, switch off BT and increase brightness, they all work.
So I know I've created and activated the rule.
Click to expand...
Click to collapse
There is option to switch off the mobile data, wifi, sync, GPS etc. See properly.
EmulaMind said:
Have you also lost notification previews by any chance? I'm unclear as to whether this is just me or the same for everyone.
http://forum.xda-developers.com/note-4/help/n910f-marshmallow-6-0-1-notification-t3384131
Click to expand...
Click to collapse
No, they work fine for me.
sudhakar35 said:
There is option to switch off the mobile data, wifi, sync, GPS etc. See properly.
Click to expand...
Click to collapse
I see the settings, but can't trigger to stop Mobile Data. The others, like WiFi can be triggered.
I've also installed Tasker and Secure Settings, to try and alter Mobile Data.
But, Secure Settings (which I think is needed to alter things like Mobile Data & GPS), says I need to root the device.
I think the problem with apps like Clean Master, Cache Cleaner Pro, Profile Scheduler, Tasker and Secure Settings, they all need root access to alter system permissions.
I've got root, but they aren't triggering Super SU to allow root and so those apps think I'm not rooted. And don't work properly.
Clean Master and Cache Cleaner Pro, appear to clear the cache, but they don't delete anything.
Maybe the problem of not seeing root, is something in MM or maybe it's because I'm using the latest beta version of Super SU?
See this
See the attached file of the profile scheduler + app.
sudhakar35 said:
See the attached file of the profile scheduler + app.
Click to expand...
Click to collapse
Yes, I see the menu on my phone too. Except I've altered the Mobile Data to off and there's an empty circle to the right of the screen.
Hey. Just tap on the circle. The value will change to no change, yes or no.
sudhakar35 said:
Hey. Just tap on the circle. The value will change to no change, yes or no.
Click to expand...
Click to collapse
I have done that.
Off = empty circle
No change = yellow circle
On = green circle
As a test, I've set Mobile Data to off and WiFi to On, within the same rule, to trigger at a set time.
When I run the test, the WiFi switches on, but there's no change with the Mobile Data.
I've a different question, if you wouldn't mind answering:
Is it possible to configure a long press of the recent apps to show the multi/split window screen, instead of the wallpaper/widgets/home screen settings screen (like when you long on the home screen)?
When I do the above on the tablet, I see the multi/split window screen.
I think mobile data is indirectly controlled by android restriction. I didn't use that restriction. If you want to cascade view a app, just rub the display with a single finger from top right to the bottom left.
sudhakar35 said:
I think mobile data is indirectly controlled by android restriction. I didn't use that restriction. If you want to cascade view a app, just rub the display with a single finger from top right to the bottom left.
Click to expand...
Click to collapse
No it's not the cascade view.
I see this type of multi window screen on my Tab S2, when I long press the recent apps button.
0-0-0 said:
I see the settings, but can't trigger to stop Mobile Data. The others, like WiFi can be triggered.
I've also installed Tasker and Secure Settings, to try and alter Mobile Data.
But, Secure Settings (which I think is needed to alter things like Mobile Data & GPS), says I need to root the device.
I think the problem with apps like Clean Master, Cache Cleaner Pro, Profile Scheduler, Tasker and Secure Settings, they all need root access to alter system permissions.
I've got root, but they aren't triggering Super SU to allow root and so those apps think I'm not rooted. And don't work properly.
Clean Master and Cache Cleaner Pro, appear to clear the cache, but they don't delete anything.
Maybe the problem of not seeing root, is something in MM or maybe it's because I'm using the latest beta version of Super SU?
Click to expand...
Click to collapse
You may have to root via system-mode rooting not system-less rooting. Some apps like Tasker's Secure Settings doesn't work with system-less rooting.
There are SuperSu versions that uses system-mode rooting. But you also need a permissive kernel like Xceed and H-Vitamin in order to properly install the system-mode rooting.
But I think even after successfully rooting your device, third party apps cannot still turn off the mobile data. You can only put it to airplane mode at specified times to disable mobile data.
GrippingSphere said:
You may have to root via system-mode rooting not system-less rooting. Some apps like Tasker's Secure Settings doesn't work with system-less rooting.
There are SuperSu versions that uses system-mode rooting. But you also need a permissive kernel like Xceed and H-Vitamin in order to properly install the system-mode rooting.
But I think even after successfully rooting your device, third party apps cannot still turn off the mobile data. You can only put it to airplane mode at specified times to disable mobile data.
Click to expand...
Click to collapse
Thank you very much for the advice.