History log of /frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f7e59c1f618d20b79df6e936b9daedaa7c1b4d3d 13-Apr-2016 Shishir Agrawal <shishir@google.com> Adding slotId to certain Telephony broadcasts.

These particular boradcasts need to expose phoneId since they are valid even
when there is no SIM.

ACTION_SERVICE_STATE_CHANGED
- Added phoneId to broadcast.
- Removed TelephonyRegistry non subId call.
ACTION_SIGNAL_STRENGTH_CHANGED
- Added phoneId to broadcast.
- Removed TelephonyRegistry non subId call.
ACTION_PHONE_STATE_CHANGED
- Added phoneId to broadcast.
- The non-subId version is called by Telecomm to communicate overall state.
Telephony sends its own version, so only the Telephony call needs to add
phoneId.

Bug: 27378995

Change-Id: I554f7ee18b9ae19919f4724328dcff3ef9cbd092
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
7ea3e8bf8954343d7b243b6a23bcb8339921f3c8 25-Jan-2016 Shishir Agrawal <shishir@google.com> Unhiding MSIM APIs.

1. Unhide MSIM APIs in TelephonyManager that already have non-MSIM equivalent
APIs public.
2. Make MSIM API naming consistent (overloaded, no suffix).
3. Unhide APIs in SubscriptionManager that are necessary for MSIM.

Bug: 26772894
Change-Id: Ibebab7379ea79c8e4812bbd190342827048e30e2
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
8216236175c74c4d93e28eb06314b7b22b12df15 21-Jan-2016 Nathan Harold <nharold@google.com> Remove Data RealTime Info Listener Support

-Remove Listener from the NetworkManagementService
-Remove the callback capability from TelephonyRegistry
-Remove the callback capbility from PhoneStateListener

Because of intractable problems with power consumption and
consistency, this signal is removed and should not be used.

Bug: 23319188

Change-Id: I99383075bbd5604cc801deab6de94ac97fc17bfd
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
a9e72a7653d25ae1974dac3f1156d126c807e40c 31-Jul-2015 Amit Mahajan <amitmahajan@google.com> Add OrSelf to privileged permission check.

Bug: 22857263
Change-Id: Ide7105dfd653e3c271330822fb8cee7cf620e35d
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
1cfd45701bca2be5ddabf9d523c8183a482fee00 09-Jul-2015 Amit Mahajan <amitmahajan@google.com> Do not check runtime READ_PHONE_STATE if caller has the privileged one.

Also removed READ_PHONE_STATE from SystemUI since it has
READ_PRIVILEGED_PHONE_STATE.

Bug: 22376654
Change-Id: I437f9bf324950cb70bae5be76699824da5897a6f
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
da9bbf725592c6482d6fbce18ef8c258b18e4fc8 10-Jun-2015 Andrew Flynn <flynn@google.com> Merge "notifyCarrierNetworkChange:TelephonyManager->CarrierService" into mnc-dev
ceaed68b074bd341ed9b5f13ff9cc69e3f533999 09-Jun-2015 Andrew Flynn <flynn@google.com> notifyCarrierNetworkChange:TelephonyManager->CarrierService

Re-checkin of 7f8be9d89b7f294bf5e5d377908a5c74d2f4968f.

ORIGINAL CHANGES:

Per API review, move TelephonyManager.notifyCarrierNetworkChange() to
CarrierService.notifyCarrierNetworkChange(). Underlying telephony
implementation remains unchanged.

Also minor tweaks to CarrierService:
* Remove some unnecessary @hide
* Remove final qualifier from onBind() so that subclasses can handle
new internal callers that want to bind to it.

ADDITIONAL CHANGES:

- Fixes stack so that a SecurityException is thrown when caller
does not have MODIFY_PHONE_STATE or carrier privileges.

Bug: 21572049
Bug: 21630803
Bug: 21721768

Change-Id: Ie952651d2f15c370de713ed8abb6d9f6f07dd2b4
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
ac038a9ef3e352ddfe527ec9e053fcdc5b36a123 09-Jun-2015 Fyodor Kupolov <fkupolov@google.com> Fixed compile error caused by final keyword

