I want to remove some features from my settings app (device is rooted)
I used adb shell pm disable 'com.android.settings/.Settings\$SecuritySettingsActivity' to disable security settings and it worked. However, I am unable to find the activity name to disable backup and factory reset option.
Here is the AndroidManifest.xml of the settings.apk (I'm using LineageOS)
So far I have tried
adb shell pm disable 'com.android.settings/.BackupSettingsActivity'
and
adb shell pm disable 'com.android.settings/.Settings\$PrivacySettingsActivity'
Both of which did absolutely nothing. I am still able to open backup and reset option from settings.
When I try to launch the said activities
adb shell am start -n com.android.settings/.BackupSettingsActivity
It errors out at saying BAD COMPONENT
while these two commands open the back and reset activity that I want to disable
adb shell am start -a android.settings.BACKUP_AND_RESET_SETTINGS
adb shell am start -S 'com.android.settings/.Settings\$PrivacySettingsActivity'