Check dir path before updating permissions. am: 58a6452ed4 am: 9976a26dd7 am: 2729464436 am: 05b7eb8f68 am: 8d60d5487e

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

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