Recently I started studying Android development. To get myself started I'm trying to develop a simple app to track my favorite coffee cups. To this end, I thought I'd download the images (sample) of the cups from the official website. The good news is that I can right-click and save them as .png files and Android (Studio) can display them. The challenge I have is that I can't open these png's (e.g. to view or edit) in any other program. I've tried Windows Paint, Photo viewer, IE, GIMP... none work. The only program I can view the images with is Chrome. Of course this doesn't help me edit them.
I've searched for answers, but can't find any.
I've tried renaming to .webp and .jpg, hoping this could do the trick.
I've tried online file type identifier (checkfiletype.com), which then indicates it's a RIFF file, which doesn't seem very helpful, since it is an image and no audio.
When I download the images via e.g. Firefox or IE, I get different file formats, which seem to be significantly larger file size, so I'd prefer to use the Chrome downloads.
I'm out of options. Would anyone know how to get these files opened/edited?
Preferably I'd be able to open with GIMP. At the moment however I'd even be happy to simply settle to be able to view them outside of Chrome.
Despite the extension, it is not a PNG but a Web/P image:
14:21:51 tmp/ >identify -verbose Sample-9148239937566.png
identify: delegate failed `"dwebp" -pam "%i" -o "%o"' # error/delegate.c/InvokeDelegate/1310.
identify: unable to open image `/tmp/magick-30698uSxzl_4IFlIA': No such file or directory # error/blob.c/OpenBlob/2712.
identify: unable to open file `/tmp/magick-30698uSxzl_4IFlIA': No such file or directory # error/constitute.c/ReadImage/540.
14:22:10 tmp/ >file Sample-9148239937566.png
Sample-9148239937566.png: RIFF (little-endian) data, Web/P image
To open it with Gimp you would need a plugin.
Application that determine filetype based on magic number can open them without problem (if they support the format). Others (like Firefox) need to see the proper file extension (rename the file to *.webp).
Related
I have downloaded the icon set from google.
https://developers.google.com/identity/branding-guidelines
It has the .SKETCH file. I need to know how to open the file. I have Photoshop and Sketchup 2016.
can anyone assist me to open the file ?
Also if possible please let me know the location of google icon set in .fla or .psd format
For those who have same problem - Icons8 have just released a free tool for opening .sketch files in Windows: https://icons8.com/lunacy.
You can copy CSS of any object and copy plain text for any text layer.
We plan to implement for features soon.
The .SKETCH extension relates to Sketch (https://www.sketchapp.com/). If you're on a Mac, this is dead simple to download, and install.
If you're not on a Mac, Avocode and Zeplin claim to allow you to open the files on any OS, but I've had limited success (you'll have to Google the Application URLs, I don't have enough rep points, yet).
Failing that, Illustrator, Photoshop and GIMP are able to open the SVG and EPS files, and just about anything can open the PNGs.
I recommend Figma, I tried all app mentioned in other answers, Figma was the best for me.
Disclaimer: I do not work nor develop Figma.
I'm currently developing an app in Android Studio for Android TV on a mac. Ultimately I want to load local image files as card images in a VerticalGridFragment where a card id and an image filename have matching numbers. For the sake of prototyping, right now I'm just trying to set up best practices (as a complete novice) with a single 1.jpg file that will appear on every card.
I'm using the included Android TV emulator and assume I shouldn't attempt to use access or make use of any OSX file system. So my two questions are:
While I'm prototyping and trying to get 1.jpg to be the image for
each card, where should I place this file in a manner that I can
access using a file path string for internal storage, such as /root/1.jpg
which I can later change to /root/$.jpg where $ is a dynamic id
associated with each card. This needs to satisfy both the emulator
being able to access the file, a device being able to access the file when the app is finished, and me being able to place files there
from my host os while prototyping.
A follow-on question. When the app is finished I obviously won't be
relying on manually placing image files. Will the solution to the
above also provide a straightforward means of saving images to this
directory on a device?
Thanks.
Ok, I think I've got my head around this now:
Inside Android Studio, there's a Monitor utility in which there's a File Explorer. Using this, you can browse, and save to the directory structure that the emulator's using.
Most importantly, there is a standard assigned directory for apps to save and open from on internal storage. It can be found in the file browser at /data/data/com.applicationname/files/
From any app, it can be referenced for saving to or opening from using getFilesDir(), which answers question 2.
There is an App which features downloading their videos for offline viewing via their Android and Windows app. I was wondering where does this app saves these videos and if they are encrypted, how to decrypt and play them?
I am a programmer but I know nothing about Android/windows app development, here is what I have been able to hack so far:
On Android
It seems like it saves videos at
/storage/emulated/0/Android/data/com..android.root/files/videos//encrypted/
These files have no extension, I copied them to my laptop and tried giving different popular media extensions, nothing worked so far in neither of WMP, VLC & Quicktime Player.
I tried to identify file type using TrID (as specified in this link and this utility suggests it is an mp3 file (while it should be a video), I changed the extension to mp3, it did not worked either.
I tried opening the file in ISO buster and several other apps. Finally while trying different things, on android system itself when I choose the option to compute checks, it display some MD5 and SHA-1 values. I am not much familiar with these terms but figured out, these files seems to be encrypted.
If I try to directly open this file on Android, System starts generating Hex Dump and then file explorer crashes.
Now if these files are really the video files and are encrypted, is there a way I can decrypt them and play directly in a video player?
On windows store App in my laptop's Windows 8.1
I found App files are stored at:
C:\Program Files\WindowsApps\.com..com_1.5.0.2_neutral_split.scale-140_
C:\Program Files\WindowsApps\.com..com_1.5.0.2_x64__
C:\Program Files\WindowsApps\.com..com_2015.924.1324.2728_neutral_~_
I was able to figure out how to assign privileges to currently logged in User and gain the access to reach at these paths but couldn't make any further progress to find encrypted or non-encrypted video files in these folders at all.
I understand that if I really just want to download the video files there is much better and easier way - directly log in to their website and use any video grabber application or extension, it's as easy as that, which does works.
But my intention here is not to download videos but rather I am just curious to do ethical hacking for learning and exploring things. Just want to understand whether it is even possible to decrypt, find appropriate extension and play them directly without the app or not. And where does both Android and Windows Apps are actually storing these videos on my own device which I am unable to access/play without App.. huh well done app developers!
Any help or pointers appreciated.
Since Lynda is using HTML5 just click Save as on the video an download it as a mp4....
For Mac users, you can find the offline files at
~/Library/Containers/com.lyndadotcom.lyndaosx/Data/Library/Caches/com.lyndadotcom.lyndaosx/offlnvds/
Cheers!
I was wondering the same thing and I done some exploring with windirstat and found a large bunch of files at:
C:\Users\*username*\AppData\Local\Packages\lynda.com.lynda.com_0dmhem0sv94sr\LocalState\offline\194074
They are .file but the large ones are the videos and they play fine in vlc. Could probably mess around with them and add the .avi or whatever, to the end for completeness if you wanted..
Alright, so the above listed solutions worked for a while but Lynda was smart enough to begin encrypting the downloaded videos. And hence just finding the downloaded content is not good enough anymore.
I could not find a way to decrypt the videos downloaded by the Windows Store app but someone did a great job in decrypting the videos downloaded by the Desktop app (yes, it is different), which is not as popular as the store app.
You can download the desktop version of this app from here.
Find encrypted downloaded vdos here:
C:\Users\\AppData\Local\lynda.com\Lynda.com Desktop App\offline\ldc_dl_courses
and decrypt them using this tool.
This is how:
Browse to:
C:\Users\*User Name*\AppData\Local\Packages\lynda.com.lynda.com_0dmhem0sv94sr\LocalState\offline\*XXXXXX*
Add the extension .mp4 to the files in that folder.
(If you download the files in order they will be alot easier to name because it will be possible to sort by date and time.)
Open a Command Window in that folder (as administrator)
Run the following command in the folder containing your extesionless video files to give all of them .mp4 extesions.
ren *. *.mp4
if you use lynda.com Windows Store App you can find it under
C:\Users{userName}\AppData\Local\Packages\lynda.com.lynda.com_0dmhem0sv94sr\LocalState\offline
for those who use "Lynda Desktop App" to find the exact location for
video files in windows
Run Lynda Desktop App from App menu on top left of app select
"Options" you can find path of downloaded files there "Course
Download location" also you can change it to any path you want,and
its default location is
."C:\Users\{userName}\AppData\Local\lynda.com\Lynda.com Desktop App\offline\ldc_dl_courses"
for those who can not play files using VLC now offline App Encrypt files so it can only decrypted and played with lynda offline App only
if any one needs how to decrypt files I have already developed tool for my personnel use to do so but I think I can not share it for public
I created a rudimentary browser with help of a WebView.
When I visit a website (containing some text and a few images), the cache directory in /data/data/com.mayexample/cache/webViewCacheChromium gets filled with a few files called index, data_0, data_1, data_2, f_00001, f_00002 etc.
I was wondering, what's the format of these files, what do they contain? I thought about "so, a few of these files surely have to be the website's images then" and tried opening them in a file manager (open as image). But whatever file I pick, the process says "Failed loading!". Even if I rename some of them to .jpg, still I can't open anything.
I have read on the internet that this worked for some people though (look at Android WebView - Load Images from cache, it's exactly what I want to do), but I can't do anything with the cache's files.
Do you know a way to open webview cache files? Doesn't one file represent a corresponding cached image for example?
What I really want to achieve (once I understand the structure of the cache files) is to programmatically fetch images of the webview from it's cache, like the author of the link posted above (unfortunately this posting's answers don't help much)
Thanks!
The cached files might be one of the CSS, or JS/image/html types. On earlier Android releases, one cached file maps exactly one CSS or JS/image/html file.
As far as I know the Browser engine (actually the HTTP module) maintains such cached files in a URL-to-HashKey manner. So what you found (such as "4f42185de3a3a461_1") may be associated with any web resource files such as JS/CSS/images/HTML, etc.
I remember WebView used to store such URL-to-HashKey mapping data in sqlite3 tables in earlier Android versions.
The problem here is you have no idea about the mapping relations so you can hardly retrieve the file you want. A tricky way is to read the AOSP source code then you may be able to know how the generate the HashKey by an unique URL, or you can manipulate the sqlite3 tables, if there are still any on Android 4.4.
I was able to view files in the webViewCacheChromium folder using this tool designed for the Chrome desktop browser:
http://www.nirsoft.net/utils/chrome_cache_view.html
The contents are basically what you'd expect for web cache - images, javascript, css, html.
not sure if others are experiencing this issue in the apps-for-android Sample Applications, but the Radar sample app PNG files are all bad...the Eclipse editor says:
"libpng error: Not a PNG file"
I've also checked these PNG files on a couple of different PC's and none of the graphic programs can open or render the PNG files:
blip.png
ic_menu_metric.png
ic_menu_standar.png
icon.png
Here's the link to the sample app source for Radar, on the Google web site:
http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk%2FRadar%2Fres%2Fdrawable
Update: rummaging around on the web, it appears that perhaps my Google Chrome browser is downloading/transfer everything in ASCII mode, rather than binary format...hmmmm...I'll try FireFox.
Well, it wasn't a browser thing...it appears that right-clicking on the PNG file on the Google app source folders, and doing a file-save-as is the wrong way to get these particular files. What I found that worked is to click the png file so could see the change-log screen, then there is a 'file info' section that shows a raw file link, and that file link download would finally render properly.
you have to get the source using SVN check out. this will allow you to get the actual image files.
Solution was to
open the png file in MS Paint
re save it as png file.
Once I did that Eclipse was able to use that file in Android project.
This procedure converted the PNG to 32-bit format.
Android supports both 24-bit and 32-bit PNG's