Open b5-3 opened 7 years ago
Does it happen only for release builds? how often does it happen? Always? When are you querying the provider? Right after the app has started?
When I receive ACTION_MY_PACKAGE_REPLACED, I read a preference key like below in onReceive() means, process has been killed for package install and then created by ACTION_MY_PACKAGE_REPLACED.
1 : version
Preference oldPreference = new Preference("SETUP_WIZARD", 1);
String oldWay = null;
try {
oldWay = oldPreference.getString(Preference.KEY_SOFTWARE_UPDATE);
} catch (ItemNotFoundException e) {
LogUtil.w(TAG, "KEY_SOFTWARE_UPDATE not found");
}
it's occurred frequently. not always I have observed this in release build only now, but I'm not sure that debug build has no same issue.
Should I create a tray preference instance in Application class?
Do you know why this security exception occur? I am accessing it in my own process.
I am keeping tray provider like below for proguard obfuscation