[TIMOB-12613] [TIMOB-12617] Fixed device and package builds to force xco...

...de to compile and re-sign the code. [TIMOB-12419] Fixed bug when switching between full-copy and non-full-copy builds.