Introduce trigger for AUTO_ADD update

AUTO_ADD can be changed after database upgrade.

Also stop using constants in the relevant upgrade code.
The code should use the exact value at that moment, not the latest
values each constant points to in the latest code base.

TESTED:
- GB to ICS migration path with phone device
- HC to ICS migration path with tablet device

Bug: 5153692
Change-Id: I9460a9da42cc3685328f8063c81c72c5f6aec268
1 file changed