1

This question already has an answer here:

My application required to use some system command such as wm size and wm size reset to change the screen size so an application supposed be running on Portrait only mode will be displayed as portrait in a landscape screen.

I have gone through many of the answer in stack overflow but still can't get an idea of how to do it.

Somebody can give me a step by step guide how to achieve this thanks. I've tried the Andydroid emulator but still not work.

I know the emulator is rooted when using adb console but looks like if I test it with my program, it was not.

marked as duplicate by xavier_fakerat, Dan Hulme Feb 9 '18 at 8:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You've already received the answer here. – Onik Dec 1 '16 at 22:44
  • I should remove one of the question later.. He talked about "You still need to manually elevate your privileges (by using su)". How do I manually elevate the privilege – LittleFunny Dec 1 '16 at 23:11
  • "How do I manually elevate the privilege" There is a couple of thousands of questions about it on SO with tons of great answers. Do you ask us how to Google? – Onik Dec 1 '16 at 23:17
  • I have gone through in google to see how to root but none of them work... I understand we can find good answer in google, maybe i am not smart enough to extinguish which are the good answer. I tried to follow this but it doesn't seem to work : p0l0.binware.org/index.php/2015/11/12/… – LittleFunny Dec 1 '16 at 23:32
  • What exactly is your emulator? Genymotion and AMIDuOS can be (relatively easily) rooted. – Andy Yan Dec 2 '16 at 0:21
0

I have found the way to root. Only work on certain API Level stated in their answer.

Attempt to root AVD running Android 4.4/5.1 is failing

Not the answer you're looking for? Browse other questions tagged or ask your own question.