How can I install flashable zips in Android-x86 I have recently started running Android-x86 version 6.0-RC1 on my iMac, and I am considering making it on of my several daily drivers. There is one major issue however that is casting some doubt: I cannot seem to find a way to install flashable zip files. I have looked into a custom recovery, however apparently the directory structure of Android-x86 is too different from that of its mobile-device counterpart to run or even install one directly. I have attempted to use Chainfire's FlashFire, however it unsurprisingly does not work for similar reasons to the last method.

I've read on a very short conversation in the XDA-Developers forum discussing this topic that a recovery would be relatively unnecessary because "you could simply use a lightweight Linux distro as a recovery". I am assuming from the wording that you would do this by booting a small Linux distro on the same machine, mounting the main image for Android-x86, extracting the flashable zip and running the install script contained within, however I am entirely unsure as to whether or not this method would work in practice, as I cannot find any more info on it.

I need the ability to flash a flashable zip file as it is the only way as of current aside from using a custom recovery to install the Xposed framework on android, upon which I rely heavily for everything from personal conveniences to more manually configurable security functions to ease of development. Given Android-x86's inherent compatibility with virtually anything compiled to run on an Intel Atom or Celeron based android device the lack of Xposed is the one factor stopping me from being able to attempt custom ROM development, as well as starting to port several already under development projects that have been until now exclusive to BSD/Debian distros over to rooted Intel based android devices. 


UPDATE: I've managed to mount the Android-x86 fs from a live GParted CD, and chroot to it, but when running  flash-script.sh  it starts the installer, and output the following error log:

******************************
Xposed framework installer zip
******************************
-Mounting /system and /vendor read-write
/tmp/META-INF/com/google/android/flash-script.sh[102]: can't create /dev/null: No such file or directory
/tmp/META-INF/com/google/android/flash-script.sh[103]: can't create /dev/null: No such file or directory
/tmp/META-INF/com/google/android/flash-script.sh[104]: mount: not found
/tmp/META-INF/com/google/android/flash-script.sh[105]: can't create /dev/null: No such file or directory
-Checking Environment
/tmp/META-INF/com/google/android/flash-script.sh[112]: head: not found
/tmp/META-INF/com/google/android/flash-script.sh[112]: sed: not found
/tmp/META-INF/com/google/android/flash-script.sh[114]: cut: not found
*Continues till line 121*
 Xposed version:
! Wrong platform: arm
! This file is for:
! Please download the correct package
! for your platform/ROM


Now I'm assuming the reason this happened is that the Linux version I'm using is too lightweight and doesn't include the required programmes, however that does not explain the fact that the error log reports the system as ARM and claims the x86 version is incorrect for my platform given that I'm running a copy of Android-x86, so if anyone has insight, please supply!
This is caused by the install script incorrectly detecting your platform as ARM.

In order to fix this issue, which is specific to the Xposed ZIP file, you must hack edit flash-script.sh.

Search for:

if [ -z $XVALID ]; then
  echo "! Please download the correct package"
  echo "! for your platform/ROM!"
  exit 1
fi


Comment out the exit command, by adding a # before it.
At least in the current version of Xposed (v86), this is line 162 of the flash-script.sh file.

The resulting block will be:

if [ -z $XVALID ]; then
  echo "! Please download the correct package"
  echo "! for your platform/ROM!"
  #exit 1
fi



Source: How to Install Xposed on MEmu Lollipop Beta


[Edit] Since you are having a great deal of trouble, I'm going to provide detailed fool-proof steps for successfully installing Xposed on Android-x86:


Download Xposed to your computer
Extract the contents of the compressed file somewhere
From your file manager (Finder | Windows Explorer | Nemo | Some other), open the directory where the file contents have been extracted to and browse to: META-INF \ com \ google \ android
Select the entire contents of this directory and Control + C
Go back to the directory containing the resulting files (same as Step 3) and then Control + V
Among the files you have just copied is flash-script.sh. Now you must edit this file with a text editor of your choice, according to the previous part of this answer.
Save and close the file. Make sure it is actually saved.
Make a new .zip file with the updated contents, including of course the flash-script.sh file which you have edited.
Send this new (make sure!) zip file to your Android-x86 environment with a method of your choice. ADB, e-mail to yourself, some anonymous temporary file upload service, etc.
From Android-x86, extract the contents of this new zip file.
Launch Terminal Emulator.
Type in su and hit Enter
If you are asked for Super User privilege, confirm (i.e. hit "Allow")
Type sh "flash-script.sh" and hit Enter
Reboot your phone and launch the Xposed APK to confirm whether it's been successfully installed.