While developing an Android app targeting all versions above 4.1, I observed that uninstalling my app and installing it again does not clear its data.
The app is d
It's because Android 6 has automatic backup. You need to tune android:allowBackup and android:fullBackupContent in your manifest tag if you don't want your data backed up or if you want to include or exclude some resources. It's not a bug.
android:allowBackup
android:fullBackupContent
More about AutoBackup on Android here.