Xiaomi Mi Band Android library - General Accessories

Hi guys! I've been working on a library to connect your Android device with the incredible Xiaomi Mi Band. Why develop one and share it? Because I researched a lot and many others where struggling to do things just as I did.
It's been a long trip but fortunately this beta is ready to use. Some of the functionalities that can be found are:
Connect/Disconnect
Start/Stop vibration
Change led color
Notify (vibration with a custom led color)
Get the Battery information
It's really easy to use: just import it on gradle -> 1 line!
Of course, it's open source! I really hope people contribute to this project by forking it and not only download it and use the code. This is an area with a lot of potential.
Here's the link: github.com/ betomaluje/Mi-Band (sorry as I'm new, they don't let me post external links yet )
Hope you guys like it and give it a try!

wow! thanks!

Dope as hell! Let me try it

anyone can share the app file? would appreciate to test it.

Related

[CAB] GSM&CDMA Project Android Port and Startup Utility [01/23] FRX04 Reference!

​
​PLEASE, FOR THE SAKE OF MY SANITY. READ THE FAQ FIRST FOR QUESTIONS!
F.A.Q.
​
This in NOT an emulator, nor is it a full ROM! Haret.exe closes down Windows, and boots Linux off of your Storage Card to launch Android. To boot back to WinMo all you need to do is reset your handset!
This thread is more specifically for the Rhodium, as this is the handset that I own, and can troubleshoot and test. So if you have specific questions about a different handset, please find your corresponding thread in post #2, however, this build will support the following devices: Diamond, Raphael, Kovsky, Topaz, Rhodium, & Blackstone by using the corresponding startup.txt found in any of the .rar files.
This package does work for both GSM and CDMA, however, the CDMA troubleshooting thread is at the following link: http://forum.ppcgeeks.com/showthread.php?t=115443​
NOT WORKING IN THIS BUILD:​
BT
Camera
Headphones
Speakerphone (no mic)
Battery Meter (about 75% fixed now)
--------------------------------------------------------------------------------------------------------------------------------
Change Log:​
NEW January 23 NEW FRX04 Android 2.2.1 build added to downloads page!
11/22 FRX03 build added to downloads page! Go HERE for the full change log!!
11/01 FRX02 build added to downloads page! Check out the updates for a more detailed change log!
10/04 Kernel updates! In call mic fix and battery updates!! The new meter should be MUCH closer to actual battery now!! Either use update on the Start Application or head over to the project tracking web page!
9/28 Sovereignty's Startup Utility V1.1 goes live! Fixed BLAZN Gmail app, re-added 3d Gallery. Fixed Reference not having Google Talk.
9/26[/B][/COLOR] NEW KERNEL FIXES NOW WITH WORKING HARDWARE 3D!!!
9/16 System build, FRX01 Final. The product of testing through RC1 and RC2. Lots of fixes, too many to list. Come here for full updates.
8/30 Package with a few updates. This one fixes the garbage noise of the speaker being "on" even when no sounds are being played. Also updated the rootfs file for a few fixes. (Add new gralloc for WVGA devices).
8/26 THE BIG ONE YOU HAVE ALL BEEN WAITING FOR...... SOUND IS WORKING!!! (New Zimage/Modules kernel fixes for sound!)
8/18 Froyo system images added! New rootfs updates = MUCH MORE SPEED!! Lots of BLAZN theme fixes added, Full change log is HERE: http://sites.google.com/site/androidport/updates
CHANGELOG HISTORY CAN BE FOUND HERE!!
--------------------------------------------------------------------
Notes:​ Read this before you start!
THIS THREAD IS NOT FOR YOU TO COME HERE AND TELL US WHICH OF YOUR FEATURES IS THE MOST WANTED. WE ALL WANT THIS OS COMPLETELY WORKING. PLEASE, BE PATIENT LIKE THE REST OF US.
If you think you need to post a question in this thread: READ THROUGH POST#2, AND USE THE SEARCH TOOL FIRST!!!! Most questions have already been answered in this thread. I don't mind answering GOOD questions, but I really hate people asking the same questions over and over, ESPECIALLY when the answer is only a few pages before your post. DONT BE LAZY, THIS FORUM IS FOR DEVELOPMENT, NOT CUSTOMER SERVICE.​​Download Section: Project Android Rebuild
​Appreciate my work?
​ScreenShots
Other Devices:
This package will work on other MSM devices however, you may have some stability and functionality issues. If you are having issues with another device, other than the RHODIUM, check the dedicated forum. Most users on this specific thread only own a Rhodium, so we cannot test/troubleshoot other handsets!!
Dedicated thread For GSM Diamond/Raphael users using xdandroid
http://forum.xda-developers.com/showthread.php?t=601751
Dedicated thread For CDMA Diamond users using xdandroid
http://forum.xda-developers.com/showthread.php?p=5222958
Dedicated thread For Raphael800 users using xdandroid
http://forum.ppcgeeks.com/showthread.php?t=104276
Dedicated thread For Blackstone users using xdandroid
http://forum.xda-developers.com/showthread.php?t=603813
Dedicated thread For Topaz users using xdandroid
http://forum.xda-developers.com/showthread.php?t=509493
-----------------------------------------------------------------
Tips, Tricks, & Fixes
Read the newly updated FAQ Here:
http://sites.google.com/site/androidport/faq
-----------------------------------------------------------------
Project Tracking
Stay up to date with all of the freshest releases here:
http://sites.google.com/site/androidport/project-tracking
-----------------------------------------------------------------
Thanks!
First off, there is an insanely huge list of guys who are responsible for making this possible. Compared to what they do I am just a monkey punching a keyboard. THANKS DEVS
Thanks to phhusson, dzo, zenulator, Chamonix, Stinebd, Makkonen, MrPippy, cr2, Markinus, WisTilt2, Babijoee and anyone else forgotten!
Thanks to scepterr for the free speedy file hosting!!! Need hosting for an XDA project? Ask him!
Donations to XDAndroid team: http://xdandroid.com/w/donate.php
XDAndroid Twitter: http://twitter.com/xdandroid
XDAndroid Facebook: http://www.facebook.com/#!/pages/XDAndroid/394317262428
Thanks to those who have already helped, and to those who will. THANK YOU!
.
reserved for me, just in case
This is much better. AT least noobs like me can clearly follow this thread. Android on my Tilt 2 tonite. Thanx pioneers!!!!!!
Just a quick note that the 'rhod210' keymap (which is default in this build) should be pretty OK for almost all Rhodiums, unless you have an AZERTY layout or an odd European one with lots of accented letters mapped to Fn key combos. You can use Fn+Y to get the 'pipe' symbol | (may seem useless to many of you, but for those of us who poke around at consoles a lot it's invaluable :>). You can use Fn+W to get the UK pound currency symbol and Fn+E to get the Euro currency symbol - these keys are labelled on some Rhodiums so I figured I'd just implement it for all Rhodiums, as it may come in handy sometime.
if you have an odd keyboard layout but just want to use this build, the keys should behave like the layout pictured here:
http://mynokiablog.files.wordpress.com/2009/04/keyboard-2.jpg
so just press the keys as if they looked like that.
One day one day.... we shall have wifi I hope. Thank you for all your hardwork.
I'm trying to do something about wifi ATM with the kernel guys, but it's not simple. The problem is the Rhodium uses a completely different chip than most other phones, for wifi / Bluetooth (it uses a Broadcom BCM4325). No-one's got anything at all out of that chip yet.
Good show.. Thanks for making XDANDROID accessible to everyone.
BTW, Wifi not working at this time creates a good "shutdown/reboot" opportunity for now. The Shutdown option in Android does not seem to be working yet and so was interested in a way to shutdown/reset the phone without a "soft reset" poke after removing the back cover.
Found this by accident:
>>
Settings->Wireless & Network Settings->Wifi (Click to Enable Wifi) and boom in a few seconds, the phone is off like a light.. Hit the power button on top and we have a full reboot..
>>
Edit: The Wifi crash is fixed in the 02/03/10 build mentioned at the top of this thread. So need to open the back cover to reboot..
Man this is really nice. I can't wait to get a Nexus One but this will do for the TP2 for now. Almost there for everything to work. Can't wait for the release with sleep mode fixed and BT working.
Bootup problems
Not sure what/why, but my touch screen doesn't seem to be working as I can't get past the boot screen (touch the android) as the screen location doesn't seem to match up. Any ideas??
[EDIT] My bad, misseed the touch screen calibration...
AdamWill said:
I'm trying to do something about wifi ATM with the kernel guys, but it's not simple. The problem is the Rhodium uses a completely different chip than most other phones, for wifi / Bluetooth (it uses a Broadcom BCM4325). No-one's got anything at all out of that chip yet.
Click to expand...
Click to collapse
Isnt that the same chip as the nexus and the iphone?
sd73ta: yup, indeed. In fact we might need a NAND dump from the n1 to fix it. The kernel guys took the driver from the n1 source, but we can't make it work yet.
edit: not quite the same, in fact - well, same as some iPhones, but the n1 has the BCM4329. The 4325 and 4329 use the same driver, though.
AdamWill said:
sd73ta: yup, indeed. In fact we might need a NAND dump from the n1 to fix it. The kernel guys took the driver from the n1 source, but we can't make it work yet.
edit: not quite the same, in fact - well, same as some iPhones, but the n1 has the BCM4329. The 4325 and 4329 use the same driver, though.
Click to expand...
Click to collapse
have you checked out the dream/nexus one subforums here for a dump or a NAND? i know there are always new dumps and NANDS in the dream forum, if there isnt one, i suggest you get ahold of cyanogen here on XDA. he is the android genius on the dream/mytouch. he might be able to lend a helping hand actually.
When i try to download rar i get message:
Oops! (404)
We can't find the page you're looking for. Check out our FAQ or forums for help. Or maybe you should try heading home.
Any ideas ?
majster-pl said:
When i try to download rar i get message:
Oops! (404)
We can't find the page you're looking for. Check out our FAQ or forums for help. Or maybe you should try heading home.
Any ideas ?
Click to expand...
Click to collapse
FIXED! My Apologies!
Thanks it works now
Nice work!
for the Thread, and for the packages which u create
Hope that this thread will become the MAIN for Porting Android in TP2
Regards!
dont know if this is usefull...nexus1 rom dump
found it on http://db.androidspin.com/android_developer_display.asp?developerid=21
here is the rom http://www.androidspin.com/downloads.php?dir=enomther/ROM/&file=TheOfficial_Nexus1_v1.5.1_update.zip
hope this is somehow usefull
Does anyone know how development on power management is coming along? The most recent builds seem fine for everyday use as far as functionality goes, but battery drain is immense.
It seems like acceptable battery life is the only thing that's keeping this project from offering basic everyday functionality (WiFi, camera and GPS would be nice in the future)
woeds said:
It seems like acceptable battery life is the only thing that's keeping this project from offering basic everyday functionality (WiFi, camera and GPS would be nice in the future)
Click to expand...
Click to collapse
Powermanagement + SOUND... I only miss these two, don't care much for Wifi personally

[CLIENT-APP] MetroPack - Cydia for Windows Phone 7 (desktop)

It is a desktop client (package management on the phone is another topic) that aggregates existing repositories (my own basic format - currently no APT or NuGet) and provides a way to distribute homebrew applications in a more convenient manner.
this looks great! but wheres the download file?
it said "This project has no releases."
As I said in the main post, the binaries are not there yet, but you can always compile the source code yourself. Binaries will be available this weekend.
Here is the latest changeset.
Looks really good.
Downloaded,compiled,ran,downloaded the test apps. IT WORKS!! Really nice concept. I do hope you make some documentation for it. For all I know, this could be the next big thing.
Thanks. Compiled it and ran it. Works.
What i'd like to see is some kind of
- rating.
- possible to not show only screenshots but maybe short videos to demonstrate app.
- possibility to upload also source code of the xaps, so developers can decide if they want to brew this app by themselves or install "unchecked" xaps
thanks so far. i think youre on a good way!
ps: i remember last year there were big discussions microsoft wanted allow homebrew and integrate this into marketplace. hello? chevron? hello? so hopefully youre work is not for nothing.
@amannigam @oOp thanks for the feedback! It works at a very basic level - many more improvements have to be made, but that's going to happen over the weekend.
What specific documentation would you need for it?
Also, ratings sounds like a good idea. The only thing is I need to think of is a way to write those to the repository the user is exposing. Or, I could simply create a central repo/pack-ID link database on my own server that will keep a record of app ratings (can cause some problems, but I am plainly thinking of a PoC now).
I appreciate the feedback!
mwang's post about the DFT 7220 release says that the ROM includes the ability to install XAP's over the net. Homebrew like this but on phone. Just thought you'd be interested in that.
Great concept! I'll have to join in on this. I'll be setting up a repository later on.
What I feel that this project can go a really long way. So try making docs for everything that is being added. So people never lose track of anything. Also info of how to create a repo and adding the repo to app will help them jump to it easy.
Looks great! c# WPF, nothing beats this.
1. The new Mango hack allows downloading and installing XAPS directly from the OS (without a PC connected). Maybe we can use the infrastructure of your PC app and make another mobile app?
2. How can I contribute?
snickler said:
Great concept! I'll have to join in on this. I'll be setting up a repository later on.
Click to expand...
Click to collapse
Awesome! Let me know what the URL is when it's ready.
amannigam said:
What I feel that this project can go a really long way. So try making docs for everything that is being added. So people never lose track of anything. Also info of how to create a repo and adding the repo to app will help them jump to it easy.
Click to expand...
Click to collapse
Will try to do that. I will put together a tool to automatically create a repo in the next hours and will make it available by tomorrow. It will be bundled as a part of MetroPack. Thanks for the feedback!
Thank you all!
yes, pls make it into a phone app
Also tell us how can we contribute to the project. Yes we will test it. But apart from that if you need any help in development or anything. Do tell us.
the weekend is almost over and still no release?
And you have my full support also
Coming this evening (Central Time). Have to do some late adjustments and bug fixes.
Got done with the repository builder tool. I decided to integrate it with MetroPack, so it's work in progress now - you can see it as RepoDev, I need to port the rest tomorrow (bindings and actual export).
For those who do not want to download the source code, the binaries will be available here. The current binaries are very raw (functionality-wise it is a PoC). Once I integrate the repo builder tool, I will make sure that packages are actually installed on the device.
Also, if you are creating a repo, make sure you read this first:
http://metropack.codeplex.com/wikipage?title=Creating a new repository
There is a breaking change related to the version format.
GREAT APP, cant wait till final build , I get force close error and cant use it for long , I want to donate some money , its not alot but all donations help.
it really has potential
I really appreciate your guys' feedback, but until there is a final release - no donations Thank you, though!
@confrontation - what were you doing to get a forced close?
ZeBond said:
I really appreciate your guys' feedback, but until there is a final release - no donations Thank you, though!
@confrontation - what were you doing to get a forced close?
Click to expand...
Click to collapse
I was just checking out all the fuctions of the app

[LAUNCHED] XOPAD - Open Source Android Gamepad

Hello XDA developers!
A few friends and I have been developing a totally new USB open source gamepad called XOPAD. As part of the open source community, we figured we might ask you what you think, possible improvements and suggestions that may arise, before launching it.
Here's what it looks like:
It has :
Stereo speakers embedded in the controller, one on each side
Dual clickable analog joysticks (not sliders, actual tilting joysticks)
An internal battery with a booster that can charge the phone
Software-programmable SENSE-pin resistance, to be able to switch from On-The-Go to AOA 2.0 modes (beta function as of now)
Upgradable firmware through the micro USB port
Uses HID protocol, therefore there's no need for apps, it's real plug&play. We might need to make an app to easily remap buttons in the future for different games.
Adjustable to fit different phone sizes up to the Samsung Galaxy Note 2.
UPDATE:
We have now launched our project! Show us some support and make XOPAD a reality!
XOPAD - an Open Source USB Gamepad for Android smartphones
Tell us what you think!
PS: You can follow the progress of the project in http://www.facebook.com/xopad, our blog http://xopad2012.wordpress.com or our twitter account https://twitter.com/xopad
UPDATE:
Here is the behind the scene video of the XOPAD:
this is very cool
Thank you enadzzz2010! We'll be uploading more videos as the days goes by.
This looks cool, thanks.
wow looks great..keep up the good work :good:
Thank you for your responses! Looking forwarded to get these in your hands soon! :fingers-crossed:
Looks interesting.
Updated main post with Making Of Video
I've updated the main post with a new Making Of video!
Looks very good. I've been waiting for something like this.
Sent from my HTC One S using xda app-developers app
sound awesome
Thank you guys for your responses. We are just a few days away from launching this on Kickstarter. I'll send out an update once this happens on the main post.
Update
We have launched out project on kickstarter! See first post for update.

Call for help in porting PostmarketOS to OPPO Find 7/7a

Dear XDA members,
if you feel the same as the friends at https://postmarketos.org/ :
"We are sick of not receiving updates shortly after buying new phones. Sick of the walled gardens deeply integrated into Android
and iOS. That's why we are developing a sustainable, privacy and security focused free software mobile OS that is modeled after
traditional Linux distributions. With privilege separation in mind. Let's keep our devices useful and safe until they physically break!",
then it is time for you to step forward!!!
Last night initial support for the OPPO Find 7a was commited to the postmarketos pmaports git repo
https://gitlab.com/postmarketOS/pmaports with commit https://gitlab.com/postmarketOS/pmaports/commit/1f8095771c4659d31e8b228dd85018e9ca9963ca.
It was a pain to get this committed as I'm not used to the git workflow, nonetheless with the help of the maintainers over there
and after deleting a few merge requests ( a no-no, don't do that!!) at the end we got it done.
At the moment the device port is only for the Find 7a for the simple reason that I own one but I'm sure it can be extended to the
Find 7 and Find 7s.
The answer to the question that you dear reader have in your mind now: "what works?" is easy: NOTHING WORKS YET!!!
The only thing working so far is that the kernel compiles, you can flash it or fastboot boot it, start a rootfs on the microsd card
and ssh into the system over a usbnet connection to look at all that lovely processes running.
Lots of work still needs to be done, I'm pretty shure that I will not be able to do this myself as my knowledge about the hardware
part of the device is minimal and I would need to reinvent the wheel for every little progress.
As I'm sure that there are still a lot of knowleadgeable develepers (THAT'S YOU!!!) lurking around this list my hope is to lure them
to contribute to this project.
I personally dream of the Find 7 running postmarketos and KDE plasma-mobile but even maemo would be ok!!!
Come on, let's do it!!!
Best regards,
farmatito
Links to get more info:
https://postmarketos.org/
https://wiki.postmarketos.org/wiki/OPPO_FIND_7a_(oppo-find-7a)
https://wiki.postmarketos.org/wiki/Porting_to_a_new_device
Screen and touchscreen working!!!
Still a lot of work to do. Help is appreciated!
Progress report
New package for installing various firmware blobs merged!
Next big thing should be to try to make video hardware acceleration work,
if there are any experts here help is appreciated!!!!.
Progress report
The attached photo shows my Find7a running the XFCE4 desktop.
The interface is fast enough even without hardware acceleration.
As the Desktop is not optimized for mobile devices it is not
a such a great user experience, but the basics work.
Still a lot of work to do, help is appreciated.
Progress report
Wifi Works!!! and you can browse the internet!!!
Help is still appreciated!!
No progress
This time there is no progress to report:
video acceleration not working yet due to the fact that the kernel is rather old (3.4.113), backporting newer drivers did not work out as the codebase differs to much (so no KDE plasma).
making the various sensors work is also rather difficult as the kernel uses a Device Tree and so even if there are drivers for the sensors you need some board specific info to create the device tree nodes.
last but not least the last version of xfce4 in alpine linux is not touchscreen friendly. GTK combo-boxes are now unusable (will eventually try maemo).
Help is very, very appreciated.
Saw this post, has a Find 7 and want to know more.

[Dev] Need testers for Energy Ring

Hey Guys! Developer of Energy Ring here!
Look forward to add support for Motorola One Vision! However, I do not own the device to gather some input and work on it, would appreciate if there are any volunteers to help me add support for the device.
Ideal Tester:
Be available on Skype for quicker feedback on test builds.
Have another phone/camera to be able to send me photo of your physical phone whenever required.
Join the Skype Group of testers.
Cheers!
Count me in
Sign me up, if you need templates for exact placement of the ring: https://drive.google.com/drive/folders/1PDuc1A6uWy5Tc3HKaieSODXzLWn1JQLb
Thank you guys for your input, the testing is complete, expect the final version released in a short while.

Categories

Resources