• 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évision32d5d3a3a34fae28410a77b058f75371d15019e6 (tree)
l'heure2021-02-01 12:45:27
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
@@ -27,6 +27,7 @@ import android.content.pm.PackageManager;
2727 import android.net.wifi.WifiManager;
2828 import android.os.Bundle;
2929 import android.provider.Settings;
30+import android.view.WindowManager;
3031
3132 import com.android.internal.logging.nano.MetricsProto;
3233 import com.android.settings.R;
@@ -42,6 +43,8 @@ public class WifiScanModeActivity extends Activity {
4243 @Override
4344 protected void onCreate(Bundle savedInstanceState) {
4445 super.onCreate(savedInstanceState);
46+ getWindow().addSystemFlags(
47+ WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
4548 Intent intent = getIntent();
4649 if (savedInstanceState == null) {
4750 if (intent != null && intent.getAction()