Check dir path before updating permissions. am: ff2cc0cede am: 0976bad2f9 am: 2053f59c1f am: a4b0c0a24f am: b3d2680a65 am: 76534cf15d am: 3ee694c457

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

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