RTL smartwatch change os- editor? - Other SmartWatches

Hi i have Microwear U9 use RTL8762D cpu and Mactivepro app. is it possible to change os or have watchface editor?

attach an any watch face file to understanding format of it. too much chinesse models but mostly just a clones of each other.

How can i learn watchface file format?

actually it's a complex task.
- at first, you must be able to write some peace of code, at least to disassemble/assemble watch face file ("wf" below). you not required to be a super programmer, but ability to write little app you must have. of course editor with gui wold be more preffer
- you must separate frame (image) blocks (even without decoding for beginning), to understanding where it begins and where it finishes. not for each frame, but you must investigate a logic of a placement.
- you must find the pointers to frame blocks
- investigate structure of frame block descriptions
- now you may try to decode frames
- analyze header structure
- make a simple viewer for this format and try to use it for as many compatible wf'ses as it's possible, to be sure what you can read it all correctly
- try to make a writer and test your results
- polish the editor.
a good practice is a learn an any already described formats, even not compatible. at least you'll got a basic understanding how it works. for sample, I'd described one of the easiest here https://forum.xda-developers.com/t/...face-structure-direct-connect-via-bt.4502303/ read an "about watchfaces" spoiler.
if you still want to investigate a wf format of your watch, I will give you some cues/hints/helps, but would not make all of it for you.

Related

HOWTO: save complex structures in a file?

hi,
I have a program and it has lots of settings saved in memory, when I exis the program I need to save settings in a config file.
My program has CString(s), CArray(s) and other basic int and DWORD varibles, so how can I save such complex settings?
Mohammad
as xml maybe
If you're using MFC you could always attach a CArchive to a file and serialize
Perhaps you need to either create a log file - for debugging purposes or save your settings to the registry. If its the former then, check this one http://www.codeproject.com/ce/GenericLogFunctionality.asp it should be helpful. If its the latter, then you just search codeproject and you'll find lot of tutorials on the registry. Also, you can use CEDB which is a flat table data base that can store many data type structures including files and images, use it if you need to.
It may seem like you're lost now, but you can take an overview about the cons and pros of each technique so as to choose the best one for you.
For my config file I use plain english bounded by my own tags. I use a character sequence as a seperator for lists. I convert numerical values into text that can be human readable. There are some benefits to being able to read and edit it manually if the need arizes. I also made a class purely for writing and reading from my config file. Now when I to use a config file I can just drop that class into my project.
XML sounds good and similar but it would require a greater knowledge of xml.
Registry is easier and faster to do/execute but for data that can potentially grow too much it is probably best to keep it out of registry.
Is CArray serializable? do we just simply use CArray::Serialize and it will dump all included objects into a file?
thanks
http://msdn2.microsoft.com/en-gb/default.aspx
this site may be helpfull while you wait for somebody to answer your question
If you can it would be easier to use CObArray and ensure that the array members are subclassed from CObject with the DECLARE_SERIAL / IMPLEMENT_SERIAL macros. You could also add a new << operator to the CArchive class and write the serialization routine but that would kinda defeat the object I guess.
I solved the issue using serialization, for CArray structures I used the following method:
File<<MyArray.GetSize();//store how many objects
for(all my objects in the CArray)
serialize them one by one
I did the same when loading and it works flawlessly.
Thanks all for your help

Split Video with NDK for Android...

