LiveView reverse-engineering effort

Search This thread

-[a.v.p]-

New member
Dec 14, 2012
3
0
after the new year I plan to do bluetooth and start thinking about a new protocol. I think should do the following:

1: the autonomy of the clock and alarm;
2: native applications?
3: offline storage for data;
4: protocol for online interaction with the device (like Xserver / drawterm / Rio from Plan9);

may be look at the protocol and function from MetaWatch? it would be nice to get them functional on our liveview.
 

jkorp

Member
Sep 24, 2012
37
30
Göteborg
Have now moved the filtering function to LiveViewService.

If someone with a newer version of Android (JB or later) want to test this, it would be helpful. It works for me on 2.3.3 but it seems like it is handled differently on newer versions.

Will not be able to check in the changes before Christmas since I work in two parallel projects. My primary project is the one with bus functionality, and now also a second plug-in idea: "Next on TV". In case anyone wants to try it out, I attach my apk file. Source code for the three changed files (for notification filtering) are attached as well. I will check in the changes when I get back home after the holidays... Or before if I can...

Merry Christmas all of you!

Edit: Actually did commit, but have not tested the source code in the "main branch"... Hope it works anyway! :)
 

Attachments

  • OpenLiveView.apk
    392 KB · Views: 59
  • NotificationFilter.tar.gz
    10 KB · Views: 15
Last edited:

JerryPi

Senior Member
Aug 28, 2010
313
117
Hy there, I have tested your latest app on my nexus 7 with the latest cm 10.1 witch is jellybean version 4.2.1 and my liveview just doesn't want to stay connected. What it does is, when i press the right button on the watch to connect the notification shows that it connects but the same second it dissapeares. The watch doesnt set time and it cant be used. I also enabled accessibility for the app under settings. Hope to se more improvements for the newer versions of android in the future;)

Sent from my Nexus 7 using Tapatalk 2
 

phly95

Senior Member
Oct 7, 2012
150
15
Could you please add facebook to the openliveview? Facebook on the official live view app doesn't work. If possible, I'd like video on the view like YouTube and games.
 

GottZ

Senior Member
Sep 20, 2008
170
123
32
Cologne
gottz.de
Could you please add facebook to the openliveview? Facebook on the official live view app doesn't work. If possible, I'd like video on the view like YouTube and games.

video playback would not be possible with high framerates cause its bluetooth is a bottleneck.

facebook on this device would mostly cause high battery drain because the liveview original was made for notifications and simple plugins.

you ask for magic that could be done but would possibly left unused even by you.
i guess that makes it a low priority request.


@evryone: would you want to use a native analog clock on it or would you prefer a digital clock?
an analog clock would take more memory. i could do it with 17 images (so the device does not need to calc rotation wich would cause higher battery drain)
one image for the clocks background, eight for hours and eight for minutes. also an offset table so i can strip whitespace from theese images

Sent from my HTC Vision using xda app-developers app
 
Last edited:
  • Like
Reactions: willfck4beer

samjam

Senior Member
Dec 18, 2006
442
102
You don't need to calculate rotation, you can store a table. You only need it for 15 positions as reflection to the other 3/4 of the clock would be trivial

Sent from my Ascend G300 using Tapatalk 2
 
  • Like
Reactions: willfck4beer

GottZ

Senior Member
Sep 20, 2008
170
123
32
Cologne
gottz.de
You don't need to calculate rotation, you can store a table. You only need it for 15 positions as reflection to the other 3/4 of the clock would be trivial

Sent from my Ascend G300 using Tapatalk 2

it seems my english is way too horrible to be understood by you.
i'm not going to use rotation calculation and never said i will.

its possible with 8 images instead of 15.

Sent from my HTC Vision using xda app-developers app
 
Last edited:

samjam

Senior Member
Dec 18, 2006
442
102
it seems my english is way too horrible to be understood by you.
i'm not going to use rotation calculation and never said i will.

its possible with 8 images instead of 15.

Sent from my HTC Vision using xda app-developers app

Well at least one if us has horrible English. You don't want to calculate rotation in the watch and I said you don't need to anyway.

But you are right about 8 instead of 15. You could use a look up table of 8 and reflect about axis.

