Skip to content

Commit 09fadbe

Browse files
committed
Skip voicemail entries on call log import
Closes: #110
1 parent 92294aa commit 09fadbe

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,14 @@ Contacts import and export is currently considered experimental, and the JSON fo
152152

153153
## Limitations
154154

155+
### Contacts
156+
155157
Contacts import only imports basic contact data (name, phone numbers, email and postal addresses, etc.), but not the contacts metadata that Android stores. Additionally, imported contacts are not associated with [the accounts with which they had been associated](https://developer.android.com/guide/topics/providers/contacts-provider#InformationTypes) on the system from which they were exported, and the user has no control over which account they will be associated with on the target system; all contacts are inserted into the target system's default account.
156158

159+
### Call logs
160+
161+
Voicemail entries are skipped on call log import (see [issue #110](https://github.com/tmo1/sms-ie/issues/110)).
162+
157163
### Call Log Maximum Capacity
158164

159165
Although this is apparently not publicly officially documented, Android's Call Log has a fixed maximum number of calls that it will store ([500 in many / most versions of Android](https://android.gadgethacks.com/how-to/bypass-androids-call-log-limits-keep-unlimited-call-history-0175494/), 1000 in API 30 (version 11) on a Pixel [my own experience, corroborated [here](https://stackoverflow.com/questions/70501885/the-max-of-incoming-outgoing-or-missed-calls-logs-in-android)]).

app/src/main/java/com/github/tmo1/sms_ie/ImportExportCallLog.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ suspend fun importCallLog(
159159
}
160160
}
161161
var insertUri: Uri? = null
162-
if (callLogMetadata.keySet().contains(CallLog.Calls.NUMBER)) {
162+
if (callLogMetadata.keySet().contains(CallLog.Calls.NUMBER) && callLogMetadata.getAsString(CallLog.Calls.TYPE) != "4") {
163163
insertUri = appContext.contentResolver.insert(
164164
CallLog.Calls.CONTENT_URI,
165165
callLogMetadata
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
- Optional message deduplication on import (experimental)
22

3+
- Skip voicemail entries on call log import (see https://github.com/tmo1/sms-ie/issues/110)
4+

0 commit comments

Comments
 (0)