Check dir path before updating permissions. am: 018bae5e8e am: d575656259 am: 94d03e8e52

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

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