We found that apparently PacketManager.setComponentEnabledSetting() is a permanent setting which does not reset with an abrupt device power-cycle or task termination. The changes from setComponentEnabledSetting() are written into packages.xml. To enable/disable the setting one needs to call setComponentEnabledSetting() with appropriate flags from the code base.
This means that if for example you registered a receiver in a manifest and then disabled that receiver through setComponentEnabledSetting(), and then the device crashed, the receiver in that manifest will no longer be working.
I am wandering why google designed this the way they did.
Did anyone see the same issue?
This means that if for example you registered a receiver in a manifest and then disabled that receiver through setComponentEnabledSetting(), and then the device crashed, the receiver in that manifest will no longer be working.
I am wandering why google designed this the way they did.
Did anyone see the same issue?