Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How can I check the value of wtf_is_fatal?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shri  
View profile  
 More options Aug 10 2012, 2:13 pm
From: Shri <shri.bo...@gmail.com>
Date: Fri, 10 Aug 2012 11:13:28 -0700 (PDT)
Local: Fri, Aug 10 2012 2:13 pm
Subject: How can I check the value of wtf_is_fatal?

I want to check if Log.wtf will result in program termination. I want to
use that property to enable expensive asserts in my program. How can I
check for this? I used the following code but it throws
SettingNotFoundException.

  int wtfIsFatal =
android.provider.Settings.Secure.getInt(getContentResolver(),
"wtf_is_fatal");

I tried adding android.permission.WRITE_SECURE_SETTINGS to my
AndroidManifest.xml but that does not help. I had set wtf_is_fatal as such:

adb root
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db

>> insert into secure (name, value) values ('wtf_is_fatal', 1);
>> select * from secure;

...
60|wtf_is_fatal|1
...

Thanks,
Shri


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.