Samsung Motion Photo Extractor - Android Software Development

This is a program to extract the video and photo from a "Motion Photo" from the Samsung Galaxy s7 & s7 edge and save them as separate individual files on a PC.
Click the "Show Content" button to view the Original Photo, Extracted Photo and Extracted video.
Files are right side up on PC, the forum is displaying them rotated.
Original JPG 8.54 MB (8,961,799 bytes)
Extracted JPG 3.07 MB (3,227,486 bytes)
Extracted MPG 5.46 MB (5,734,313 bytes)
I will have a script out in the next week or so and will have a program out in a couple weeks or so.
Please hit the "Thanks!" button in the mean time if you are interested.
Original JPG 8.54 MB (8,961,799 bytes)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Extracted JPG 3.07 MB (3,227,486 bytes)
Extracted MPG 5.46 MB (5,734,313 bytes) Right click link and click "save as" to download
http://www.goofwear.com/android/Samsung_Motion_Photo_Extractor/images/Extracted_20160316_181335.mpg
I might also working on a "Samsung Motion Photo Creator"
XDA:DevDB Information
Samsung Motion Photo Extractor, Tool/Utility for all devices (see above for details)
Contributors
goofwear, goofwear
Here is the first public beta release, Beta 01 of the Samsung Motion Photo Extractor!
I have spent the entire week working on this and scraping some of it, to finally get a suitable release. Just run the Convert.bat file and follow the prompts. I will upload a video later. I have spent a lot of time working on this, this past week.
Yes you can manually do this is 10 seconds with a hex editor by opening your original Photo and searching for MotionPhoto_Data then select everything above MotionPhoto_Data and copy and paste it as a new file and save as a JPG. Do the same for the MPG BUT this time select every thing BELOW MotionPhoto_Data make sure for either one you are doing not to copy the MotionPhoto_Data text. Also the hex for the MotionPhoto_Data is 4D 6F 74 69 6F 6E 50 68 6F 74 6F 5F 44 61 74 61.
Technically the JPG ends at ÿÙ or FF D9 so the ÿÙ SHOULD be included too.
Technically You really want to delete all this "........Image_UTC_Data1458170015363SEFHe...........#...#.......SEFT..0.....MotionPhoto_Data"
But if you leave all this "........Image_UTC_Data1458170015363SEFHe...........#...#.......SEFT..0.....MotionPhoto_Data" in the end of the JPG you can easily merge them back together and have the display and play on your phone
!!! PLEASE DO NOT MIRROR OR RE UPLOAD THIS !!!
PLEASE link back to either the XDA forum thread or you my use my direct link below
Fixed link https://goofwear.com/android/downloads/programs/Samsung_Motion_Photo_Extractor_Beta01.zip
Original Link http://goofwear.com/android/index.php?dir=programs/&file=Samsung_Motion_Photo_Extractor_Beta01.zip
this will allow me to keep track of how may times this has been Downloaded
How to use videohttps://www.youtube.com/watch?v=DvJURb1BvDU
Thank you .
Please enjoy and let me know what you think
p.s. there is a read file in the zip
Samsung_Motion_Photo_Extractor_Beta01.zip
CRC32 038df607
MD5 1c82d73e0a474eafc49c1cb88e4f7e43
SHA-1 d026454ce0956c30d267f7961a47c29428e5779b
Correction They are MP4 Videos ...ftypmp42... MP4v2 http://www.mp4ra.org/specs.html#MP4V2
Version Information
Status: Beta
Current Beta Version: 0.1
Created 2016-03-19
Last Updated 2016-03-18

Brilliant, thank you! Would be happy to pay for a good working version of this, and also happy to beta test if you need it.

Really looking forward to this.
I have some nice little action shots.

I could upload a video on how to manually do this in under 10 seconds using only 1 program but would rather wait until I have a suitable "easy to use for every one" program to release. I.E. (fully automated) One click only
I already have a working version but its uses a couple programs and needs user intervention and is only partially automated.

goofwear said:
I could upload a video on how to manually do this in under 10 seconds using only 1 program but would rather wait until I have a suitable "easy to use for every one" program to release. I.E. (fully automated) One click only
I already have a working version but its uses a couple programs and needs user intervention and is only partially automated.
Click to expand...
Click to collapse
I would love one!

In the mean time if any one wants me to extract "some" photos and videos you can pm me your files. Sorry the program is taking a little longer then I had expected.

I’m also really curious how these mpg files stored within the jpg container. Any hints?

h.nocturna said:
I’m also really curious how these mpg files stored within the jpg container. Any hints?
Click to expand...
Click to collapse
Kind of, I will tell how as soon as I have a proper release.
okay here is one really small hint /b
and I am not talking about the "Rules Of The Internet
"

In case anyone can't wait, the mpg file is simply appended at the end of the jpg file. To split them, open the file in any hex editor, search for "motion" and find the line "MotionPhoto_Data". Save everything after this as a new file to get the mpg, and everything before to get the jpg.

kitashimakaze said:
In case anyone can't wait, the mpg file is simply appended at the end of the jpg file. To split them, open the file in any hex editor, search for "motion" and find the line "MotionPhoto_Data". Save everything after this as a new file to get the mpg, and everything before to get the jpg.
Click to expand...
Click to collapse
I guessed that would be the case seeing as every other app can open the jpg just fine. But I never followed through with a hex editor. One day when I’m better at programming, I’m thinking about making an app that will extract the mpg and convert it to a gif file so it can be easily shared.
Looking forward to your progress!

I knocked together a ruby script to extract mine, iv just posted it to github for anyone who wants it.
MatthewAlner/motion-photo-extractor

automattech said:
I knocked together a ruby script to extract mine, iv just posted it to github for anyone who wants it.
MatthewAlner/motion-photo-extractor
Click to expand...
Click to collapse
Awesome! Thanks! I’ll check it out!