Bug: 21588537
Change-Id: Ia5ec8a196c2996a494fa2f07aadff0486ea96a57
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
309b2f63f3265c341f6a43cbca2fb25f9c38109a 04-Jun-2015 Fyodor Kupolov <fkupolov@google.com> Do not enforce PHONE_STATE_PERMISSION to register listener

PHONE_STATE_PERMISSION should not be required to register to the following
event types:
- PhoneStateListener.LISTEN_CALL_STATE
- PhoneStateListener.LISTEN_DATA_ACTIVITY
- PhoneStateListener.LISTEN_DATA_CONNECTION_STATE

In case of LISTEN_CALL_STATE, an empty string should be passed instead of
incomingNumber, when caller has no PHONE_STATE_PERMISSION.

Bug: 21588537
Change-Id: I5b6d0308924f7e4cd13a983b8e0c9b3a5bbb119b
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
2d650e561982fc821414284d79da312d4ebaebce 28-Apr-2015 Amit Mahajan <amitmahajan@google.com> am f2c5566f: am ce8e20ce: am e3e60ebc: Merge "Revert "Adding logging to debug SignalStrength callback missing issue."" into mnc-dev

* commit 'f2c5566f32e262c4ea61a42f3b11b5f9116c648e':
Revert "Adding logging to debug SignalStrength callback missing issue."
1466a9c16c2e3bf2a230028d4ac644134cf7ae15 28-Apr-2015 Amit Mahajan <amitmahajan@google.com> Revert "Adding logging to debug SignalStrength callback missing issue."

This reverts commit 6ba726f825162481644df89cf0754f4e20f2793e.

Bug: 20444738
Change-Id: Idf118b259cfd3854feac851b9532d4fff1d74985
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
61a3ab090f4b1edf0cb2c4ceae585a54ab613337 23-Apr-2015 Sharvil Nanavati <sharvil@google.com> Use a separate intent action for subscription phone state changes.

Global phone state changes and subscription phone state changes
are aliased to the same intent. As a result, apps can't distinguish
between the two types of updates.

This change teases the two apart by using a different intent action
for each type of phone state change. This will break carrier apps
that depend on subscription phone state changes, but will fix state
inconsistencies in non-carrier apps.

Bug: 20309009
Change-Id: Ie81c37247917573a3ef5d957fda1087c16736e85
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
16a16899505ec0a9ede5b76650bfb8817b3227c7 16-Apr-2015 Svet Ganov <svetoslavganov@google.com> Add OP_READ_PHONE_STATE app op - framework

The READ_PHONE_STATE permission protects PII information and
is in the Phone group. This change is adding the corrseponding
app op for gating access to the API guarded by READ_POHNE state
which will be used instead as an access control for legacy apps.

Change-Id: I2ff895a5a0e529f26ec0ad706266a30d829268ba
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
1f45264dd6b874d72ed901a2213c779d42d321c1 15-Apr-2015 Andrew Flynn <flynn@google.com> TelephonyManager Carrier Network Change Notification

Adds a way for a carrier app to notify the system that an intended network
change is starting or ending. This can be used by a system PhoneStateListener
to provide custom UI or perform other actions during this period.

- Adds new public TelephonyManager API: notifyCarrierNetworkChange(boolean)
- Adds new @hide PhoneStateListener method: onCarrierNetworkChange(boolean)
- Functionality merely serves as a pass-through of data from an app to a
PhoneStateListener (SystemUI for the intended use case)
- Protected by MODIFY_PHONE_STATE permission or hasCarrierPrivileges().

Bug: 11392659

Change-Id: I3199e21ec1ac124198f44b86c1534dd3ff1f6858
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
95e25a6b3c8752ff9e5c984e711c2fc31a668c67 03-Mar-2015 Shishir Agrawal <shishir@google.com> am 06e9147d: am c8e3784e: am 20a5df62: am bcced5b8: Merge "Fix incorrect condition for sub id check." into lmp-mr1-dev

