How to disable air command on Android devices?

Hi, I developed an application using a stylus (e.g. Samsung pen). As you know, when we press the button on the stylus, an “Air command” (pop-up window) appears. My goal: " Overriding the air command in my user-defined functions "

First, I started with * SpenHoverListener (supported by the Samsung Spen SDK 5.0) and redefined the onHover function as follows.

private SpenHoverListener mHoverListener = new SpenHoverListener() {
    @Override
    public boolean onHover(View view, MotionEvent event) {
        Log.e("Test",""+event.getButtonState());
        updateHoverUI(event.getRawX(), event.getRawY(), event.getPressure(), event.getAction(), "Hover");
        return true;
    }
};

I can successfully track the button click event (BUTTON_STYLUS_PRIMARY => button is pressed). HOWEVER , I cannot disable the control command.

Is there a way to disable the control command?

Sincerely.

+6
3

, Air.
Marshmallow ( 6) .
Air- Samsung Galaxy Note 4 ( ):

Go to Settings > Controls.
Tap on S Pen.
Tap on Air Command.
Disable Air Command.

Air ( com.samsung.android.service.aircommand) .

, / Air- (), system service, , dibs ( / , Air, ). Greenify, Brevent. GitHub (AS 3), (, C, NDK , , ). Play Store

5

, .

:

, Galaxy Note 5 . Note 5, , ( Voice Assistant?). , , . .

5, , Android 5.1.1 6.0.1

5, Air , Norton Antivirus.

Greenify

:
(Android 6+, root!) Greenify, Air Command Service ( /, "", "" ).

+4

false. , ; , , Air View.

private SpenHoverListener mHoverListener = new SpenHoverListener() {
    @Override
    public boolean onHover(View view, MotionEvent event) {
        Log.e("Test",""+event.getButtonState());
        updateHoverUI(event.getRawX(), event.getRawY(), event.getPressure(), event.getAction(), "Hover");
        return false;
    }
};
0

ADB :

pm disable com.samsung.android.service.aircommand

, , disableenable.

0

All Articles