automattech said:
I knocked together a ruby script to extract mine, iv just posted it to github for anyone who wants it.
MatthewAlner/motion-photo-extractor
Click to expand...
Click to collapse
@kitashimakaze yes you are right But you want to search for "MotionPhoto_Data" and the above hex will be the photo and everything below MotionPhoto_Data will be the mpeg. technically the jpg ends at the last 2 characters being ÿÙ and the mpeg starts with "....ftypmp42" As I said earlier I was going to Properly Explain all of this and in detail as soon as I had some thingy easy for the everyday user.
@automattech Thank you I will take a look at this

goofwear said:
@automattech Thank you I will take a look at this
Click to expand...
Click to collapse
No worries, are you thinking about making an android app? Id love to be able to share them as gifs from my phone.

I would love to I have programmed in C# aka C Sharp , but I have not programmed for android. Ideally I would love to make and android app.

I have just release the public beta version 01. Please see the 1st post on page one for the update and link.
Please click the thanks button on the first post and leave a comment.

@xda -developers @xdadevelopers @AdamOutler can you tell me what you guys think too. Thank you very much

Sorry I must be stupid but I cannot get it to work. I'll have to await your simpler version.

fabianfred said:
Sorry I must be stupid but I cannot get it to work. I'll have to await your simpler version.
Click to expand...
Click to collapse
I have just uploaded a how to video on the first post, it is at the bottom , Please watch it in HD 720 and try again. It is actually REALLY EASY to use.
1). Double click convert.bat drop and drag photo into the hex converter and let got, then press ok.
2). wait untill notepadd plus plus open and Select all the text (best way is hold ctrl and press a) this makes sure you get it all. then close the notepad.
3). In HXD click new and then ok then Hold ctrl v to paste all then click file save and as it as a .jpg Repeat steps to save your video & ave as mpg.
Please let me know if this works for you. I have also spent a lot of time to try and make this as simple as possible for every one and automate as much as I could.
This is basically just copy and pasting from one window to another and clicking save (using keyboard short cuts)

h.nocturna said:
I’m also really curious how these mpg files stored within the jpg container. Any hints?
Click to expand...
Click to collapse
The phone saves the Video to the end of the file and it adds a little bit of meta data at the end of the Jpg file and before the mpg file
is essence it is almost exactly the same as this.
"Appending Binary Files Using the COPY Command"
https://support.microsoft.com/en-us/kb/71161
copy /b <source1> + <source2> [....] <targetfile>
normally when extracting the image and video you would delete this meta data but in the program I released I have chosen to leave it at the end of the JPG so you can easy merge them back into 1 file and have it work again as a motion photo on your cell phone. I have mentioned how this is done in the first post in a little more detail.
Sorry for not telling you guys earlier. I wanted to have something to release to show it could be done and before some one else took my idea and beat me to the punch.
Most people do not publicly mention projects they are working on until they have something. I was a little excited and wanted to let people know ahead of the time that I was working on a project.

Related

XDA IIi Camera Bug