I don't mind how you do it I just point out there is more than just 2 choices of trig calculation in the watch or if pre-drawn images


Sent from my Ascend G300 using Tapatalk 2
 

GottZ

Senior Member
Sep 20, 2008
170
123
32
Cologne
gottz.de
Well at least one if us has horrible English. You don't want to calculate rotation in the watch and I said you don't need to anyway.

But you are right about 8 instead of 15. You could use a look up table of 8 and reflect about axis.

I don't mind how you do it I just point out there is more than just 2 choices of trig calculation in the watch or if pre-drawn images


Sent from my Ascend G300 using Tapatalk 2

well.. chibios gfx has methods to draw arcs etc. etc. but i dont know how reliable they are in multisampling because i've not yet tried them.

this is how it could look like:
201212261638.png

(image was created programmatically using javascript)

do we need some kind of statusbar on the clocks screen?

we could put stuff into the upper edges like connection state, battery and date so i could increase the clocks size.
 
Last edited:

samjam

Senior Member
Dec 18, 2006
442
102
well.. chibios gfx has methods to draw arcs etc. etc. but i dont know how reliable they are in multisampling because i've not yet tried them.

this is how it could look like:
201212261638.png

(image was created programmatically using javascript)

do we need some kind of statusbar on the clocks screen?

we could put stuff into the upper edges like connection state, battery and date so i could increase the clocks size.

That looks great!

Sent from my Ascend G300 using Tapatalk 2
 
  • Like
Reactions: GottZ

phly95

Senior Member
Oct 7, 2012
150
15
It would still be nice to have an image app to view whatever or a simple app maker so we can build what we want. And about YouTube, I don't care if it's a low frame rate, I just want it available. Imagine, YouTube in class/mcas/work without getting caught.

Sent from my PG86100 using xda app-developers app
 

GottZ

Senior Member
Sep 20, 2008
170
123
32
Cologne
gottz.de
It would still be nice to have an image app to view whatever
that will possibly be on my todo / wish list. not only for images but also for text notes.
or a simple app maker so we can build what we want.
erm what? app maker? like.. lego?
how are we supposed to do such thing? we are developing for fun on this device. not for money.
at least the code is open source so if you want to "make apps" you could simply fork it and implement your dreams into it.
And about YouTube, I don't care if it's a low frame rate, I just want it available. Imagine, YouTube in class/mcas/work without getting caught.
i see no problem in using my laptop for such things. (in school / at work)

so you want youtube video's without any sound, horrible framerates and lower color count?
if you want it, make it :D
i will not lay my hands on a video implementation and i do not think anyone else related into future developement will want to.
 

xelion12

Member
Jun 1, 2010
7
0
Hi all,

i am very intrested in your wok and followed this thread a long time, till my exam started. now after months its finished and i remered my old liveview. so i started to read the thread, about 20 pages...

but i wasnt able to get the status of the project and how far u are.

it would be nice if someone could give a short overview or edit the first thread (if its possible). :good:
 

renzenicolai

Senior Member
Aug 13, 2012
125
181
www.rnplus.nl
see the Google Code site openliveview.googlecode.com for current status (click on the "Source" tab, it will show you all the changelogs).
We also have a website: www.openliveview.com, but its not finished yet.

Other things:
If someone wants to make a nice webdesign for our website feel free to post it :fingers-crossed:, if you want to write some content for the website, feel free to do so, I will put it on the site and if someone wants to make custom image sets for openliveview I will build them into the app.

I'm currently working on a way to show text notes on the liveview.
 

renzenicolai

Senior Member
Aug 13, 2012
125
181
www.rnplus.nl
Here is a new version of OLV which adds notes and separate feed icons (for every notification source)

I think that OpenLiveView has a memory leak in the notification database code. I will try to fix it as soon as possible (it has been there for quite a while now). Reason I believe there is a memory leak is that the memory used by OLV increases every time I navigated to a notification ("adb shell" and then entering "top" opens the process list of your android device).
 

Attachments

  • OLV27122012.apk
    387.9 KB · Views: 49

piterei357

Member
Aug 30, 2012
6
0
Timeout

Is there any option to change the timeout to like 2 or 3 hours? It's very important. Hope You can help.
Best regards!

