Related
It would have been so easy for the thread title to be misleading, so I tried not to do that.
So, I know that Samsung posts their source on opensource.samsung.com, and from there, I usually type in "D700" to see if they've posted anything new for our Epics (like the latest kernel source)..
I also have this link: http://opensource.samsung.com/reception/reception_main.do?method=reception_list&menu_item=mobile that is just a running list of their mobile related open source stuff.
Now for the question: Does anyone know of a way, maybe through an rss reader?, to monitor the site for something like 'changes to page including "D700".?
I've done this before in google reader and with Google Alerts, but the way their site is set up makes it more difficult.
Hopefully this thread does better than this one..or this one as, I have a knack for wondering interesting topics.
Sorry, I do not have the complete answer. When you search on that site, the results page appears to be at http://opensource.samsung.com/reception/reception_main.do?method=reception_search&searchValue=D700
Perhaps you could have something check that URL for changes, especially for the number of lines in the table.
Just a thought..
www.changedetection.com
I have one setup for HTC Website - i get an email usually minutes after something changes.
Its not impossible..BUT they always released the source code after they officially released it to the public..usually a day or so...so you would know when source is available in advanced...
or are you hoping for a glitch in their system where they make the code accidently available? lol
Kcarpenter said:
www.changedetection.com
I have one setup for HTC Website - i get an email usually minutes after something changes.
Click to expand...
Click to collapse
I'm surprised that's offered for free, seems like it would take considerable resources to run (especially if changes really do get noted that quickly).
Poryhack said:
I'm surprised that's offered for free, seems like it would take considerable resources to run (especially if changes really do get noted that quickly).
Click to expand...
Click to collapse
Not really..you can read the headers first for changes..the header is a few bytes long...then if you see a change in the header you load the site..and you don't load all the images...just the text portion which averages like 10kb or so (but most sites use gzip so its even less)...in comparison video streaming is 100000x more bandwidth intensive..
Good stuff. Thx peeps. These all blow my old method out of the water: ctrl + R , ctrl + F ..
gTen said:
Its not impossible..BUT they always released the source code after they officially released it to the public..usually a day or so...so you would know when source is available in advanced...
or are you hoping for a glitch in their system where they make the code accidently available? lol
Click to expand...
Click to collapse
if by "hoping," you mean "feverishly obsessing," then, yes.
This just reminded me of a related question:
With some forums, I can copy the URL (say, Epic 4G Development section), paste into Google Reader, which would hopefully populate with updates to the specific section. However, with XDA and Google Reader, doing gives me EVERY update from xda.. which defeats the purpose. it seems like all of the forums/threads are parallel.
Anyone know of a way to do this?
That's one of the things i miss about sdx..
You did read the title and still clicked so I think you may need this little app
I wanted to see the Android device log convenient on my desktop browser without using USB cable and also be able to send APKs to the device to update my apps. Without root! App install of course needs confirmation on device.
Also a nice log view on the device is always helpful - I found aLogCat scrolling too slow to be usefull and it can not jump directly to errors.
For tests of my remotely running app MobileWebCam I also need the possibility to get logs saved even without internet connection - so SMS can be sent to the device to trigger logging. For other apps there is an intent to trigger logs if Remote LogCat is installed. And the standard feature is there, too: dump logs from time to time onto sdcard, http or others like email with the support of my other app AutoShare ...
Filtering the log is a little complicated right now but I found myself using the full log most of the time anyway ...
Find the apk is attached to this post or in Android Market.
Nice. I will try it when I get time. It seems very useful.
Ohh, for some time I've wanted something like this! Thank you _miha_!
Downloading now, will report a little bit later as my phone is currently in 'flashing' state!
Thanks _miha_! Working great on my LG Thrill 2.3.5. I would love to see it auto scroll on the pc browser side. Even without it, awesome app. Thanks again!
Wow this is work great already do a test from Browser & everything is Great
Nice
It does not work for me, because the browser URL shows up like this:
http://fe80::123:65ff:fe68:767a%wlan0:8080
Why is that?
I am using a SGS2 with CM9.
Also, the RemoteLogCat service is running all the time, even when the app is closed....
CRXed said:
http://fe80::123:65ff:fe68:767a%wlan0:8080
Why is that?
Click to expand...
Click to collapse
That is an IPv6 format address. I do not know why you have one - maybe CM9 uses v6 preferred?
Try to enter [ and ] around the numbers and ::s. Like:
http://[fe80::123:65ff:fe68:767a%wlan0]:8080
(see here: http://superuser.com/questions/242122/accessing-non-port80-web-server-using-ipv6)
You can disable webserver with the third setting (Enable - HTTP server enabled. Access using Browser...) - it is enabled default at the moment so users do not have to search it before trying the app.
I can't get it to work.
My phone has a normal IPv4 IP adres, 192.168.0.13
I tried
http://[fe80::123:65ff:fe68:767a%wlan0]:8080
http://[fe80::123:65ff:fe68:767a]:8080, because, what is %wlan ??
Anything else I can try?
Also, when disabling HTTP server and exiting the app with the back button, the logcat service is still alive.
version 1.04
CRXed said:
Anything else I can try?
Also, when disabling HTTP server and exiting the app with the back button, the logcat service is still alive.
Click to expand...
Click to collapse
Updated version 1.04 displays ipv4 adress only now. And does no longer let Android restart the service in case it is not enabled (thanks for making me aware of that)!
IPv4 is working now!
But when I disable the HTTP server, I still see a service running in the background.
Which service is this? I use SystemPanel to check.
Also, when opening the app for the first time, my entire phone get's very slow, because it is trying to retreive all logging info.
After clearing the log, everything is smooth again.
Also, when the log is very big, I get this:
Code:
W/dalvikvm(18755): threadid=21: thread exiting with uncaught exception (group=0x40a541f8)
E/AndroidRuntime(18755): FATAL EXCEPTION: Thread-333
E/AndroidRuntime(18755): java.lang.OutOfMemoryError
E/AndroidRuntime(18755): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:94)
E/AndroidRuntime(18755): at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:145)
E/AndroidRuntime(18755): at java.lang.StringBuilder.append(StringBuilder.java:216)
E/AndroidRuntime(18755): at com.dngames.remotelogcat.a.a(HelloServer.java:85)
E/AndroidRuntime(18755): at com.dngames.remotelogcat.h.run(NanoHTTPD.java:424)
E/AndroidRuntime(18755): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 1803): Force finishing activity com.dngames.remotelogcat/.RemoteLogCat
More info in my signature.
To stop the always running background service please disable in the settings and leave the app. This seems not to be obvious enough - so maybe I should add a button in the first menu?
After a long time a little update to version 1.08 ...
I stripped html from the browser logcat so it is no longer confused when apps log html tags. Also two error message crashes are fixed.
Hallo everbody,
im writing a background service to get informations like the time an active app (not my app) is running.
With this information i can show the user a list of the most used apps depending on the time.
The methods of the ActivityManager-class are useless, because the received informations aren't reliable.
So i thought, because the Android-System is based on a Linux-Kernel, i can use the internal structure to get these informations.
So i read out the pseudo proc-filesystem to get the process informations and for the 2nd time i thought
thats the right place for me to get what i want.
I read out the stat-file in every single process-directory to get the starttime(in clock_ticks) of the process.
I dynamic calculate the HZ USER_HZ value and use it to get the real starttime but this time never changes.
It's more like a timestamp of the first start on the system after boot.
The user-code-time and kernel-code-time seems to be too short and the values are updated too irregular.
So i just got a time value, that tells me the time when the app was first started after system boot
but i want a timestamp or anything else i can get from a currently running app to calculate the time this app is active.
Long life services and background services are not my goal.
Now i'm here because i don't know if i just miscalculate the values from this pseudo filesystem or
if i'm absolutely wrong where i get my informations from.
My Questions:
1. Do i read the wrong values files filesystem (if yes, where can i find these informations in the system structures)
2. Do i misunderstand some of the values i read out
3. Why do the files in the process directories become updated so irregular or once in a lifetime (just if im in the right filesystemfile)
I hope u can help me. *-*
Well, interesting approaches. :good:
The only way I see is running a background service and storing the launch time yourself.
I'm sorry but I don't know the answers to your questions.
You could
a) use su to get the active process list
b) get to /proc/??? folder (where ??? is the apppropriate process you enquire, for example /proc/80/)
c) get the /proc/80/sched text file and look for exec_runtime or vruntime or what ever works for you
carbonpeople said:
You could
a) use su to get the active process list
b) get to /proc/??? folder (where ??? is the apppropriate process you enquire, for example /proc/80/)
c) get the /proc/80/sched text file and look for exec_runtime or vruntime or what ever works for you
Click to expand...
Click to collapse
Oh, getting the currently running tasks can even be done much easier and doesn't require root. This is what I use:
Code:
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> processInfoList = am.getRunningAppProcesses();
carbonpeople said:
You could
a) use su to get the active process list
b) get to /proc/??? folder (where ??? is the apppropriate process you enquire, for example /proc/80/)
c) get the /proc/80/sched text file and look for exec_runtime or vruntime or what ever works for you
Click to expand...
Click to collapse
that seems to be exactly what i need!
but there are the next questions:
what is the unit of the "se.sum_exec_runtime"-field? is it in nano-secs?
what does the point do in the value? does it indicates a floating-point value?
im kinda confused and didnt really find something meaningful about the unit (*-*)
and im not very handy with the kernel code from "lxr.linux.no"
nikwen said:
Oh, getting the currently running tasks can even be done much easier and doesn't require root. This is what I use:
Code:
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> processInfoList = am.getRunningAppProcesses();
Click to expand...
Click to collapse
Following Note can be found in the android-doc:
"this method is only intended for debugging or building a user-facing process management UI."
And the "RunningAppProcessInfo"-class (given by the Method) doesnt provide any infos about the running time of a process.
So i think it's more reliable for me to read out the process-infos directly in the proc-filesystem.
Dalorikai said:
Following Note can be found in the android-doc:
"this method is only intended for debugging or building a user-facing process management UI."
And the "RunningAppProcessInfo"-class (given by the Method) doesnt provide any infos about the running time of a process.
So i think it's more reliable for me to read out the process-infos directly in the proc-filesystem.
Click to expand...
Click to collapse
1) True.
2) That's why I wrote this:
nikwen said:
The only way I see is running a background service and storing the launch time yourself.
Click to expand...
Click to collapse
3) But if the other method works and if you don't care about root rights as a requirement, it might be better. :good:
Dalorikai said:
what is the unit of the "se.sum_exec_runtime"-field? is it in nano-secs?
what does the point do in the value? does it indicates a floating-point value?
im kinda confused and didnt really find something meaningful about the unit (*-*)
and im not very handy with the kernel code from "lxr.linux.no"
Click to expand...
Click to collapse
replying to my own post i think the point in the value of the field indicates the milli-secs.
just an idea - im not sure but would be plausible if the unit is nano-secs.
what do u think or possibly know? ^^
Hello,
I am developping an application for EPG, but I have a big problem.
The application is very slow cause the construction of the Fragment view after commit() it takes a lot of time.
Operations:
- download of the xml file from an URL
- parsing all data
- saving data into a local db
- reading data to build the fragment view
The fragment has the following layout:
- 2 ScrollViews (1 horizontal and 1 vertical)
- 1 LinearLayout Vertical
- 1 LinearLayout Horizontal for every channel
- 1 or more inflated RelativeLayouts for every Program
- TextViews for program details (title, hour, rating....)
Here an image to explain the sctructure:
s22.postimg.org/v5buk76q9/EPG_Layout.png
All this make the app not usable and it crashes.
Does anyone have a solution for this?
THank you very much
Download and save your file in another thread or use AsyncTask and update local version. Display only the local version in your View.
Regards
EmptinessFiller said:
Download and save your file in another thread or use AsyncTask and update local version. Display only the local version in your View.
Regards
Click to expand...
Click to collapse
Thank you. The problem is in the creation of the view. Not in the downloading... but what do you mean with update local version and display only local version? I'm using a local database where I store parsed data.
sheikko said:
Thank you. The problem is in the creation of the view. Not in the downloading... but what do you mean with update local version and display only local version? I'm using a local database where I store parsed data.
Click to expand...
Click to collapse
He means that you show placeholders on first start, and begin to download the images with an AsyncTask or a worker thread, make sure to read this guide on processes and threads, especially the Threads section!
You place your downloaded images somewhere on the device in your database and use those whenever they are available on future runs of your app. That way you don't need an internet connection everytime.
SimplicityApks said:
He means that you show placeholders on first start, and begin to download the images with an ..., especially the Threads section!
You place your downloaded images somewhere on the device in your database and use those whenever they are available on future runs of your app. That way you don't need an internet connection everytime.
Click to expand...
Click to collapse
I'm downloading the entire programmation for 8 days and I'm saving it in the db. This work takes about 1:30 minute, but only the first time I run the app after the installation. To have the view of the EPG working I have to wait about 30 seconds, and this occur every time I quit to app or I modify some parameters for example the Favorite Channels.
Do you think your solution can help me?
What do you exactly do, when you have to build your view content? Can you store information in local fields (RAM of your phone) so that you do not have to reload them from your db each time?
How big are your pictures?
LG
sheikko said:
I'm downloading the entire programmation for 8 days and I'm saving it in the db. This work takes about 1:30 minute, but only the first time I run the app after the installation. To have the view of the EPG working I have to wait about 30 seconds, and this occur every time I quit to app or I modify some parameters for example the Favorite Channels.
Do you think your solution can help me?
Click to expand...
Click to collapse
I don't know what you're downloading here and wether you own the server counterpart or not, but at the first glance that is waaaayyy too much data you are using here...
You need to modifiy or restrict the amount of data you download from that server, if you can modify it there (If you use images crop them down in there already) it would be best, otherwise you might want to mirror it on your own server.
And what's your app showing when no data is available? You can still show the base navigation and use ProgressBars to indicate you are loading...
SimplicityApks said:
I don't know what you're downloading here and wether you own the server counterpart or not, but at the first glance that is waaaayyy too much data you are using here...
You need to modifiy or restrict the amount of data you download from that server, if you can modify it there (If you use images crop them down in there already) it would be best, otherwise you might want to mirror it on your own server.
And what's your app showing when no data is available? You can still show the base navigation and use ProgressBars to indicate you are loading...
Click to expand...
Click to collapse
Thank you,
To improve performance I saved icons (channels, rating) locally in drawable resources and I download only text info. But because the are 8 days of tv scheduling and a lot of channels this download take a lot of time.
I can't modify o restrict the amount of data, but i can select how data I can download (i.e. 3 days....) but I have to download all.
Also when I modify (add/remove) favorite channels I have to wait about 10 seconds and this is frustrating.
Maybe the problem is that I'm working directly on the database. I have to work on some layers above do DB or there is another solution?
Sorry but I'm new to Android
Thank you
sheikko said:
Thank you,
To improve performance I saved icons (channels, rating) locally in drawable resources and I download only text info. But because the are 8 days of tv scheduling and a lot of channels this download take a lot of time.
I can't modify o restrict the amount of data, but i can select how data I can download (i.e. 3 days....) but I have to download all.
Also when I modify (add/remove) favorite channels I have to wait about 10 seconds and this is frustrating.
Maybe the problem is that I'm working directly on the database. I have to work on some layers above do DB or there is another solution?
Sorry but I'm new to Android
Thank you
Click to expand...
Click to collapse
And I'm new to EPG xD. Do you have to download all the channels or can pick e.g. just the favorites? And what is the size of your local db on the device?
Well then the only thing I could tell that either you have a serious performance bug in your code or you need to find a way to get less data or load it faster. I don't know if mirroring it on your own server is possible but there might be some free servers providing it.
SimplicityApks said:
And I'm new to EPG xD. Do you have to download all the channels or can pick e.g. just the favorites? And what is the size of your local db on the device?
Well then the only thing I could tell that either you have a serious performance bug in your code or you need to find a way to get less data or load it faster. I don't know if mirroring it on your own server is possible but there might be some free servers providing it.
Click to expand...
Click to collapse
I can pick only some days and I can select wich days to download.
Now I'm downloading only 3 days and the size of the db is about 4 MB
May be I have a bug
How I can get them faster?
Can't mirror or move content.
thank you
sheikko said:
I can pick only some days and I can select wich days to download.
Now I'm downloading only 3 days and the size of the db is about 4 MB
May be I have a bug
How I can get them faster?
Can't mirror or move content.
thank you
Click to expand...
Click to collapse
4megs seems to be alright on the first look... Maybe you really have a bug or you are loading it on the UI Thread. You need to use asynchronous loading or the db is too slow. Maybe disable any loading in the app and see if you get any improvements, if you don't, you have a bug in your layout/app
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