Along with most people, I was terribly disappointed with the camera quality in the XDA IIi.
In order to get an idea of the capabilities of the CMOS sensor, I tried it at the native resolution, with uncompressed bmp format, and was rather surprised to see the results: Every other line is transposed with its neighbour. There's obviously a fundamental bug in the camera software, at least on my device.
This means that even after resizing, even the best jpeg compressor is going to have a difficult job compressing the image. No wonder the images look so poor.
I wrote a little program to switch the alternate lines back, and you can see the results in the attachments. Note the native files are lossless encoded as png files here.
So, a request - can anybody else with an Andes/XDAIIi please take a photo in BMP format with a size XL (960x1280) and upload it to this thread (note - I had problems with my attachments as the raw files are pretty big, and had to use my own server); just to see if this problem affects all devices, or just mine.
Raw image links follow - warning they're pretty big...
Raw image before rejigging
Raw image after rejigging
Here are the resized jpeg (50% compression) versions
Before Rejigging - note it's a little fuzzy, but the resize & jpeg compress has hidden the obvious problem
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After rejigging - looks sharper, but not as obvious an improvement as with the raw files
if anybody's interested, the .Net proggy is here
Zip file is corrupt!
So it is... have re-uploaded it (and tested it) now.
Hi,
maybe its my eyes, i could not see any major differences.
Do you know if the program runs in Magneto ?
Thanks.
AF
maybe its my eyes, i could not see any major differences.
Click to expand...
Click to collapse
Have a look at the raw files, and zoom in in a paint program.
Do you know if the program runs in Magneto ?
Click to expand...
Click to collapse
The program's not a CF program, it's just a plain .net PC app, but it wouldn't be difficult to build it for the CF. No idea about Magneto.
how about on xdaII?
I see the difference; at least no fuzz blur on image....I wonder does it work on XDAmini and xdaII?
If anybody has a Mini or another 1.3MP device, I'd appreciate it if you could post a raw bmp/max res image to see if it has the same problem. Actually, just a portion of it will be OK, as the problem is pretty obvious.
It seems stupid that the camera interface has such a stupid bug in it.
heres one i took of my keyboard in poor lighting.
a whopping 3.51mb though !!
havnt tried your jiggery thing yet, but ill post an image when i have.
I have the XDA IIi.
Click here to view it
same problem with newer camera software builds for HTC magician, it was posted here:
http://forum.xda-developers.com/viewtopic.php?t=17991
I tried your rejigger program on my magician, but it does not run! It crashes and details of error massage says:
TypeLoadExeption
Type "System.Windows.Forms.Form"
of assemby "system.Windows.Forms,
Version 1.0.5000.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
could not be loaded
(error massage in german on my MDAc, translated by myself)
This looks rather cryptic to me.
I would love do be able to run 'rejigg' on my MDAc. Is there any help?
Thanks in advance
I tried your rejigger program on my Magician, but it does not run! It crashes and details of error massage says:
Click to expand...
Click to collapse
As mentioned above, this is a desktop program, that's why...
If it's not just my XDAIIi, and looks to be a problem that's not going to go away any time soon, I'll make a .Net CF build for devices.
Thanks for the link to the other topic, should've included Magician when I searched for any other problems.
I think I'll create a program that monitors an images directory on the device for new full size bmp files, re-interlaces them and (optionally) compresses them to jpg.
Sorry for not understanding that it is a program for desktop
It would be wonderful to be able to convert those wrong-interlaced .BMPs to correct ones. I could get rid of my older version of camera software (which does not have wrong interlacing but has worse color mangement).
At this moment I use for further 'picture-editing' the freeware XnView. It has the option to work on all pics in a folder.
This allows to choose a decent .JPG quality without those horrible artifacts HTC's camera software causes (it uses _much_ to strong compression).
And it gives me a decent sharpen filter, much better than HTC's camera sharpen filter.
And it does both in one step.
I usually shot the pic in .BMP mode without any sharpening and I am doing later conversion as well as sharpening in one step using XnView. This is quite a nice workflow for me and might be usable for you too.
But it might be very good to have the option of batch processing rejigging and conversion (and sharpen?) :wink: in one easy to use software.
I any case a batch processing rejigging software would be very very nice (now, is this begging?)
BTW: Sometimes I get the impression that HTC's software quality management is very very stupid. This wrong-interlacing errror is publicly discussed since march 2005 and no fix yet.
And their camera software lacks _so much_ . I am sure a very well written camera soft would be able to produce much better pics.
OK, here is an on-device utility. Just extract the zip, and copy the exe to your device.
Running the exe will allow you to load a file, when you save the file again it will be corrected. Remember BMP format, Max Res.
Let me know if there are any problems...
Unfortunately it does not work on my MDAc (HTC magician).
It only converts the part of the BMP, which is shown on the screen during "preview".
BTW: I do not need "preview", but I would like to get the option to convert all BMPs of a directory.
Another problem: My cam stores its BMPs under Storage Card/My Documents/05062800001/ etc. These directories seems to be unreachable with your file open dialog. I have to copy my files in the root dir (or 1st Level dirs?), which is quite inconvienient.
Sorry for disturbing you with my problems. Surely your software could be a "big leap forward" for HTC cam's quality.
Unfortunately it does not work on my MDAc (HTC magician).
It only converts the part of the BMP, which is shown on the screen during "preview".
BTW: I do not need "preview", but I would like to get the option to convert all BMPs of a directory.
Another problem: My cam stores its BMPs under Storage Card/My Documents/05062800001/ etc. These directories seems to be unreachable with your file open dialog. I have to copy my files in the root dir (or 1st Level dirs?), which is quite inconvienient.
Sorry for disturbing you with my problems. Surely your software could be a "big leap forward" for HTC cam's quality.
Thanks for the feedback.
Strange that it's only converting the top left corner... must be ignoring the off screen part of the DC, but I would expect the rest to be blank in that case.
Q: When you save the bitmap and open it in another app, do you get a converted top/left and the rest of the bitmap is black, or the original image?
As for the file open - yep that's the good old Microsoft file open dialog. I really don't understand some of the design decisions MS made on the PocketPC. I don't have an alternative file open, but if I code up a batch convert, I will try and make the path enterable in a different way.
Now the main problem is I've sent my XDAIIi back - it was just too unreliable and frustrating for me, and I'm using my trusty XDAII until there's a new rom for the XDAIIi.
The rest of the image is black.
Aha, that'll be it then, bit busy at the mo, but will try and fix it.
Thanks in advance!
It looks like swapped lines is a bug specific to BMP format only. I wrote the same program (swapping odd and even BMP lines and saving them to JPEG format) and found no significant difference between this JPEG and the one produced by camera app.
For those interested in repeating this experiment: please use BMPChop.exe console application attached here.
This application is for windows desktop computers only.

Encrypting Porn

