summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Messaging: Show quick reply choices only on wearable devicesHEADt13.0Han Wang2022-08-281-8/+14
| | | | Change-Id: I4b81643c051a9b1377f2046c1aa0515c590736fc
* Messaging: Update cellbroadcast package namez3DD3r2022-08-281-1/+1
| | | | | | | As part of mainline effort, AOSP cellbroadcast package name was changed from com.android.cellbroadcast to com.android.cellbroadcast.module Change-Id: Ie1f27abb0f645dd53c26d164b03c5e93c3c13cdc
* Messaging: Contact ColorsBlaise2022-08-283-10/+32
| | | | | | | Adds the option to use individual colors for contacts. Matches the colors used in Contacts. Change-Id: I9f222308a900c5d47ec16f83232bd7f6d9af6cd7
* Messaging: Use a DayNight launch themeScott Warner2022-08-281-0/+1
| | | | | | | This prevents the white launch screen from appearing when the system theme is dark Change-Id: I861f9e5a58b4bb52385c75459fc4de73532d15a8
* Messaging: Implement per conversation channels. Update API level to 28.Luca Stefani2022-08-2825-786/+228
| | | | | | | | | | | | | | * Get rid of in-app settings for notifications, replaced by channels features * Remove all the notification plumbing and dead code Test: m, manual Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Signed-off-by: Joey <joey@lineageos.org> Signed-off-by: Danny Baumann <dannybaumann@web.de> Signed-off-by: Arne Coucheron <arco68@gmail.com> Signed-off-by: Lyubo <lyubodzhamov@gmail.com> Change-Id: Idb39ca32751d40b3376934775d2119dd6cc7e297
* MediaPicker: Check for NPEAnkit Gupta2022-08-281-0/+4
| | | | | | | | make sure view has been created before asking for its visibility. Change-Id: I0f0c36f8edf83c518bf07ef05399eda5d6b0f78a Issue-id: FEIJ-1135
* Play an audible notification on receiving a class zero message.Arun Valiaparambil2022-08-282-0/+12
| | | | | | | | Changes ported from http://review.cyanogenmod.org/#/c/125457/ PAELLA-123 Change-Id: I1289790d32a3b69bf7892025bac5fa3bd74eeefc
* Messaging: Toggable keyboard emoticons accessAdrianDC2022-08-282-0/+21
| | | | | | | * Allows keyboards to always display the line return key Change-Id: I9ecb19733f707d35771255018afebf0b5cda5e6d Signed-off-by: AdrianDC <radian.dc@gmail.com>
* Messaging: Implement option for swipe right to delete.Adnan Begovic2022-08-286-7/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: Author: Adnan Begovic <adnan@cyngn.com> Date: Thu Jan 14 17:20:43 2016 -0800 Messaging: Implement option for swipe to delete. No one wants to swipe to archive, that's stupid. Change-Id: Ia8f0fc675582ef343311e60b755e284322f25102 Author: chengzhi.hou <chengzhi.hou@ck-telecom.com> Date: Wed Feb 24 20:01:17 2016 +0800 Messaging: Swipe right to delete conversation Change "swipe delete" to "swipe right delete", so SwipeArchive and SwipeDelete can exist at the same time. Change-Id: Id66167c2e749f8ab0ee917e0138027c7404b8c90 Author: Michael Bestas <mikeioannina@cyanogenmod.org> Date: Tue Mar 1 02:27:16 2016 +0200 Improve swipe to delete strings Change-Id: I180d09a6680084d9fd87c6dafd56db18ca5a580a Author: Joey Rizzoli <joey@cyanogenmoditalia.it> Date: Mon Oct 17 16:32:25 2016 +0200 Messaging: show snackbar instead of toast when deleting conversation more consistency with archive action Change-Id: I06129850860a2a51c10ade65fb87c9f37a0c2bfa Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it> Change-Id: Ia8f0fc675582ef343311e60b755e284322f25102
* Fix url:file:// style URIs from not being detected in UriUtil.Jake Klinker2022-04-261-8/+28
| | | | | | | Change-Id: I81c01202306d856f6f8f8b74a5a28d7c1011fcec Tested: Was no longer able to repro b/222091734. Bug: 222091734 (cherry picked from commit 2283165c23b9162e99b817400889fe541799626f)
* Updating the DATA_ROAMING flag acceess from Settings to TelephonyManagerAman Gupta2022-03-241-2/+8
| | | | | | | | API. Bug: 172467621 Test: Build Change-Id: Ide0db6ecacaabc29b5c4c53a2868d4a2ae27c646
* Use UriUtil when checking if a URI is a file.Jake Klinker2022-01-313-8/+4
| | | | | | | UriUtil.isFileUri contains several additional fixes, so this ensure that existing instances where we check for the file scheme use this method as well. This covers all existing instances in the app of SCHEME_FILE. Change-Id: I1f3131b33823eae3e620aa9608be8e72b2e84aa2 Bug: 215212561
* Fix isFileUri to recognize URIs with spaces.Jake Klinker2022-01-111-1/+1
| | | | | | | | The underlying framework recognizes " file://..." as a valid URI and fetches the file, allowing for a possible exploit (see b/209965112). This trims the URI so that we can properly recognize it as a file from within our code. Bug: 209965112 Change-Id: I8d9d9100e9a8c3bd64d19015d2177a14ec2306f3 Test: See repro steps on http://b/209965112, was no longer able to repro.
* Convert URI scheme to lower case before checking if it is a file.Jake Klinker2021-10-061-1/+5
| | | | | | | | | | | | This fixes an edge case where a "File://" style URI could be passed in but not pass this check, even though the underlying framework recognizes this as a legitimate file. Bug: 197328178 Test: See repro steps on http://b/197328178, was no longer able to repro. Change-Id: Id837744a79d1aca91b41d24207dc9b98f2b5b5e9
* Merge "Handle MediaMetadataRetriever.release IOException"Santiago Seifert2021-10-051-1/+1
|\
| * Handle MediaMetadataRetriever.release IOExceptionSantiago Seifert2021-09-221-1/+1
| | | | | | | | | | | | | | | | MediaMetadataRetriever.release now declares a thrown IOException. Bug: 200173116 Test: Should be a non-functional change (only relevant when using MediaDataSource). Change-Id: Ia3f5f01ee79feb35a10ec8bbbef6db88b32f2161
* | Messaging: allow selecting text inside the selected messageTimi Rautamäki2021-09-191-1/+8
|/ | | | | | Test: receive a message, select it by long press, verify text is selectable. Change-Id: I9f80df970c6ee1c06b8056c78bffe942eb8eb9bf Signed-off-by: Timi Rautamäki <timi.rautamaki@gmail.com>
* Fix wrong sync message issue for pending outgoing messagesTaesu Lee2021-01-122-6/+13
| | | | | | | | | | | | | | | If sync operation is occurred between ResendMessageAction and SendMessageAction, the pending outgoing messages in local db are deleted and new messages are added from remote db. To fix this issue, ResendMessageAction will update RETRY_TIMESTAMP only. And RECEIVED_TIMESTAMP and SENT_TIMESTAMP will be updated in SendMessageAction when the message is queued. Test: manual Change-Id: I0ffa6f46a7094ec3dfd2954d4313b78dd57d6994 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Mark messages as failed if SIM is inactiveTaesu Lee2020-10-061-30/+21
| | | | | | | | | | | If a SIM is inactive, Mark messages corresponding to the SIM as failed instead of updating selfId as default selfId. The failed messages could be sent through the SIM manually if the SIM is re-activated. Test: Manual Change-Id: I1eee7c12aaedebe8aa3e0c41b4b057758a3b17a2 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix creating a new conversation including own numberTaesu Lee2020-09-161-6/+14
| | | | | | | | | | | If a device own phone number is unknown and there is only a single address in all TO and CC for incoming MMS, ignore the address as it is device own phone number. Test: Manual Change-Id: I26de39bd3b71d3ad391372f35cfce0bd5c7b66ed Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* AOSP/Messaging - Update language to comply with Android's inclusive language ↵Raman Tenneti2020-07-299-21/+24
| | | | | | | | | | | guidance. See https://source.android.com/setup/contribute/respectful-code for reference BUG=161896447 Test: make and make messagingtests Change-Id: I01c520f1d5e9eab8dbb25b08d133ae34bd301093
* AOSP/Messaging - Changes to make unit tests to run and pass.Raman Tenneti2020-07-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Added missing androix libraries to LOCAL_STATIC_ANDROID_LIBRARIES. + Added keep class statements for androidx and messaging classes. + Deleted Assert.isEngBuild call (this package is the last user of that method). + Added import statements for androidx classes. Test: manual - Tested the messaging UI. Ran the following tests on Pixel phone. $ make -j 40 $ make messagingtests -j $ find out -name "messaging*.apk" -print -exec ls -l {} \; -rw-r----- 1 rtenneti primarygroup 733809 Jul 9 17:42 out/target/product/bonito/testcases/messagingtests/arm64/messagingtests.apk -rw-r----- 1 rtenneti primarygroup 10799132 Jul 9 18:34 out/target/product/bonito/product/app/messaging/messaging.apk $ adb install -r -d -t out/target/product/bonito/product/app/messaging/messaging.apk $ adb install -r -d -t out/target/product/bonito/testcases/messagingtests/arm64/messagingtests.apk $ adb shell am instrument -w com.android.messaging.test com.android.messaging.datamodel.BindingTest:....... com.android.messaging.datamodel.BitmapPoolTest:.... com.android.messaging.datamodel.ConversationListTest:. com.android.messaging.datamodel.DataModelTest:... com.android.messaging.datamodel.FrequentContactsCursorBuilderTest:... com.android.messaging.datamodel.MemoryCacheManagerTest:. com.android.messaging.datamodel.ParticipantRefreshTest:.......... com.android.messaging.datamodel.action.ActionServiceSystemTest:..... com.android.messaging.datamodel.action.ActionServiceTest:.. com.android.messaging.datamodel.action.ActionTest:..... com.android.messaging.datamodel.action.GetOrCreateConversationActionTest:. com.android.messaging.datamodel.action.ReadWriteDraftMessageActionTest:...... com.android.messaging.datamodel.data.ConversationMessageDataTest:... com.android.messaging.datamodel.data.ConversationParticipantsDataTest:. com.android.messaging.datamodel.media.ImageRequestTest:.. com.android.messaging.datamodel.media.MediaResourceManagerTest:..... com.android.messaging.ui.CustomHeaderViewPagerTest:. com.android.messaging.ui.MultiAttachmentLayoutTest:... com.android.messaging.ui.attachmentchooser.AttachmentChooserFragmentTest:. com.android.messaging.ui.contact.ContactListItemViewTest:.... com.android.messaging.ui.contact.ContactPickerFragmentTest:...... com.android.messaging.ui.conversation.ComposeMessageViewTest:.. com.android.messaging.ui.conversation.ConversationActivityUiStateTest:.... com.android.messaging.ui.conversation.ConversationFragmentTest:.. com.android.messaging.ui.conversation.ConversationInputManagerTest:..... com.android.messaging.ui.conversation.ConversationMessageViewTest:... com.android.messaging.ui.conversationlist.ConversationListFragmentTest:... com.android.messaging.ui.conversationlist.ConversationListItemViewTest:.... com.android.messaging.ui.mediapicker.AudioRecordViewTest:. com.android.messaging.ui.mediapicker.CameraManagerTest:...... com.android.messaging.ui.mediapicker.GalleryGridItemViewTest:..... com.android.messaging.ui.mediapicker.MediaPickerTest:.. com.android.messaging.util.BugleGservicesTest:. com.android.messaging.util.YouTubeUtilTest:. Test results for InstrumentationTestRunner=......................................... ......................................... ............................... Time: 9.903 OK (113 tests) Change-Id: If8fd8036791027739eb9bbb1d3849a46211a5137
* Fix NoSuchMethodError for getTypeInfo()Taesu Lee2020-06-291-6/+1
| | | | | | | | | | | | Load an icon image for audio files from app resources instead because ContentResolver#getTypeInfo() is for API level >= 29. And it includes size-fit ic_photo_library_light images also. Bug: 159987488 Test: Manual Change-Id: Ie8f766f148a30e105e598e4b7e6b1b22bccda6ae Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Remove advanced category if no preferenceTaesu Lee2020-06-261-0/+4
| | | | | | | Test: In debug mode, turn off all the configs for advanced category Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I52ea0905b9d4f03a57b4849e5b575bc5e508dd2d
* Merge "Fix SecurityException at getActiveSubscriptionInfoList() on N and O"Treehugger Robot2020-06-221-5/+6
|\
| * Fix SecurityException at getActiveSubscriptionInfoList() on N and OTaesu Lee2020-06-221-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating ConnectivityUtil instances after checking the minimum set of permissions since SubscriptionManager#getActiveSubscriptionInfoList() requires READ_PHONE_STATE and users can revoke the permission. On P and beyond, the subscription list will be filtered instead when no permission. Bug: 159421050 Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Iafc3c57060e1893a91e629b1b3e3ba9ad78967cb
* | Fix app initialization issue if no permissionsTaesu Lee2020-06-221-4/+2
|/ | | | | | | | | | | Call onRequiredPermissionsAcquired() before calling redirect() so that BugleApplication initialization can be done completed always even PermissionCheckActivity#onResume() case. Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I01bb681442e0b391238bc162ce139ff40d947eaf
* AOSP/Messaging - Changed midSdkVersion to 14 and reverted to using ↵Raman Tenneti2020-06-191-1/+1
| | | | | | | | | | | | | | Telephony.Carriers.CONTENT_URI instead of Telephony.Carriers.SIM_APN_URI. Fixes error: "NoSuchFieldError exception: Telephony.Carriers.SIM_APN_URI requires API level 29" Bug: 159055957 Test: manual - Tested the messaging UI. Without this change the app is crashing when we click on it. $ make -j 40 Change-Id: Ic34ccac673531a61386c1eaa3bbfff950d19517b
* Merge "Fix handling format based on API level accordingly."Treehugger Robot2020-06-193-7/+8
|\
| * Fix handling format based on API level accordingly.Taesu Lee2020-06-193-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | Use SmsMessage#createFromPdu(pdu, format) at least on M and replace SmsMessage#FORMAT_3GPP2 with "3gpp2". - SmsMessage#createFromPdu(pdu, format) is added in API level 23. - SmsMessage#FORMAT_3GPP2 is added in API level 28. Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Icab2c6c3c86ee8b6597881bfac6066fed60db4d2
* | Remove only one Lambda Exp for JAVA 7Taesu Lee2020-06-191-2/+4
|/ | | | | | | | | | Remove a Lambda Exp and replace ConcurrentHashMap#computeIfAbsent() with containsKey() and put() so that this app can be built using JAVA 7. Test: Build Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I7ff8a3b5fc4673dfe05c5ecc9418d377f3ed4f2e
* Fix creating ConnectivityUtil to work on any platformTaesu Lee2020-06-182-17/+27
| | | | | | | | | | | | | | | | | | | | | After this CL, ConnectivityUtil for default subId is used again on pre N because TelephonyManager has createForSubscriptionId() for a specific subId from N. Nevertheless, listen() uses the default subId on PhoneStateListener instead of the subId on the manager still even N. On O and beyond, ConnectivityUtil works correctly on multi-sim devices. Revert "Fix missing computeIfAbsent() method in L_MR1 and M" This reverts commit f0ccb76d8d9585846a7f5e7a83520ddcba057b26. Reason for revert: Manage ConnectivityUtil instances for subIds at least on N instead. Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I2f08928a6798a2ce275c5c75569ad379999d274c
* Merge "Fix missing computeIfAbsent() method in L_MR1 and M"Treehugger Robot2020-06-171-2/+5
|\
| * Fix missing computeIfAbsent() method in L_MR1 and MTaesu Lee2020-06-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | Replace ConcurrentHashMap#computeIfAbsent() with containsKey() and put() since computeIfAbsent() is added in API level 24. Bug: 158846265 Test: Build Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I3c43f0d7b1f289f0442c9359de4f099217244387
* | Remove unnecessary methods from MmsUtilsTaesu Lee2020-06-161-24/+0
|/ | | | | | | | | Same methods in PhoneUtils are used everywhere instead. Test: Build Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Ia17c1f17511c53a9235af462fa0809146726e89f
* Allow call to phone numbers or voice mail numbers onlyTaesu Lee2020-06-112-14/+18
| | | | | | | | | | | | | | | | | | | It allows to call to well-formatted phone numbers or carrier specific phone numbers starting with star sign such as *20 so that user can make a call directly in a conversation for voice mail SMSs. Revert "Check whether dialable only" This reverts commit dbc43316cf2cf46bd928a957781b8cf73c3282a8. Reason for revert: a call icon is disappeared for well-formatted phone number with parentheses, dash and etc. Test: Check the call icon in conversations for phone numbers and voice mail numbers. Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I1b279f8a5372b00a5a0c572f9969731f1e633389
* Check CONFIG_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES alwaysTaesu Lee2020-06-081-9/+2
| | | | | | | | | | | Check CONFIG_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES directly for each sending messages always so that the correct config can be used for each SIM cards in multi-sim devices. Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Iff80d093f43014ff2fe97caf6929aefe43911192
* Fix ConcurrentModificationExceptionTaesu Lee2020-06-051-1/+3
| | | | | | | | | | | ConcurrentModificationException could be happened during iterating if parts are added newly. Test: Select several images on Gallery app and attach them to a message via Sharing Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Idb96239ef2c05a08fc0727797b97739aa89f12a4
* Parse recipients from RESPOND_VIA_MESSAGE correctlyTaesu Lee2020-05-284-40/+13
| | | | | | | | | | | | | | | UriUtil#parseRecipientsFromSmsMmsUri() will returns a comma-separated recipients for common use so that InsertNewMessageAction#createMessage() can create or get a conversation correctly for RESPOND_VIA_MESSAGE. In addition, mms/mmsto schemes are added. And it includes small cleanup intent-filters for LaunchConversationActivity. Test: adb shell am startservice -a android.intent.action.RESPOND_VIA_MESSAGE -d "sms:12345678,87654321" -e android.intent.extra.TEXT "Text" Change-Id: I291dc765a46846982d059016d44f90873c687867 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Merge "Disallow making a call to emergency numbers"Treehugger Robot2020-05-251-12/+20
|\
| * Disallow making a call to emergency numbersTaesu Lee2020-05-251-12/+20
| | | | | | | | | | | | | | | | | | | | Show an error toast instead since ACTION_CALL intent cannot be used to call emergency numbers. Test: Make a call to an emergency number. Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Ia42c588848b643def068dec1d73e2e917a4b8214
* | Merge "Auto re-sending MMS for all the transient failures"Treehugger Robot2020-05-251-4/+8
|\ \
| * | Auto re-sending MMS for all the transient failuresTaesu Lee2020-05-251-4/+8
| |/ | | | | | | | | | | | | | | | | | | | | All the transient failures should be treated as same even reserved values for future purposes. (OMA-MMS-ENC-V1_2, 7.2.37. X-Mms-Response-Status field) Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Ia2739baebbf156b6fadee0fee71956b044c14234
* | Merge "Remove dead code"Treehugger Robot2020-05-251-13/+4
|\ \
| * | Remove dead codeTaesu Lee2020-05-251-13/+4
| |/ | | | | | | | | | | | | | | | | No need code to handle any retry case after downloading MMS. Test: No behavior change Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I053f85e0260f7c4cd76d52114077d220ac0b25ba
* / Check whether dialable onlyTaesu Lee2020-05-252-9/+17
|/ | | | | | | | | | It allows to call to any sender such as *20(Voice Mail Number for Chile Claro). Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Ifca83c5f05018de627fa38318fd4b6db20370910
* Revert "Messaging: Add "Mark as read" quick action for message notifications"Raman Tenneti2020-05-206-74/+4
| | | | | | | | This reverts commit f19e916a0d4ffd95e36c5203f5e04887e47a087e. Reason for revert: Reverting per Taesu Lee's comments, because it doesn't work and has issues. Change-Id: I778362b628f4c3ae076dd943e77dee415984fba0
* Merge "Revert "Messaging: Show quick reply choices only on wearable devices""Treehugger Robot2020-05-201-4/+3
|\
| * Revert "Messaging: Show quick reply choices only on wearable devices"Raman Tenneti2020-05-191-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dffc4fa5783cfa854edaf11ff3c789e588ad66c8. Reason for revert: Reverting per Taesu Lee's comments - https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1259839 @Raman, This new feature still doesn't work properly. As we know Luca has been submitted CL:1271087 and CL:1271088 to fix it. But it still has issues. Change-Id: I2e8eb1fce302b12f3f30b8163da7e749c08733d9
* | Rescheduling pending messages after outside window failureTaesu Lee2020-05-185-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No more rescheduling for pending messages after DownloadMmsAction is failed caused by outside window. Any pending download messages will be remained as the DOWNLOADING state without actual downloading operations and sending a DEFERRED M-NotifyResp.ind even. It will reschedule pending messages whenever sending or downloading is failed including outside window failure case. And it also removes dup scheduling and fix some typo. Test: Manual Change-Id: Ie37088347c69f25d838875830fc65ce7727fefe6 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>