<?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 Hemanshu Varma on Medium]]></title>
        <description><![CDATA[Stories by Hemanshu Varma on Medium]]></description>
        <link>https://medium.com/@hemanshuvarma?source=rss-1cc4134e3fb7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pFqe-2MbQLsCSNOJHePGKw.png</url>
            <title>Stories by Hemanshu Varma on Medium</title>
            <link>https://medium.com/@hemanshuvarma?source=rss-1cc4134e3fb7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:53:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hemanshuvarma/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[Root an Android Emulator(AVD)]]></title>
            <link>https://proandroiddev.com/root-an-android-emulator-avd-9f912328ca08?source=rss-1cc4134e3fb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f912328ca08</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[magisk-root]]></category>
            <category><![CDATA[security-testing]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[root-android-phone]]></category>
            <dc:creator><![CDATA[Hemanshu Varma]]></dc:creator>
            <pubDate>Sat, 02 Mar 2024 11:38:56 GMT</pubDate>
            <atom:updated>2024-04-13T06:33:27.179Z</atom:updated>
            <content:encoded><![CDATA[<h3>Root an Android Emulator (AVD)</h3><h4>Guide to root your Android Emulator aka Android Virtual Device(AVD) for security testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wb3XFJJuROFOy6WR" /><figcaption>Photo by <a href="https://unsplash.com/@vork?utm_source=medium&amp;utm_medium=referral">Mark Boss</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Rooting</strong> an Android device/emulator unlocks whole new possibilities with additional control and customization of OS using root access, also known as administrative or superuser access.</p><p>It gives users elevated privileges, allowing them to access and modify system files and settings that are normally restricted by the device’s manufacturer or carrier at a stake of <em>voiding the warranty</em> or even <em>Bricking the device</em>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F26401569&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fchaos-gif-26401569&amp;image=https%3A%2F%2Fmedia.tenor.com%2F2RJXmQ6T2MwAAAAF%2Fchaos.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5e59d3ec575b60f63621823c5118a77/href">https://medium.com/media/e5e59d3ec575b60f63621823c5118a77/href</a></iframe><h4><strong>Why is it even important to check for Root Access?</strong></h4><p>As a developer, it is often recommended to have measures to protect Android applications from vulnerabilities and threats that could compromise confidentiality, integrity, and availability. It involves securing the application code, data, and resources from unauthorized access, modification, or destruction. One such case is detection of <strong>Root</strong>.</p><blockquote>This is a multi-part series and focus of this article is limited to <strong>Rooting an Android Emulator</strong> for testing purposes using <strong>rootAVD &amp; Magisk</strong>.</blockquote><h4>Before we get our hands dirty: The Prerequisites 🤖</h4><ul><li>Android Studio with Platform Tools/ADB</li><li>Emulator or Android Virtual Device(AVD) with Google Play Image**</li><li>Stable internet connection</li><li>PowerShell (Windows) <em>OR</em> Terminal (Mac)</li></ul><p>** [IMP] Check for OS compatibility</p><p><a href="https://gitlab.com/newbit/rootAVD/-/blob/master/CompatibilityChart.md">CompatibilityChart.md · master · newbit / rootAVD · GitLab</a></p><h4>Getting Started</h4><p><strong><em>rootAVD</em></strong> offers a set of handy scripts with <strong><em>Magisk</em></strong> to root an emulator within no time.</p><p>To download, follow <a href="https://github.com/newbit1/rootAVD">rootAVD</a> repo OR clone using below command in Terminal (Mac) or Command Prompt (Windows)</p><pre>~ % git clone https://github.com/newbit1/rootAVD.git</pre><blockquote>Alternatively, same repo is hosted on GitLab -&gt; <a href="https://gitlab.com/newbit/rootAVD">rootAVD</a>. No change is steps to root device.</blockquote><p>Once cloned, change dir using below cmd</p><pre>~ % cd rootAVD</pre><p>Next up, run ./rootAVD.sh to start <em>rootAVD</em> agent:</p><pre>rootAVD % ./rootAVD.sh</pre><figure><img alt="Output in Terminal after running git clone, cd and command to start rootAVD agent." src="https://cdn-images-1.medium.com/max/1024/1*oM4CJ-qvmdz4Dbga2H1_rA.png" /><figcaption>Output after cloning, cd, and starting rootAVD Agent</figcaption></figure><p>At this point, rootAVD agent is active. Now, before running another set of commands, ensure Emulator is running and not rooted.</p><p>I’m using Pixel 6a, API 29 for this demo. To verify root status, run adb shell in Android Studio terminal:</p><pre>% adb shell<br>generic_x86:/ $ </pre><p>Now, run su for super user access:</p><pre>generic_x86:/ $ su<br>/system/bin/sh: su: inaccessible or not found</pre><p>Since, su is not accessible we can confirm device is NOT rooted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*t5dOJcMgQQBACcNyDYL5Bw.jpeg" /></figure><p>Back to the rootAVD agent in terminal, run ./rootAVD.sh ListAllAVDs<strong> </strong>to list all the available emulators.</p><figure><img alt="Screenshot of terminal showing list of available AVD/Emulator to patch for Root access." src="https://cdn-images-1.medium.com/max/1024/1*7Y9Eu7CScFLd0-hP6bmhww.png" /><figcaption>List of available AVDs</figcaption></figure><p>Select and copy cmd having ramdisk.img of running emulator/AVD</p><p>Now, run the cmd to start patching emulator with root privilege</p><pre>rootAVD % ./rootAVD.sh system-images/android-29/google_apis_playstore/x86/ramdisk.img</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FiBjylURwS9N9FCl8Dl%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMnFyZW1zeW9tcjZhMXh0Ym8zdWJqc2Y0ZGxuYW85NmlvY3N0bnV2eSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FiBjylURwS9N9FCl8Dl%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExc2twOHJ2bXc0YTMzdmoxaDQ1NDY1YW1oNHEyMmZmY3RpNTh4ZnRxcSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FiBjylURwS9N9FCl8Dl%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="246" frameborder="0" scrolling="no"><a href="https://medium.com/media/4bc97baf6a073ce2acfb7c13b953843b/href">https://medium.com/media/4bc97baf6a073ce2acfb7c13b953843b/href</a></iframe><p>At a point, it will prompt to select <strong>Magisk</strong> channel — Stable, Canary or Alpha. Wait to auto proceed with Stable version of the Magisk.</p><figure><img alt="Prompt in terminal to select channel of Magisk." src="https://cdn-images-1.medium.com/max/1024/1*Cy92uxQfMttKdYRnPlvxNQ.png" /><figcaption>Selection prompt in terminal</figcaption></figure><p>Once the patching finishes, <strong>Emulator will shut down automatically</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ldK3_7VUkWREEnXeXqtYUg.png" /><figcaption>Root success</figcaption></figure><p>Yayyy!! Emulator is now patched with ROOT access 🎉</p><p>Boot the same emulator to verify Magisk App &amp; ROOT status in terminal of Android Studio</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJnGbFHt4seDBX40w7vjiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*VO8w_4uXVFpOGIPvOnsQkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_85MmRdfr0KKBcJOxuB5Qw.png" /><figcaption>Magisk App after rooting device</figcaption></figure><p>Open Magisk App and reboot when prompted to apply changes.</p><p>Back in Android Studio terminal, run adb shell followed by su to check root access.</p><p>Accept the prompt to grant root access to shell and run id to see details</p><pre>hemanshuvarma@192 sample-app % adb shell<br>generic_x86:/ $ su<br>generic_x86:/ # id<br>uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0<br>generic_x86:/ #</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26BRzozg4TCBXv6QU%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExd25jNTE5eXlnMXFtcnNyb2h5aHF5bGNsN2R1MDkwMzVnNnpmcG9rcCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F26BRzozg4TCBXv6QU%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdmZ3bGtwaHc1M2l1ejUwazRldmJveTN2dXBmc21yc3NlOTdhbjhiaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F26BRzozg4TCBXv6QU%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="246" frameborder="0" scrolling="no"><a href="https://medium.com/media/b008d3cc81a3911037420e5612710b68/href">https://medium.com/media/b008d3cc81a3911037420e5612710b68/href</a></iframe><p>Shell now has Root access of the Emulator.</p><blockquote>Next up in this series, we’ll explore How to detect Root in Android App.</blockquote><figure><a href="https://www.buymeacoffee.com/hemanshuvarma"><img alt="" src="https://cdn-images-1.medium.com/max/700/1*CW9UKX5m104xjzSQtIaF2A.png" /></a></figure><p>Smaaaaaash that 👏 button if you liked this article. Until next time! 👋</p><p>Catch me on <a href="https://www.linkedin.com/in/hemanshuvarma/">LinkedIn</a>, <a href="https://twitter.com/varmahemanshu">Twitter</a>, <a href="https://github.com/HemanshuVarma">GitHub</a> 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f912328ca08" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/root-an-android-emulator-avd-9f912328ca08">Root an Android Emulator(AVD)</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating SonarQube in an Android Application via Docker ]]></title>
            <link>https://proandroiddev.com/integrating-sonarqube-in-android-application-via-docker-8343e5014cf9?source=rss-1cc4134e3fb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8343e5014cf9</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[sonarqube]]></category>
            <dc:creator><![CDATA[Hemanshu Varma]]></dc:creator>
            <pubDate>Mon, 08 Nov 2021 08:33:14 GMT</pubDate>
            <atom:updated>2021-12-05T15:27:40.975Z</atom:updated>
            <content:encoded><![CDATA[<h4>Detailed tech guide for integrating SonarQube for automating code review &amp; generating reports</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A-OTP3GX7zrZ14oSKs3itw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@anagani_saikiran?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sai Kiran Anagani</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>Code</strong> reviews are often required whether be it a small or enterprise level project to identify bugs,<strong> </strong>security, performance and vulnerable issues at early stages which contributes to overall code quality.</p><p>Since software’s are open to mistakes it is strongly advised to review code in every PR which is tedious in large codebases and involves additional peers effort. To overcome this in fast pace development era, tools such as <strong><em>SonarQube </em></strong>is used to automate this process.</p><h4>What is Automated Code Review?</h4><p>Automated code review is the process of automatically reviewing a source code using a predefined set of rules to identify inefficient or suboptimal code.</p><p>Wanna learn more about automated code review? Checkout this <a href="https://research.aimultiple.com/auto-code-review/">article</a></p><h3>Content</h3><ol><li>Prerequisite</li><li>What is Docker?</li><li>Preparing SonarQube in Docker</li><li>Configuring Sonar Dashboard</li><li>Integrating in Android Application</li><li>Bonus</li></ol><h3>1. Prerequisite</h3><ul><li>Docker installed. Don’t have it? Follow <a href="https://docs.docker.com/desktop/mac/install/">Mac</a>, <a href="https://docs.docker.com/desktop/windows/install/">Windows</a> setup</li><li>Docker <a href="https://hub.docker.com/signup">Account</a></li><li>Java 11</li><li>And obviously, Android project :)</li></ul><h3>2. What is Docker?</h3><p><strong>Docker</strong> is an open-source software designed to facilitate and simplify application development. It is a set of platform-as-a-service products that create isolated virtualized environments for building, deploying, and testing applications.</p><h4>Image:</h4><p>A Docker image is an immutable (unchangeable) file that contains the source code, libraries, dependencies, tools, and other files needed for an application to run. Due to their read-only quality, these images are sometimes referred to as snapshots. They represent an application and its virtual environment at a specific point in time. This consistency is one of the great features of Docker. It allows developers to test and experiment software in stable, uniform conditions.</p><h4>Container:</h4><p>A Docker container is a virtualized run-time environment where users can isolate applications from the underlying system. These containers are compact, portable units in which you can start up an application quickly and easily. As containers are autonomous, they provide strong isolation, ensuring they do not interrupt other running containers, as well as the server that supports them. Docker claims that these units “provide the strongest isolation capabilities in the industry”. Therefore, you won’t have to worry about keeping your machine <strong>secure</strong> while developing an application.</p><blockquote>TLDR; Image is recipe and Container is cake</blockquote><h3>3. Preparing SonarQube in Docker</h3><ul><li>Once you have Docker, verify installation by running docker -v in your terminal/command prompt</li><li>This will print Docker version info. Something like</li></ul><pre>Docker version 20.10.8, build 3967b7d</pre><ul><li>Start Docker engine and login to your account by docker login command and supplying your username and password. Ignore, if already logged in</li><li>Running docker images will print list of images installed on Docker. Would print blank if no images are available</li><li>Time to pull our much awaited <strong>SonarQube </strong>image from <a href="https://hub.docker.com/_/sonarqube?tab=tags">Docker Hub</a> 🐳</li><li>Run docker pull sonarqube:9.1.0-community and wait until sonar image is fully downloaded. Notice that we’re using the community version which is available for free</li></ul><pre>C:\Users\hemanshu.varma&gt;docker pull sonarqube:9.1.0-community<br>9.1.0-community: Pulling from library/sonarqube <br>a0d0a0d46f8b: Pull complete <br>ebb745650a9d: Pull complete <br>8ac639e3bf55: Pull complete <br>Digest:sha256:628a2c7f2xxxxxc61ec5ddeb0a09c3555a701dxxxxxe796f6582dad8axxxxx90 <br>Status: Downloaded newer image for sonarqube:9.1.0-community docker.io/library/sonarqube:9.1.0-community</pre><ul><li>Now we have sonar image downloaded, verify by running docker images which will print sonarqube image as below</li></ul><pre>C:\Users\hemanshu.varma&gt;docker images <br>REPOSITORY    TAG               IMAGE ID      CREATED       SIZE <br>sonarqube     9.1.0-community   9ff84ae48545  18 hours ago  560MB</pre><ul><li>We’re now ready to run our freshly downloaded docker image into a usable container so that it’s services can be consumed</li><li>This can be achieved by running below command and prints container ID upon success</li></ul><pre>docker run -d --name sonarqube -p  9000:9000 sonarqube:9.1.0-community</pre><p><strong>Full Output:</strong></p><pre>C:\Users\hemanshu.varma&gt;docker run -d --name sonarqube -p 9000:9000 sonarqube:9.1.0-community c7d8009eexxxxx1d15d0f3e5976e7fxxxxx2075bab15b15ad380xxxxxab36b21</pre><p>Let’s break down this command to understand:</p><p>Basically, we’re trying to run image whose command is in format: <strong><em>docker run [OPTIONS] IMAGE [COMMAND] [ARGS...]</em></strong></p><ol><li>The <strong><em>docker run</em></strong> first <strong><em>creates</em></strong> a writeable container layer over the specified image, and then <strong><em>starts</em></strong> it using the specified command.</li><li><strong><em>-d</em></strong> is used to: Run container in background and print container ID</li><li><strong><em>--name </em></strong>is used to: Assign a name to the container. Here we’re naming it <strong><em>sonarqube</em></strong></li><li><strong><em>-p </em></strong>is used to: Publish a container’s port(s) to the host</li><li>And lastly, our repository with version <strong><em>sonarqube:9.1.0-community</em></strong></li></ol><ul><li>Once above command prints container ID successfully, pat your back! 👏This means your instance is up and running</li><li>Verify this by running docker ps -a command which lists all images with running/exited/stopped status</li></ul><pre>C:\Users\hemanshu.varma&gt;docker ps -a <br>CONTAINER ID   IMAGE                        COMMAND              CREATED             STATUS           PORTS                      NAMES <br>c7d8009ee4aa   sonarqube:9.1.0-community    &quot;n/opt/sonarqube/bin/…&quot; 38 minutes ago      Up 38 minutes    0.0.0.0:9000-&gt;9000/ tcp sonarqube</pre><blockquote>The <em>STATUS</em> Up &lt;TIME&gt; means instance is running</blockquote><h3>4. Configuring Sonar Dashboard</h3><ul><li>With your instance running, navigate to Sonar Homepage on <a href="http://localhost:9000/">http://localhost:9000</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIf1nD2dhKQO8xY-jzPcKQ.png" /><figcaption>SonarQube login page</figcaption></figure><ul><li>Login with default credentials where <strong>username: admin</strong> and <strong>password: admin</strong></li><li>You may be asked to change default password immediately after login. Ignore, otherwise</li></ul><h4>4.1 Creating Project:</h4><ol><li>Now that you’re logged in to your local SonarQube instance, select <strong>Manually</strong> to run Sonar from local project code</li><li>Give your project a <strong>Display name, Project key</strong> and click the <strong>Set Up</strong> button. Make sure to retain <strong>Project Key</strong>, it’ll be required in later stages</li><li>It’s time to setup our Repository for Analyzing 🔨</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dbaAxXy0jnoq3IKZQGKpQ.jpeg" /><figcaption>Project setup on Sonar</figcaption></figure><h4>4.2 Analyzing Repository:</h4><ol><li>Once Project is created, a repo setup is required where our sonar will be updating stats</li><li>To do so, click <strong>Locally</strong> within just created project</li><li>Give token a <strong>name</strong> and click <strong>Generate Token</strong>. It is important to retain <strong>token </strong>safely. This will be used to authenticate</li><li>Now, Press <strong>Continue</strong></li><li>Select your project’s main language under <strong>Run analysis on your project</strong>, and follow the instructions to analyze your project. Here you’ll download and execute a Scanner on your code (if you’re using Maven or Gradle, the Scanner is automatically downloaded)</li></ol><figure><img alt="SonarQube dashboard with on screen instructions for Android setup" src="https://cdn-images-1.medium.com/max/1024/1*iaUM-LxSpy31ZIKVs77ilw.jpeg" /><figcaption>On-screen instructions for Gradle based Android Project</figcaption></figure><p>Let’s do some coding now. Enough of CLI and Setup 😉</p><h3>5. Integrating in Android Application</h3><ul><li>In your project level gradle, add sonar scanner plugin. Latest version can be obtained from <a href="https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-gradle/">here</a></li></ul><pre>classpath ‘org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3’</pre><ul><li>Expose this plugin in App level build.gradle by adding,</li></ul><pre>apply plugin: “org.sonarqube”</pre><ul><li>Add sonarqube block in your app level gradle which has information to authenticate and export report</li></ul><pre>sonarqube <strong>{<br>    </strong>properties <strong>{<br>        </strong>property &quot;sonar.projectName&quot;, &quot;My Android App&quot;<br>        property &quot;sonar.projectKey&quot;, &quot;@1ph@num3r1ck3y&quot;<br>        property &quot;sonar.sources&quot;, &quot;src&quot;<br>        property &quot;sonar.sourceEncoding&quot;, &quot;UTF-8&quot;<br>        property &quot;sonar.tests&quot;, [&quot;src/test/java&quot;]<br>        property &quot;sonar.test.inclusions&quot;, &quot;**/*Test*/**&quot;<br>        property &quot;sonar.exclusions&quot;, &#39;**/.gradle/**,&#39; +<br>                &quot;**/androidTest/**,&quot; +<br>                &quot;**/R.class,&quot; +<br>                &quot;**/BuildConfig.*,&quot; +<br>                &quot;**/Manifest*.*,&quot; +<br>                &quot;**/android/databinding/*,&quot; +<br>                &quot;**/androidx/databinding/*,&quot; +<br>                &quot;**/*MapperImpl*.*,&quot; +<br>                &quot;**/BuildConfig.*,&quot; +<br>                &quot;**/Manifest*.*,&quot; +<br>                &quot;**/google-services.json&quot;<br>    <strong>}<br>}</strong></pre><blockquote>Inclusion/Exclusion Properties can be modified as per requirement. Replace <strong>projectKey </strong>with key obtained from step: 4.1</blockquote><ul><li>Sync your Android Project now 🔨</li><li>Now run below command in terminal and wait until you see <strong><em>BUILD SUCCESSFUL</em></strong> message</li></ul><pre>gradlew sonarqube -Dsonar.projectKey=HV-Sonar-Demo-7hv3lxxxxx1auceom2j5d2p8 -Dsonar.host.url=http://localhost:9000 -Dsonar.login=2ed5425a24XXXXX8ff4fa219cc68XXXXX108688b</pre><blockquote>Replace <strong>projectKey </strong>and <strong>login </strong>key as obtained from 4.1 and 4.2 respectively</blockquote><ul><li>Refresh your Sonar project and see results. Yayyy! You made it 🎉</li></ul><figure><img alt="SonarQube dashboard after running script via Android Studio" src="https://cdn-images-1.medium.com/max/1024/1*nm7-p4FkysLD7DT0pf_edA.jpeg" /><figcaption>SonarQube dashboard with Code Analysis report</figcaption></figure><h3>6. Bonus 🚀</h3><ul><li>Keeping a container up and running is resource consuming. It is best to stop container in such ideal conditions. To do so run:</li></ul><pre>docker stop &lt;CONTAINER_ID&gt;</pre><blockquote>Where, container ID can be found by listing containers (<strong><em>docker ps -a</em></strong> command). For instance, <strong><em>docker stop c7d8009ee4aa</em></strong></blockquote><ul><li>To start again, run: docker start &lt;CONTAINER_ID&gt;</li><li>If you run into JAXB Exception, possible causes are:</li></ul><ol><li>Using older version of Java. Probably 11 or less for compiling your app</li><li>Lower version of gradle tools and distribution. It is recommended to use v<strong><em>4.2.2</em></strong> of gradle tools and <strong><em>gradle-6.7.1-all</em></strong> distribution</li></ol><pre><strong>classpath &#39;com.android.tools.build:gradle:4.2.2&#39;</strong></pre><pre>in build.gradle(project level)</pre><pre><strong><em>AND</em></strong></pre><pre><strong><em>distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip</em></strong></pre><pre>in gradle-wrapper.properties</pre><h4>Additional Ref: 📝</h4><ol><li>Docker Commands: <a href="https://geekflare.com/docker-commands/">https://geekflare.com/docker-commands/</a></li><li>Docker Image vs Container: <a href="https://phoenixnap.com/kb/docker-image-vs-container">https://phoenixnap.com/kb/docker-image-vs-container</a></li><li>SonarQube in 2 minutes: <a href="https://docs.sonarqube.org/latest/setup/get-started-2-minutes/">https://docs.sonarqube.org/latest/setup/get-started-2-minutes</a></li><li>Latest version of Sonar plugin: <a href="https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-gradle/">https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-gradle/</a> . Also on: <a href="https://plugins.gradle.org/plugin/org.sonarqube">https://plugins.gradle.org/plugin/org.sonarqube</a></li><li>SonarQube Android integration on v7.5-community which runs on Java 8: <a href="https://tech.olx.com/sonarqube-integration-in-android-application-part-1-37041b0379">https://tech.olx.com/sonarqube-integration-in-android-application-part-1-37041b0379</a></li></ol><p>That’s it folks. Until next time 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8343e5014cf9" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/integrating-sonarqube-in-android-application-via-docker-8343e5014cf9">Integrating SonarQube in an Android Application via Docker 🐳</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sweetening your Interview preparation]]></title>
            <link>https://hemanshuvarma.medium.com/sweetening-your-interview-preparation-8c708ec6345?source=rss-1cc4134e3fb7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c708ec6345</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[interview-tips]]></category>
            <dc:creator><![CDATA[Hemanshu Varma]]></dc:creator>
            <pubDate>Sun, 10 May 2020 12:30:16 GMT</pubDate>
            <atom:updated>2020-05-10T12:30:16.483Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginner friendly guide for your upcoming interview to land a job in tech industry</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2xdaexsmSXenXjI5" /><figcaption>Photo by <a href="https://unsplash.com/@patrickian4?utm_source=medium&amp;utm_medium=referral">Patrick Fore</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Resume</strong> being entry point of any interview, ever imagined how they are processed before the recruiter reaches out to you? As tech industry is growing exponentially, most of the firms now make use of ATS. Thus, it is important that your resume should be ATS friendly and consistent.</p><h3>What’s ATS?</h3><p>ATS a.k.a Application Tracking System is a software used by recruiters which performs multiple actions such as sort, scan and ranks the resume incredibly fast. A fact to remind, on an average recruiter scans a resume for about six seconds. Yes, SIX SECONDS before deciding if the applicant is a good fit for the role.</p><p>Keeping things short and simple, you can learn more about the <em>six seconds test</em> in this amazing article by <a href="https://www.topresume.com/career-advice/how-to-pass-the-6-second-resume-test">TopResume</a></p><p>Feeling lazy to go through article? Check out the video below</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl_v12n1bZFc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl_v12n1bZFc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl_v12n1bZFc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1840311f542bc2acc2e11ec82a00e0b/href">https://medium.com/media/c1840311f542bc2acc2e11ec82a00e0b/href</a></iframe><h4>TL;DR</h4><blockquote>Make your resume ATS friendly along with recruiter’s six seconds test</blockquote><h3>Crafting Resume</h3><p>A resume is the first point of contact which speaks about yourself. It should have to be precise and organised enough that, it describes you in accordance to the job role you applied for.</p><p>Whether you are making your resume in legacy format with plain old text or by using an tool. I recommend to use this online tool available for <a href="https://flowcv.io/">FREE</a>. A good approach to consider can be:</p><ul><li><strong>Header</strong>: Mandatory information such as your Name, Email address, Contact number has to be included. Optionally, information such as your Nationality, decent photograph, links to your social profiles like LinkedIn, GitHub, StackOverflow, Medium, CodeChef, HackerRank, Quora can add advantage</li></ul><figure><img alt="Sample header for resume" src="https://cdn-images-1.medium.com/max/714/1*Z92MKqdv7RD5-ocmoqSs3w.png" /><figcaption>Sample resume header</figcaption></figure><ul><li><strong>Summary</strong>: Choose summary driven resume over conventional objective driven. In short, a summary driven resume describes your experience in particular domain or technology in a line or two</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fiMdTTtAZva1jcIU_1vgA.png" /><figcaption>Photo by <a href="https://www.jobscan.co/blog/change-your-resume-objective/">Jobscan</a></figcaption></figure><ul><li><strong>Education: </strong>If you are a fresh graduate, then your educational details plays a vital role. So make sure to include about it in reverse chronological order. Information like your school/college name, specialisation, percentage, university and year of graduate would be of good choice</li></ul><figure><img alt="Sample for education information. Includes minimum required information" src="https://cdn-images-1.medium.com/max/651/1*E22TiEIU1GcH4tOKNeoEuw.png" /><figcaption>Sample education layout</figcaption></figure><ul><li><strong>Achievements: </strong>If you’d like to highlight something that your recruiter should know about, then you cannot miss this. Things like certifications, awards and volunteer experience can be included. Keeping achievements related to your job role on priority</li><li><strong>Technical Proficiency: </strong>If you are targeting for software development role, then this section gives a quick idea about programming language or technical knowledge you have to your recruiter</li></ul><figure><img alt="Sample for technical skills helpful for recruiter to quickly know about your skill set" src="https://cdn-images-1.medium.com/max/495/1*JpFLbZ4ajsaVI7XjSDX3ug.png" /><figcaption>Sample layout for technical skills</figcaption></figure><p><strong>Projects: </strong>Your project says a lot about your experience in technology and the recruiter goes through it thoroughly to judge whether you are fit for the open role or not. So, make sure to include projects related to your job role. A few things to be noted when describing about your project are:<br><strong>1.</strong> Be specific about projects you’ve worked on or managed.<br><strong>2.</strong> What was the outcome?<br><strong>3.</strong> How did you measure success?<br><strong>4.</strong> How big was the team?<br><strong>5.</strong> What was the scope of your work?</p><figure><img alt="Sample for project briefing in resume" src="https://cdn-images-1.medium.com/max/555/1*vO-Hu2-WD4UNI_tZyML2iw.png" /><figcaption>Sample project highlights</figcaption></figure><h3>Interview</h3><p>Once you qualify initial screening by recruiter, pat yourself and keep going. Preparing for an interview can seem daunting. Remember, interview is not just communicating your experience but also, it should have to be driven by you and not the recruiter. So highlight the skills you are good at. By the end of the day, presentation skills also matters and not only your good looking resume.</p><h4>S.T.A.R Approach</h4><p>The basis of the S.T.A.R format is to answer an interviewer’s questions by telling mini-stories.</p><pre><strong>S- </strong>Situation<br><strong>T- </strong>Task<strong><br>A- </strong>Action<strong><br>R- </strong>Result</pre><ul><li><strong>Situation: </strong>Start by describing the situation you were involved in. Make sure you always choose the most appropriate example and one that best fits the role for which you are being interviewed.</li><li><strong>Task: </strong>Briefly describe what you were tasked with, your responsibilities and assignments for the situation.</li><li><strong>Action: </strong>This will be the section that the interviewer is most interested in and should detail the actions you took to resolve the problem. Describe all of the actions, detailing each stage and in the correct, logical order showing your thought processes, how you reached your conclusions and the steps you completed.</li><li><strong>Result: </strong>The Result is the second most important part of your answer as a successful outcome proves that your actions were effective.</li></ul><p><strong>Questions to think as you prepare:</strong></p><ol><li>How do you work best, both as an individual and as part of a team?</li><li>What challenges have you faced at school or at work and how did you overcome them?</li><li>Which of your skills or experiences would be assets in the role and why?</li></ol><p>(<em>Source: </em><a href="https://careers.google.com/"><em>Google Careers</em></a>)</p><h3>Bonus</h3><p>A few things to keep in mind, may sound silly but matters the most.</p><ul><li>Aim for ONE page only. Highlight things on priority</li><li>Curate your resume as per job role. A generic resume is unliking to be shortlisted further</li><li>Include things in your resume only if you can explain. After all, it’s about employment</li><li>Don’t put personal pronouns. <br><em>For example</em>: Instead of I developed over 3 applications in 4 months use Developed over 3 applications in 4 months. Since it is your resume, your name on the top, it makes sense that you did it</li><li>Consistency is the key. Follow Typography norms throughout your resume</li><li>When interviewer asks you “Tell me about yourself”. Make sure you follow 80–20 rule. 80% professional and 20% personal</li><li>If you don’t understand a question, ask your interviewer(s) for clarification and take the time you need with response.</li><li>Think out loud. Recruiters will analyse your thought process in technical interview</li></ul><p>That’s all from me. Hope this helps.</p><p><strong>Good Luck!</strong></p><blockquote>Thanks for reading! If you enjoyed this story, please hit the <strong>clap</strong> button and <strong>share</strong> to help others find it! Feel free to leave your suggestion/feedback in the comments below.</blockquote><blockquote>Connect with me on <a href="https://www.linkedin.com/in/hemanshuvarma/">LinkedIn</a>, <a href="https://twitter.com/varmahemanshu">Twitter</a> and <a href="https://github.com/HemanshuVarma">GitHub</a> 😇</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c708ec6345" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>