I obviously am sensative as to who while looking my XDA over could accidentally find my porn stash.
What software package is best for encrypting movie files and pics?
resco explorer come with a built in encrypt file software.
Or Airscanner Encrypter to encrypt whole folders easily.
perhaps make the folder "hidden" then take the view hidden files function away so that the general browser doesnt find it.
i also apply a name that will not attract attention such as work or parents .... or system or temp cache or similar, anything but say porn xxx look here
then again, dont be ashamed of your actions, or dont do the actions....
nothing wrong with a bit or even a lot of porn
if it offends people, they shouldnt be looking, and even if they found it, they should choose not to look
This image always comes to mind:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I find that merely zipping the folder and putting it somewhere obfuscated prevents accidental clicks. But airscanner looks cool. Will have to try it out.
V
Nice one V! :lol:
So now we know what you do so long in the nights on your pc... :roll:
...looking for funny pics .
Am I the only one that would have really appreciated it if you wouldn't have told us what you're using the encryption for ?
TheBlasphemer: if he'd said:
"I need an encryption app to encrypt information I'd rather other people didn't see", he's most probably either a hacker, a spy, or a male Glad he >eugh< "came" straight out with it... :shock:
Rottie: you back from holiday? Your request, what seems to be the Holy Grail of hacks, the closed clam keyboard hack - I've had some ideas and some contributions that have given me some ideas. I'll try to progress them shortly.
And what I do on the long nights - I wish! I'm programming every spare minute now, even during lunch times, running home to code a few lines
This made me snort tea all over my desk:
I love Penny Arcade.
Anyone tried AirScanner yet? (blatant attempt to bring back on topic!)
V
vijay555 said:
TheBlasphemer: if he'd said:
"I need an encryption app to encrypt information I'd rather other people didn't see", he's most probably either a hacker, a spy, or a male Glad he >eugh< "came" straight out with it... :shock:
Click to expand...
Click to collapse
If he hadn't told us, I could still just refuse to believe the pr0n thing and believe he was a govt spy or anything
If you were to put the porn on your ipod, you could call it porn-on-the-pod.
porn-on-the-pod
Click to expand...
Click to collapse
Do you want butter with that? A little "Last Tango in Paris" perhaps?!
V
Last Tango reminds of the ads ... Can you tell the difference between butter and margerine ?
chetccox said:
If you were to put the porn on your ipod, you could call it porn-on-the-pod.
Click to expand...
Click to collapse
ROTFL
I actually use Airscanner for er..... encrypting stuff that.....er I'd rather wasn't....... er easy to find. <coughs>
I can vouch it works well under WM5, and it appears to work by using multi-pass bitwiping to ensure there is no trace of the original files prior to encyption.
Odd thing is though, I'm sure it used to be free, but now they seem to charge for it. My advice is look at free download sites for a copy.
Not sure where the software came from, but my press and hold menus provide encryption, I think its resco explorer.
I can use normal file explorer to "hide" files from general view, but I noticed in Resco explorer, the hidden files are still clearly visible, so not sure if there is a bug in the resco app for hidden files, but they are definitely hidden from the normal ppc file explorer. add that to resco encryption, I think should be sufficient.
Good (and bad) news - looks like we won't be needing this software anyway:
http://www.theregister.co.uk/2006/02/23/masturbation_worse_than_sex/
V
On a side note: On my communicator I had a password safe with categories like credit card, shopping accounts etc... Is there something similar for WM5 available?
TauTau said:
On a side note: On my communicator I had a password safe with categories like credit card, shopping accounts etc... Is there something similar for WM5 available?
Click to expand...
Click to collapse
There is a program called KeePass which works on most devices, relevant here is the Desktop and PocketPC. The datafiles are transferable between both devices. I have used it on my Universal without problems. I have actually been using this program for a long time, I keep the DB on a USB key and a copy of the program. This means that when I plug in my key the password safe opens and asks for the password, or I can run it from the key if on another machine.
As for encrypting the pr0n, what about a good old .RAR archive? The version that I use (Pocket RAR 3.50) will encrypt and decrypt folders and files, quite fast too.
If you're talking about a large stash this won't work, but if you're only carrying round < 10MB you could always use the ExtendedROM partition and leave it hidden.
This means that you could have all your files in readable format, but without knowing the name that you used for the partition they couldn't access it without searching the registry for the name.
Not many people are going to search the registry for a name they don't even know exists.
This might sound like a difficult thing to do, but Buzz made an unlocker and the registry change for the name is in the thread.
Once you have done your hard reset and loaded the ExtendedROM you don't need the stuff in there anymore, and can use the space for storage.
"stash"
I agree, I know "people" that use a zip file for text, and otherwise just buried folders.
How's abouts we make a small app to render files unusable? You could take the filename, pre-pend it to the file in binary to render it unusable, using a simple XOR encryption for those few bytes. Then give it a generic filename and extension, eg Sheet1.prn.
When launched, .prn files will launch our decrypter, asking for the password. I suppose you could possibly memory map the decrypted file to even ensure an unencrypted version doesn't exist on the device for any considerable period (ie until you close the decrypter).
just an idea.
V
Sounds good V,
When can we expect VJPhorEnsic to first arrive on the board ;-)
M

download the map from google map?

hello,
it is possible to download the map from google map? or only part of the country?
Only for use with GPS and without being connected via the data?
Thank you
Dont think so,... But Co-pilot apparently does that very well. It is not free though.
to the users of google_map is free ...
How stupid he does not put the option to download the map of the country ....
I hope we will have one days
boolat said:
to the users of google_map is free ...
How stupid he does not put the option to download the map of the country ....
I hope we will have one days
Click to expand...
Click to collapse
I think that google maps would take up vast amounts of storage space for a single city just because of the amount of information there is - satellite view, etc.
Actually this is possible.
Using Google Maps offline in Android
Use Trekbuddy to download the maps of the region of your interest (in Trekbuddy select Rmaps format before downloading). Install Rmaps on your HTC then copy the file created by Trekbuddy to HTC.
Rmaps allows you to have kind of offline Google Maps. You will be able to display your location on the map and browse but not search or get navigation instructions.
jackhab said:
Actually this is possible. Use Trekbuddy to download the maps of the region of your interest (in Trekbuddy select Rmaps format before downloading). Install Rmaps on your HTC then copy the file created by Trekbuddy to HTC.
Rmaps allows you to have kind of offline Google Maps. You will be able to display your location on the map and browse but not search or get navigation instructions.
Click to expand...
Click to collapse
hello,
you've already tested?
I install maverick: http://www.codesector.com/maverick.php pro version
my problem is that I could not get the map on the screen?
I created the map, but the file or save?
or should I save the file: Google Earth? I put in the root of the SD card and it does not work?
thank you for helping me
boolat said:
hello,
you've already tested?
I install maverick: http://www.codesector.com/maverick.php pro version
my problem is that I could not get the map on the screen?
I created the map, but the file or save?
or should I save the file: Google Earth? I put in the root of the SD card and it does not work?
thank you for helping me
Click to expand...
Click to collapse
Yep, it works. After Trekbuddy downloads your map (it could be hundreds of thousand of tiny PNG files depending on the size of your region and selected zoom levels) it compiles it into a single .sqlitedb file. Put this file in /sdcards/rmaps/maps and then open Rmaps, go to Settings > User defined maps and choose your file. Go back to Rmap main screen press Menu > Maps and you should see your map in the list - select it and off you go.
correct me if there was error:
Map source : Google earth
zoom level : 16
atlas content : Add selection
atlas setting --> format ? to choose that format?
thx
boolat said:
correct me if there was error:
Map source : Google earth
zoom level : 16
atlas content : Add selection
atlas setting --> format ? to choose that format?
thx
Click to expand...
Click to collapse
Map source : Google earth - OK.
zoom level : 16. You may want to choose more than one level. Even if you download the finest zoom maps you will not be able to zoom out unless you downloaded upper zoom level. The maps are stored as bitmaps and cannot be scaled. So I suggest you to choose also 15, 14, 13 up until, say, 7. Check the zoom scroll in the upper left of the map to see what levels you are interested in. Anyway zoom 16 is the one generating most of the files.
atlas content : Add selection - OK
atlas setting --> I'm not at home right now and I don't remember exactly what settings I used here. Try BigPlanet SQLite. I don't remember if this is it or there should have been Rmaps format and it disappeared in the last version. I'll check it when I get home.
First try to download with smaller zoom like 6 so you can quickly check if it's working.
thank you for your help ...
we'll get there
I have the following error when I click on create map:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For Maverick it's 'Maverick atlas format' and you should tick ALL the boxes to 16 (0,1,2,3 etc.) otherwise you only have 16 level map
I also want to use RMaps but can't because of that SQL lite error (this is despite following the instructions saying to put a dll file inside the folder)
butterdori said:
For Maverick it's 'Maverick atlas format' and you should tick ALL the boxes to 16 (0,1,2,3 etc.) otherwise you only have 16 level map
I also want to use RMaps but can't because of that SQL lite error (this is despite following the instructions saying to put a dll file inside the folder)
Click to expand...
Click to collapse
with maverick, or putting 25549.jpg.tile,25550.jpg.tile creates with Atlas creation?
?
boolat said:
thank you for your help ...
we'll get there
I have the following error when I click on create map:
Click to expand...
Click to collapse
Well, this is exactly as instructions say:
1. Download the missing SQlite library from http://www.ch-werner.de/javasqlite/javasqlite-20100131-win32.zip
2. Extract sqlite_jni.dll and sqlite.jar and put both files in the directory where Trekbuddy jar is located.
jackhab said:
Well, this is exactly as instructions say:
1. Download the missing SQlite library from http://www.ch-werner.de/javasqlite/javasqlite-20100131-win32.zip
2. Extract sqlite_jni.dll and sqlite.jar and put both files in the directory where Trekbuddy jar is located.
Click to expand...
Click to collapse
thank you its works very well
thank you for your help ...
for zooming with RMAP, you get to operate the zoom?
boolat said:
thank you its works very well
thank you for your help ...
for zooming with RMAP, you get to operate the zoom?
Click to expand...
Click to collapse
To have different zoom levels you need to select and download them in Trekbuddy. If you only clicked the check box near zoom level 16, for instance, this is the only zoom level you'll get in Rmaps. If you want the ability to zoom in AND out you need to create a map with all the zoom levels so go back to Trekbuddy and check all the level you wish to see in Rmaps (I myself use levels from 7 to 16) and create a new map.
Hey Chaps,
Thanks for this discussion etc, followed it through and wow-wee
only alteration is the map creation / download software is now called Mobile Atlas Creator otherwise spot on
ta
Someone should sticky this thread.
Someone should sticky this thread. I was kicking RMAPS and screaming at Mobile Atlas Creator. This thread was like a tranquilizer. Everything worked and I'm calm again.
cool. Will this work with google nav (burt variation)?
It is not very effective if it doesnt show navigation.
I am using google maps brut but it doesnt seem to display maps while offline. I have checked the settings and have ticked the option to display maps from cache but dont know what the problem is.
sirl said:
Someone should sticky this thread. I was kicking RMAPS and screaming at Mobile Atlas Creator. This thread was like a tranquilizer. Everything worked and I'm calm again.
Click to expand...
Click to collapse
I put all the instructions in one-page tutorial so that folks won't have to read through all the thread to figure out how it works.
Using Google Maps offline in Android

Trying to find where sms are stored in WP8.1 file system.