PS: Of course I mean all the LiveView, not just apk files. Or could you modify LiveView app to do that?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    Hi all,

    A few weeks ago I started taking apart the LiveView software and manager. I'm really unhappy with the current plugin system, the menu structure and more. So, I started to reverse-engineer the Bluetooth protocol. I'm at the very beginning but it's looking promising.

    Here's the repo: https://github.com/BurntBrunch/LivelierView

    The protocol is not very difficult - just request-acknowledge-response serial communication over RFCOMM. Also, the kind people from SE didn't run the manager through Proguard (wink, wink, nudge, nudge ;) ).

    I also have what I *think* is a dump of the firmware but it seems either compressed or encrypted. Binwalk didn't find anything in it. If someone would be kind enough to take apart the software updater, we might figure out what's running on the actual device as well.

    Overall, I'm just starting but so far it's looking good (got time syncing working! it's at least a watch, if nothing else! :p ).

    Any help would be greatly appreciated (pull requests are more than welcome! :))
    10
    Well just a brief status update. The project I've started on github has been progressing, greatly in part from the contributions of boombuler.

    You can go there ( https://github.com/pedronveloso/OpenLiveView ) and check the README, and I've compiled and attached an APK so you guys can test for yourselves without having to clone the repo and compile ;). Right now that APK only asks for connecting with the device (has to be paired first of course) and then sends a Vibrate command to the LiveView. There's more commands done in the source then just that but the functionality has not yet received a dedicated UI since the whole thing is on a very early stage.

    Bare in mind that theres no point in reporting any bugs at this stage since I myself keep finding them with ease :p

    NOTE : You might have to uninstall LiveView first in order to test the app, at least I had to uninstall it because of Broadcasts that where getting in the way sometimes when the LiveView app was installed.
    9

    its not done yet. will need to enable getpixel in chibios gfx in order to have clean alpha overlapping. (well you cant see it anyways on a video)
    9
    Update!

    Here you go, the next update! :)

    Visible changes:
    I added mediacontrols (play/pause, previous track and next track) to the menu.

    Invisible changes (protocol):
    - Implemented brightness controll for the liveview display (off, dim and on)
    - Implemented ClearDisplay command
    - Implemented DisplayBitmap command

    Invisible changes (gui):
    - Added mediacontrolls like in the sony app when you long press the select key.

    Now the problem I am currently experiencing:
    The LiveView does not send back the navigate commands for left, right and select (short press) when in menu mode AND when out of menu mode (zero menuitems).

    My question to the original developer of the "net.sourcewalker.olv" app is if he can tell me how to make the liveview send those keypresses to the service.



    Something that I found out:
    the device sends DEVICESTATUS_ON back in stead of DEVICESTATUS_MENU when there are zero menu items, in that mode you have full controll over the screen (blanking and sending bitmaps).


    EDIT:
    Small bugfix (next button didn't work)
    9
    I'm sorry for being a noob again but what is OLV?
    Can there be a rom for the LiveView in the coming years?
    Is the LiveView open source?
    + can anyone provide me a detailed spec sheet of the LiveView... Like the processor and alll..

    Sent from my ST25i using Tapatalk 2

    1. OLV means: OpenLiveView wich is our project name (we have a custom android app that fully replaces sony's app)
    2. a rom is currently in developement as you can see within this post.
    3. the liveview itself is not opensource. our stuff however is.
    4. i cannot provide you a detailed spec sheet right now but will do it when i have some time digging out that info.

    so.. now to what i want to post:



    current snapshot of my firmware folder in attachments.

    current binary of the firmware is also in the attachments. (for thoose who just want to try it without compiling and know what they do)


    how to use the firmware folder:
    http://forum.xda-developers.com/showpost.php?p=38341041&postcount=731

    (yes, i suck at english. digg through it or wait till i explain it on http://openliveview.com)



    stuff that is on my todo:

    • display timeout (aprox 5 minutes to implement it)
    • bluetooth (need help)
    • write access to the internal storage (need help)
    • access to the current battery charge info (need help)
    • basic menu system (i'm on it)
    • stopwatch (i'm on it after the menu)
    • digital clock (will do it after i did the stopwatch)
    • other stuff
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone