Check dir path before updating permissions. am: 166dbaf293

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

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