Today, Microsoft removed the "Message History" section from my Outlook account, so I can no longer use a well-known trick to view my sms history. I notice that in the WP8.1 emulator, I can now log in to my MS account and my sms history are synced to the emulator. I am trying to take advantage of this feature to retrieve the file that stores my sms from the emulator image.
So far, I have managed to merge the emulator snapshot with the base .vhd and mount the resulting virtual disk to view all the files. Hell, I can even decompile the stock apps to view their source code...However, I cannot find where my sms are stored. There is one suspicious folder that has modification time at the moment the sms are synced.
"K:\SharedData\Comms\Unistore\data" where K is the Data volume.
In this folder, I can find all my emails in plain text and a bunch of other files in binary/encrypted text. I hope the binary/encrypted files are not my sms. Anyone has any idea?
I got the answer to my own problem thanks to this post. http://resources.infosecinstitute.com/windows-phone-digital-forensics-2/
The name of the file is still store.vol but it is in another location compared to WP7.5. You can find it in Data\Users\WPCOMMSSERVICES\APPDATA\Local\Unistore . If you want to follow my steps and there are any questions, feel free to post below.
Edit: now I need to find a way to read this EDB database file, including the date and time the sms were sent.
illidanx said:
I got the answer to my own problem thanks to this post. http://resources.infosecinstitute.com/windows-phone-digital-forensics-2/
The name of the file is still store.vol but it is in another location compared to WP7.5. You can find it in Data\Users\WPCOMMSSERVICES\APPDATA\Local\Unistore . If you want to follow my steps and there are any questions, feel free to post below.
Edit: now I need to find a way to read this EDB database file, including the date and time the sms were sent.
Click to expand...
Click to collapse
Hmm, don't know but EDB Files are used on Exchange 2003 Servers.
I had a Software to open such files. But this piece of Software is really expensive.
When i'm in the Office I will look for the name of the Software.
DarkD1988 said:
Hmm, don't know but EDB Files are used on Exchange 2003 Servers.
I had a Software to open such files. But this piece of Software is really expensive.
When i'm in the Office I will look for the name of the Software.
Click to expand...
Click to collapse
that file is also the exchange database used in windows mobile. I heard the format is different for different purposes and MS has never provided the documentation for this format.
illidanx said:
that file is also the exchange database used in windows mobile. I heard the format is different for different purposes and MS has never provided the documentation for this format.
Click to expand...
Click to collapse
If you trust me an there is nothing important in this edb file you can Upload them to an Hoster/dropbox
and give me the Link so i will try to open the edb file.
thats the Software I use:
http://www.krollontrack.de/produkte-und-software/kostenlose-software/registrierung/
There is a possibilty to test them.
But we (my Company) have a full version with add ons. So I think there is a bigger chance.
EDB (on WP7, at least) was Embedded DataBase. The API for them is documented here: http://msdn.microsoft.com/en-us/library/aa914733.aspx
I know WP8 has some mobile DB APIs (even though it uses NT, not CE) although I haven't tried them at all. You could also try using the Mail API (MAPI) http://msdn.microsoft.com/en-us/library/office/cc842118(v=office.15).aspx for documentation.
There was a homebrew app on WP7 (hosted here on XDA) that extracted SMS for backup, because there wasn't an SMS backup feature. I don't know if it would be useful with WP8, even as a reference, though it may be worth checking to see if the source for it is available.
DarkD1988 said:
If you trust me an there is nothing important in this edb file you can Upload them to an Hoster/dropbox
and give me the Link so i will try to open the edb file.
thats the Software I use:
http://www.krollontrack.de/produkte-und-software/kostenlose-software/registrierung/
There is a possibilty to test them.
But we (my Company) have a full version with add ons. So I think there is a bigger chance.
Click to expand...
Click to collapse
I created a throw away outlook account and send a test message from the emulator to phone number 555-555-5555 (Yes you can send it in the emulator even though that will never been sent). The content of the test message is "this is a test". With a hex editor, I have verified that the message existed in the store.vol file at address A0233. You can download the whole folder here https://www.mediafire.com/?4id993y8gnii3v9
This is the screenshot of the folder
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you for helping me.
GoodDayToDie said:
EDB (on WP7, at least) was Embedded DataBase. The API for them is documented here: http://msdn.microsoft.com/en-us/library/aa914733.aspx
I know WP8 has some mobile DB APIs (even though it uses NT, not CE) although I haven't tried them at all. You could also try using the Mail API (MAPI) http://msdn.microsoft.com/en-us/library/office/cc842118(v=office.15).aspx for documentation.
There was a homebrew app on WP7 (hosted here on XDA) that extracted SMS for backup, because there wasn't an SMS backup feature. I don't know if it would be useful with WP8, even as a reference, though it may be worth checking to see if the source for it is available.
Click to expand...
Click to collapse
Hi, thanks for helping. The first link is for windows mobile 6.5 CE so I'm not sure if it applies. I will check out the second link. I have also made a post in the thread about extracting WP7 SMS to ask for the source code.
illidanx said:
Hi, thanks for helping. The first link is for windows mobile 6.5 CE so I'm not sure if it applies. I will check out the second link. I have also made a post in the thread about extracting WP7 SMS to ask for the source code.
Click to expand...
Click to collapse
kay, try this. And sry the Programm Kroll Ontrack for exchnage don't works.
DarkD1988 said:
kay, try this. And sry the Programm Kroll Ontrack for exchnage don't works.
Click to expand...
Click to collapse
Thanks for testing it though.
Edit: found this article about reverse-engineering Embedded Database. This looks like a NSA personnel's job...
http://www.sciencedirect.com/science/article/pii/S1742287612000874
Sorry, I should have been more clear: WP7 used CE internally, so the WM6.5 APIs worked on it. WP8 uses NT instead of CE, but has some of the embedded database APIs anyhow (because the code was imported straight from WP7, maybe?) so it might still work. You'd need to find the library with the relevant exports, though; that part of the documentation will be wrong for WP8.

LA10 smartwatch (Linwear/Kingwear/Lige/etc...). tools, watchface structure, direct connect via BT