* commit '06e9147d8a9e07aa06433f18323253f8659d27f9':
Fix incorrect condition for sub id check.
6ba726f825162481644df89cf0754f4e20f2793e 26-Feb-2015 Amit Mahajan <amitmahajan@google.com> Adding logging to debug SignalStrength callback missing issue.

This is a temporary change. Needs to be reverted.

Bug: 19323020
Change-Id: Ifdc2b14f4da6cd5a28e85c3bce35ddf0e975b6f4
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
985f52cde55a3b1b72d3fc73ffe67005d1906438 24-Feb-2015 Junda Liu <junda@google.com> Fix incorrect condition for sub id check.

Bug: b/19277299
Change-Id: Iea6806926f0e9d9404a3f2613d03b8a0607fea54
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
071743f0cbbfab36150db6ec945452579d02e8dd 13-Jan-2015 Wink Saville <wink@google.com> Rename reg/unreg OnSubscriptionsChangedListener.

To addOnSubscriptionsChangedListener and
removeOnSubscriptionsChangedListener.

Bug: 18984103
Change-Id: I6636905093812af89c1c3702840e44c8c5ea891f
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
ac11ae91c7c926e792a35eb66e71e9f3b5cf4f93 18-Dec-2014 xinhe <xinhe@google.com> take out SIM card, the RSSI Triangle is still full

Bug:18479509
Change-Id: I96b0e91ae42ad222889c123ebe0c0c1225d9b6a7
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
a54bf6583380cf328b9858d942b4c387c6163f0f 11-Dec-2014 Wink Saville <wink@google.com> Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.

Rename isValidSubId to isValidSubscriptionId.

Bug: 18668873
Change-Id: Ie709a62bbb74e0a767daeb9e3fb3aecd4c45df44
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
d09c4cad65c708f2c4810d24295456708a2000d2 22-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
2d1ee982276f5dbd0e035778b731b48e4ef34515 20-Nov-2014 Wink Saville <wink@google.com> Revert "Additional changes to SubscriptionManager API as per API council."

This reverts commit baf21da1e17ef358632c078128d381b3be218a08.

Change-Id: I73cbdfadf07ca3cf20b042781b62aafcc72b17d6
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
baf21da1e17ef358632c078128d381b3be218a08 20-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: I7773965094510999bfce8fc6b2b31ba6ce496653
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
a374c3d03b28f135cdfba2cadf6fe6f03ac010bd 11-Nov-2014 Wink Saville <wink@google.com> Update SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Ib39a60e4f75981a466e9d606ec627756efad018d
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
8b79fb6065370100c5a9e9b08458d932048dbb91 05-Nov-2014 xinhe <xinhe@google.com> RSSI indicator says that SIMless device has a SIM

For dummy case, subId = -1/-2, we need compare the phoneId
Bug:18247106

Change-Id: I310d8b466ef83936e920d3921267241f42c2243f
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
63f03dd94c43c22f2c77306059b5748e5e1e0e3c 23-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
75c2c159ebad467d29401fb6cbb3f094a010073a 16-Oct-2014 xinhe <xinhe@google.com> telephony re-registry error

telephony re-registry do not update the callback and other parameter

Bug:17920733

Change-Id: I288e8b9a6747fc3c5c4794553435b29b49d379f0
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
a33cf075fa13c29d702d6b0a2aa2ae1323c60d73 30-Sep-2014 Etan Cohen <etancohen@google.com> Fix concurrent access violation.

Change-Id: I8586629cafe585135f0f72ba011b65f81242fc22
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
36e722983591839e2a3c921c522da55ebf83b542 27-Sep-2014 New Author Steven Liu <stevenliu@motorola.com> am 0f840945: redirect RIL_UNSOL_OEM_HOOK_RAW to system app

