• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Révisionfaa5f6b5f6b67421f1327690f358f2fc5ee12c33 (tree)
l'heure2021-02-01 12:42:15
AuteurWeng Su <wengsu@goog...>
CommiterWeng Su

Message de Log

[Security Report] Fix Settings WifiScanModeActivity Overlaid issue

- Disallowed non system overlay windows

- Screenshot

Bug: 174047492
Test: manual test

Merged-In: Ia7acad6d456ce5ebea2d982d4cb063d4f28cbfff
Change-Id: Ia7acad6d456ce5ebea2d982d4cb063d4f28cbfff
(cherry picked from commit d47d8e4fc5959ea5cc57dc074d572a81ec6ddcb0)

Change Summary

Modification

--- a/src/com/android/settings/wifi/WifiScanModeActivity.java
+++ b/src/com/android/settings/wifi/WifiScanModeActivity.java
@@ -26,6 +26,7 @@ import android.net.wifi.WifiManager;
2626 import android.os.Bundle;
2727 import android.provider.Settings;
2828 import android.text.TextUtils;
29+import android.view.WindowManager;
2930
3031 import androidx.appcompat.app.AlertDialog;
3132 import androidx.fragment.app.DialogFragment;
@@ -44,6 +45,8 @@ public class WifiScanModeActivity extends FragmentActivity {
4445 @Override
4546 protected void onCreate(Bundle savedInstanceState) {
4647 super.onCreate(savedInstanceState);
48+ getWindow().addSystemFlags(
49+ WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
4750 Intent intent = getIntent();
4851 if (savedInstanceState == null) {
4952 if (intent != null && intent.getAction()