Google blocks hidden APIs via hidden-api-blacklist . But ADB shell (debug builds) can bypass: settings put global hidden_api_policy 1 (0=disabled, 1=just warn, 2=strict)
if [ $? -eq 0 ]; then adb shell input keyevent KEYCODE_ENTER fi adb app control extended key best
The extended key is a feature in ADB that enables advanced control over apps. It allows you to send additional key events to an app, simulating user interactions. With the extended key, you can: Google blocks hidden APIs via hidden-api-blacklist
adb shell pm hide com.samsung.android.video mimicking a pull-to-refresh gesture.)
adb shell pm enable com.example.bloatware
(Swipes from the middle-bottom of the screen upwards, mimicking a pull-to-refresh gesture.)