Hello,
I have to do a task, that is more specific than a pure android development. I have to create an android application with a core module written in C or C++ language, doesn't matter, to do some video processing stuff. For example, the scenario is as follows:
1. The Android application captures 10sec video clip from the camera of an Android device;
2. Pass the captured file to the core of the android application;
The core should do the following:
3. Waits for the file, gets the file and opens it;
4. Splits the file into frames - for example, if the camera captures 30fps for 10 seconds video - 300 pictures in png or jpg format;
5. Do some calculations - for example it makes a histogram of a single image and stores it somewhere (db or file, doesn't matter);
6. Returns the result to the Android Code/Java/ which will render it on the default output - e.g. Screen, Console, etc...
How can I do this? I have searched how to split the video file into frames on linux, and I found that it could be done with ffmpeg, but I never dealt with ffmpeg and video/image processing... Could you help me somehow? I don't know what to do and where to start from...
Thanks in advance!
Best Regards,
v4o4ev
Possibly OpenCV / JavaCV
i dont know the exact code but i am sure you can get histograms and stuff with it.
try looking here
http://code.google.com/p/javacv/
Pvy.
pvyParts said:
Possibly OpenCV / JavaCV
i dont know the exact code but i am sure you can get histograms and stuff with it.
try looking here
http://code.google.com/p/javacv/
Pvy.
Click to expand...
Click to collapse
Thank you! The problem now is how to split the video into frames... I am searching about ffmpeg compatibilities, but for now I'm just researching... And one thing - I don't need the code, just the help to find some information about how to do it better and so on thank you so much for the reply - I will take a look now
Thanks!
Best Regards
v4o4ev said:
Thank you! The problem now is how to split the video into frames... I am searching about ffmpeg compatibilities, but for now I'm just researching... And one thing - I don't need the code, just the help to find some information about how to do it better and so on thank you so much for the reply - I will take a look now
Thanks!
Best Regards
Click to expand...
Click to collapse
In java I use the highgui classes, createframegrabber or something like that. I grab each frame and process it for item/motion detection. Then save a movie from it. Works well enough.
Sent from my Galaxy Nexus using xda premium

[Q] .DATA Files in WP8 Isolated Storage

Hello - I'm doing some security testing on a WP8 application. The isolated storage has a bunch of .DATA files. If I try and view these in notepad ++ it is gibberish. Any ideas on how to view the contents of these files? I'm assuming they are database files.
OK, first of all, you already asked this in another thread. DON'T DO THAT.
Without knowing what the app in question is - which I don't really expect you to tell me - I can't much help you. I assume this is a blackbox assessment, or you'd have checked the source code. If the app is managed code, you can try decompiling it (you can try this if it's native code too - IDA Pro supports ARM - but that's obviously more difficult).
The extension .DATA doesn't mean anything. There are only a few common database formats used on WP8, so it might be one of those... but then, it could also be encrypted so even if you figure out the format you'll need the key too. It could just be a flat text file that has been compressed and/or encrypted, for that matter. You could try checking the file for magic numbers, either manually using a hex editor or by checking the file using libmagic (on *nix systems, /bin/file is usually a front-end to libmagic and should be able to tell you if the file is, for example, a known compressed format).
GoodDayToDie said:
OK, first of all, you already asked this in another thread. DON'T DO THAT.
Without knowing what the app in question is - which I don't really expect you to tell me - I can't much help you. I assume this is a blackbox assessment, or you'd have checked the source code. If the app is managed code, you can try decompiling it (you can try this if it's native code too - IDA Pro supports ARM - but that's obviously more difficult).
The extension .DATA doesn't mean anything. There are only a few common database formats used on WP8, so it might be one of those... but then, it could also be encrypted so even if you figure out the format you'll need the key too. It could just be a flat text file that has been compressed and/or encrypted, for that matter. You could try checking the file for magic numbers, either manually using a hex editor or by checking the file using libmagic (on *nix systems, /bin/file is usually a front-end to libmagic and should be able to tell you if the file is, for example, a known compressed format).
Click to expand...
Click to collapse
Sorry about posting in multiple spots. I figured I shouldnt ask multiple questions (diff topics) in one thread so I thought I would do a stand alone. Won't happen again. The vendor has told me that these files are encrypted...but I am also trying to get some more info on what that actually means and what they are doing for key storage.
It's quite likely that the files are encrypted using the data protection API for WP8 apps (http://msdn.microsoft.com/en-us/lib...ity.cryptography.protecteddata(v=vs.105).aspx). From what I've read, that uses 3DES with a key derived from the user (probably meaning app) and system (probably meaning device-specific) identities. The key derivation and management is invisible to the user, though.

Manually creating and editing D5 ClockSkins

Hi all,
Firstly many thanks to Smartwatch Ticks for those excellent tutorial videos detailing what's in the XML files behind the ClockSkin faces on the D5 / Lem5 etc.
This sparked an interest in using something I discovered last year called Leo Editor (www.leoeditor.com). It's open source and written in Python. It's basically an outline editor. It has a tree structure and each node can contain text. However, the trick to Leo is that you can generate external files from any node. Also each node can be cloned and used anywhere.
This means that you can have a tree node which just contains the definitions of all your image arrays. If you want to use them for a particular face just clone the node again and paste it into your watch face structure where it's required.
The advantage with these clones is that if there's an error, once you fix it in one place, they're all fixed!
When you save your outline it writes all your generated files, creating new files for new nodes as required.
It doesn’t just support xml. It can be used to work with any language to break up code into manageable structures.
It's documentation which generates the code for you.
A concept called "literate programming".
I think there is already a software for creating android based smartwatches such as the D5.
It's called ClockSkinMaker created by @rromeroa
Clockskin Maker
Hi yes, I've had a look at ClockSkinMaker. I didn't find it very intuitive and I have been toying with the idea of developing my own that will include being able to edit the images, but for now I think I'll use it to test my faces and create them using Leo Editor.
Most stuff doesn't change anyway, it's just a matter of creating the new images, plus it makes it very easy to create a group of faces that have slight differences. Cloned nodes containing the desired "drawables" can easily be added in.
This enables very easy creation of several versions of the same face, but each one with slightly different features.
If a GUI was always better, the good lord wouldn't have given us bash!
richardtwyning said:
Hi yes, I've had a look at ClockSkinMaker. I didn't find it very intuitive and I have been toying with the idea of developing my own that will include being able to edit the images, but for now I think I'll use it to test my faces and create them using Leo Editor.
Most stuff doesn't change anyway, it's just a matter of creating the new images, plus it makes it very easy to create a group of faces that have slight differences. Cloned nodes containing the desired "drawables" can easily be added in.
This enables very easy creation of several versions of the same face, but each one with slightly different features.
If a GUI was always better, the good lord wouldn't have given us bash!
Click to expand...
Click to collapse
Ohh I see. Good luck then :good:

Anyone tried lua.vxp from rephone ?

I"ve found a nice VXP, i still not tried it for fear of bricking by smartwatch. Once upon a time, there was a RePhone based on MT2502, and it was possible to develop in Lua for it.
I've found it here :
Lua for RePhone
Its for MT2502 but i believe it count be adapted for later mediatek models...
Lua is a nice language to develop, we could make all the missing features, like twitter, facebook etc, maybe we cannot do a brower or youtube client, but many simpler things could be done using lua, including new watchfaces etc...
While i am not a C++ developer, i can help with Lua development.
We can cheaply have an equivalent to Watchy (that costs $50 bucks).
Edit :
Also found the following :
Lua on RePhone manual
unfotunately is paywalled.
Edit 2:
Further search yielded a firmware that has only Lua language :
Lua firmware for MT2502
I dont recommending flashing your smartwatch right away because we need more information.
In other words, it could do a smartwatch solely based on lua apps. Lua watchfaces etc.
Edit 3:
By searching the source code i see that :
1 - It runs init.lua if called as an app.
2 - It assumes the device to have an ST7789S as screen, might be wrong.
3 - It retargets the i/o to the serial port. Might be usefull to not have any character i/o at all.
From what i found in the source code, it calls init.lua then proceeds to create a console to accept commands, that might not be the right behaviour for writing smartwatch apps (maybe, start, run arbitary lua file from command line preferably, then quit).
Edit4:
MRE Programming Tutorial
Basic structure of MediaTek MRE programming.

Categories

Resources