Avoid unnecessary smaps logic during app compaction am: 3536bf7b55

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1730081

Change-Id: I589e0fc4fb0377d03b1cccc0d0da55f799f2571f