Merge "Check dir path before updating permissions." into sc-v2-dev am: 9d158f2adf am: 9d1b03c77c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/19734284

Change-Id: I584eac83e4f44bcf88a8da12488794c7857529dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>