title: Display density and size reduced by Samsung Game Optimization
body: <p>I have a free and paid version of the same android app.
  Some users (always using Samsung tablets) reported that the camera preview was stretched with one of the apps, and OK with the other.</p>
  
  <p>I managed to find a Samsung Tab A6 to reproduce the problem.
  I first realized that the difference was that one of the app was using a different display density, width and height.
  Then, using "adb logcat", I saw logs about requests to <a href="https://service.game-mode.net/gamemode/v3/packages/" rel="nofollow noreferrer">https://service.game-mode.net/gamemode/v3/packages/</a> with my app pakage name as a parameter. Other logs for same PID indicated: "SELinux : SELinux: seapp_context_lookup: seinfo=platform, level=s0:c512,c768, pkgname=com.enhance.gameservice". From what I saw on the net, "com.enhance.gameservice" is a Samsung Game Optimization service.</p>
  
  <p>So far, I have found 3 ways to fix the problem, but none of them can be a solution for my users. The problem disappears if:</p>
  
  <ul>
  <li>I change the applicationId in the app/build.gradle file (the app becomes unknown to com.enhance.gameservice)</li>
  <li>I switch off all internet access during the installation through USB of the apk</li>
  <li>I remove the service with command "adb shell cmd package uninstall -k –user 0 com.enhance.gameservice" (the package comes back automatically after some times)</li>
  </ul>
  
  <p>My problem looks related to <a href="https://stackoverflow.com/questions/32620373/galaxy-note-5-density-reduced-automatically/38271488#38271488">Galaxy Note 5: Density Reduced Automatically</a>. Unfortunately, Game Tuner app which is mentioned in the accepted answer, is not available on all Samsung tablets (it is not available on my Galaxy Tab A6).</p>
  
  <p>Is there a way to get rid of the interactions with the Samsung Game Optimization service? Note that my app is not a game.</p>