Fix livesync to Android devices

We are using non-consecutive numbers in our enum to distinguish project types, but the old code uses consecutive ones.

Fix: Use named constants instead of hard-coded numbers. We must resolve the constants inside the method, instead of constructor injection, because these imports are available only in the Cordova CLI.

Fixes bug #273415
don't use the global injector inside injected types. Either inject the dependency in the ctor, or inject the injector itself in the ctor.