Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Helpers/SMSHelper.java
Show All 21 Lines | |||||
22 | 22 | | |||
23 | import android.content.Context; | 23 | import android.content.Context; | ||
24 | import android.database.ContentObserver; | 24 | import android.database.ContentObserver; | ||
25 | import android.database.Cursor; | 25 | import android.database.Cursor; | ||
26 | import android.net.Uri; | 26 | import android.net.Uri; | ||
27 | import android.os.Build; | 27 | import android.os.Build; | ||
28 | import android.os.Looper; | 28 | import android.os.Looper; | ||
29 | import android.provider.Telephony; | 29 | import android.provider.Telephony; | ||
30 | import android.support.annotation.RequiresApi; | | |||
31 | import android.util.Log; | 30 | import android.util.Log; | ||
32 | 31 | | |||
33 | import org.json.JSONException; | 32 | import org.json.JSONException; | ||
34 | import org.json.JSONObject; | 33 | import org.json.JSONObject; | ||
35 | 34 | | |||
36 | import java.util.ArrayList; | 35 | import java.util.ArrayList; | ||
37 | import java.util.HashMap; | 36 | import java.util.HashMap; | ||
38 | import java.util.List; | 37 | import java.util.List; | ||
39 | import java.util.Map; | 38 | import java.util.Map; | ||
40 | import java.util.concurrent.locks.Condition; | 39 | import java.util.concurrent.locks.Condition; | ||
41 | import java.util.concurrent.locks.Lock; | 40 | import java.util.concurrent.locks.Lock; | ||
42 | import java.util.concurrent.locks.ReentrantLock; | 41 | import java.util.concurrent.locks.ReentrantLock; | ||
43 | 42 | | |||
43 | import androidx.annotation.RequiresApi; | ||||
44 | | ||||
44 | public class SMSHelper { | 45 | public class SMSHelper { | ||
45 | 46 | | |||
46 | /** | 47 | /** | ||
47 | * Get the base address for the SMS content | 48 | * Get the base address for the SMS content | ||
48 | * <p> | 49 | * <p> | ||
49 | * If we want to support API < 19, it seems to be possible to read via this query | 50 | * If we want to support API < 19, it seems to be possible to read via this query | ||
50 | * This is highly undocumented and very likely varies between vendors but appears to work | 51 | * This is highly undocumented and very likely varies between vendors but appears to work | ||
51 | */ | 52 | */ | ||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |