Changing device Orientation in v3.10 and below

I was looking through the previous threads in cocos2d-x forums about the topic “device orientation” but looks like their is no method to programatically change the orientation of device , is their any thing added to the new version ? i want to change orientation of device , or force cococs app too run under certain orientation specifically potrait and platform android , i’ve tried manifest method it does not work if primary orientation of device is to something else , Thank You