mirror of
https://github.com/danog/termux-api.git
synced 2024-12-12 09:29:46 +01:00
de44896a01
These are no longer permitted by Google: https://play.google.com/about/privacy-security-deception/permissions/
24 lines
713 B
Java
24 lines
713 B
Java
package com.termux.api;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.util.JsonWriter;
|
|
|
|
import com.termux.api.util.ResultReturner;
|
|
import com.termux.api.util.ResultReturner.ResultJsonWriter;
|
|
|
|
public class SmsInboxAPI {
|
|
|
|
static void onReceive(TermuxApiReceiver apiReceiver, final Context context, Intent intent) {
|
|
ResultReturner.returnData(apiReceiver, intent, new ResultJsonWriter() {
|
|
@Override
|
|
public void writeJson(JsonWriter out) throws Exception {
|
|
out.beginObject();
|
|
out.name("error").value("Reading SMS is no longer permitted by Google");
|
|
out.endObject();
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|