Check dir path before updating permissions. am: 166dbaf293 am: 0dfe0bc8f8

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

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