* commit '0f84094579696739facbd75a56a4e7b98a6a5edc':
redirect RIL_UNSOL_OEM_HOOK_RAW to system app
485f2095f8ba695b88331c01a2de468b5616a5d7 11-Sep-2014 New Author Steven Liu <stevenliu@motorola.com> redirect RIL_UNSOL_OEM_HOOK_RAW to system app

Add LISTEN_OEM_HOOK_RAW_EVENT and onOemHookRawEvent to PhoneStateListener.

Bug: 17298769
Change-Id: Iaea054d3cc2925eea1e11f8871faabc7bc9dfb2d
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
e9f1640b6bb3f10d6c94f05774bcfaa788bea55c 26-Sep-2014 xinhe <xinhe@google.com> Support multiple SIM/Subscription on telephony registration

During calling telephony registry call back API, we force the call back will be
triggered if the registered subId is Default Sub ID. This is due to some risk
condition. Please refer to Issue 17472622 and its fix. This fix is ok for single
SIM/Subscription. However, on multiple SIM/subscription, there is potential problem
on wrong notifications.

Bug:17613629
Change-Id: I3f41e03f37424bcc82a71090d4f4142b4c5ba922
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
43c50293490ba7efb0f97a1e45b07c92aeafa61e 19-Sep-2014 xinhe <xinhe@google.com> Fix for empty RSSI triangle after boot

After device bootup, the signal strength triangle is empty although there is
both voice and data connection. This is due to when TelephonyRegistry doing call
back listen register, some APP use mDefaultSubID. However, when the reigister
happen, the mDefaultSubId does not exist. Althouhgh it can be update later, if
the update event comes too late (especially after the steady state), no
ServiceStatechange event can be received anymore. Thus the service is always not
available and the signal stength trangle has no chance to be updated anymore.
This is a risk condition.

Bug:17472622

Change-Id: I772d29e6dd9da212b78fd0d4438b8273e3318dba
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
bc0272754df7a2fb71bf709a2a8a7c852ee69e5c 08-Sep-2014 Wink Saville <wink@google.com> Change suffix UsingSubId to ForSubscriber.

Bug: 17255752
Change-Id: Ifd522888b5aaae111f642d1e35bd1bb939e539d4
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
6d13bc8e3b1cf0dac56590a0a76e9da4a1ecab75 01-Aug-2014 Wink Saville <wink@google.com> Turn off extra debugging

Change-Id: I3d7c68d3d7bcef5be084398807389f4a485bedb0
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
e380b9866703355e4768a9ce163369b80842080c 27-Jul-2014 Wink Saville <wink@google.com> Change TelephonyRegistry to use phoneId as a callback condition.

Previously subId was used but it is currently not consistent and
can take on dummy values thus callbacks would not be called appropriately.
Eventually I hope to remove the dummy value concept but for now this
looks like the best approach.

Bug: 16148026
Bug: 15973975
Change-Id: I450c968bda93767554b5188ee63e10c9f43c5aa4
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
2f32ac25e94b9451f9004c8a5679762d3fdd9acd 15-Jul-2014 Sandeep Gutta <sangutta@codeaurora.org> MSIM: dump sub specific info

Add support to dump subscription specific info
in TelephonyRegistry.

Clean cherrypick from partner repo.

Change-Id: I8f9471ef76de95f96943b3d89156a2fc1a041360
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
d44a5b35aeff84cade6f7d44bee2c4c48e5f7fc8 16-Jul-2014 Joe LaPenna <jlapenna@google.com> Revert "MSIM: dump sub specific info"

This reverts commit bc586ea61bacf05c509cb8dae44e9d8f22fc780d.

Change-Id: Ia85003f2f4eb17970fd5945dd8d432a701db9bba
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
09abc62b4fe9031ee0118787b65b11b65197468e 15-Jul-2014 Sandeep Gutta <sangutta@codeaurora.org> MSIM: dump sub specific info

Add support to dump subscription specific info
in TelephonyRegistry

Cherrypicked from partner gerrit.

Change-Id: I9525b8ff8b8884e5099df762d0eafe27fdb186ab
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
47d8d1b0a8641a1c346da39f5052ae5aa845d117 10-Jul-2014 Wink Saville <wink@google.com> Ignore hasService in updateTelephonySignalStrength

