1

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.

eldarerathis
  • 36,787
  • 16
  • 144
  • 175
LittleFunny
  • 111
  • 1
  • 2
  • You've already received the answer here. – Onik Dec 01 '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 01 '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 01 '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 : http://p0l0.binware.org/index.php/2015/11/12/howto-root-andyos-under-mac-os-x/comment-page-1/#comment-91938 – LittleFunny Dec 01 '16 at 23:32
  • What exactly is your emulator? Genymotion and AMIDuOS can be (relatively easily) rooted. – Andy Yan Dec 02 '16 at 00:21
  • I went to Genymotion but seems like it require to pay to use. Tried the Andydroid, but the version installed is below my minSDKVersion of my application. Currently, I am running the emulator from AVD manager with current spec. AVD for Nexus One running 480*800mdpi with API 21 android 5.0.2 x86. – LittleFunny Dec 02 '16 at 00:35
  • where to get the up-to-date su binary. – LittleFunny Dec 02 '16 at 01:14

1 Answers1

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

LittleFunny
  • 111
  • 1
  • 2