SharedPreferences not being removed on user uninstalling application
<p>Has anyone encountered this issue on a Nexus 6P device? I am only getting this issue on a Nexus 6P (running Google Fi).</p>

<p>When I install the app there is a key for <code>userIsLoggedIn</code> inside <code>SharedPreferences</code>.</p>

<p>This block:</p>

<pre><code>boolean userIsLoggedIn  = SharedPrefs.userIsLoggedIn(this);

// Then in another class...

 public static boolean userIsLoggedIn(Context context) {
    // For users updating apps, if the previous key-value is a string, convert it to boolean
    try {
        return context.getSharedPreferences(LOGIN_FILE, Context.MODE_PRIVATE)
                .getBoolean(USER_LOGGED_IN, false);
    } catch (ClassCastException e) {
        Logger.e(TAG, e.getMessage());
        context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE)
                .edit()
                .putBoolean(USER_LOGGED_IN, false)
                .commit();
        return context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE)
                .getBoolean(USER_LOGGED_IN, false);
    }
}
</code></pre>

<p>Now this should return <code>false</code> on a new uninstall but debugging this on a fresh install I get the following on App Startup.</p>

<p><a href="https://i.stack.imgur.com/ab43v.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ab43v.png" alt="enter image description here"></a></p>

<p>I also running Proguard if that matters, when running the device on a non-proguard enabled APK it runs ok. Running proguard on any other devices runs fine.</p>