<?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 Sahil Jain on Medium]]></title>
        <description><![CDATA[Stories by Sahil Jain on Medium]]></description>
        <link>https://medium.com/@sahil.jain_5980?source=rss-4a8082a683bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FFLuR2FMtAk9kJiNIfr8pQ.jpeg</url>
            <title>Stories by Sahil Jain on Medium</title>
            <link>https://medium.com/@sahil.jain_5980?source=rss-4a8082a683bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:24:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sahil.jain_5980/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[Scaling Android Apps with Gradle! (Having different Source Sets)- Part 2]]></title>
            <link>https://tech.olx.com/scaling-android-apps-with-gradle-having-different-source-sets-part-2-e45c05c15313?source=rss-4a8082a683bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e45c05c15313</guid>
            <category><![CDATA[android-build-variant]]></category>
            <category><![CDATA[configuration]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[productflavor]]></category>
            <category><![CDATA[gradle]]></category>
            <dc:creator><![CDATA[Sahil Jain]]></dc:creator>
            <pubDate>Tue, 31 May 2022 12:08:22 GMT</pubDate>
            <atom:updated>2022-10-25T10:54:41.618Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*4XZB9QZ7Py9QDds86ng5nw.png" /></figure><p>This is in continuation to <a href="https://medium.com/p/3ae308b93ce2">Part 1</a> of the two-part series on <strong>“Scaling Android Apps with Gradle!”</strong>. Whereas <a href="https://medium.com/p/3ae308b93ce2">Part 1</a> describes configuring android builds with “Build Types”, “Product Flavors” and “gradle.properties”, Part 2 focuses on advanced aspects of gradle by fine-tuning the android builds by configuring different <strong><em>“Source sets” </em></strong>in your codebase. Although I have tried to make this post-self-sufficient, I would still recommend going through <a href="https://medium.com/p/3ae308b93ce2">Part 1</a> to get a better context and background behind this post :).</p><p><a href="https://medium.com/@sahil.jain_5980/scaling-android-apps-using-gradle-buildtypes-productflavors-gradle-properties-part-1-3ae308b93ce2">Scaling Android Apps using Gradle (BuildTypes, ProductFlavors, gradle.properties)- Part 1</a></p><h3>Configuring different Source Set(s)</h3><p>The majority of us normally deploy code into the “<em>main/”</em> (<em>“test/” and “androidTest/”</em>) source set that defines the code and resources which is to be shared among all the build variants. Additionally, Gradle also allows the creation of different source sets (apart from <em>“main/”</em>, <em>“test/”</em> and <em>“androidTest/”</em>) and controls exactly what files Gradle compiles and packages for specific build types, product flavors, and build variants. This is an extremely powerful feature that allows more flexibility in configuring the builds which otherwise couldn&#39;t have been possible by defining Gradle properties in <em>“buildTypes{}”</em> or <em>“productFlavours{}”</em> described in <a href="https://medium.com/p/3ae308b93ce2">Part 1</a>. Below table shows how code can be organized into different source sets :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KneZLhvkNJtyF7_2yFrFPA.png" /><figcaption>Different source sets based on buildType, productFlavor, and buildVariant</figcaption></figure><h3>Key Advantages</h3><ul><li>Helps organize files and resources that Gradle should use when building certain build variants of your app.</li><li>Compile only source code and resources required for a particular variant.</li></ul><h3>Building with different source sets</h3><p>While compiling code and resources belonging to different source sets, it’s highly probable that two or more source sets contain resources with the same name. In case this happens, Gradle considers the below priority when deciding which file to use.</p><blockquote>build variant (Highest priority) &gt; build type &gt; product flavor &gt; main source set &gt; library dependencies (Lowest priority)</blockquote><p>Along with the above priority order Gradle considers the below rules while compiling any build variant:</p><blockquote>All Source code in the <strong><em>java/ </em></strong>directories are compiled together to generate a single output. In case <em>Gradle</em> encounters two or more source-set directories that have the same Java class name, It throws a <strong>“Duplicate class”</strong> error.</blockquote><h3>Configuring source set based on “build types”</h3><p>We can configure source sets based on build types like <em>“debug”</em> or <em>“release”</em> declared in the module level Gradle file. Eg. At OLX we use popular libraries like “<a href="https://github.com/ChuckerTeam/chucker">Chucker</a>” and “<a href="https://github.com/square/leakcanary">LeakCanary</a>” which are super helpful during the development lifecycle and help in debugging and evading bugs and thereby enhancing the quality of the code before it is shipped to production. Below is the code snippet of how we declare these two dependencies in Gradle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LL-3wAWDn-sa0mkpnGyVBQ.png" /><figcaption>Declaring “leakCanary” lib for “debug” mode only</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_-WnNNBOteoz-M1gVcy7g.png" /><figcaption>Declaring different “chucker” libs for “debug” and “release” variants</figcaption></figure><p>To access these dependencies from *<em>.java </em>or <em>*.kt </em>files, we need to deploy the controlling code inside <em>“debug/”</em> and <em>“release/”</em> source sets as these dependencies are not available in the <em>“main/”</em> source set. Below is the package structure we need to have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*hWy5ZJu3kNlDkoPw9Im6sQ.png" /><figcaption>Package structure to configure “debug” and “release” source sets</figcaption></figure><p>Below is the code for <em>LibUtil.kt</em> (You can keep any other name as well) inside the “<em>debug/</em>” source set which will be used by Gradle while generating debug build variants.</p><pre><strong>class </strong>LibUtil {</pre><pre>    <strong>companion object </strong>{</pre><pre>        @JvmStatic<br>        <strong>fun </strong>initializeStetho(context: Context) {<br>            Stetho.initializeWithDefaults(context)<br>        }</pre><pre>        @JvmStatic<br>        @JvmOverloads<br>        <strong>fun </strong>initializeLeakCanary(enable: Boolean, appContext: Context) {<br>            <em>logService</em>.log(<strong>&quot;LeakCanary state :: isEnabled -&gt; $</strong>enable<strong>&quot;</strong>)<br>            AppWatcher.<strong>config </strong>= AppWatcher.<strong>config</strong>.copy(enabled = enable)<br>            LeakCanary.<strong>config </strong>= LeakCanary.<strong>config</strong>.copy(dumpHeap = enable, onHeapAnalyzedListener = LeakUploader(appContext))<br>            LeakCanary.showLeakDisplayActivityLauncherIcon(enable)<br>        }</pre><pre>    }<br>}</pre><blockquote><em>“initializeStetho()” </em>method can be invoked from any class or method defined inside “<em>main/” </em>or “debug/” source set. This method will initialise “Stetho” at run time.</blockquote><p>Below is the code for <em>LibUtil.kt</em> inside the “<em>release/”</em> source set which will be used by Gradle while generating release build variants.</p><pre><strong>class </strong>LibUtil {</pre><pre>    <strong>companion object </strong>{</pre><pre>        @JvmStatic<br>        <strong>fun </strong>initializeStetho(context: Context) {<br>        }</pre><pre>        @JvmStatic<br>        @JvmOverloads<br>        <strong>fun </strong>initializeLeakCanary(enable: Boolean = <strong>false</strong>, appContext: Context) {<br>            <em>// This log is added just to suppress kotlin unused variable lint warning and this will never be logger.<br>            </em>logService.log(<strong>&quot;LeakCanary disabled in release build&quot;</strong>)<br>        }</pre><pre>    }<br>}</pre><blockquote>As “chucker” and “leakCanary” dependencies are available only for “debug” source set these cannot be initialised for “release” build variants. Thus “initializeStetho()” and “initializeLeakCanary()” methods are left blank and act as a placeholder methods. These placeholder methods are very much required to be defined inside “release/” source set else the code wont compile.</blockquote><h3>Configuring source set based on “Product Flavours”</h3><p>Similar to configuring source sets based on <em>“buildTypes”</em>, we can create source sets based on <em>“productFlavors”</em>. Having a source set specific to product flavors allows Gradle to package source code and resources required only by a particular flavor apart from the <em>“main/”</em> source set which is shared across all the build variants. Below is how we can declare dependencies available only for selective product flavors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u266c6nKKA_JL3-Jmjzyxw.png" /><figcaption>Declaring flavored dependencies</figcaption></figure><p>Here we have declared <a href="https://firebase.google.com/docs/in-app-messaging">“Firebase In-App Messaging”</a> as a flavored dependency (replace &lt;productFlavor&gt; with the actual flavor defined in your Gradle file). With this Firebase in-app messaging dependency will not be shipped as part of the <em>“main/”</em> source set and can only be accessible for the product flavor it has been defined. Below is the package structure to have code accessing the dependency:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MU4WIBXW8lHEgr_cGDRhkA.png" /><figcaption>A typical package structure to define the source set for a product flavor</figcaption></figure><ol><li><strong><em>AndroidManifest.xml</em></strong>: This is the main Android Manifest that defines all the activities, services, and permissions that are used across the project. The &lt;application&gt; element defined refers to <em>BaseApplication.kt</em></li><li><strong><em>BaseApplication.kt</em></strong><em>:</em> This is the base application file that overrides onCreate() and consists of all application-level stuff that is common across the app for all the build variants.</li><li><strong><em>ProductFlavorApplication.kt</em></strong><em>: </em>This is the application file that is specific to product flavor, extends the BaseApplication.kt, and consists of code only relevant for the build variant referring to product flavor.</li><li><strong><em>AndroidManifest.xml</em></strong><em>: </em>This is specific to only the defined product flavor and defines &lt;application&gt; element which refers to <em>ProductFlavorApplication.kt</em> (instead of <em>BaseApplication.kt</em>). Make sure to add the <strong><em>“tools:replace”</em></strong> attribute with value as <strong><em>“android:name”</em></strong>.This ensures the <em>“mergedManifest” </em>finally compiled by Gradle refers to the application class placed inside “<em>productFlavor/</em>” source set instead of the one placed in <em>“main/”</em> source set</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wFYf4LIP7l0XsHjENE_pIA.png" /><figcaption>AndroidManifest.xml for &lt;productFlavor&gt; source set</figcaption></figure><p>5. <strong><em>firebaseIn-AppMessaging: </em></strong>All the classes or methods that depend directly or indirectly on the <em>“firebase-inappmessaging-display” </em>dependency<em> </em>should go here. All these classes have to be deployed inside the “&lt;productFlavor&gt;” source set else the code won&#39;t compile as it won&#39;t be able to resolve dependencies.</p><h3>Class diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*_Ga2Ix-0K9box7osHXieVg.png" /><figcaption>Class diagram for configuring flavored dependency</figcaption></figure><p>That&#39;s it!! and we are done configuring the source sets based on build types and product flavors. Now we can configure any feature set, app behavior, or app branding by defining different source sets, and that too without losing code readability and flexibility.</p><h3>Summary</h3><p>With this, we end the two-part series on <strong>“Scaling Android Apps with Gradle”</strong>. We learned how Gradle can act as a silver bullet in configuring android apps without adding any code overhead or maintenance havoc. At OLX, we focus on solving business problems through technology and ensuring our android apps remain flexible and scalable enough to cater to the ever-growing business needs.</p><p>Hope you enjoyed reading it and found it helpful ✌️.</p><p>In case of any feedback or queries please post it in the comment section or reach me directly on <a href="https://www.linkedin.com/in/sahil-jain-04618546/">LinkedIn</a> or by <a href="http://sahil.jain@olx.com/">Email</a>. At last, if you found the blog useful don’t forget to hit the clap icon :)</p><p>At last, we are hiring at multiple levels for our Android team. Join and be a part of incredible growth. Visit our <a href="https://careers.olxgroup.com/">OLX careers page</a> to view all the open positions. Wish you luck :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e45c05c15313" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/scaling-android-apps-with-gradle-having-different-source-sets-part-2-e45c05c15313">Scaling Android Apps with Gradle! (Having different Source Sets)- Part 2</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling Android Apps using Gradle (BuildTypes, ProductFlavors, gradle.properties)- Part 1]]></title>
            <link>https://tech.olx.com/scaling-android-apps-using-gradle-buildtypes-productflavors-gradle-properties-part-1-3ae308b93ce2?source=rss-4a8082a683bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ae308b93ce2</guid>
            <category><![CDATA[productflavor]]></category>
            <category><![CDATA[android-build-variant]]></category>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[gradle-properties]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Sahil Jain]]></dc:creator>
            <pubDate>Tue, 31 May 2022 12:00:20 GMT</pubDate>
            <atom:updated>2022-10-26T05:50:37.455Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scaling Android Apps with Gradle! (BuildTypes, ProductFlavors)- Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbjIaxWz-PuIExV6Yr9-YQ.png" /></figure><p>With an increasing feature set and business requirements, modern Android Apps are becoming more complex than ever. OLX is no different than this. OLX operates in multiple markets (with a plan to expand in a few more :) ) and each market has its own defined feature set. It becomes really important and a challenge to make sure the OLX app is configurable and flexible enough to scale to multiple markets with minimal code changes.</p><p>Gradle is a powerful build system that compiles app resources and source code and packages them into APKs or Android App Bundles that one can test, deploy and distribute.</p><p>The below sections give an overview of how we employ gradle capabilities at OLX to configure builds and cater to multiple markets.</p><h3><strong>Build Types</strong></h3><p>Build Types are very helpful in defining properties that gradle can use while building and packaging the app related to the development lifecycle. We use the “debug” build type to configure debug build options like enable debug mode, disable <em>Crashlytics, and sign the app with </em>debug key to create the debug apk or aab. On the other hand, we use the <em>“release”</em> build type to obfuscate the code, shrink the resources and finally sign the build with the release key for distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6J3jPin0nUwlMGSFwQmAQ.png" /><figcaption>“debug” and “release” build types to configure debug and release Build Variants</figcaption></figure><p>Build types are not only limited to <em>“debug”</em> and <em>“release”</em> types. You can define as many build types and configure them accordingly. For eg. the <em>“staging”</em> build type can be configured to point the build to the <em>“Staging”</em> environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GaKz3WYCrfz7NDppJ1WJTQ.png" /><figcaption>“staging” build type to configure staging environment</figcaption></figure><p><em>The “initWith”</em> property allows copying properties from other build types. In this, we initialize our staging build type with “debug” properties, append the application id with “.debugStaging” and change the host endpoint.</p><h3>Product Flavors</h3><p>Defining Product flavors is an excellent way to configure and release different versions of the app without maintaining multiple codebases. This is an extremely powerful feature specifically for organizations working on Whitelabel apps or where the feature set varies from market to market. Product flavors can be customized to use different codes and resources while sharing and reusing the parts that are common to all the versions of the app.</p><p>To begin with, one can define the default attributes in the <em>“defaultConfig{}”</em> block. This is the place to define the base configuration for all the flavors and each flavor can override any of these values in their respective <em>“productFlavors{}”</em> block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GMw2r7CYhGQZH0b-ubPAbw.png" /><figcaption>“defaultConfig” block to define default properties</figcaption></figure><p>You can define default properties like “minSdkVersion”, “targetSdkVersion” and other properties which usually remain unchanged for all the flavors (Although you can override them in case you need to).</p><p>Use <em>“buildConfigField”</em> to define properties that need to be accessed from *.java or *.kt files. In the code snippet above we have defined <em>“SHOW_ADS”</em> and <em>“SMS_COMMUNICATION”</em> as feature flags and configured “false” as the default value.</p><p>In case you want to access the properties from within resource files like strings.xml or AndroidManifest.xml, use <em>“resValue”</em> to define such properties. In the code snippet above we have defined <em>“google_client_id”</em> as a resource value so that it can be accessed from AndroidManifest.xml. Additionally, you can also use conditional expressions to define properties based on certain conditions.</p><p>Now let’s suppose we need to enable “SHOW_ADS” and “SMS_COMMUNICATION” features for a certain version of the app but we want the same default behavior (Disabled by default) for the rest of the versions. We can easily achieve this by creating a separate flavor and overriding the properties as per the needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GeDPdsdL5fzQGffa8nzZxg.png" /><figcaption>“WithAdsEnabled” product flavor to override the default behavior</figcaption></figure><p><em>“WithAdsEnabled”</em> is a flavor defined inside <em>android{}</em> block with “SHOW_ADS” and “SMS_COMMUNICATION” feature flags set as true which override the default properties. “applicationIdSuffix” ensures the build variant for this newly created flavor has <em>“applicationId”</em> with suffix as “.WithAds” and thus ensuring we can publish it as a separate app on PlayStore.</p><p>That&#39;s it!! With this setup, we can configure different build types keeping our codebase flexible, scalable, and readable.</p><h3>Summary</h3><p>With this, we come to an end to the first part of this series where we discovered how at OLX we scale the android app by configuring gradle through different “build types”, “product flavors”. The second part will go a step ahead and talk about how at OLX we fine-tune the gradle by configuring different <em>“source sets”</em> in our codebase as per the build types and product flavors.</p><p>I hope you enjoyed reading it and found it helpful ✌</p><p>Please direct your feedback or queries to the comment section. You can also reach me directly on <a href="https://www.linkedin.com/in/sahil-jain-04618546/">LinkedIn</a> or by <a href="http://sahil.jain@olx.com/">Email</a>. At last, if you found the post useful don’t forget to hit the clap icon more than once :)</p><p>At last, we are hiring at multiple levels for our Android team. Join and be a part of incredible growth. Visit our <a href="https://careers.olxgroup.com/">OLX careers page</a> to view all the open positions.</p><p>I wish you luck :)</p><p><a href="https://tech.olx.com/scaling-android-apps-with-gradle-having-different-source-sets-part-2-e45c05c15313">Scaling Android Apps with Gradle! (Having different Source Sets)- Part 2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ae308b93ce2" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/scaling-android-apps-using-gradle-buildtypes-productflavors-gradle-properties-part-1-3ae308b93ce2">Scaling Android Apps using Gradle (BuildTypes, ProductFlavors, gradle.properties)- Part 1</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling App removal or rejection on PlayStore due to “Impersonation”]]></title>
            <link>https://tech.olx.com/handling-app-removal-or-rejection-on-playstore-due-to-impersonation-9b436eb62d42?source=rss-4a8082a683bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b436eb62d42</guid>
            <category><![CDATA[app-rejection]]></category>
            <category><![CDATA[google-policy]]></category>
            <category><![CDATA[play-store]]></category>
            <category><![CDATA[impersonation]]></category>
            <category><![CDATA[policy-violation]]></category>
            <dc:creator><![CDATA[Sahil Jain]]></dc:creator>
            <pubDate>Tue, 01 Jun 2021 06:00:10 GMT</pubDate>
            <atom:updated>2021-06-01T06:00:10.023Z</atom:updated>
            <content:encoded><![CDATA[<h3>Handling App removal or rejection on Play Store due to “Impersonation”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*y5wtqxLgzUnMRPWahVtnng.jpeg" /></figure><p>Over time Android Ecosystem has evolved multiple folds and hosts ~3 Million apps on Play Store (As per <a href="https://www.statista.com/statistics/266210/number-of-available-applications-in-the-google-play-store/">Statista</a>). For any platform with such a huge app base, it becomes really important to make sure only legitimate apps are published on its platform. To make this happen, whenever an app update is submitted via PlayConsole, Google runs a series of automated tools to make sure none of its policies is violated.</p><p>I am sure if you are an Android developer and have been managing the app publishing for your organization or any of your personal projects, at least once in a lifetime you must have received an email from Google mentioning: <strong><em>“your app update is rejected due to violation of impersonation policy”. </em></strong>The email sent by Google looks something like below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLJkEJZs4bngaADGCJjtcQ.png" /></figure><h3>What is Impersonation?</h3><p>“Any act of intentionally copying another person&#39;s characteristics“ is what Impersonation means :). In the Play Store context, impersonating someone else means anything related to your app that might copy other apps like company name, developer name, entity name, App logo, store listing, etc. Many apps try to mislead users by including certain information which resembles some other famous apps. Doing this is a violation of <a href="https://play.google.com/about/developer-content-policy/">Google Developer policies</a>. To read more on impersonation examples follow this <a href="https://support.google.com/googleplay/android-developer/answer/9888374/">link</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPtu4zWNtuAE9IGBUlHCBA.png" /><figcaption>Example: App titles and icons that are so similar to those of existing products or services that users may be misled</figcaption></figure><h3>How to make your app available on the Play Store after getting removed or rejected?</h3><h4>Make sure you are not violating any policy</h4><p>Now that we are well versed with what impersonation means, it’s time to work on how to make your app pass the Play Store <a href="https://support.google.com/googleplay/android-developer/answer/9888374/">Impersonation</a> policy! Follow the below thumb rules to find out where you are violating the policy.</p><ul><li>Read through Play Store <a href="https://support.google.com/googleplay/android-developer/answer/9888374/">Impersonation</a> policy for details and examples of policy violations and see if you are violating any of them.</li><li>Remove any content in your app’s store listing that could mislead users, or imply a non-existent endorsement or relationship with another brand. This is typically content from third parties that you do not own or have the right to use, or content that is so similar to another developer’s content that users are likely to be misled. for eg., if you are using Paytm Wallet in your app and you use Paytm Logo in your store listing or anywhere in your app logo then it’s a violation of <a href="https://support.google.com/googleplay/android-developer/answer/9888374/">Impersonation</a> policy.</li><li>Double-check that your app is compliant with all other <a href="https://play.google.com/about/developer-content-policy/">Developer Program Policies</a>.</li></ul><p>If your app is violating any of the above principles, it’s time to rectify it, update your app, and submit it for another review.</p><p>If you feel the information listed in your app is 100% genuine and your app is not violating any <a href="https://support.google.com/googleplay/android-developer/answer/9888374/">Impersonation</a> policy then <strong>you can appeal to Google directly to relook at your case. See the section below on how to appeal to Google.</strong></p><h4>Appeal an app removal or rejection</h4><p>It can be very likely that you are not impersonating any other app but still Google systems identified you as a culprit and rejected your app update or removed your app from Play Store. Most likely this happens in the case of organizations that are hosting more than one app on a single account with the same codebase. Let me give you an example. Let’s suppose your organization is an MNC and has a presence in multiple countries. To cater to multiple countries with different configurations you just created multiple flavors in your codebase and introduced changes like app logo, language support, configurations to support multiple flavors. When you try to publish these apk’s or .aab files for these different flavors which all together have separate apps created under a single Play Store account with almost similar logos, store listing, company name, etc, you run into a risk of violating impersonation policy. This is because all of your apps on the Play Store resemble each other in some way.</p><p>So finally if you are a victim of the above-mentioned case, <strong><em>appealing to Google will act as a silver bullet. Copy the below link in your arsenal and bookmark it for future use.</em></strong></p><p><strong><em>Link to Appeal an app removal or rejection: </em></strong><a href="https://support.google.com/googleplay/android-developer/contact/emailappeals?aid=com.app.id&amp;t=7508897&amp;ts=SR&amp;email=registeredemail%40gmail.com&amp;hl=en-GB">https://support.google.com/googleplay/android-developer/contact/emailappeals?aid=com.app.id&amp;t=7508897&amp;ts=SR&amp;email=registeredemail%40gmail.com&amp;hl=en-GB</a></p><p>Google Appeal form for app removal or rejection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kI0_DoWFukhfyg-9ej_kmA.png" /><figcaption>Google Appeal form for app removal or rejection.</figcaption></figure><p>The details required while raising appeal to Google include :</p><ul><li><strong>Primary Email address</strong>: This should be the same email address through which you have registered your Play Store account.</li><li><strong>App Package name</strong>: Mention the unique app id for your app which got rejected or removed from the Play Store.</li><li><strong>Attachments (Optional)</strong>: Attach any proof in support of your claim. This is optional.</li><li><strong>Reason</strong>: Finally mention the reason why you think you are not violating the <a href="https://support.google.com/googleplay/android-developer/answer/9888374/">Impersonation</a> policy.</li></ul><p>Once you submit the appeal form, wait for the Google support team to review your case, and most probably Play Store team will reply within 1–2 business days (This can depend on the complexity of your case as well as the volume of requests received by Google).</p><p>PS: Moreover the <a href="https://support.google.com/googleplay/android-developer/contact/emailappeals?aid=com.app.id&amp;t=7508897&amp;ts=SR&amp;email=registeredemail%40gmail.com&amp;hl=en-GB">Google Appeal Form for app removal or rejection</a> can be used not only for violating impersonation policy but rather for any of the policy violations your app got rejected or removed.</p><h4>Resubmit your app for approval</h4><p>Once Google reviews your case and considers it to be a genuine one, you will receive an email from the Play Store team to resubmit your app for approval.</p><p>To resubmit your app you don’t need to bump the app version and create a new apk or .aab file. Follow the below simple steps to resubmit your app :</p><ol><li>Sign in to your <a href="https://play.google.com/apps/publish/">Play Console</a>.</li><li>Select your app.</li><li>Select <strong>Store presence</strong> &gt; <strong>Main store listing</strong>.</li><li>Click <strong>Save</strong>.</li></ol><p>If the Save button is grayed out, you can make a minor change to your store listing to activate the button. For example, add a space after your app title and then delete it. Once the button turns blue, you can submit your update.</p><p>Please note that after you submit an update to an existing app on your Play Console, it can take some time for your app to be processed for standard publishing on Google Play. To check your submission status, you may follow the steps below:</p><ol><li>Sign in to your <a href="https://play.google.com/apps/publish/">Play Console</a>.</li><li>Select your app.</li><li>On the left menu, select <strong>Release</strong> &gt; <strong>Production or Testing</strong> (select the track(s) you have released)</li></ol><p>That&#39;s it. Congratulations!! your app is back on Play Store and you are ready to publish any further updates to your app.</p><h3>Personal Note</h3><p>When I first faced this issue, I was in midst of a sea with no help around, even Googling seemed to be failed :). Today I am writing this article to share my learnings with you on how to handle app rejection or removal from Play Store and publish it back in minimal turnout time. Hope you enjoyed reading it and found it helpful ✌️.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b436eb62d42" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/handling-app-removal-or-rejection-on-playstore-due-to-impersonation-9b436eb62d42">Handling App removal or rejection on PlayStore due to “Impersonation”</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>