packages/apps/Settings
Révision | 32d5d3a3a34fae28410a77b058f75371d15019e6 (tree) |
---|---|
l'heure | 2021-02-01 12:45:27 |
Auteur | Weng Su <wengsu@goog...> |
Commiter | Weng Su |
[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)
@@ -27,6 +27,7 @@ import android.content.pm.PackageManager; | ||
27 | 27 | import android.net.wifi.WifiManager; |
28 | 28 | import android.os.Bundle; |
29 | 29 | import android.provider.Settings; |
30 | +import android.view.WindowManager; | |
30 | 31 | |
31 | 32 | import com.android.internal.logging.nano.MetricsProto; |
32 | 33 | import com.android.settings.R; |
@@ -42,6 +43,8 @@ public class WifiScanModeActivity extends Activity { | ||
42 | 43 | @Override |
43 | 44 | protected void onCreate(Bundle savedInstanceState) { |
44 | 45 | super.onCreate(savedInstanceState); |
46 | + getWindow().addSystemFlags( | |
47 | + WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); | |
45 | 48 | Intent intent = getIntent(); |
46 | 49 | if (savedInstanceState == null) { |
47 | 50 | if (intent != null && intent.getAction() |