title: Why I'm Not allowed to access cell info
body: <p>I'm trying to get information about cellular network (neighbour cells, signal strength, etc.) but I faced the problem with one mwthod (<code>telephonyManager.getAllCellInfo()</code>).
  Tested on OnePlus 6t.</p>
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          textView = findViewById(R.id.text);
          telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
          if (ActivityCompat.checkSelfPermission(this, READ_SMS) != PackageManager.PERMISSION_GRANTED &amp;&amp;
                  ActivityCompat.checkSelfPermission(this, READ_PHONE_NUMBERS) != PackageManager.PERMISSION_GRANTED &amp;&amp;
                  ActivityCompat.checkSelfPermission(this, ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp;
                  ActivityCompat.checkSelfPermission(this, READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
              ActivityCompat.requestPermissions(this, new String[]{READ_SMS, READ_PHONE_NUMBERS, READ_PHONE_STATE,ACCESS_COARSE_LOCATION}, PERMISSION_REQUEST_CODE);
          } else {
              textView.setText(&quot;&quot;+telephonyManager.getAllCellInfo());
          }
      }
  </code></pre>
  <p>In LogCat I see:</p>
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.cellularanalyzer/com.example.cellularanalyzer.MainActivity}: java.lang.SecurityException: Not allowed to access cell info
  </code></pre>
  <p>In case I change <code>telephonyManager.getAllCellInfo()</code> to <code>telephonyManager.getSignalStrength()</code> I get some information, but not all of it.</p>