Other
com.android.ons
- Risk
- With care
- Source
- Android itself
- What it is
- Other
What it is
ons = Opportunistic Network Service
From what I can glean in the source code it seems like this provides a list of available networks and assigns each network a priority.
I've never seen it run on its own, so this might be part of some automatic network switching setting that I have turned off.
Commands
adb shell pm uninstall --user 0 com.android.ons
To put it back:
adb shell cmd package install-existing com.android.ons
Every removal listed here is per-user only: the system image is untouched, and the restore command puts the app back from the copy already on the device. Nothing is downloaded.
References
- https://cs.android.com/android/platform/superproject/+/master:packages/services/AlternativeNetworkAccess/src/com/android/ons/OpportunisticNetworkService.java
- https://developer.android.com/reference/android/telephony/AvailableNetworkInfo
- https://cs.android.com/android/platform/superproject/+/master:frameworks/base/telephony/java/android/telephony/AvailableNetworkInfo.java
This is not the directory. Here we say what a package is in general; what happens on your particular television is on your model's entry, and that one wins. The same package can be dead weight on one set and hold the home screen up on another.