Bug 973450 - [settings] refactor Device information panel with AMD patte...

separate hardwareInfo retrieval and check update function into separate modules, and make related tests works in AMD.
same here, the reason why we want this is because we don't want to call `init` in that moment, so we have to make init a inner function