hi all.
at first, sorry for my english - it's not my first language.
so...
you can find a few chines vendors with identical device named as "LA10 smartwatch" (Lige even not try to naming this model - just "smartwatch"), even you may order a lot with your own logo.
but all of it would have an identical characteristics, uses one app "ffit" and identifies via BT as "LA10_XXXX" where "XXXX" would be a last 2 bytes of a mac.
also all of vendors use an identical promo images, so you'll easily detect it. few of it:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
as I'd understood, the original developer was a Linwear, in case "LA" seems may means "Linwear AMOLED", also Linwear have as usual description in promo images, as manual, as link to all of applications. if you'll interesting, you can learn more here https://www.linwear.com/article/1321.html
btw. Lige have a variant with stainless steel strap (I have an exactly this).
ok. I'll think that's enough for intro, so let's start...
Spoiler: about watchfaces.
while default watchfaces with a clock hands, uploadable seems can be only a digital, or it must have a different structure. as I have no one of watchface (further "wf") with clock hands, I can talk about digitals only.
structure is a bit easy:
0000-0009header with bits of used options00A-019Fparameters of an options. every option have a personal offset and similar structure01A0-...graphical resources in rgb565 format (2 bytes per pixel)
structure of a parameters are:
2 bytesX position2 bytesY position2 bytesframe width2 bytesframe height (not of texture)1 byteframes count4 bytetexture offset. numerics of steps, pulse and calories have a few of offsets equal maximum possible digits, what theoretical may use different textures but with identical parameters
while I'd investigate wf structure, I'd make a little excel with full descriptions and wf model. all is automated, all what you need, just insert a sequence of first hex-bytes 0000-01F9.
feel free to use it if you want
Spoiler: images
excel
Spoiler: wf editor
a little tool, what allow you modify wf or make your own
I did not tried to make an integrated photoshop, so you must import/export bitmaps via clipboard.
keep in mind:
- a clear black (0, 0, 0) would be treated as a transparent color by your watch, while editor not support transparency.
- all unused resources would not be saved in wf file.
- parameters have no any correctness check (frames count for sample), so you may set any, but it may works incorrect.
- background layer must be exactly 454x454, or it'll be looks lake a damaged. but you may disable bg layer and get just a black screen as a bg.
- file open dialog would appear on right click of a text field.
Spoiler: images
LA10WFTool.zip
Spoiler: direct working via BT
original "ffit" app will not allow you to upload any wf, so you must upload it manually.
Spoiler: upload algorithm
at first, you must enable notifications of a "00001603-0000-1000-8000-00805f9b34fb" characteristic (further "1603")
all packets must be sent to a "00001602-0000-1000-8000-00805f9b34fb" characteristic (further "1602")
- prepare header:
00-02first 3 bytes are zero03-064 bytes of a wf file size07size of MTU08-09size of a "page"0Amust be = 1
- increase MTU. in original to 244
- split the file
- - at first, split by "pages". in original, page size is a 4096. so you must split your file on a chunks of 4096 bytes.
- - now split the pages on blocks with size of (MTU - 2) i.e. by 242 bytes (244-2=242). keep in mind, what last chunk in page would be a 224 byte of size instead of 242 in case 4096 mod 242 = 224.
- - for every block, add a 2 bytes counter (starts from "01") at forward.
now you are ready to send wf. all packets must be send at 1602, any callbacks catch at 1603.
- send a header.
- wait 4 changes at 1603. last two wold be a "00 00 13 00", then "00 00 12 00".
- start sending a blocks sequentially.
- after every 17 blocks, before sending a next, you'll must send "00 00 17" at 1602 and wait a response from 1603. usually it's a "00 00 14", but I don't check, just wait an any.
- after sending a last part, you must send "00 00 17" for the finish.
if all is ok, you'll see your wf else - default wf.
of course you need an app.
algorithm are described, so you may make your own app, or use my. but actually I'm not a programmer (just an angry customer), so don't blame me about rugged code, I write it as can. in excuse - I even never listen about kotlin before((
so I've got an existed sample as a base and add required functional. the best way what I'll found is a "BLE Starter" of a Punch Through (team?). very thanks them for it.
sources are here https://github.com/PunchThrough/ble-starter-android big article about BT working are here https://punchthrough.com/android-ble-guide/
Spoiler: the app
at first unbound your smartwatch in ffit. in case device may be bounded to only one app.
- bound via app and look at 1602 characteristic. you don't need to enable 1603 manually in app, it would be enabled automatically. MTU would be set automatically too.
- tap 1602 characteristic and chose any write method
- in payload dialog, type just only one letter "w" (w/o quotes). tap "ok" and select your wf in open file dialog.
- now just wait. I make it by callbacks, so process would have a long time ~15 minutes per megabyte. I'll try to rewrite it latter from callbacks to blind write (write with no response via timer), but not soon. just have no time for it now.
the app BLE_Starter_base.zip
source ble-starter-android_srs.zip
Spoiler: View and download watch faces directly from ffit server
I've finish a little tool, what allow you to discover watch faces directly on ffit server.
at this time, it have an only 100 of different sizes. useful as resources only and editable via my LA10WFTool
now you can scan ffit server for watch faces by ID. it's allow you to get over 45k items, but a lot of it are duplicated. seems not compatible with la10, but may be used as resources for customizing.
FFitWFDownloader.zip
I have a figured out how to send messages, so if someone interesting, I'll add later.
also all stuff would be available at my gdrive.
that's all. have fun. hope it would be useful for someone.
*********
LA10WFTool - updated (removed check for import image more than 454x454)
*********
LA10WFTool - minor bug fixes and ui improvement (mostly scrolls over nud's)
*********
16/11/22 - FFitWFDownloader
- added "Investigation" ability, to "discover" watch faces by ID. over 45k, but a lot of duplication.
*********
23/11/22 - FFitWFDownloader
- reworked "Investigation" section.
- added "Download Range" ability.
Hey VXSX, great stuff! I was exactly looking in this direction but I had still not much time and was just starting. I believe many of those smartwatches come from the same manufacturer or seem to have very similar HW. Your watch and mine seem very similar to those from the dtno1.com
Anyway, first of all. Can you say something about the filenames in use? In the app (FitCloudPro) used with my phone I can see a set of 4 files for every wf, they seem to be in pairs based on their sizes. One pair is quite large (e.g. hundreds of KB) and one is much smaller. Any idea? How is it for you?
Will look into our files and will try to use your findings as well.
Thanks and keep posting!
the_cipo said:
Can you say something about the filenames in use? In the app (FitCloudPro) used with my phone I can see a set of 4 files for every wf, they seem to be in pairs based on their sizes. One pair is quite large (e.g. hundreds of KB) and one is much smaller. Any idea? How is it for you?
Click to expand...
Click to collapse
at first time, I'd tried to replace wf file for ffit app "on the fly" via proxy, but had fail. app download my file, but didn't to upload in the watch. seems app check crc and treat my file as corrupted. manual uploading have no mater for the name of a file. anyway, watch even don't know about name in case you upload file data only, not the name.
vxsw said:
at first time, I'd tried to replace wf file for ffit app "on the fly" via proxy, but had fail. app download my file, but didn't to upload in the watch. seems app check crc and treat my file as corrupted. manual uploading have no mater for the name of a file. anyway, watch even don't know about name in case you upload file data only, not the name.
Click to expand...
Click to collapse
But do you also have more files in the app dir for every single wf?
app have no accesable dir. but seems have a some sort of hidden cache, in case it'll not redownload wf every time. as I've understood through sniffing, wf have stored on server "body" and "preview" image separatelly. both downloadable via direct http link both have a names, but it's actual for vendor app only. exactly device requires only content of a wf file ("body") what must be correctly prepeared and upload by algorithm what I've described above. device did not get any info about names and/or preview.
App has an accessible dir on the phone. In my case is "\Internal shared storage\Android\data\com.topstep.fitcloudpro\files\Download"
In this dir I can find 4 files for every wf:
Here I selected 4 belonging to the same wf. I did a few tests and this dir gets 4 more files for every new wf.
ffit have no similar dirs. and/or I had not find any method to get access to it.
looks pairs of files have an identical size. what about content? attach something pls, I would like to look at this. also some sort of preview would be nice too.
Sure, this is the smallest I found.
With its 4 files following. As you can see the wf (above pic) has a reported size of 192KB which matches the two files below. So this data is consistent.
And these are the small ones (related to the same wf). Maybe this file is the picture of the wf presented in the UI (attached above).
CONFIRMED: both the 2 small files are the PNG of the wf (res 368x368). Probably that one used in the preview.
vxsw said:
ffit have no similar dirs. and/or I had not find any method to get access to it.
looks pairs of files have an identical size. what about content? attach something pls, I would like to look at this. also some sort of preview would be nice too.
Click to expand...
Click to collapse
Do you have the phone USB set in sebug mode? It might help
first two looks like a wf, but seems have a some sort of compression. in case even 368*368=135424 and it's only bg pixels count, while file size is only 186496.
also pairs are identical, so not sure what name have meaning for device. may be for app only as some sort of check.
the_cipo said:
Do you have the phone USB set in sebug mode? It might help
Click to expand...
Click to collapse
I use a wi-fi debugging, but for why?
Yeah, the two pairs are identical. probably the name is used for some check.
I am looking with HEX editor and you can see some blocks (in the wf file). E.g. from 00x0 to 1ffx0 and from 200x0 to 5ffx0. One more starting at 4f00x0 (or 4f20x0) with many zeros before that.
The block 0600x0 starts with ASCI "TBUI" and ends with the last 4 ASCI bytes in the file (at 2d87fx0) with again "TBUI" string.
vxsw said:
I use a wi-fi debugging, but for why?
Click to expand...
Click to collapse
Just thinking about what would cause you not to see hidden files.
vxsw said:
first two looks like a wf, but seems have a some sort of compression. in case even 368*368=135424 and it's only bg pixels count, while file size is only 186496.
Click to expand...
Click to collapse
Why would you expect to be exactly 135242? I have bin wf files of almost 1 MB. I don't think it has to do with screen resolution. Can you try to identify the protocol and blocks inside the bin?
the_cipo said:
Why would you expect to be exactly 135242?
Click to expand...
Click to collapse
it's just a pixels count. you said:
the_cipo said:
(res 368x368)
Click to expand...
Click to collapse
so I'd suggest, what wf have a background with 368x368 resolution and it's an exactly square of a 135424 pixels (368x368=135424). if it would be a plaine bmp, it must have a [size] = [quantity of all pixels] x [bytes per pixel]. so even it would have at least 2 bytes per pixel, it'll must have size = 368x368x2 = 135424x2 = 270848 bytes only for bg texture. + header + some parameters. so as it have an only 184k bytes it must have a some sort of compression or it's something other, what at least have no bg texture.
the_cipo said:
Can you try to identify the protocol and blocks inside the bin?
Click to expand...
Click to collapse
I can try, but have no enough time at now. try to gather 5-10 wf with previews, each wf in personal folder. more prefer with easy elements on textures (less colors, even solid).
it would be easy, if it would be a plain bmp (in my case), but seems it's not for type of your wf.
so I would not promise anything, but I'll try.
I don't think so, I agree on the pixel count but the bin contains other info besides the bg data. So it must be bigger than 135424 bytes (considering 1 byte per pixel). As you found out, there are sections related to other clock info. In fact, I got the example with a simple bg image with a few colors to help that out. Will look for more
I liked your excel but I cannot still figure out all info there, for example, the column "S" in the second tab (to start with).
the_cipo said:
the column "S" in the second tab (to start with).
Click to expand...
Click to collapse
offset of a first byte of a parameter. one parameter is a red+green(+gray if exist). red is an exactly parameters, green is a main offset of a texture, grey is a "suboffsets" (offsets of a "sockets" - independent part of a layer. i.e. layer "steps num" is a numeric of steps, it have a 5 digidts ("sockets"). sockets draws sequential from left to right, defined position in red field is a position of a first socket.)
the_cipo said:
So it must be bigger than 135424 bytes (considering 1 byte per pixel
Click to expand...
Click to collapse
I tried to explain exactly this)) what 186k is to low size for wf with 368x368 resolution)) 186k is not enough even for bg texture.
Here are two sets of simple wf, will do more later.
the_cipo said:
Here are two sets of simple wf, will do more later.
Click to expand...
Click to collapse
it's just a png, not a wf file.
--------------
sorry, found it. didn't saw a prew. post.
as I understood it have an only by 3 clockhands and nothing more?

Categories

Resources