Check dir path before updating permissions. am: ff2cc0cede am: 0976bad2f9 am: 2053f59c1f am: 6f2a319804

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

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