Remove SMS Limit

anaylor01

Well-Known Member
Licensed User
Longtime User
Maybe you can help me with this. I am trying to remove the SMS limit. I found some information on the net but am having trouble getting it to work. http://www.flixya.com/blog/2933174/How-to-Increase-the-SMS-Limit-on-Android-How to Increase the SMS Limit on AndroidIt keeps saying "No Such Table". Here is what I have so far.
B4X:
SQL1.Initialize(File.DirInternal, "settings.db", True)
lblsendingto.Text =  SQL1.ExecQuerySingleResult("SELECT count(name) FROM gservices")
 

anaylor01

Well-Known Member
Licensed User
Longtime User
According to the post. The database is /data/data/com.android.providers.settings/databases/settings.db
How would I initialize this? Here is the info from the post.

Open Command Terminal and enter the following:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
Then you’ll see: sqlite>
To turn off the limit enter:
INSERT INTO gservices (name, value) VALUES(’sms_outgoing_check_interval_ms’, 0);
It worked right away for me.. (SMS Bomber >)) Id reboot to be safe.
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
I have an app that will do this. I ran it with Logcat running. I attached the Logcat file with the piece I think is beneficial highlighted. But I could be wrong about the highlighted part.
 

Attachments

  • SMS Removal.zip
    10 KB · Views: 493
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
I tried the code below and it says unable to open file.
B4X:
SQL1.Initialize("/data/data/com.android.providers.settings/databases/settings.db","/data/data/com.android.providers.settings/databases/settings.db", False)
 
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
Maybe you should read the docs
Initialize (Dir As String, FileName As String, CreateIfNecessary As Boolean)
and then seperate the filename and the directory.
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
I did. I just didn't put 2 and 2 together. I have tried the following with the same result. "Unable to open"
B4X:
SQL1.Initialize("data/data/com.android.providers.settings/databases","settings.db", False)
SQL1.Initialize("/data/data/com.android.providers.settings/databases","settings.db", False)
SQL1.Initialize("data/data/com.android.providers.settings/databases/","settings.db", False)
SQL1.Initialize("/data/data/com.android.providers.settings/databases/","settings.db", False)
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
I ran the following code and was able to create a database in the same folder as the settings database.
B4X:
SQL1.Initialize("/data/data/com.android.providers.settings/databases","TEST.db", True)
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
Ok. I went into root explorer and changed the permissions on settings.db. I will post another questions about how to change permissions.
 
Upvote 0
Top