<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Emerson Cloud on Medium]]></title>
        <description><![CDATA[Stories by Emerson Cloud on Medium]]></description>
        <link>https://medium.com/@emersoncloud?source=rss-9e1bbfae4a20------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vX1gStvwcRIH3d8rXt0Jiw.jpeg</url>
            <title>Stories by Emerson Cloud on Medium</title>
            <link>https://medium.com/@emersoncloud?source=rss-9e1bbfae4a20------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:23:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emersoncloud/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[JpegKit v0.2.2]]></title>
            <link>https://medium.com/camerakit/jpegkit-v0-2-2-fc13bcaeada0?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc13bcaeada0</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-libraries]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 16:10:56 GMT</pubDate>
            <atom:updated>2019-01-29T16:10:56.853Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*P90gYSJTtRfDru1b.png" /></figure><p>The last release of <a href="https://github.com/CameraKit/jpegkit-android">JpegKit</a>, v0.2.0 introduced new wrappers for libjpeg-turbo. This was a major redesign to the JpegKit library. While these changes improved performance and readability of the code, it was incomplete for the scope of JpegKit functionality.</p><p><a href="https://github.com/CameraKit/jpegkit-android/releases">v0.2.2</a> un-deprecates the Jpeg class to be used until the wrappers are finalized in an upcoming release, v0.3.0.</p><p>Here’s what’s changed in v0.2.2 . You can see all the changes on the GitHub <a href="https://github.com/CameraKit/jpegkit-android/pull/8">Pull Request</a>.</p><h4>Bug Fixes</h4><ul><li>Fixed edge corruption when rotating a Jpeg</li><li>Fixed JpegView render function</li></ul><h4>Deprecation</h4><p>We’ve un-deprecated the following classes:</p><ul><li>Jpeg</li><li>JpegKit</li><li>JpegFile</li><li>JpegImageView</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc13bcaeada0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/jpegkit-v0-2-2-fc13bcaeada0">JpegKit v0.2.2</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CameraKit v1.0.0-beta3.11]]></title>
            <link>https://medium.com/camerakit/camerakit-v1-0-0-beta3-11-4b0cfabc9db9?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b0cfabc9db9</guid>
            <category><![CDATA[anroid-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Fri, 25 Jan 2019 03:28:10 GMT</pubDate>
            <atom:updated>2019-01-25T03:28:10.817Z</atom:updated>
            <content:encoded><![CDATA[<p>CameraKit <a href="https://github.com/CameraKit/camerakit-android/releases/tag/v1.0.0-beta3.11">v1.0.0-beta3.11 </a>is a bugfix and feature release of v1.0.0-beta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*2OyXm6nbeym5mb6q4KhwUA.png" /></figure><p>Here’s what’s new in beta3.11</p><h4>New Flash Methods</h4><p>You can now call two new methods, hasFlash() and getSupportedFlashTypes() to determine if the device has flash support and the types of flash it supports! These methods are outlined in our documentation, <a href="https://camerakit.io/docs">camerakit.io/docs</a>.</p><h4>Bug Fixes</h4><ul><li>CameraPreview starts more reliably</li><li>Fixed error when starting CameraKit on devices with API levels 16 and 17</li></ul><p>Give v1.0.0-beta3.11 a try. Be sure to let us know if you encounter any issues. Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b0cfabc9db9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/camerakit-v1-0-0-beta3-11-4b0cfabc9db9">CameraKit v1.0.0-beta3.11</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CameraKit v0.13.5]]></title>
            <link>https://medium.com/camerakit/camerakit-v0-13-5-201d54131800?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/201d54131800</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-developers]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 17:53:05 GMT</pubDate>
            <atom:updated>2019-01-23T17:53:05.562Z</atom:updated>
            <content:encoded><![CDATA[<p>Oh hey there, nice to see you again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*WRL0IznVZGcQFocF-Z3OOg.png" /></figure><p>We were made aware of an issue when capturing images in v0.13.4 by GitHub user <a href="https://github.com/rodolfoizidoro">Rodolfo</a>. In v0.13.4 and running on API level 17 or below, CameraKit would crash with a loading error when a picture was taken. That issue has been resolved and published as v0.13.5!</p><p>You can see our PR <a href="https://github.com/CameraKit/camerakit-android/pull/487">here</a>, and this issue first noted from Rodolfo <a href="https://github.com/CameraKit/camerakit-android/issues/477">here</a>.</p><p>We love squashing bugs to improve the reliability of CameraKit across all devices. If you encounter an issue of your own, let us know on <a href="https://github.com/CameraKit/camerakit-android">GitHub</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=201d54131800" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/camerakit-v0-13-5-201d54131800">CameraKit v0.13.5</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BlurKit Release v1.1.1]]></title>
            <link>https://medium.com/camerakit/blurkit-release-v1-1-1-2774e9b71fff?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/2774e9b71fff</guid>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Mon, 21 Jan 2019 20:43:23 GMT</pubDate>
            <atom:updated>2019-01-21T20:43:23.940Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*08chsTZcV2lj8fx7LtBFzA.png" /><figcaption>Wow that’s a big logo</figcaption></figure><p>Today we’ve release v1.1.1, the latest release of <a href="https://github.com/CameraKit/blurkit-android">BlurKit</a>. It brings some small changes to help improve compatibility across devices.</p><p>Here’s the short list of changes, you can see entire pull request <a href="https://github.com/CameraKit/blurkit-android/pull/50">here</a>.</p><h4>Build and Gradle</h4><ul><li>Lower minimum SDK version from 21 to 17</li><li>Update Gradle to 3.3.0</li><li>Update Gradle wrapper to 4.10.1</li></ul><p>As always, if you encounter any issues or have particular feature requests open a ticket on GitHub. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2774e9b71fff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/blurkit-release-v1-1-1-2774e9b71fff">BlurKit Release v1.1.1</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Open Source Community: How We Came To Use Spectrum]]></title>
            <link>https://medium.com/camerakit/an-open-source-community-how-we-came-to-use-spectrum-4dcbff21202e?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dcbff21202e</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[spectrum]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Fri, 18 Jan 2019 22:48:01 GMT</pubDate>
            <atom:updated>2019-01-18T22:48:01.715Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*YZU0ls4h-3z2alUd08Un0w.png" /></figure><p><a href="https://camerakit.io/">CameraKit</a> is a robust open-source platform for quickly adding camera functionality to your android applications.</p><p>At CameraKit we strive to empower our community to not only expand CameraKit usage, but build a better product along the way. We’ve discovered a few tactics for accomplishing our goal: be available and responsive, open to feedback and build the CameraKit our community wants.</p><p>We had the vision, now we needed the tool.</p><h3>The First — GitHub.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*77v7cFzGaAVQZ8WxHwXUNQ.png" /></figure><p>CameraKit started on <a href="https://github.com/CameraKit/camerakit-android">GitHub</a>. GitHub is a platform to house code, track changes and post issues. Posting issues it the main method one can interact with other developers on GitHub.</p><p>Starting out, we didn’t have a need for lengthy communication. We had a small following of developers looking to use CameraKit and help in its development.</p><p>As CameraKit grew, our GitHub page was attracting a wider audience. We noticed our issue page filling up with all sorts of questions. From a developer creating his or her first Android application, or a seasoned Android expert looking into the intricacies of our library. We didn’t have a good way of separating these two styles of questions and ended up with a backlog of issues.</p><p>In order to keep GitHub project development focused, we needed another solution.</p><h4>Pros:</h4><ol><li>Automatically set-up with our codebase hosting</li><li>Good for software development related issues</li></ol><h4>Cons:</h4><ol><li>Bugs and features mixed together with simpler questions.</li><li>Difficult notification management</li></ol><h3>The Second — Slack.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*tKdxB5qBKj3cAlODFE6Qbg.png" /></figure><p>Our team used <a href="https://slack.com/">Slack </a>internally. When we wanted another place for communication and questions, it seemed like the natural first choice. Slack is primarily a tool for well defined teams, but decided to give it a try in our community use case. We created a public channel and had people join.</p><p>Slack worked well at a small scale for CameraKit. People were able to ask questions and get quick responses. We posted updates and new feature ideas, and were able to get feedback right in slack. The chats had much more of a discussion feel, where people could get help or talk about their applications and camera needs.</p><p>However, slack is inherently built for teams and not for large groups of people. There is a bit of a barrier to entry with using Slack for this type of communication. One has to sign up through the 3rd party tool by link only, and download the client. Because of this link only invite, our group was not easy to find by searching alone. Slack is also not indexed online, so finding questions that someone’s asked before was not possible.</p><h4>Pros:</h4><ol><li>Faster communication than GitHub</li><li>More discussion focused than GitHub</li></ol><h4>Cons:</h4><ol><li>Hard for people to join</li><li>Poor member management</li><li>Not indexed by Google for repeat questions</li></ol><h3>The Third — Spectrum.Chat</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*ogtfw8CCvDRbO9Q0DKbxZw.png" /></figure><p>After searching for another tool to host informal CameraKit discussion, we came across <a href="https://spectrum.chat/camerakit">Spectrum</a>. Spectrum positions itself as “a platform for communities”, just what we had in mind.</p><p>Spectrum’s format for discussion is based on a question and comment system similar to GitHub issues. The questions are split up based on channels; e.g. feature requests or community help. This system makes it easy for someone to pick the channel they want, ask a question and get a timely response. On the homepage for our CameraKit group, there’s a helpful search feature next to different sortings of the questions. One can see the latest questions or what’s trending on CameraKit.</p><p>Spectrum is also easy to join and brings useful member management, analytics along with flexible team and administrator settings. We also have the ability to integrate Spectrum directly into our <a href="https://camerakit.io/">website</a>.</p><p>Spectrum is still not perfect. Its a relatively new company, and we have occasionally encountered bugs and stability issues on their site. The website can also be confusing to navigate on first glance.</p><p>However, spectrum was recently <a href="https://spectrum.chat/spectrum/general/spectrum-is-joining-github~1d3eb8ee-4c99-46c0-8daf-ca35a96be6ce">acquired by GitHub</a>! This gives us hope that the Spectrum will only grow in popularity and continue to be updated for the foreseeable future.</p><h4>Pros:</h4><ol><li>Easy to join</li><li>Helpful management tools</li><li>Robust search, and indexed online</li><li>Strong backing</li></ol><h4>Cons:</h4><ol><li>Still a young company: some bugs and stability issues</li><li>Interface can be confusing to navigate</li></ol><h3>The Winner — Spectrum!</h3><p>We are fond of our new home on Spectrum. With Spectrum’s acquisition by GitHub, no doubt these issues will be ironed out and the system improved in the future. We much prefer the ease of management Spectrum provides over the discussion focused style of Slack.</p><p>So if you haven’t already check us out on <a href="https://spectrum.chat/camerakit">Spectrum</a>. Leave a question or comment and we’ll be sure to get back to you!</p><p>Thanks for reading and we’ll see you around.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dcbff21202e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/an-open-source-community-how-we-came-to-use-spectrum-4dcbff21202e">An Open Source Community: How We Came To Use Spectrum</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CameraKit Release v0.13.4]]></title>
            <link>https://medium.com/camerakit/camerakit-release-v0-13-4-34a34c33b2d?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a34c33b2d</guid>
            <category><![CDATA[android-libraries]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Wed, 09 Jan 2019 14:06:53 GMT</pubDate>
            <atom:updated>2019-01-15T16:16:39.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*WRL0IznVZGcQFocF-Z3OOg.png" /></figure><p>While we are building video support in <a href="https://camerakit.io/">CameraKit</a> v1.0.0, we will continue to maintain v0.13.X as the latest CameraKit version with video integration.</p><p>This latest release brings a few bug fixes and build improvements. You can see the full list of commits on our <a href="https://github.com/CameraKit/camerakit-android/pull/475">GitHub pull request</a>. To view documentation, head over to <a href="https://camerakit.io/docs?v=0.13.4">camerakit.io/docs</a>.</p><h4>Here are the highlights.</h4><ul><li>Lower minimum SDK version to 15</li><li>Fix orientation of captured image with the front camera</li><li>Revert back from AndroidX to Android support libraries</li></ul><p>CameraKit relying on AndroidX forced developers to also use AndroidX if they included CameraKit in their applications. In an effort to leave developers with as much choice as possible, we moved CameraKit back to the standard android-support libraries. This will allow developers to use AndroidX or standard Android Support in their own applications.</p><p>As always, if you encounter a problem or have a request for a feature, drop us an issue on <a href="https://github.com/CameraKit/camerakit-android">GitHub</a> or a message on <a href="https://spectrum.chat/camerakit">Spectrum</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a34c33b2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/camerakit-release-v0-13-4-34a34c33b2d">CameraKit Release v0.13.4</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[APK Inspector v0.2.0]]></title>
            <link>https://medium.com/camerakit/apk-inspector-v0-2-0-705dfb84384b?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/705dfb84384b</guid>
            <category><![CDATA[apk]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 16:21:18 GMT</pubDate>
            <atom:updated>2019-01-02T16:21:18.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51MPj7sHeq2gZ34B7m_BSg.png" /></figure><p>Last week we launched <a href="https://github.com/CameraKit/apk-inspector/tree/v0.2.0">APK Inspector</a>, a command line tool to determine dependencies and permissions from an APK file. Today we’ve released version 0.2.0 bringing new features and updates!</p><p>In version 0.2.0 you can now output permissions and dependencies to a JSON or text file. The default output is JSON, but you can change that behavior with the --output-type command line argument.</p><p>Here are the rest of the v0.2.0 highlights, you can see the entire pull request on <a href="https://github.com/CameraKit/apk-inspector/pull/7">GitHub</a>.</p><h4>Features</h4><ul><li>Output permissions and dependencies to JSON or text file.</li><li>Update default console logging behavior</li></ul><h4>Bug Fixes</h4><ul><li>Better handling of user input to reduce errors</li></ul><h4>GitHub</h4><ul><li>Add issue and contributing templates</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=705dfb84384b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/apk-inspector-v0-2-0-705dfb84384b">APK Inspector v0.2.0</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding Permissions and Dependencies in an APK]]></title>
            <link>https://medium.com/camerakit/finding-permissions-and-dependencies-in-an-apk-c91e629ce706?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/c91e629ce706</guid>
            <category><![CDATA[command-line-interface]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[apk]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Thu, 27 Dec 2018 21:32:41 GMT</pubDate>
            <atom:updated>2018-12-27T21:32:41.169Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dissecting an APK: Permissions and Dependencies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*G2VNrUiV0GlQkov0.png" /></figure><p>I work at <a href="https://camerakit.io/">CameraKit</a>, an open source platform to provide a reliable and easy to use Camera implementation in any Android application. We were recently interested in testing an APK to see whether or not it used CameraKit. Going one step further we wanted to test if an APK requested camera permissions.</p><p>We weren’t able to find a tool like this after a quick few Google searches so we decided to make our own!</p><p>Here’s what we learned about APKs along the way.</p><h3>The Approach</h3><p>If you want to follow along with this article, you can download an APK from <a href="https://www.apkmirror.com/">APKMirror.com</a> and use it with all the tools below!</p><p>We first turned to the Android Studio APK inspector to see what exactly makes up an APK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*zUBSHxYK10GpRJICxEkt8w.png" /><figcaption>Android Studio APK Analyzer</figcaption></figure><p>There are a few different types of files; AndroidManifest.xml, assets, meta information, and .dex classes.</p><p>Looking into the AndroidManifest.xml file you see almost exactly what was written when the application was created: SDK and version information, and most importantly, permissions!</p><p>So that will provide the permissions, now what about dependencies? Selecting the classes.dex file expands to reveal something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSwq3C9tXvepWl6ALtUJOg.png" /><figcaption>classes.dex</figcaption></figure><h4>Dex files</h4><p>.dex is the file extension of the byte code format read by the <a href="https://en.wikipedia.org/wiki/Android_Runtime">Android Runtime</a> (ART). This runtime environment operates and runs the bytecode on Android devices. Dex files are not Java bytecode, but its own format with entirely different bytecode instructions. These files contain a translated version of all the code and classes of the application. Aside from the lib<strong>,</strong> classes.dex is the largest component of this APK.</p><p>Huzzah! Our package com.camerakit is there, along with all the other packages requested by the application. You can see things like Kotlin, Android Support and Java IO.</p><p>All that’s left to do is find a way to automate this process and extract those package names.</p><h3>Automation</h3><p>The goal of this project is to quickly analyze any APK. Opening the APK through Android Studio and manually searching the classes.dex is far from efficient.</p><h4>Unzipping</h4><p>After further investigation I learned that APKs are a specific type of zip-format archive file. APKs are based on the Java Archive (JAR) format that’s used to compress Java class files and resources. APKs are also signed with an SHA1 Digest and a certificate. Both of these components are contained in the META-INF directory.</p><p>With these special considerations, renaming the file to .zip and unzipping it with a standard unzip tool most likely will not work. But we tried it anyways.</p><p>The result looked promising:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBWIVcLftkgIRD-uNrVhpg.png" /><figcaption>unzip APK</figcaption></figure><p>But opening any of the files confirms our suspicion.</p><pre>����������.�����������������������������(���4���L���j���������������������������4��Z�����������������������2��x��������(��l��������8������������\�������2��F��X���������������t�h�e�m�e����l�a�b�e�l����i�c�o�n����n�a�m�e���</pre><pre>�d�e�b�u�g�g�a�b�l�e���</pre><p>Simply unzipping the package leaves the files encoded resulting in unreadable text. Another method is needed to unpack and decode the APK.</p><h4>APKTool</h4><p>From their <a href="https://ibotpeaches.github.io/Apktool/">GitHub</a>:</p><blockquote>A tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications. It also makes working with an app easier because of the project like file structure and automation of some repetitive tasks like building apk, etc.</blockquote><p>APKTool does just what we wanted, unzips and decodes the APK turning the files into human readable text. Now opening the same APK with APKTool gives the following output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhMm575XUc9zc7uhcohvbA.png" /><figcaption>APKTool output</figcaption></figure><p>The output includes an assets folder, and something called <a href="https://fileinfo.com/extension/smali"><strong>smali</strong></a>. We’ll get back to that in a second. AndroidManifest.xml is now readable and contains exactly what we saw from the Android Studio APK Analyzer.</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:compileSdkVersion=&quot;28&quot; <br>android:compileSdkVersionCodename=&quot;9&quot; package=&quot;com.example.emerson.camerakittest&quot; platformBuildVersionCode=&quot;1&quot; platformBuildVersionName=&quot;1.0&quot;&gt;</pre><pre>&lt;uses-permission android:name=&quot;android.permission.CAMERA&quot;/&gt;<br>&lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot;/&gt;<br>...</pre><p>Reading the permissions is as easy as loading AndroidManifest.xml and grabbing all of the &lt;uses-permission&gt; lines. The dependencies will take a tad more effort.</p><h4>Smali</h4><p>As you can see in the above screenshot, the smali and smali_classes2 folders contain the same packages we saw in the classes.dex of the Android Studio APK Analyzer. Wouldn’t you know it our com.camerakit package is right there!</p><p>What is smali? Smali is the product of running a disassembler on a .dex file. Smali is a human readable but maintains the procedural structure of the dex file format. The process of converting dex to smali is called “backsmaling” and is done with APKTool by way of <a href="https://github.com/JesusFreke/smali">this GitHub repository</a>.</p><p>Here’s an example of a smali file.</p><pre>.method public getFacing()I<br>    .locals 1</pre><pre>.line 674<br>    iget v0, p0, Lcom/camerakit/CameraKitView;-&gt;mFacing:I</pre><pre>return v0<br>.end method</pre><p>If you compare it to the Java source code you can see the close resemblance for a simple function like getFacing().</p><pre>@CameraKit.Facing<br>public int getFacing() {<br>    return mFacing;<br>}</pre><p>However the contents of the smali file are not important for this project. All we need is the names of the folders, formatted as com.camerakit. This can be achieved by traversing through the folder structure, saving the names of the above directories to create one final package name. The package name is made up of all the directories that came before the folder containing smali files, which is most often the final name of the package.</p><p>For example the structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*icx_gq7ADX-I8hSKvtmb8A.png" /></figure><p>Turns into:</p><pre>androidx.versionedparcelable<br>com.camerakit</pre><h3>APK Inspector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51MPj7sHeq2gZ34B7m_BSg.png" /></figure><p>With access to both the permissions and packages used by the application, we created a command line tool <a href="https://github.com/CameraKit/apk-inspector">APK Inspector</a> to wrap it all up.</p><p>The main function is to run APKTool on a specified APK to reveal AndroidManifest.xml as well as the smali folders. From here, APK Inspector searches through AndroidManifest.xml for permissions and outputs them to the console. Then our program recursively iterates over the smali folders, concatenating the folder names into package names.</p><p>There are some basic options for the tool that you can see on the <a href="https://github.com/CameraKit/apk-inspector/tree/master">README</a>. One can output permissions only, dependencies, or search for a specific permission or dependency.</p><h4>Future Improvement</h4><p>This is only the first draft of the project and I’m looking to keep making improvements to increase the speed and functionality. We’re open to feedback and love to hear your ideas, but we plan to refine <a href="https://github.com/CameraKit/apk-inspector">APK Inspector</a> to our own needs as we go forward.</p><p>As we continue to development, keep your eye out for more blog posts on the topic of APKs, how to deconstruct them, and possibly even other application formats.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c91e629ce706" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/finding-permissions-and-dependencies-in-an-apk-c91e629ce706">Finding Permissions and Dependencies in an APK</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CameraKit v0.13.3]]></title>
            <link>https://medium.com/camerakit/camerakit-v0-13-3-5ee267808172?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ee267808172</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Thu, 06 Dec 2018 19:40:48 GMT</pubDate>
            <atom:updated>2018-12-06T19:40:48.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*2OyXm6nbeym5mb6q4KhwUA.png" /></figure><p>With the latest beta version, v1.0.0-beta3.10 migrating to AndroidX and receiving dependency updates, we thought it fitting to add the same to v0.13.3.</p><p>Here’s what’s new in CameraKit v0.13.3.</p><h4>AndroidX</h4><p>Just like I wrote in our release for v1.0.0-beta3.10, AndroidX will continue updates for Android’s support library. This will help CameraKit stay fully functional on older devices.</p><h4>Video Duration Limits</h4><p>Video duration limit added to the video recorder to stop recording video after a set amount of time. Thanks to <a href="https://github.com/lucianoiam">@lucianoiam</a> in Github for the contribution.</p><h4>Dependency Updates</h4><p>v0.13.3 matches the updates to Gradle and Kotlin we made in beta3.10.</p><p>Check out all of our changes on the <a href="https://github.com/CameraKit/camerakit-android/pull/460">Pull Request</a>.</p><p>As always, we love to hear from the community. Find us on <a href="https://github.com/CameraKit/camerakit-android">Github</a> or send a message on <a href="https://spectrum.chat/camerakit">Spectrum</a>!</p><h4>Thank you for being a part of CameraKit!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ee267808172" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/camerakit-v0-13-3-5ee267808172">CameraKit v0.13.3</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CameraKit v1.0.0-beta3.10]]></title>
            <link>https://medium.com/camerakit/camerakit-v1-0-0-beta3-10-2929000e290c?source=rss-9e1bbfae4a20------2</link>
            <guid isPermaLink="false">https://medium.com/p/2929000e290c</guid>
            <category><![CDATA[cameras]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-camera]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Emerson Cloud]]></dc:creator>
            <pubDate>Wed, 28 Nov 2018 19:06:16 GMT</pubDate>
            <atom:updated>2018-11-28T19:06:16.263Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2OyXm6nbeym5mb6q4KhwUA.png" /></figure><p>The <a href="https://camerakit.io/">CameraKit </a>team is hard at work creating a stable 1.0.0 release of CameraKit-Android! In the mean time, we will push smaller updates to address issues and feature requests we’ve received from the community.</p><p>Here’s what’s new in beta3.10.</p><h4>AndroidX</h4><p>AndroidX is Android’s new support library. Like the support library it replaces, AndroidX brings backwards compatibility across Android releases. AndroidX will allow CameraKit to stay up to date with the latest support improvements.</p><h4>Clear Listeners</h4><p>We added methods to remove the common listeners CameraKit supports including Preview, Camera, and Error listeners.</p><h4>Dependency Updates</h4><p>Beta3.10 also brings CameraKit dependencies up to date like Gradle and Kotlin.</p><p>You can see all the changes for yourself on the <a href="https://github.com/CameraKit/camerakit-android/pull/448">Pull Request</a>.</p><p>We’re always looking for your feedback! If there is a feature you want to see, or a bug you’ve encountered create a ticket on <a href="https://github.com/CameraKit/camerakit-android">GitHub</a>. Or if you’d rather reach out to the developers directly, send us a message on <a href="https://spectrum.chat/camerakit">Spectrum</a>.</p><h4>Thank you for being a part of CameraKit!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2929000e290c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/camerakit/camerakit-v1-0-0-beta3-10-2929000e290c">CameraKit v1.0.0-beta3.10</a> was originally published in <a href="https://medium.com/camerakit">CameraKit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>