{"id":6442,"date":"2026-08-24T16:34:50","date_gmt":"2026-08-24T16:34:50","guid":{"rendered":"https:\/\/www.voodoo.business\/blog\/?p=6442"},"modified":"2026-08-26T08:59:36","modified_gmt":"2026-08-26T08:59:36","slug":"installing-and-rooting-an-avd","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2026\/08\/24\/installing-and-rooting-an-avd\/","title":{"rendered":"Installing and rooting an AVD"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here, I would like to install an AVD with Android Studio, then root it<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where to install<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, I would like to have my virtual machines installed on a different SSD (Or Hard drive), in my case, this is because my main disk is always busy, and i want the Android Virtual Device to be snappy, others may have storage space concerns, others may want to skip this step, depends&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this on my Debian machine, i need to add the following line to ~\/.bashrc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export ANDROID_AVD_HOME=\"\/hds\/ssngoem\/avd\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On windows, i would have to Edit the system environment variables.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you just want to move a machine, move it from ~\/.android\/avd\/, don&#8217;t move the ini file, instead edit the ini file and fix the location of the virtual machine to wherever you put it<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, all we need to do is create a machine in Android Studio!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Root it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To root the phone we need rootAVD<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start by checking whether the AVD is connected to the PC with <code>adb devices<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">adb devices<br>List of devices attached<br>emulator-5554 device<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So it seems that it is !<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we need rootAVD from newbit (<a href=\"https:\/\/gitlab.com\/newbit\/rootAVD\">https:\/\/gitlab.com\/newbit\/rootAVD<\/a>)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone https:\/\/gitlab.com\/newbit\/rootAVD.git<br>cd rootAVD<br>.\/rootAVD.sh listAllAvds (On windows, use rootAVD.bat instead of sh)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above command will give you a list of commands for each and every one of your Android Virtual Devices ! I will copy the first one, but the end of every line there is the last word that explains what it is<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you run the command to root the phone, the phone will reboot (Or shutdown), you need to start the phone again (Make sure you chose cold boot from the &#8230; menu), and you will find a tool called magisk on the phone emulator, you need to run it, when you run it for the first time, it will tell you there is additional setup that needs to be done, which will reboot the device again<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your phone should now be rooted, to be sure, you can<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">adb shell<br>whoami<br>su (The phone screen will ask for permission)<br>whoami<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here, I would like to install an AVD with Android Studio, then root it Where to install First of all, I would like to have my virtual machines installed on a different SSD (Or Hard drive), in my case, this is because my main disk is always busy, and i want the Android Virtual Device [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,216,139],"tags":[],"class_list":["post-6442","post","type-post","status-publish","format-standard","hentry","category-android","category-android-gadgets","category-virtualization-linux"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/6442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=6442"}],"version-history":[{"count":15,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/6442\/revisions"}],"predecessor-version":[{"id":6460,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/6442\/revisions\/6460"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=6442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=6442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=6442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}