Repository: flutter
Issue: [Android]Avoid clipboard reading permissions on XiaoMi MIUI 13
Labels: a: text input,platform-android,engine,P2,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
I'm developing an app that doesn't really need the clipboard permission, but I can't get rid of the system alert of clipboard reading.
<img src="http://pic.linloir.xyz/images/2022/04/02/WeChat-Image_20220401235119.jpg" width="350">

## Ways I have tried to fix the problem

- switch to master channel
- run `flutter upgrade`
- set `enableInteractiveSelection` flag to `false` in TextField widget

Nothing has yet worked on my device nor my friend's

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Connect a XiaoMi device with MIUI 13 installed
2. Execute `flutter debug` on the code sample <!-- (see "Code sample" section below) -->
3. Copy any text from another place <!-- describe steps to demonstrate bug -->
4. Open the debug app just built and the alert pops up <!-- for example "Tap on X and see a crash" -->

**Expected results:** <!-- what did you want to see? -->
Textfield without reading clipboard

**Actual results:** <!-- what did you see? -->
Textfield still reading clipboard everytime it inits

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: TextField()
      ),
    );
  }
}
```

</details>

<details>
<summary>Flutter doctor</summary>

```
[✓] Flutter (Channel master, 2.13.0-0.0.pre.358, on Ubuntu 20.04.4 LTS
    5.11.0-27-generic, locale en_US.UTF-8)
    • Flutter version 2.13.0-0.0.pre.358 at /home/linloir/SDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff08bc4e85 (87 minutes ago), 2022-04-01 10:31:09 -0400
    • Engine revision 276261e5d8
    • Dart version 2.17.0 (build 2.17.0-263.0.dev)
    • DevTools version 2.12.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
    • Android SDK at /home/linloir/Android/Sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /snap/android-studio/119/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /snap/android-studio/119/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.64.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.36.0

[✓] Connected device (2 available)
    • M2007J1SC (mobile) • c0063973 • android-arm64  • Android 12 (API 31)
    • Chrome (web)       • chrome   • web-javascript • Google Chrome
      98.0.4758.102

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>

<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->