[Android General] ShaDisNX255:
I know that this thread is a bit dead at this point, but I guess there's no harm in asking.

If someone can help me out with trying to get it to work on Android 11 I'd really appreciate.

I thiiiiiiiiiiiiink that the newest method is this, though I could be wrong:

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
.locals 2

.line 241
iget-boolean v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->mSliderEnabled:Z

if-nez v0, :cond_5

iget-object v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->mMirror:Lcom/android/systemui/settings/ToggleSliderView;

if-eqz v0, :cond_0

invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getVisibility()I

move-result v0

if-nez v0, :cond_0

goto :goto_0

.line 249
:cond_0
const-class v0, Lcom/android/systemui/knox/KnoxStateMonitor;

invoke-static {v0}, Lcom/android/systemui/Dependency;->get(Ljava/lang/Class;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Lcom/android/systemui/knox/KnoxStateMonitor;

invoke-interface {v0}, Lcom/android/systemui/knox/KnoxStateMonitor;->isBrightnessBlocked()Z

move-result v0

const/4 v1, 0x1

if-eqz v0, :cond_1

return v1

.line 252
:cond_1
iget-boolean v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->mSystemBrightnessEnabled:Z

if-nez v0, :cond_3

.line 253
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

move-result p1

if-nez p1, :cond_2

.line 254
invoke-direct {p0}, Lcom/android/systemui/settings/ToggleSliderView;->showSliderDisabledToast()V

:cond_2
return v1

.line 258
:cond_3
iget-boolean v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->mHighBrightnessModeEnter:Z

if-eqz v0, :cond_4

invoke-virtual {p0}, Lcom/android/systemui/settings/ToggleSliderView;->isChecked()Z

move-result v0

if-eqz v0, :cond_4

.line 259
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

move-result p1

if-nez p1, :cond_4

.line 260
invoke-direct {p0}, Lcom/android/systemui/settings/ToggleSliderView;->showHighBrightnessModeToast()V

:cond_4
const/4 p0, 0x0

return p0

.line 242
:cond_5
:goto_0
iget-object v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->mMirror:Lcom/android/systemui/settings/ToggleSliderView;

if-eqz v0, :cond_6

iget-object v0, v0, Lcom/android/systemui/settings/ToggleSliderView;->mSlider:Lcom/android/systemui/settings/ToggleSeekBar;

if-eqz v0, :cond_6

.line 243
invoke-virtual {p1}, Landroid/view/MotionEvent;->copy()Landroid/view/MotionEvent;

move-result-object v0

.line 244
iget-object v1, p0, Lcom/android/systemui/settings/ToggleSliderView;->mMirror:Lcom/android/systemui/settings/ToggleSliderView;

iget-object v1, v1, Lcom/android/systemui/settings/ToggleSliderView;->mSlider:Lcom/android/systemui/settings/ToggleSeekBar;

invoke-virtual {v1, v0}, Landroid/widget/SeekBar;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

.line 245
invoke-virtual {v0}, Landroid/view/MotionEvent;->recycle()V

.line 247
:cond_6
invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

move-result p0

return p0
.end method

I only think this because inside this method is:

invoke-direct {p0}, Lcom/android/systemui/settings/ToggleSliderView;->showHighBrightnessModeToast()V

Which is the closest thing I've found to the original. I'm attaching the original ToggleSliderView if someone can help out. I have very limited smali knowledge, it's as far as I got after trying some dumb stuff :)