Pop-up message when sending a large number of SMS messages
When I send a lot of text messages in my application, I get this popup message after sending the message:
I would like to know what is the maximum number of sms per second or minute while it is shown that it pops up according to the Android version .
Any help would be appreciated.
source to share
Android has sms limitation of 100 cm per hour by third-party apps (Icewream Sandwich and above)
Devices without sms limiter:
"If you have a Samsung Galaxy S or Samsung Note phone, you may not have a limiter. Almost all Motorolas have a limiter. Only a few HTCs have one."
Solutions:
1-For Root Phones:
Open a command terminal and enter the following:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
Then you will see: sqlite>
Then enter the following to change the limit
INSERT INTO gservices (name, value) VALUES('sms_outgoing_check_max_count', 101);
(change 101 to new limit)
2- For Non Rooted Devices:
Change the number of messages sent using the app to> 60 per hour.
Sms limitation for all devices running IceCream Sandwich or later.
The default limit for Android 4.0 was 100 cm / hour. However, with 4.1 (Jelly Bean) and KitKat, it was reduced to 30cm / 30min.
You can try your luck by trying the SMS Restriction Tool app , because Root is not required but highly recommended! He may try to update the settings without root. But there is a high failure rate.
source to share
My phone has Android 8 Oreo (I think working with android 6-7-8), I solved the problem like this:
-
Install TWRP (internet search) and set up your phone with TWRP SuperSU, all for your phone.
-
Open "Phone" and put on the Internet (not "Playin Play because it's worth it") Root FilleExplorer and SQlite Editor, and give them root access when you ask.
-
Explore the data /data/com.google.android.gsf/databases/gservices.db and click on this and select for the open editor SQlite.
-
After opening the database with the SQlite editor press "main" and now you will see a list with settings.
-
New entry selected in the right corner ''
-
Name, sms_outgoing_check_max_count '' Value, 9999 '' and ok
-
Restart your phone and WORK
source to share
It was a little late to answer, but thought it would help others in need.
To get the current maximum SMS counter, run the following commands:
settings get global sms_outgoing_check_max_count
settings get secure sms_outgoing_check_max_count
settings get system sms_outgoing_check_max_count
To update these values, simply replace get
withput
settings put global sms_outgoing_check_max_count 1000
settings put secure sms_outgoing_check_max_count 1000
settings put system sms_outgoing_check_max_count 1000
Hey wait !! you will still receive a dialog box with a lot of text messages .
To delay its appearance, use these commands.
settings put global sms_outgoing_check_interval_ms 60000
settings put secure sms_outgoing_check_interval_ms 60000
settings put system sms_outgoing_check_interval_ms 60000
We have now successfully set a limit of 1000 messages every 1 minute (60,000 milliseconds).
Here is the complete code written in kotlin
/**
* @param count max sms count
* @param interval interval to send sms
*/
fun updateDefaultSmsOutgoingCount(count: Long, interval: Long) {
// replace put with get to retrieve respected value
val commands = ArrayList<String>()
// count
commands.add("settings put global sms_outgoing_check_max_count $count")
commands.add("settings put secure sms_outgoing_check_max_count $count")
commands.add("settings put system sms_outgoing_check_max_count $count")
// interval
commands.add("settings put global sms_outgoing_check_interval_ms $interval")
commands.add("settings put secure sms_outgoing_check_interval_ms $interval")
commands.add("settings put system sms_outgoing_check_interval_ms $interval")
val runtime = Runtime.getRuntime()
for (i in 0 until commands.size) {
val cmd = commands[i]
var process: Process? = null
try {
process = runtime.exec(cmd)
} catch (e: Exception) {
Logger.printStackTrace(e)
} finally {
process?.destroy()
}
}
}
source to share