Exploit databaseDownload repository ZIP
GH-31c028f5638c2b362488617d5ac6548b
pvharmo2/gha-lab-360f77d0d4
Sources for CVE-2026-39866
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files19
pvharmo2/gha-lab-360f77d0d4Revision 8f24b3d2bc38
- ↑..Parent directory
- tv/
- ISplitScreen.aidl
- ISplitScreenListener.aidl
- ISplitSelectListener.aidl
- MainStage.java
- OWNERS
- SideStage.java
- SplitMultiDisplayHelper.kt
- SplitMultiDisplayProvider.kt
- SplitScreen.java
- SplitScreenController.java
- SplitScreenShellCommandHandler.java
- SplitScreenTransitions.java
- SplitStatusBarHider.kt
- SplitTransitionModifier.kt
- SplitscreenEventLogger.java
- StageCoordinator.java
- StageOrderOperator.kt
- StageTaskListener.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wmshell/src/com/android/wm/shell/splitscreen/SplitScreenShellCommandHandler.java
Java · 4,036 bytes/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.wm.shell.splitscreen;
import static com.android.wm.shell.shared.split.SplitScreenConstants.SPLIT_POSITION_BOTTOM_OR_RIGHT;
import static com.android.wm.shell.splitscreen.SplitScreenController.EXIT_REASON_UNKNOWN;
import com.android.wm.shell.sysui.ShellCommandHandler;
import java.io.PrintWriter;
/**
* Handles the shell commands for the SplitscreenController.
*/
public class SplitScreenShellCommandHandler implements
ShellCommandHandler.ShellCommandActionHandler {
private final SplitScreenController mController;
public SplitScreenShellCommandHandler(SplitScreenController controller) {
mController = controller;
}
@Override
public boolean onShellCommand(String[] args, PrintWriter pw) {
switch (args[0]) {
case "moveToSideStage":
return runMoveToSideStage(args, pw);
case "setSideStagePosition":
return runSetSideStagePosition(args, pw);
case "switchSplitPosition":
return runSwitchSplitPosition();
case "exitSplitScreen":
return runExitSplitScreen(args, pw);
default:
pw.println("Invalid command: " + args[0]);
return false;
}
}
private boolean runMoveToSideStage(String[] args, PrintWriter pw) {
if (args.length < 3) {
// First argument is the action name.
pw.println("Error: task id should be provided as arguments");
return false;
}
final int taskId = new Integer(args[1]);
final int sideStagePosition = args.length > 2
? new Integer(args[2]) : SPLIT_POSITION_BOTTOM_OR_RIGHT;
mController.moveToSideStage(taskId, sideStagePosition);
return true;
}
private boolean runSetSideStagePosition(String[] args, PrintWriter pw) {
if (args.length < 2) {
// First argument is the action name.
pw.println("Error: side stage position should be provided as arguments");
return false;
}
final int position = new Integer(args[1]);
mController.setSideStagePosition(position);
return true;
}
private boolean runSwitchSplitPosition() {
mController.switchSplitPosition("shellCommand");
return true;
}
private boolean runExitSplitScreen(String[] args, PrintWriter pw) {
if (args.length < 2) {
// First argument is the action name.
pw.println("Error: task id should be provided as arguments");
return false;
}
final int taskId = Integer.parseInt(args[1]);
mController.exitSplitScreen(taskId, EXIT_REASON_UNKNOWN);
return true;
}
@Override
public void printShellCommandHelp(PrintWriter pw, String prefix) {
pw.println(prefix + "moveToSideStage <taskId> <SideStagePosition>");
pw.println(prefix + " Move a task with given id in split-screen mode.");
pw.println(prefix + "setSideStagePosition <SideStagePosition>");
pw.println(prefix + " Sets the position of the side-stage.");
pw.println(prefix + "switchSplitPosition");
pw.println(prefix + " Reverses the split.");
pw.println(prefix + "exitSplitScreen <taskId>");
pw.println(prefix + " Exits split screen and leaves the provided split task on top.");
}
}