I FOUND GSERVICES!
it is in /data/data/com.google.android.gsf/databases/gservices.db
bad news...the sms thing doesn't seem to be in there...or at least i didn't see it...any ideas people?
I found that too, tried entering the setting from the previous fix into this db in many different ways, no luck...
anyone know where we can look at the actual code that checks to see if the limit is reached? It might tell us where to put replacement settings.
I've been trying it in the gservices database in the override and main tables with no success. Not sure where the settings would be located...
I do find sms_outgoing_check_max_count referenced in settings.java
any thoughts to tweak here? I'm running 2.1 still on my phone since I need the limit removed... Who want's to play?
http://www.kiwidoc.com/java/l/p/android/android/8/p/android.provider/c/Settings.Secure
Class: android.provider.Settings.Secure
public static final class Settings.Secure
extends Settings.NameValueTable
Secure system settings, containing system preferences that applications can read but are not allowed to write. These are for preferences that the user must explicitly modify through the system UI or specialized APIs for those values, not modified directly by applications.
Open Command Terminal and enter the following:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
Then you'll see: sqlite>
Then enter the following to alter the limit
INSERT INTO secure (name, value) VALUES('sms_outgoing_check_max_count', 1001);
(change 1001 to your new limit)
To turn off the limit enter:
INSERT INTO secure (name, value) VALUES('sms_outgoing_check_interval_ms', 0);
Hey AlienDude I may have found something but don't have a live 2.2 phone to test on, check this:
Code:http://www.kiwidoc.com/java/l/p/android/android/8/p/android.provider/c/Settings.Secure Class: android.provider.Settings.Secure public static final class Settings.Secure extends Settings.NameValueTable Secure system settings, containing system preferences that applications can read but are not allowed to write. These are for preferences that the user must explicitly modify through the system UI or specialized APIs for those values, not modified directly by applications.
When you scroll down to sms_outgoing... it looks like this is the new location!
Can you try this for me?
Code:Open Command Terminal and enter the following: adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db Then you'll see: sqlite> Then enter the following to alter the limit INSERT INTO secure (name, value) VALUES('sms_outgoing_check_max_count', 1001); (change 1001 to your new limit) To turn off the limit enter: INSERT INTO secure (name, value) VALUES('sms_outgoing_check_interval_ms', 0);
Please let me know if this is it!
thanks!
--Dirk
int check_period = Settings.Secure.getInt(mResolver,
Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS,
DEFAULT_SMS_CHECK_PERIOD);
int max_count = Settings.Secure.getInt(mResolver,
Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT,
DEFAULT_SMS_MAX_COUNT);
mCounter = new SmsCounter(max_count, check_period);
Dirk, I've been trying this before you mentioned it, since I went through the source code of the SMSDispatcher class. I maintain an application that removes the SMS limit for you called InfiniteSMS, as well as a text bombing application called EliteBomb. I've had tried inserting that code into secure, but I still get reports of the sms limit removal not working. But, based on my analysis of SMSDispatcher, the settings are still there. Here's some code that proves that (this code sets the limit for the SMS counter):
Code:int check_period = Settings.Secure.getInt(mResolver, Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS, DEFAULT_SMS_CHECK_PERIOD); int max_count = Settings.Secure.getInt(mResolver, Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT, DEFAULT_SMS_MAX_COUNT); mCounter = new SmsCounter(max_count, check_period);
Great little app, wish it worked in 2.2!
Could you think of a way to trace this back to where the setting is stored?
Or maybe a way to change the default values?
How do you make changes to a .java file and use it?
/** Default checking period for SMS sent without user permit */
private static final int DEFAULT_SMS_CHECK_PERIOD = 3600000;
/** Default number of SMS sent in checking period without user permit */
private static final int DEFAULT_SMS_MAX_COUNT = 100;
/** Default checking period for SMS sent without user permit */
private static final int DEFAULT_SMS_CHECK_PERIOD = 0;
/** Default number of SMS sent in checking period without user permit */
private static final int DEFAULT_SMS_MAX_COUNT = 999999999;
Finding the setting and changing it using some simple sqlite manipulation is incredibly simpler.
Dirk, I've been trying this before you mentioned it, since I went through the source code of the SMSDispatcher class. I maintain an application that removes the SMS limit for you called InfiniteSMS, as well as a text bombing application called EliteBomb. I've had tried inserting that code into secure, but I still get reports of the sms limit removal not working. But, based on my analysis of SMSDispatcher, the settings are still there. Here's some code that proves that (this code sets the limit for the SMS counter):
Code:int check_period = Settings.Secure.getInt(mResolver, Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS, DEFAULT_SMS_CHECK_PERIOD); int max_count = Settings.Secure.getInt(mResolver, Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT, DEFAULT_SMS_MAX_COUNT); mCounter = new SmsCounter(max_count, check_period);