A possible reason for empty triangle is there is no service, I'm
temporarily ignoring hasService in updateTelphonySignalStrength and
adding more debug.

Add logSSC to see history of Service State Changes.

Bug: 16148026
Change-Id: Ia463997eac7b062653b3cef00570d3fffc115ad3
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
3269ca6b0f29b897dcf11520cfcaee3e847695c2 09-Jul-2014 Wink Saville <wink@google.com> Enable a couple more lines of debug in TelephonyRegistry.

Bug: 16148026
Change-Id: I8b934652e47a273fa66a86d031efb24c33c4fe39
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
f4cd25b2c867ad74f983f1bacae3925005685a69 09-Jul-2014 Wink Saville <wink@google.com> Add debug to TelephonyRegistry.

Also change all debug to use the new log method and send the debug
to Rlog rather than Slog. This way we don't spam the main log buffer
just our radio log buffer while we're debugging 16148026.

Bug: 16148026
Change-Id: I5571f7d07405ddb3c208efd1756106b78343c843
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
eeacf9374748a5f7fc96a1beaf18c353d473d752 18-Jun-2014 Wink Saville <wink@google.com> Empty triangle displayed for radio signal but calls & data work

TelephonyRegistry: when default sub id is requested set isLegacyApp to
true so when ACTION_DEFAULT_SUBSCRIPTION_CHANGED is received the
TelephonyRegistry.Record.subId will be updated.

SubInfoRecord: Add SubInfoRecord toString for easier debugging

SubscriptionManager: Add putPHoneIdAndSubIdExtra(intent, phoneId, subId)
as this allows explicit setup of phoneId and subId and does not rely on
a phone's subId being set.

Bug: 15669560
Change-Id: I645ddb35b964b08dcb46f881c9d02b932d128950
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
fb40dd4d00bd3361b2535bc866e6c21eadc52558 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Add initial IMS and MSIM support from klp-wireless-dev-mirror

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
f9cb86aebe9647e0fe0137fc198ba16c017445c6 09-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Replace LinkCapabilities with NetworkCapabilities

Also remove unused LinkSocket and LinkSocketNotifier.
bug:13885501

Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
2ffa11e4b71c545e34533ef827bdc1a07fbe8246 22-Apr-2014 Dianne Hackborn <hackbod@google.com> Start collecting mobile radio activity from the radio.

Hook in to the new radio API to find out when the radio
is active and use that to track its state in batter stats.
We also still have the data being tracked from the kernel's
emulation, and continue to use that if we don't get data from
the radio.

Currently this monitoring is turned off until some issues
in the radio can be fixed that are providing bad data.

Also add a new API to get estimated drain and charge times.

Change-Id: Ifc4900fabb8f848f9cda361dce698664ea75f175
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
070e061a289d771e62b58379eaed153fd285b04f 16-Apr-2014 Wink Saville <wink@google.com> Add LISTEN_DATA_CONNECTIPON_REAL_TIME_INFO as listen event

Also added DataConnectionRealTimeInfo structure which passed as a
parameter to onDataConnectionRealTimeInfoChanged.

Change-Id: Iadcbf9765af57c125bcdf74e3fc652ed6c8f7d42
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java
27bf55c8159e7f883ddc839453d5a12374ddc50a 13-Feb-2014 Wink Saville <wink@google.com> am 16c0b295: am bba3a694: Merge "Telephony API extension v2"

* commit '16c0b295ef069e128a4e01fd2f72da06784950a1':
Telephony API extension v2
9158825f9c41869689d6b1786d7c7aa8bdd524ce 22-Nov-2013 Amith Yamasani <yamasani@google.com> Move some system services to separate directories

Refactored the directory structure so that services can be optionally
excluded. This is step 1. Will be followed by another change that makes
it possible to remove services from the build.

Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
/frameworks/base/services/core/java/com/android/server/TelephonyRegistry.java