Happened IllegalArgumentException on DevTools app.
package : com.android.development
Because PendingIntent requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE.
Test : DevTools - Connectivity - press START SCREEN TOGGLE button
Change-Id: I998c74f974d8f555e8016b2a319e1a9a4a4f2669
Signed-off-by: Sekyeong <sekyeong.heo@samsung.com>
If your app targets Android 12, you must specify the mutability of each PendingIntent
object that your app creates. This additional requirement improves your app's security.
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability
Android Lint is being updated, and adds an error-level check for this.
Bug: 247885568
Test: Presubmits
Change-Id: I2bb91d98b443af2b5c16944ce197d863dbd33f9a
ConnectivityManager and NetwokUtils are parts of incoming
Connectivity mainline module. The hidden methods or members are
no longer accessible outside the module. Caller should either
remove or replace the usage.
The override hidden callbacks and INET_CONDITION_ACTION intent
are not really used in the code. Remove the unncessary usage.
The network id is a part of Network.toString(). The network id
is also not necessary.
Bug: 182859030
Test: m
Change-Id: I3a75afb86f5b60ea530b50771bd76887ccf9f271
getControllerActivityEnergyInfo() is an @hide API,
migrate to getWifiActivityEnergyInfoAsync() which is an
@SystemApi.
Bug: 145244073
Test: m Development && adb install Development.apk,
open Dev Tools app, go to Connectivity page, tap on
Link Stats button, ensure link stats printed in text
box below.
Change-Id: I0a9edfff7d924a31c5a3470a89e03bd161f1a8fb
A lock was being released without checking if it was held, which
resulted in a crash because WifiManager.MulticastLock is reference
counted by default.
BUG=28668604
Change-Id: I306731129894d5525e974561c2680ae7db5aff4b
AsyncTask.wait was being called outside of a synchronize block,
causing an IllegalMonitorStateException. This replaces the wait
with a Thread.sleep.
BUG=b.android.com/203846
Change-Id: Ib370f702c1e0f76657292955de2406ce7f065e69
1. Remove one more usage of startUsingNetworkFeature.
2. Use new APIs for bound HTTP requests.
Bug: 25824776
Change-Id: Ic2f30ce9ffc873be198f6ad29cf928dc33574d84
Also:
- Refactor the code to remove duplication and make it easier
to add/change the network buttons.
- Make the MMS network request specify TRANSPORT_CELLULAR as
well, since that's what the system MMS service uses.
Change-Id: If8e2ca1ae22b3da3fffb0593fbb93a1d479143f3
1. Stop using the deprecated startUsingNetworkFeature and use
requestNetwork instead.
2. Make use of clearCapabilities().
Bug: 23597341
Change-Id: I65cb813111947d159d2bb18f0d8a93fb726912e5
The monkey now gets told about system hangs, and does stuff about
it! Most especially, it can collect a bug report. Monkey wins!
Change-Id: Ic8350721e715ef21d1ec813c6aff9a83262d5faa
DateUtils.writeDateTime is @hide, @deprecated, was never in an API level,
but is currently kept alive by this dead code.
Change-Id: Ibafbd39113a7c505ba8ab8e93e6b526505e5eaf1
The Dev Tools app now tries to add a link to Development Settings
at the top of its list.
Also add a new "Development Settings" app that directly takes you
to the development settings activity, as a stand-alone app that
could be distributed as a regular third party app.
Change-Id: I8fe2b6a32cf4e37d69f4ce7b8d646a147b492d99