<?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 bhavana vadodariya on Medium]]></title>
        <description><![CDATA[Stories by bhavana vadodariya on Medium]]></description>
        <link>https://medium.com/@bhavanavadodariya?source=rss-1625c4aeafe2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2ZDYBIHTawLxaPRA.jpg</url>
            <title>Stories by bhavana vadodariya on Medium</title>
            <link>https://medium.com/@bhavanavadodariya?source=rss-1625c4aeafe2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 17:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavanavadodariya/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[How to reverse engineer Android applications on Linux system — 2 steps only]]></title>
            <link>https://bhavanavadodariya.medium.com/how-to-reverse-engineer-android-applications-on-linux-system-2-steps-only-4095129fd09c?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4095129fd09c</guid>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-apk]]></category>
            <category><![CDATA[android-security]]></category>
            <category><![CDATA[android-hacking-tool]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 06:36:08 GMT</pubDate>
            <atom:updated>2023-10-18T06:36:08.607Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to reverse engineer Android applications on Linux system — 2 steps only</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uyyIDiDZSggDFgHa.png" /></figure><p>Diving deep into the sea of reverse engineering resources, it’s hard to ignore the overwhelming Windows-centric focus. But what if you’re an Android enthusiast, seeking this solution for Linux.</p><p>Here we will discuss, how to do one time setup for Linux Ubuntu and after that easily reverse engineer any Android app with just 2 steps.</p><p>I have taken following git sample.<br>Please donwload the apk file, we’ll use this file in our demo:<br><a href="https://github.com/kinny94/Android/tree/master/Tic-Tac-Toe">https://github.com/kinny94/Android/tree/master/Tic-Tac-Toe</a><br><a href="https://github.com/kinny94/Android/blob/master/Apk%20Files/Tic-Tac-Toe.apk">https://github.com/kinny94/Android/blob/master/Apk%20Files/Tic-Tac-Toe.apk</a></p><h3>Let’s get the source code of apk file</h3><h4>Download dex2jar tool and set it up:</h4><p><a href="https://sourceforge.net/projects/dex2jar/">https://sourceforge.net/projects/dex2jar/</a><br>Unzip it.</p><p>Change the mode of files so that you won’t get permission access error:<br>Open Terminal on your Linux machine<br>$ cd PATH_TO_UNZIPPED_DEX2JAR FOLDER<br>$ chmod +x d2j-baksmali.sh d2j-dex2jar.sh d2j-dex2smali.sh d2j-dex-recompute-checksum.sh d2j_invoke.sh d2j-jar2dex.sh d2j-jar2jasmin.sh d2j-jasmin2jar.sh d2j-smali.sh d2j-std-apk.sh</p><p>You can add above path to PATH variable so that you can use it from anywhere.</p><h4>Download and install JD-gui:</h4><p>Open Terminal on your Linux machine<br>$ sudo apt update<br>$ sudo apt-get install alien dpkg-dev debhelper build-essential<br>$ sudo dpkg -i jd-gui-1.6.6.deb (Download deb file from here: <a href="https://java-decompiler.github.io/">https://java-decompiler.github.io/</a>)<br>No error should be there. Apps should get installed.<br>Click on “Show Applications” — 9-dots at the bottom left of your Ubutnu machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*laf0WHBGCE-NxQ_iKc7NCQ.png" /></figure><p>Search for JD… You should get the app.<br>Launch it.</p><p>Above is the one time setup. Let’s decompile the apk now.</p><ol><li>Rename Tic-Tac-Toe.apk file to Tic-Tac-Toe.zip<br>Unzip it.<br>Take path of classes.dex file and give it to dex2jar shell script<br>$ cd /home/bhavana/bhavana/decompile/tool_use/dex2jar-2.0<br>$ ./d2j-dex2jar.sh /home/bhavana/bhavana/decompile/apk/Tic-Tac-Toe/classes.dex<br><strong>You should get classes-dex2jar.jar file in your dex2jar script folder:<br>/home/bhavana/bhavana/decompile/tool_use/dex2jar-2.0/classes-dex2jar.jar</strong></li><li>Open this .jar file in JD-gui tool.<br>You should be able to see the source code.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7rUUtpvhCgqJU0n6qRU5Q.png" /></figure><p><strong>You can compare MainActivity.class file with original source code:</strong> <a href="https://github.com/kinny94/Android/blob/master/Tic-Tac-Toe/app/src/main/java/com/example/user/tic_tac_toe/MainActivity.java">https://github.com/kinny94/Android/blob/master/Tic-Tac-Toe/app/src/main/java/com/example/user/tic_tac_toe/MainActivity.java</a></p><h4>There is more to read:</h4><p>If you are trying to decompile any xTS(CTS/GTS) application.<br>And if you get following error:<strong> com.googlecode.d2j.DexException</strong>, then setup this dex2jar tool version: <a href="https://github.com/DexPatcher/dex2jar/releases/download/v2.1-20171001-lanchon/dex-tools-2.1-20171001-lanchon.zip">https://github.com/DexPatcher/dex2jar/releases/download/v2.1-20171001-lanchon/dex-tools-2.1-20171001-lanchon.zip</a></p><p>You may replace dex2jar and JD-gui tools with one tool JADX-gui:<br><a href="https://lindevs.com/install-jadx-on-ubuntu">https://lindevs.com/install-jadx-on-ubuntu</a></p><p><a href="https://github.com/user1342/Awesome-Android-Reverse-Engineering">https://github.com/user1342/Awesome-Android-Reverse-Engineering</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4095129fd09c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android — Change fastboot and bootloader screen’s images [AOSP]]]></title>
            <link>https://bhavanavadodariya.medium.com/android-change-fastboot-and-bootloader-screens-images-aosp-110995022c3?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/110995022c3</guid>
            <category><![CDATA[aosp]]></category>
            <category><![CDATA[bootloader]]></category>
            <category><![CDATA[android-framework]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[fastboot]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 18:09:32 GMT</pubDate>
            <atom:updated>2023-10-17T18:09:32.114Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android — Change fastboot and bootloader screen’s images [AOSP]</h3><p>Every device has it’s own bootloader screen, which presents it’s Owner name. Eg. you can see in this left image, Huawei is the owner. Right is the fastboot image, it shows about fixing Android OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQoPqh4-88tPLvvk8fMtwQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ap4ItcIL_9df8bQZ-dyYTA.jpeg" /><figcaption>Left images shows bootloader screen which says, this Phone created by Huawei and powered by Android. Right image shows fastboot screen.</figcaption></figure><p>With understanding of basic Linux commands, you can change your Andorid device’s animation screens.</p><p>Also, once bootloader screen finishes, Android OS starts booting. Different images comes as per the content of zip file. Eg. you can see the content of sample zip file here: <a href="https://cs.android.com/android/platform/superproject/main/+/main:device/google/atv/products/">https://cs.android.com/android/platform/superproject/main/+/main:device/google/atv/products/</a>.<br>By unziping the content, you can check any image file’s info. It should give idea about the size of image. 800x400, 1280x800 etc… Same size of image should be used in this process.</p><p>If you are going to use these changes for commercial purpose please follow <a href="https://source.android.com/setup/start/brands">Google guidelines.</a></p><p>The procedure which we are going to follow, will give you .img files.</p><p>You can flash these images on Android device:<br>logo1.img (For Bootloader image, Powered by Android screen)<br>logo2.img (For Fastboot screen)</p><p>This document, created with Ubuntu 14.04. <br>You should have installed Python.<br>Also install: <strong><em>$ sudo apt-get install python-pil.</em></strong><br>We will use <a href="https://source.codeaurora.org/quic/la/device/qcom/common/tree/display/logo/logo_gen.py?h=jb_3.2_rb5.60">logo_gen.py</a> script to create bootloader and fastboot screens.</p><pre>$ cd AOSP_SOURCE_PATH\android\device\qcom\common\display\logo\<br>$ cp A.png .<br>$ python ./logo_gen.py A.png</pre><pre>//Here I have used 1280x800 as per my screen requirement.</pre><pre>$ ll<br>// You can see splash.img has been created, which is your bootloader //screen</pre><pre>$ mv splash.img logo1.img</pre><pre>//logo1 partition is for bootloader screen.<br>//Follow above procedure to create fastboot screen.<br>//Replace image and rename it logo2.img.<br>//Flash logo1.img and logo2.img images to device.</pre><pre>$ adb reboot bootloader → Put device into fastboot mode<br>$ fastboot devices → Check device should be in fastboot<br>$ fastboot flash logo1 log1.img → Flash bootloader partition, check with your BSP team for partition name.<br>$ fastboot flash logo2 logo2.img → Flash fastboot partition, check with your BSP team for partition name.<br>$ fastboot reboot → Observe device&#39;s reboot screens. You can see both screens have been changed.</pre><pre>FYI only fastboot and bootloader screen has been changed, no change in android boot animation screen (screen appears after Kernel is up and Android comes into picture).</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*l9M6Zi0JVMiUZ_6FgMGseg.png" /></figure><p>You should be able to see the modified image for bootloader and fastboot modes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=110995022c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AntaraGange — Dakshin Kashi]]></title>
            <link>https://bhavanavadodariya.medium.com/antaragange-dakshin-kashi-e06961786e1c?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e06961786e1c</guid>
            <category><![CDATA[shiva]]></category>
            <category><![CDATA[caves]]></category>
            <category><![CDATA[temple]]></category>
            <category><![CDATA[bengaluru]]></category>
            <category><![CDATA[adventure]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 16:23:20 GMT</pubDate>
            <atom:updated>2021-03-09T17:39:03.910Z</atom:updated>
            <content:encoded><![CDATA[<h3>AntaraGange — Dakshin Kashi</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_g2AFVrf3DNGTUebd_KnA.jpeg" /></figure><p>Kashi Vishweshwara Temple and beautiful caves</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*62Pz3srZe-vwLi-71U-Stg.jpeg" /></figure><p>It’s a 1 day trip. We have started our journey at 7am from Whitefield, Bengaluru and returned at 3:30pm.</p><p><a href="https://goo.gl/maps/aRSpt76qinBrAm2G7">Antaragange hills, Kolar Town, Kolar District, Karnataka, India</a>.</p><p>Around 3 km from Kolar City. AntarGange is located in Shathashrunga mountain range. It is also known as Dakshin Kashi.</p><p>We’ve visited on 7th March. It was little bit hot day as it’s beginning of Summer. Although, heat doesn’t bother much after a certain height. Best time to visit is during September to November.</p><p>DO NOT FORGET TO HAVE BREAKFAST. There’re some snacks available near parking lot but after climbing to temple, there are very less options. You will get basic options like….<br>Ice cream<br>Chips packets<br>Buttermilk Corn<br>Coconut water<br>Cucumber, water.<br>So better you have proper breakfast. Don’t eat too much also, as you have to climb or walk at least.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F8gKYpksdXFZ90H5FzI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fsainsburys-reaction-christmas-xmas-8gKYpksdXFZ90H5FzI&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2F8gKYpksdXFZ90H5FzI%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/54cbb2a8746ac859bf46b67232ee912e/href">https://medium.com/media/54cbb2a8746ac859bf46b67232ee912e/href</a></iframe><p>There are so many food options on the way to the destination, some of which are:<br>Nandi Grand<br>Kamat<br>Panchavati<br>The Terminal<br>CCD<br>Sher E Punjab<br>Check whether restaurant is still running(Due to COVID).</p><p>At the main entrance you have parking. For car they charged us 40 INR. For Two-wheeler, it would be 20 INR.</p><p>From here you have to take steps. One thing in our favor is that there’re walking stretches after some steps. I felt it was easy to climb and walk to temple. There are approximately 400 steps. It would take 15–30 minutes to reach to the temple.</p><p>Beware of monkeys. Monkeys or this area are rowdies :D. They will try to snatch your bag. Even I saw one monkey was about to slap a person as he was trying to get his food back.</p><p>Beside main temple, there is running water coming from temple. I have seen people were taking bath and drinking water. There is a belief that this water is scared Ganga falling from Lord Shiva’s head and it helps to cure diseases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4PX6Nm4NuVWmdVJ4Cda9vQ.jpeg" /></figure><p>After visiting temple we approached to entrance of Caves. It is behind the temple. Trek is of around 2.5km. If you are a not used to trekking/hiking or elderly, trek would take 2–3 hours.</p><p>You can take cave tour guide, I highly recommend it. The reason is for 90% trek path you don’t need any guide but the moment you enter caves, it’s bit hard, you might get lost.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F9JgjpeyN48rdtzIvOZ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fjumanjiwelcometothejungle-2017-jumanji-9JgjpeyN48rdtzIvOZ&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2F9JgjpeyN48rdtzIvOZ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="183" frameborder="0" scrolling="no"><a href="https://medium.com/media/a89e3fe35abb23029ed254013959bd60/href">https://medium.com/media/a89e3fe35abb23029ed254013959bd60/href</a></iframe><p>Trek to the Cave was not difficult but in caves, some passages were too narrow. You have to crawl, slide and jump at some places. WATCH YOUR HEAD ALL THE TIME.</p><p>If you want to book trek online, when I checked morning 6am batch was available. It will take around 3 hours.<br>+91 99007 73123<br>+91 81974–50947<br>+91 63631–93770</p><p><a href="/service/mailto:support@myecotrip.com">support@myecotrip.com</a></p><p><a href="https://myecotrip.com/trailDetail/12/anthargange">https://myecotrip.com/trailDetail/12/anthargange</a></p><p>250 + tax per person</p><p>If you‘re on unplanned trip, go there directly. You can bargain if you are in a group. Our guide helped people to pass tricky areas inside the caves. He was humorous. Whenever you ask him how far we have to go, he will tell 50m-100m only.</p><p>You can view entire Kolar town from top. Once you enter the Cave, you can’t go back. But trust me it’s not that much difficult, it was real fun. When we have visited, there were around 10 people of different age group ranging from 15 to 60. All of them were enjoying the adventure. :)</p><p>Some cave passage were little bit narrow. We have entered first cave then came out of it after 30 minutes. Second one is just 5–7m long but we haven’t gone inside as people ahead of us were yelling, it’s too difficult and they couldn’t breathe properly. It was too narrow.</p><p>I forgot to ask the Guide, if we have more caves or what, but we decided no more caves and we came back to trailing path.</p><p>One person filled up water bottle from that second water cave. We all took a sip. I can’t describe it in words, but certainly it was tasty. The coldness, freshness and sweetness of water can’t be described. And I am not exaggerating. If you get chance, don’t miss it. Then we came back. Again at temple we took 10 min break and then climbed down. At exit we had Coconut water. Keep your selves hydrated all the time. I suggest you to carry oranges, water, juice when you start your journey upwards.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FiIdijgFZtkssLeoJmO%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FiIdijgFZtkssLeoJmO%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FiIdijgFZtkssLeoJmO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/95e2b7690b689cd42c0a97cbd2e6e3c9/href">https://medium.com/media/95e2b7690b689cd42c0a97cbd2e6e3c9/href</a></iframe><p>While returning to Bengaluru, on your driving side, you will find local vendors. Vegetables are directly brought from farm for selling and they were fresh. Price is also very reasonable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cy2jGEnC4f_Ryszac22FSg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2kzn1xqegEODckQ3kIbX7g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4YKHkMYTqUHHbUv5zHPL5Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*pWnADQckHXwlcS933AcxDw.jpeg" /></figure><p>Thanks <a href="https://www.linkedin.com/in/kalpesh-bhupta-7b847626">Kalpesh Bhupta</a> for helping in drafting the content. Thanks <a href="https://alllifetips.com/">Nirali Mandalia</a> for photos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e06961786e1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Share Android Screen on your System]]></title>
            <link>https://medium.com/swlh/share-android-screen-on-your-system-1052ced277b6?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1052ced277b6</guid>
            <category><![CDATA[vysor]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[adb]]></category>
            <category><![CDATA[droidatscreen]]></category>
            <category><![CDATA[screenshare]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 08:47:03 GMT</pubDate>
            <atom:updated>2020-06-29T20:45:23.198Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roOWMmBZiq5Cq1e7CfkcnQ.png" /><figcaption>Droid@Screen</figcaption></figure><p>You may have come across many instances where you feel the need to share Android screen on Computer System. For e.g., when you’re demoing to a client, to take screenshot, recording screen etc…</p><p>I have found some ways to do the same. Here, I have mentioned steps of two easy ways to achieve the same in Windows 10. Similar steps can be followed for other operating system.</p><p><strong>Prerequisites:</strong></p><ul><li><a href="#fea1">USB drivers as per Vendor</a>.</li><li><a href="#a15d">Java — Set Environment path</a></li><li><a href="#6785">ADB — Set Environment path</a></li></ul><p>If you want details about the prerequisites’ setup, please refer respective sections.</p><p>Let’s get started:</p><p>1st method, <a href="https://www.vysor.io/download/"><strong>Vysor </strong></a>— You can download and install <a href="https://www.vysor.io/download/">app</a> or just install as a <a href="https://chrome.google.com/webstore/detail/vysor/gidgenkbbabolejbgbpnhbimgjbffefm">plugin</a> for your Chrome browser. As per latest update on Vysor app, Google is removing Chrome apps, so it is better to go with App.</p><p><strong>Steps:</strong></p><ul><li>Just plugin your android device or start Emulator.</li><li>For real devices, you will get notification to Allow USB Debugging. Accept it.</li><li>First time when you click on View button on your system’s Vysor app, Vysor application will get installed on your Android device. So that you can access display from you System.</li><li>You need to give permission on your Android device for this.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*5YESvO4swz59fUcyRgnN7A.png" /></figure><p><strong>Pros:</strong><br>1. You don’t need to touch your phone and you can access display from your system. Of course it doesn’t include accessing hard buttons like Lock, Volume-Up and Volume-Down.</p><p>This is the biggest advantage over other applications.</p><p><strong>Cons: </strong><br>1. Resolution of sharing screen is not so good.<br>2. Advertisements.<br>3. You can’t change screen resolution.<br>If you opt paid version of Vysor then these things won’t be bothering you, though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFgywfu-Iy7ClDFX9v9K_g.png" /><figcaption>Vysor</figcaption></figure><p>2nd method, <strong>Droid@Screen</strong>. It’s my personal favorite. It’s just one time setup, then you don’t need to worry about that.</p><ul><li>Download executable jar file from <a href="http://droid-at-screen.org/download.html">here</a>.</li><li>Go to saved path and double click on it to launch.</li><li>Or Open Command Prompt and run <br>$ java -jar D:\android\mobileScreenShare\droidAtScreen-1.1.jar</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roOWMmBZiq5Cq1e7CfkcnQ.png" /><figcaption>Droid@Screen</figcaption></figure><p><strong>Pros:</strong><br>1. As it is open source, no need to pay for anything.<br>2. Screen resolution is great.<br>3. No advertisement.<br>4. Change casting screen resolution (Droid@Screen → Options → Preferred Scale → Change scale as per your requirement → Click on Restart ADB).</p><p><strong>Cons:</strong><br>1. You can’t access Android device’s screen from Droid@Screen app.</p><p>It’s not a major issue, though.</p><h4>You should have installed USB driver for you Android device. If not checkout this Install OEM USB drivers page.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tlNm9p7ZhQ9nGeVcOdtgpw.png" /><figcaption>Install OEM USB drivers</figcaption></figure><h4>Download and <a href="https://www.java.com/en/download/help/windows_manual_download.xml">install Java</a> — any version is fine as per Andriod SDK’s requirement. But Java version 1.8 or greater, is preferable.</h4><p>Setup environment path so that you can access java from anywhere.</p><p><strong>Steps:</strong></p><ul><li>Open File Explorer.</li><li>Right click on This PC.</li><li>Advance System Settings → Environment Variables.</li><li>If you have admin rights then under System Variables select <strong>Path</strong> variable else select for your login’s Path variable.</li><li>Click on Edit → Enter new or Edit already added Java path → Click OK → Click OK → Click OK</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkuJY2n7w0_6mqA4LCQJcQ.png" /></figure><p>Now you should be able to access java from anywhere…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*lXZgI3qWONEDvj_iBGBMgw.png" /><figcaption>$ Java -version</figcaption></figure><h4>To connect Android device with System, we need ADB tool.</h4><p>For this we need to Install Android SDK stand alone. But if you are developer, I can assume you would have <a href="https://developer.android.com/studio">installed entire Android Studio</a>, in that case omit this step too.</p><p>To install SDK standalone, download it from <a href="https://developer.android.com/studio/releases/platform-tools">here</a>. Save it at your preferred location. I have removed version(<em>_r30.0.3-windows</em>) from file name. Note down the path and save it to environment variable just like we did for Java. Now, we can use ADB from anywhere on our system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*9PqS755_AbyBot4uoIJbrg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1052ced277b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/share-android-screen-on-your-system-1052ced277b6">Share Android Screen on your System</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build AOSP — Android source code]]></title>
            <link>https://bhavanavadodariya.medium.com/build-aosp-android-source-code-cfbd24bec8d2?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfbd24bec8d2</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[aosp]]></category>
            <category><![CDATA[nexus]]></category>
            <category><![CDATA[android-6]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 13:04:05 GMT</pubDate>
            <atom:updated>2020-04-04T13:18:03.275Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build AOSP — Android source code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UVJvAGaXG0-Cxjjv_bM6cQ.jpeg" /><figcaption>Image from <a href="https://bitsnapper.com/wp-content/uploads/2015/07/android-versions-twitter.jpg">Bitsnapper</a></figcaption></figure><p>Wondering how to build Android images by your own!!<br>You need high speed internet and also System with Ubuntu 14.04, at least 4GB RAM, JDK(version 7), at least 250 GB free space on HD, Python, Git.<br>Don’t go by message <strong>3 min read</strong>, it will take HOURS…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26B5FNH5CTL36a5ZS%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Floop-perfect-26B5FNH5CTL36a5ZS&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F26B5FNH5CTL36a5ZS%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5a1be515f8b1a67acc8ed6e4996569d/href">https://medium.com/media/f5a1be515f8b1a67acc8ed6e4996569d/href</a></iframe><p>Steps shown here, are performed on Ubuntu (14.04).</p><p>First thing we need to install repo and Git tool.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/560bd1616c68948fc08f3b86880fd11b/href">https://medium.com/media/560bd1616c68948fc08f3b86880fd11b/href</a></iframe><p>Create one empty folder and start downloading source code into it. We are targeting Android Mashmellow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/899faae16fb624dbf6446887c42b07f0/href">https://medium.com/media/899faae16fb624dbf6446887c42b07f0/href</a></iframe><p>Have patience, it will take time. After successfully downloading source code, you should get similar message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*RXOp6ucLAgEJxrmy795WTA.png" /></figure><p>As real device has different h/w like NFC, Camera, Sensors and so on… So we need driver for our device. This driver is not part of AOSP. To download driver first we need <strong>build number</strong>. As per your device model and AOSP version you have downloaded, get your <strong>build number</strong> from this site:</p><p><a href="https://source.android.com/setup/start/build-numbers">Codenames, Tags, and Build Numbers | Android Open Source Project</a></p><p>For Nexus 5, I have taken latest build, which is Marshmallow(<strong>android-6.0.1_r77</strong>). So our <strong>build number is M4B30Z</strong>. You can take old one also, like for Kitkat-Android 4 version build number is KOT49H/E etc...</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*hZRTL99OdKSDjGQq6ndccQ.png" /></figure><p>Now go to driver page and get your driver as per your build number.</p><p><a href="https://developers.google.com/android/drivers#hammerheadm4b30x">Driver Binaries for Nexus and Pixel Devices | Google APIs for Android | Google Developers</a></p><p>Now, create one more empty folder (not inside your AOSP source code). Run following command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85048a752f31ae328af42f7b553f7d57/href">https://medium.com/media/85048a752f31ae328af42f7b553f7d57/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*9z-dFoZBCFB4b94Dvaio4Q.png" /></figure><p>Run above extracted .sh files from AOSP base directory:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75b292faf8c8e9710b69d5ce1ccf51de/href">https://medium.com/media/75b292faf8c8e9710b69d5ce1ccf51de/href</a></iframe><p>For Marshmallow-Android 6, we need java 7. See <a href="https://source.android.com/setup/build/older-versions">Supporting Older Versions</a> for precise versions and instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*gtkP9hHo36ddrKVB.png" /></figure><p>Build AOSP source code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5205c580849b1ce3fbdd7ab29f1c31ef/href">https://medium.com/media/5205c580849b1ce3fbdd7ab29f1c31ef/href</a></iframe><p>Take a break…. It will take time, in hours. Depends on your system configuration and internet speed. At the end you will get images under <strong>nexus5/out/target/hammerhead</strong> folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*xWbQ6arz0pdbzwFym0E1rg.png" /></figure><p><strong>Troubleshoot: </strong>You might need to install compile dependent software. Eg…</p><blockquote>$ sudo apt-get install gperf</blockquote><p>Next time we will see how to flash these images on Android device.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfbd24bec8d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Testing — Complex thing Simple Explanation]]></title>
            <link>https://bhavanavadodariya.medium.com/software-testing-complex-thing-simple-explanation-a5d1df1c0c33?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5d1df1c0c33</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[non-functional-testing]]></category>
            <category><![CDATA[functional-testing]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 12:09:20 GMT</pubDate>
            <atom:updated>2020-04-04T12:09:20.387Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Software Testing — Complex thing Simple Explanation</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iHgLhRImp4ufuU8jAlNcxQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/creative-internet-computer-display-2004161/">Markus Spiske</a></figcaption></figure><p><strong>What is Testing?</strong> In layman’s term…<strong> </strong>Check and make sure whether thing working properly or not. Here thing could be Software or Hardware or Required System which we have developed.</p><p><strong>Why we need it?</strong> Let me tell you one (terrible) story. When we heard word <strong><em>Japan</em></strong>, our brain starts picturing one of the most intelligent and technically advanced Country.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*a1GYan9qqA_jPkr3iVw7hg.png" /></figure><p>On November 9, 1963 between <a href="https://en.wikipedia.org/wiki/Tsurumi_Station">Tsurumi</a> and <a href="https://en.wikipedia.org/wiki/Shin-Koyasu_Station">Shin-Koyasu stations</a> in <a href="https://en.wikipedia.org/wiki/Yokohama">Yokohama</a>, Japan, two passenger trains collided with a derailed freight train, which killed 160+ people and 100+ got severely injured.</p><p>Testing Team did investigation, and they came to know it wasn’t driver’s fault or visibility issue or not even SPEED. Still Team couldn’t get cause of accident. Testing Team continued investigation. Testing was going on, on abandoned area, and there was no success until 1972. Team carried out test using the same rails and rolling stock and found that the combination of <strong>wheel-set</strong> <strong>design</strong>, <strong>rail cross section and wear</strong>, and <strong>track geometry</strong> all had a role in the derailment, <em>these equipment wasn’t properly tested</em>!</p><h4>Here we’ll talk about different types of Testing in terms of Software.</h4><p>Mainly there are two types of Tests, <strong>Functional Testing</strong> and <strong>Non-Functional Testing</strong>.</p><blockquote><strong>Functional Testing — </strong>Testing carried out based on specific functions of a required system.</blockquote><p><strong><em>Below are the types of Functional testing:</em></strong></p><p><strong>Unit Testing</strong></p><ul><li>Testing a single program or a set of programs</li><li>Can be done manually but is usually automated using tools, such as <strong>JUnit, Mockito, and Selenium</strong></li><li>It is a good practice to write the test cases before you write the code</li><li>It helps in detecting the errors early</li></ul><p><strong>Continuous Integration</strong></p><ul><li>Continuous Integration (CI) is a logical step in the development of an incremental integration strategy (As currently most of projects are running on Agile methodology)</li><li>This involves the installation of every piece of unit tested code in the integration environment as soon as it is ready</li><li>Tools, such as <strong>Ant, Jenkins may be used for CI</strong></li></ul><p><strong>Integration Testing</strong></p><ul><li>Testing the interfaces between programs</li><li>Verifies that the programs are compatible and fit together in the system</li></ul><p><strong>System Testing</strong></p><ul><li>Testing of the complete integrated — system to verify that it meets the specified functional and non-functional requirements</li><li>Tests for Functionality, Usability, Help Information, Security, Performance, Compatibility, Accessibility and Portability</li></ul><p><strong>User Acceptance Testing</strong></p><ul><li>Testing the developed system against the User requirements</li><li>Typically done by the User community</li><li>Tested in an environment that is similar to the Production environment</li></ul><p><strong>Regression Testing</strong></p><ul><li>Testing to verify that the previously tested software still performs the same way after it is changed</li><li>Changes include software enhancements, patches, defect fixes etc.</li><li>Done before moving the code to production</li></ul><blockquote><strong>Non-Functional Testing — </strong>Testing carried out based on requirements, specify the operational capabilities of a system such as performance, security and so on…</blockquote><p><strong><em>Below are the types of Non-Functional testing:</em></strong></p><p><strong>Performance Testing</strong></p><ul><li>Testing for software response time and stability under the expected workload</li><li>It also tests for system behavior for a large number of concurrent users</li><li>Some tools used are <strong>LoadRunner, LoadTest, Apache Jmeter, WebLOAD</strong></li></ul><p><strong>Security Testing</strong></p><p>Testing for software security e.g. authentication, availability, configuration, data security, session management, cyber attacks, data overflow etc…</p><p><strong>Compatibility Testing</strong></p><p>Testing to check that the software runs properly on different browsers, database, hardware, operating system, mobile devices and networks</p><p><strong>Portability Testing</strong></p><p>Testing to determine if the software can be moved from one environment to another</p><p><strong>Usability Testing</strong></p><ul><li>Testing to check if the software is user friendly</li><li>Software usability is tested by checking flow, navigation, layout, content</li><li>Tests the ease of use and ease of learning</li></ul><p><strong>Accessibility Testing</strong></p><ul><li>Testing to check that the software is accessible and usable by people of different abilities i.e. visual, physical, hearing, cognitive and learning impairments</li></ul><p><strong>Globalization and Localization Testing</strong></p><ul><li>To verify that the software can run independently, irrespective of its geographical environment</li><li>These test for country-specific variations. Some examples include:<br><em>Language<br>Date and time formatting<br>Currency<br>Paper sizes for printing<br>Address and telephone number formatting<br>Zip Code formatting<br>Person name and titles<br>Privacy laws</em></li><li>Helps detect the errors early</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5d1df1c0c33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple java versions on single machine to build different AOSP versions]]></title>
            <link>https://bhavanavadodariya.medium.com/multiple-java-versions-on-single-machine-to-build-different-aosp-versions-3cee69c3f93d?source=rss-1625c4aeafe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cee69c3f93d</guid>
            <category><![CDATA[aosp]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-framework]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[bhavana vadodariya]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 10:03:51 GMT</pubDate>
            <atom:updated>2019-03-29T10:27:37.653Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Multiple java versions on single machine to build different AOSP (Android Frameworks) on Ubuntu</strong></h3><p>There are cases when we need different versions of Software. Last week I had to work on Android 7 — Nougat and Android 6 — Marshmallow simultaneously.</p><p>When you are working on <a href="http://androidxref.com/7.1.2_r36/xref/">Android Frameworks 7.0</a> and <a href="http://androidxref.com/6.0.1_r10/xref">Android Frameworks 6.0</a>, at the same time, in this case you will need Java 8 and Java 7 respectively. You will need multiple java versions, for building different Android frameworks, on single machine. If you don’t set correct java version, you will get message like, <strong>You are attempting to build with the incorrect version of java</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*KYF59R6NrW85JKc__SywtQ.png" /></figure><p>Now a days AOSP source code comes with <a href="https://source.android.com/setup/build/requirements#jdk">prebuilt OpenJDK</a> , so no additional installation is required.</p><p>But for older versions of Android, requires a separate installation of the JDK. See <a href="https://source.android.com/setup/build/older-versions">Supporting Older Versions</a> for precise versions and instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*etdW-vv-jfkDyYMlCKgVGw.png" /><figcaption>Supporting Older Versions</figcaption></figure><p>So let’s start. Here, I have used <strong>Ubuntu 14.04 LTS</strong>. We’ll see, how to set specific Java version as default. Also we’ll see how to set different Java versions on different Terminal windows, like on one Terminal you are working on Kitkat, at the same time working on Lollipop and Oreo on another two Terminals. So in this case you will need Java 6, 7 and 8, in the same session.</p><p>1Check if you have installed Java already, as shown below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%289%252C9%252C9%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D75px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%25252F%25252F%252520Suppose%252520default%252520java%252520version%252520is%2525207%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520java%252520-version%25250Ajava%252520version%252520%2525221.7.0_181%252522%25250AOpenJDK%252520Runtime%252520Environment%252520%28IcedTea%2525202.6.14%29%252520%287u181-2.6.14-0ubuntu0.2%29%25250AOpenJDK%25252064-Bit%252520Server%252520VM%252520%28build%25252024.181-b01%25252C%252520mixed%252520mode%29%25250A%25250A%25252F%25252F%252520If%252520command%252520is%252520not%252520giving%252520option%25252C%252520then%252520you%252520have%252520to%252520install%252520java%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%289%25252C9%25252C9%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D75px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%2525252F%2525252F%25252520Suppose%25252520default%25252520java%25252520version%25252520is%252525207%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520java%25252520-version%2525250Ajava%25252520version%25252520%252525221.7.0_181%25252522%2525250AOpenJDK%25252520Runtime%25252520Environment%25252520%28IcedTea%252525202.6.14%29%25252520%287u181-2.6.14-0ubuntu0.2%29%2525250AOpenJDK%2525252064-Bit%25252520Server%25252520VM%25252520%28build%2525252024.181-b01%2525252C%25252520mixed%25252520mode%29%2525250A%2525250A%2525252F%2525252F%25252520If%25252520command%25252520is%25252520not%25252520giving%25252520option%2525252C%25252520then%25252520you%25252520have%25252520to%25252520install%25252520java%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e5c261e35233da398e86b7326aa918d/href">https://medium.com/media/1e5c261e35233da398e86b7326aa918d/href</a></iframe><p>If not, then to install Java, we’ll use OpenJDK from a <a href="https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa">PPA repository</a>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2838%252C45%252C50%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%252524%252520sudo%252520add-apt-repository%252520ppa%25253Aopenjdk-r%25252Fppa%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2838%25252C45%25252C50%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%25252524%25252520sudo%25252520add-apt-repository%25252520ppa%2525253Aopenjdk-r%2525252Fppa%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/9524167314df0489ecadad617bcff4f0/href">https://medium.com/media/9524167314df0489ecadad617bcff4f0/href</a></iframe><p>Now there is thumb rule when you are going to install ANY package on Ubuntu. Make sure Server is fully update:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2838%252C45%252C50%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%252524%252520sudo%252520apt-get%252520update%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2838%25252C45%25252C50%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%25252524%25252520sudo%25252520apt-get%25252520update%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/4756bf959e4b51930f4ea6a4888ce821/href">https://medium.com/media/4756bf959e4b51930f4ea6a4888ce821/href</a></iframe><p>Install Java 8 (<em>To install Java 6/7/10/11, just replace numeric digit)</em>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2838%252C45%252C50%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%252524%252520sudo%252520apt-get%252520install%252520openjdk-8-jre%25250A%252524%252520sudo%252520apt-get%252520install%252520openjdk-8-jdk%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2838%25252C45%25252C50%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%25252524%25252520sudo%25252520apt-get%25252520install%25252520openjdk-8-jre%2525250A%25252524%25252520sudo%25252520apt-get%25252520install%25252520openjdk-8-jdk%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd7d93852a1b277e2ce33630a1bb24e4/href">https://medium.com/media/dd7d93852a1b277e2ce33630a1bb24e4/href</a></iframe><p>If you wish to use Oracle Java, use following commands:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2838%252C45%252C50%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%252524%252520sudo%252520add-apt-repository%252520ppa%25253Awebupd8team%25252Fjava%25250A%252524%252520sudo%252520apt-get%252520update%25250A%252524%252520sudo%252520apt-get%252520install%252520java-common%252520oracle-java8-installer%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2838%25252C45%25252C50%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%25252524%25252520sudo%25252520add-apt-repository%25252520ppa%2525253Awebupd8team%2525252Fjava%2525250A%25252524%25252520sudo%25252520apt-get%25252520update%2525250A%25252524%25252520sudo%25252520apt-get%25252520install%25252520java-common%25252520oracle-java8-installer%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/e936c6e92040cb067651cc222f5974c6/href">https://medium.com/media/e936c6e92040cb067651cc222f5974c6/href</a></iframe><p>Now check list of installed Java versions on your machine:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2835%252C40%252C43%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D29px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%25252F%25252F%252520Simply%252520show%252520list%252520of%252520installed%252520versions%252520in%252520single%252520line%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520update-alternatives%252520--list%252520java%25250A%25252Fusr%25252Flib%25252Fjvm%25252Fjava-6-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%25250A%25252Fusr%25252Flib%25252Fjvm%25252Fjava-7-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%25250A%25252Fusr%25252Flib%25252Fjvm%25252Fjava-8-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%25250A%25250A%25252F%25252F%252520To%252520see%252520information%252520like%25253B%252520current%252520default%252520Java%252520version%25252C%25250A%25252F%25252F%252520all%252520installed%252520Java%252520versions%252520with%252520there%252520location%252520details%25252C%252520best%252520version%252520etc...%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520update-alternatives%252520--display%252520java%25250Ajava%252520-%252520manual%252520mode%25250A%252520%252520link%252520currently%252520points%252520to%252520%25252Fusr%25252Flib%25252Fjvm%25252Fjava-7-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%25250A%25252Fusr%25252Flib%25252Fjvm%25252Fjava-6-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%252520-%252520priority%2525201061%25250A%252520%252520slave%252520java.1.gz%25253A%252520%25252Fusr%25252Flib%25252Fjvm%25252Fjava-6-openjdk-amd64%25252Fjre%25252Fman%25252Fman1%25252Fjava.1.gz%25250A%25252Fusr%25252Flib%25252Fjvm%25252Fjava-7-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%252520-%252520priority%2525201071%25250A%252520%252520slave%252520java.1.gz%25253A%252520%25252Fusr%25252Flib%25252Fjvm%25252Fjava-7-openjdk-amd64%25252Fjre%25252Fman%25252Fman1%25252Fjava.1.gz%25250A%25252Fusr%25252Flib%25252Fjvm%25252Fjava-8-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%252520-%252520priority%2525201069%25250A%252520%252520slave%252520java.1.gz%25253A%252520%25252Fusr%25252Flib%25252Fjvm%25252Fjava-8-openjdk-amd64%25252Fjre%25252Fman%25252Fman1%25252Fjava.1.gz%25250ACurrent%252520%2527best%2527%252520version%252520is%252520%2527%25252Fusr%25252Flib%25252Fjvm%25252Fjava-7-openjdk-amd64%25252Fjre%25252Fbin%25252Fjava%2527.%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2835%25252C40%25252C43%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D29px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%2525252F%2525252F%25252520Simply%25252520show%25252520list%25252520of%25252520installed%25252520versions%25252520in%25252520single%25252520line%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520update-alternatives%25252520--list%25252520java%2525250A%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-6-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%2525250A%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-7-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%2525250A%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-8-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%2525250A%2525250A%2525252F%2525252F%25252520To%25252520see%25252520information%25252520like%2525253B%25252520current%25252520default%25252520Java%25252520version%2525252C%2525250A%2525252F%2525252F%25252520all%25252520installed%25252520Java%25252520versions%25252520with%25252520there%25252520location%25252520details%2525252C%25252520best%25252520version%25252520etc...%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520update-alternatives%25252520--display%25252520java%2525250Ajava%25252520-%25252520manual%25252520mode%2525250A%25252520%25252520link%25252520currently%25252520points%25252520to%25252520%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-7-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%2525250A%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-6-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%25252520-%25252520priority%252525201061%2525250A%25252520%25252520slave%25252520java.1.gz%2525253A%25252520%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-6-openjdk-amd64%2525252Fjre%2525252Fman%2525252Fman1%2525252Fjava.1.gz%2525250A%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-7-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%25252520-%25252520priority%252525201071%2525250A%25252520%25252520slave%25252520java.1.gz%2525253A%25252520%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-7-openjdk-amd64%2525252Fjre%2525252Fman%2525252Fman1%2525252Fjava.1.gz%2525250A%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-8-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%25252520-%25252520priority%252525201069%2525250A%25252520%25252520slave%25252520java.1.gz%2525253A%25252520%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-8-openjdk-amd64%2525252Fjre%2525252Fman%2525252Fman1%2525252Fjava.1.gz%2525250ACurrent%25252520%27best%27%25252520version%25252520is%25252520%27%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-7-openjdk-amd64%2525252Fjre%2525252Fbin%2525252Fjava%27.%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a2b7fb8527a02d2e9e7b5fa145752bc/href">https://medium.com/media/7a2b7fb8527a02d2e9e7b5fa145752bc/href</a></iframe><p>2Change/set default Java version for machine:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2835%252C40%252C43%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3D%25252F%25252F%252520Suppose%252520default%252520java%252520version%252520is%2525207%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520java%252520-version%25250Ajava%252520version%252520%2525221.7.0_181%252522%25250AOpenJDK%252520Runtime%252520Environment%252520%28IcedTea%2525202.6.14%29%252520%287u181-2.6.14-0ubuntu0.2%29%25250AOpenJDK%25252064-Bit%252520Server%252520VM%252520%28build%25252024.181-b01%25252C%252520mixed%252520mode%29%25250A%25250A%25252F%25252F%252520Now%252520you%252520want%252520to%252520change%252520it%252520to%2525208.%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520sudo%252520nano%252520%7E%25252F.bashrc%25250A%25252F%25252F%252520It%252520could%252520be%252520bash%252520or%252520bashrc%252520or%252520any%252520other%252520file%25252C%252520as%252520you%252520have%252520set%25250A%25252F%25252F%252520in%252520bashrc%252520file%25253B%252520search%252520JAVA_HOME%25252C%252520create%252520if%252520variable%252520doesn%2527t%252520exist%25250A%25252F%25252F%252520Update%252520JAVA_HOME%252520and%252520add%252520it%252520to%252520PATH.%252520If%252520not%252520added%252520previously%25252C%252520you%252520can%252520set%252520default%252520here%25250A%25253D%25253D%25253D%25253E%25250A%252520%252520%252520%252520%252523AndroidDev%252520PATH%25250A%252520%252520%252520%252520export%252520JAVA_HOME%25253D%25252Fusr%25252Flib%25252Fjvm%25252Fjava-8-openjdk-amd64%25252Fbin%25252F%25250A%252520%252520%252520%252520export%252520PATH%25253D%252524JAVA_HOME%25253A%252524PATH%25250A%25250A%25252F%25252F%252520To%252520take%252520effect%252520without%252520shutdown%25252C%252520load%252520the%252520file%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520source%252520%7E%25252F.bashrc%25250A%25250A%25252F%25252F%252520Check%252520Java%252520version%252520again%25252C%252520you%252520will%252520see%252520new%252520version%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520java%252520-version%25250Aopenjdk%252520version%252520%2525221.8.0_171%252522%25250AOpenJDK%252520Runtime%252520Environment%252520%28build%2525201.8.0_171-8u171-b11-2%7E14.04-b11%29%25250AOpenJDK%25252064-Bit%252520Server%252520VM%252520%28build%25252025.171-b11%25252C%252520mixed%252520mode%29%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520%26es%3D1x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2835%25252C40%25252C43%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3D%2525252F%2525252F%25252520Suppose%25252520default%25252520java%25252520version%25252520is%252525207%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520java%25252520-version%2525250Ajava%25252520version%25252520%252525221.7.0_181%25252522%2525250AOpenJDK%25252520Runtime%25252520Environment%25252520%28IcedTea%252525202.6.14%29%25252520%287u181-2.6.14-0ubuntu0.2%29%2525250AOpenJDK%2525252064-Bit%25252520Server%25252520VM%25252520%28build%2525252024.181-b01%2525252C%25252520mixed%25252520mode%29%2525250A%2525250A%2525252F%2525252F%25252520Now%25252520you%25252520want%25252520to%25252520change%25252520it%25252520to%252525208.%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520sudo%25252520nano%25252520%7E%2525252F.bashrc%2525250A%2525252F%2525252F%25252520It%25252520could%25252520be%25252520bash%25252520or%25252520bashrc%25252520or%25252520any%25252520other%25252520file%2525252C%25252520as%25252520you%25252520have%25252520set%2525250A%2525252F%2525252F%25252520in%25252520bashrc%25252520file%2525253B%25252520search%25252520JAVA_HOME%2525252C%25252520create%25252520if%25252520variable%25252520doesn%27t%25252520exist%2525250A%2525252F%2525252F%25252520Update%25252520JAVA_HOME%25252520and%25252520add%25252520it%25252520to%25252520PATH.%25252520If%25252520not%25252520added%25252520previously%2525252C%25252520you%25252520can%25252520set%25252520default%25252520here%2525250A%2525253D%2525253D%2525253D%2525253E%2525250A%25252520%25252520%25252520%25252520%25252523AndroidDev%25252520PATH%2525250A%25252520%25252520%25252520%25252520export%25252520JAVA_HOME%2525253D%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-8-openjdk-amd64%2525252Fbin%2525252F%2525250A%25252520%25252520%25252520%25252520export%25252520PATH%2525253D%25252524JAVA_HOME%2525253A%25252524PATH%2525250A%2525250A%2525252F%2525252F%25252520To%25252520take%25252520effect%25252520without%25252520shutdown%2525252C%25252520load%25252520the%25252520file%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520source%25252520%7E%2525252F.bashrc%2525250A%2525250A%2525252F%2525252F%25252520Check%25252520Java%25252520version%25252520again%2525252C%25252520you%25252520will%25252520see%25252520new%25252520version%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520java%25252520-version%2525250Aopenjdk%25252520version%25252520%252525221.8.0_171%25252522%2525250AOpenJDK%25252520Runtime%25252520Environment%25252520%28build%252525201.8.0_171-8u171-b11-2%7E14.04-b11%29%2525250AOpenJDK%2525252064-Bit%25252520Server%25252520VM%25252520%28build%2525252025.171-b11%2525252C%25252520mixed%25252520mode%29%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520%26es%3D1x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/b02319e26ab0fab174144e7650e382b5/href">https://medium.com/media/b02319e26ab0fab174144e7650e382b5/href</a></iframe><p>3Now, you are having more than one versions of Java on your machine. Out of it, one is your default Java version and you want to change it to other version, <strong>that too just for current session without modifying default version</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%287%252C8%252C8%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D54px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3DBhavana%252540Ubuntu%25253A%7E%252524%252520java%252520-version%25250Aopenjdk%252520version%252520%2525221.8.0_171%252522%25250AOpenJDK%252520Runtime%252520Environment%252520%28build%2525201.8.0_171-8u171-b11-2%7E14.04-b11%29%25250AOpenJDK%25252064-Bit%252520Server%252520VM%252520%28build%25252025.171-b11%25252C%252520mixed%252520mode%29%25250A%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520sudo%252520update-alternatives%252520--config%252520java%25250A%25255Bsudo%25255D%252520password%252520for%252520Bhavana%25253A%252520%25250A%25250A%25252F%25252F%252520Select%252520your%252520desired%252520java%252520version.%252520In%252520my%252520case%252520it%2527s%252520java%2525207%25250A%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520java%252520-version%25250Ajava%252520version%252520%2525221.7.0_181%252522%25250AOpenJDK%252520Runtime%252520Environment%252520%28IcedTea%2525202.6.14%29%252520%287u181-2.6.14-0ubuntu0.2%29%25250AOpenJDK%25252064-Bit%252520Server%252520VM%252520%28build%25252024.181-b01%25252C%252520mixed%252520mode%29%25250A%25250ABhavana%252540Ubuntu%25253A%7E%252524%25250A%25250A%25252F%25252FTo%252520update%252520javac%25252C%252520use%252520below%252520commands%252520and%252520follow%252520same%252520procedure%252520as%252520above%25250A%25252F%25252F%252524%252520sudo%252520update-alternatives%252520--config%252520javac%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%287%25252C8%25252C8%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D54px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3DBhavana%25252540Ubuntu%2525253A%7E%25252524%25252520java%25252520-version%2525250Aopenjdk%25252520version%25252520%252525221.8.0_171%25252522%2525250AOpenJDK%25252520Runtime%25252520Environment%25252520%28build%252525201.8.0_171-8u171-b11-2%7E14.04-b11%29%2525250AOpenJDK%2525252064-Bit%25252520Server%25252520VM%25252520%28build%2525252025.171-b11%2525252C%25252520mixed%25252520mode%29%2525250A%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520sudo%25252520update-alternatives%25252520--config%25252520java%2525250A%2525255Bsudo%2525255D%25252520password%25252520for%25252520Bhavana%2525253A%25252520%2525250A%2525250A%2525252F%2525252F%25252520Select%25252520your%25252520desired%25252520java%25252520version.%25252520In%25252520my%25252520case%25252520it%27s%25252520java%252525207%2525250A%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520java%25252520-version%2525250Ajava%25252520version%25252520%252525221.7.0_181%25252522%2525250AOpenJDK%25252520Runtime%25252520Environment%25252520%28IcedTea%252525202.6.14%29%25252520%287u181-2.6.14-0ubuntu0.2%29%2525250AOpenJDK%2525252064-Bit%25252520Server%25252520VM%25252520%28build%2525252024.181-b01%2525252C%25252520mixed%25252520mode%29%2525250A%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%2525250A%2525250A%2525252F%2525252FTo%25252520update%25252520javac%2525252C%25252520use%25252520below%25252520commands%25252520and%25252520follow%25252520same%25252520procedure%25252520as%25252520above%2525250A%2525252F%2525252F%25252524%25252520sudo%25252520update-alternatives%25252520--config%25252520javac%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/098e26def81588dcd50731dd625fe8aa/href">https://medium.com/media/098e26def81588dcd50731dd625fe8aa/href</a></iframe><p>4 What if you want two (or may be 3,4,5…) different java versions for same session!! Like on one terminal you want to build Kitkat and on other terminal you want to work on Oreo and on third terminal you want to build module of Lollipop!!!!</p><p>Try following thing on different terminal.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%287%252C8%252C8%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D54px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3DBhavana%252540Ubuntu%25253A%7E%252524%252520update-alternatives%252520--list%252520java%25250A%25252F%25252F%252520Output%252520will%252520be%25253A%252520List%252520of%252520all%252520installed%252520Java%252520versions%25250A%25250A%25252F%25252F%252520Copy%252520path%252520of%252520Java%2525207%252520and%252520add%252520it%252520to%252520PATH%252520variable%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520export%252520PATH%25253D%25252Fusr%25252Flib%25252Fjvm%25252Fjava-7-openjdk-amd64%25252Fjre%25252Fbin%25253A%252524PATH%25250A%25252F%25252F%252520Now%252520for%252520this%252520current%252520window%25252C%252520Java%252520version%252520will%252520be%2525207%25250A%25250A%25252F%25252F%252520Open%252520second%252520Terminal%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520export%252520PATH%25253D%25252Fusr%25252Flib%25252Fjvm%25252Fjava-8-openjdk-amd64%25252Fjre%25252Fbin%25253A%252524PATH%25250A%25252F%25252F%252520For%252520this%252520second%252520Terminal%25252C%252520Java%252520version%252520will%252520be%2525208%25250A%25250A%25252F%25252F%252520Open%252520third%252520terminal%25250ABhavana%252540Ubuntu%25253A%7E%252524%252520export%252520PATH%25253D%25252Fusr%25252Flib%25252Fjvm%25252Fjava-6-openjdk-amd64%25252Fjre%25252Fbin%25253A%252524PATH%25250A%25252F%25252F%252520For%252520this%252520third%252520Terminal%25252C%252520Java%252520version%252520will%252520be%2525206%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%287%25252C8%25252C8%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D54px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3DBhavana%25252540Ubuntu%2525253A%7E%25252524%25252520update-alternatives%25252520--list%25252520java%2525250A%2525252F%2525252F%25252520Output%25252520will%25252520be%2525253A%25252520List%25252520of%25252520all%25252520installed%25252520Java%25252520versions%2525250A%2525250A%2525252F%2525252F%25252520Copy%25252520path%25252520of%25252520Java%252525207%25252520and%25252520add%25252520it%25252520to%25252520PATH%25252520variable%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520export%25252520PATH%2525253D%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-7-openjdk-amd64%2525252Fjre%2525252Fbin%2525253A%25252524PATH%2525250A%2525252F%2525252F%25252520Now%25252520for%25252520this%25252520current%25252520window%2525252C%25252520Java%25252520version%25252520will%25252520be%252525207%2525250A%2525250A%2525252F%2525252F%25252520Open%25252520second%25252520Terminal%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520export%25252520PATH%2525253D%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-8-openjdk-amd64%2525252Fjre%2525252Fbin%2525253A%25252524PATH%2525250A%2525252F%2525252F%25252520For%25252520this%25252520second%25252520Terminal%2525252C%25252520Java%25252520version%25252520will%25252520be%252525208%2525250A%2525250A%2525252F%2525252F%25252520Open%25252520third%25252520terminal%2525250ABhavana%25252540Ubuntu%2525253A%7E%25252524%25252520export%25252520PATH%2525253D%2525252Fusr%2525252Flib%2525252Fjvm%2525252Fjava-6-openjdk-amd64%2525252Fjre%2525252Fbin%2525253A%25252524PATH%2525250A%2525252F%2525252F%25252520For%25252520this%25252520third%25252520Terminal%2525252C%25252520Java%25252520version%25252520will%25252520be%252525206%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/e064daa6710d4041b40d1c272ae6fda4/href">https://medium.com/media/e064daa6710d4041b40d1c272ae6fda4/href</a></iframe><p>You got different Java versions on different Terminals, in one session ✌</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*SXBX7wXyntcOc4VTas8yKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*_AMe2NbaVbSI3f2O70WN8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*GTgkElACvzawHd-axRApPQ.png" /></figure><blockquote>Extra; before starting any AOSP build, make sure you are pointing to correct JDK:</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2838%252C45%252C50%252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26code%3DBhavana%252540Ubuntu%25253A%7E%252524%252520java%252520-version%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%26es%3D2x%26wm%3Dfalse&amp;url=https%3A%2F%2Fcarbon.now.sh%2Fembed%2F%3Fbg%3Drgba%2838%25252C45%25252C50%25252C1%29%26t%3D3024-night%26wt%3Dnone%26l%3Dtext%25252Fx-csrc%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dtrue%26pv%3D0px%26ph%3D0px%26ln%3Dfalse%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26code%3DBhavana%25252540Ubuntu%2525253A%7E%25252524%25252520java%25252520-version%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%26es%3D2x%26wm%3Dfalse&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=now" width="1024" height="473" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd52fff56bdd3bc7064a2a0dfbf899a3/href">https://medium.com/media/dd52fff56bdd3bc7064a2a0dfbf899a3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cee69c3f93d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>