After a lot of struggling, I found the problem, and I hope it will help someone in the future.
On initFromCameraParameters method in CameraConfigurationManager there is an assumption that the scan is ALWAYS in landscape mode, and therefor a fix when width < height.
If You follow the steps in the question and remove this check, it works fine.