Arrow Android 4.2 Change Default orientation to Portret

Hi!

I`m porting Android 4.2.2 to my Device, and have a problem with screen default orientation!

Code:
 public DisplayDeviceInfo getDisplayDeviceInfoLocked()
    {
      String str;
      if (this.mInfo == null)
      {
        this.mInfo = new DisplayDeviceInfo();
        this.mInfo.width = this.mPhys.width;
        this.mInfo.height = this.mPhys.height;
        this.mInfo.refreshRate = this.mPhys.refreshRate;
        if (this.mPhys.secure)
          this.mInfo.flags = 12;
        if (this.mBuiltInDisplayId != 0)
          break label264;
        str = SystemProperties.get("ro.sf.hwrotation");
        this.mInfo.name = LocalDisplayAdapter.this.getContext().getResources().getString(17040667);
        DisplayDeviceInfo localDisplayDeviceInfo = this.mInfo;
        localDisplayDeviceInfo.flags = (0x3 | localDisplayDeviceInfo.flags);
        this.mInfo.type = 1;
        this.mInfo.densityDpi = (int)(0.5F + 160.0F * this.mPhys.density);
        this.mInfo.xDpi = this.mPhys.xDpi;
        this.mInfo.yDpi = this.mPhys.yDpi;
        this.mInfo.touch = 1;
        this.mInfo.rotation = 0;
        if (!"270".equals(str))
          break label224;
        this.mInfo.rotation = 3;
      }
      while (true)
      {
        return this.mInfo;
        label224: if ("180".equals(str))
        {
          this.mInfo.rotation = 2;
          continue;
        }
        if (!"90".equals(str))
          continue;
        this.mInfo.rotation = 1;
        continue;
        label264: this.mInfo.type = 2;
        this.mInfo.name = LocalDisplayAdapter.this.getContext().getResources().getString(17040668);
        this.mInfo.touch = 2;
        this.mInfo.setAssumedDensityForExternalDisplay(this.mPhys.width, this.mPhys.height);
        if (!"portrait".equals(SystemProperties.get("persist.demo.hdmirotation")))
          continue;
        this.mInfo.rotation = 3;
      }
    }
I found this code in services.jar/display/localdisplay... How it modify to get portrait orientation when hwrotation=0???/