Coder Social home page Coder Social logo

extremegtx / androidx86-installer-for-windows Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 40.0 6.8 MB

This installer will help users install Android-x86 on UEFI-Enabled PC from windows, without HDD repartioning or messing things up

License: MIT License

NSIS 1.68% C# 98.32%
android uefi

androidx86-installer-for-windows's People

Contributors

extremegtx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidx86-installer-for-windows's Issues

Check for already installed Android installations before starting installation

Right now, if you already have some android installations on your disk and you start to install another one with the installer, it will give you an error saying that you've already installed some Android build. The thing is that this info/error should prevent you from even starting to install instead of error poppinout in the last step - after making the data.img file - so lots of time is wasted.

Anyway, it'd be better if you could install multiple androids with this app like I suggested in the other issue.

Multiple Android installations on one machine

Right now, your program supports installing only one Android OS, I'd like to install few Android systems like RemixOS and PhoenixOS all at once on the same HDD, but different partitions. Could you please add support for this.

Refactor Androidx86 Installer

  • Restructing folders in InstallerApp
  • Installation steps
  • System Requirements
  • Separate Business classes from UI
  • Use Data Binding in UI
  • UEFIWrapper Factory
  • Move LoadLibrary, SaveLibrary APIs from AndroidMaterial.xaml.cs
  • Create Observable Pattern for UI Notifications
  • Upgrade Logger c# ForeNet + UI for exception messages
  • Refactor Windows Security Class, remove duplicate methods and structures in Win32Native.cs

Windows 11

Lenovo 1 15amn7 - Windows 11 - Bitlocker Disable - Secure Boot Disabled

error: no such device /AndroidOS/android.boot
error: file /AndroidOS/kernel not found
error: you need to load the kernel first

Use JSON File for os image config

  • Instead of hard coded info about android image file structure and available boot files, each version of android should have an entry in a JSON file with the right configuration:
{
   "version": "9.0.0",
   "url": "https://android-x86.org/android-9.img",
   "system.img":"system.sfs"
}

Ability to Patch the android Installation

User may need to patch the image with System level modifications, like:

  • Install GoogleApps
  • Install ARM Emulation library

The installer should accept .zip file with the mods needed, same as TWRP way.

How can I edit grub after installation?

I have successful installed android x86 system with the installer. It works.
After that, I am trying to install another android x86 OS on my disk,but can't find grub.cfg,or /boot folder.
Can you help me?

By the way, would you support Remix OS in the future,since it's optimized for desktop.

Android-x86 6.0-r1 install issue

Current version(Ver 2.4) occurs an error at "BasicInstaller.cs:260" when I use "android-x86-6.0-r1.iso".
string ExecutableArgs = String.Format(" e "{0}" "efi\boot\grub.cfg" -o{1}", ISOFilePath, ExtractDirectory);

On android-x86-6.0-r1.iso, "grub.cfg" is placed on "boot/grub/" directory. So, I think that it needs to modify the code for 6.0 release iso image.

Users can't use img file from a path contains space

When a user stores android img file at a directory with space, 7z.exe can't find the archive

Example:
E:\My Downloads\android-5.1.img

Error output:

7-Zip 9.28 alpha Copyright (c) 1999-2012 Igor Pavlov 2012-06-20
Processing archive: E:\My
Error: Can not open file as archive

Update status during installation

Update the UI with current installation step so user can check what's going on now.
Next elements will be added to UI:

  • a TextBlock
  • a Progress bar

Phoenix OS not working

used the installer and got an windows boot error when choosing android as a boot option

[GRUB] Add GPU options to item bootlist

Some users are facing a black screen issue or white screen issue.So, some boot entries should be added with different gpu boot options to help users get around this issue.

What should I do now?

================Installer Info================
Installer Directory:C:\Users\chilo\AppData\Local\Temp\droidinst_efi
Installer Version:2.4.5800.0
Secure Boot ... Disabled
Manufacturer: Acer
Model: Aspire A315-56
Product: Sleepy_IL
BIOS info:
ACRSYS - 2
V1.22
INSYDE Corp. - 59115122
Available GPU(s):
GPU: Intel(R) UHD Graphics
=============[REQUIREMENTS CHECK]============
Administrator privilege ... ok
CPU Architecture: 9
CPU Name: Intel(R) Core(TM) i3-1005G1 CPU @ 1.20GHz
OSVer: Microsoft Windows NT 10.0.22621.0
OperatingSystem Version ... ok
Windows Security: Access NVRAM Privilege ... Not All Set
System Firmware: UEFI

====Install Started on 20/01/2023 16:20:11====
-ISO File: D:\BlissOS\Bliss-v11.14--OFFICIAL-20210508-1013_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.10_pie-x86_dgc-p9.0-11.13_ld-p9.0-x86_dg-_dh-blueprint_pie-x86_w45_2020_mg-p9.0-x86.iso
-TargetDrive: E
-UserData: 33470546
-Setup Directories...
-Folder Created: E:\AndroidOS
-Extract ISO
#Launch:C:\Users\chilo\AppData\Local\Temp\droidinst_efi\7z.exe x "D:\BlissOS\Bliss-v11.14--OFFICIAL-20210508-1013_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.10_pie-x86_dgc-p9.0-11.13_ld-p9.0-x86_dg-_dh-blueprint_pie-x86_w45_2020_mg-p9.0-x86.iso" "kernel" "ramdisk.img" "initrd.img" "system.*" -oE:\AndroidOS
-Extract SFS
#Launch:C:\Users\chilo\AppData\Local\Temp\droidinst_efi\7z.exe x E:\AndroidOS\system.sfs "system.img" -oE:\AndroidOS
#Launch:C:\Users\chilo\AppData\Local\Temp\droidinst_efi\7z.exe e "D:\BlissOS\Bliss-v11.14--OFFICIAL-20210508-1013_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.10_pie-x86_dgc-p9.0-11.13_ld-p9.0-x86_dg-_dh-blueprint_pie-x86_w45_2020_mg-p9.0-x86.iso" "efi\boot\grub.cfg" -oE:\AndroidOS
==============Revert Installation==============
-Cleaning up Android Directory ... E:\AndroidOS
===Removing Boot Objects===
-Mounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /S
-Remove Android UEFI Entry
-UEFI: -1
-Cleaning up Android Directory ... Z:\EFI\Android
-UnMounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /D

====Install Started on 20/01/2023 16:24:18====
-ISO File: D:\BlissOS\Bliss-v11.14--OFFICIAL-20210508-1013_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.10_pie-x86_dgc-p9.0-11.13_ld-p9.0-x86_dg-_dh-blueprint_pie-x86_w45_2020_mg-p9.0-x86.iso
-TargetDrive: E
-UserData: 33470546
-Setup Directories...
-Folder Created: E:\AndroidOS
-Extract ISO
#Launch:C:\Users\chilo\AppData\Local\Temp\droidinst_efi\7z.exe x "D:\BlissOS\Bliss-v11.14--OFFICIAL-20210508-1013_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.10_pie-x86_dgc-p9.0-11.13_ld-p9.0-x86_dg-_dh-blueprint_pie-x86_w45_2020_mg-p9.0-x86.iso" "kernel" "ramdisk.img" "initrd.img" "system.*" -oE:\AndroidOS
-Extract SFS
#Launch:C:\Users\chilo\AppData\Local\Temp\droidinst_efi\7z.exe x E:\AndroidOS\system.sfs "system.img" -oE:\AndroidOS
#Launch:C:\Users\chilo\AppData\Local\Temp\droidinst_efi\7z.exe e "D:\BlissOS\Bliss-v11.14--OFFICIAL-20210508-1013_x86_64_k-k4.19.122-ax86-ga-rmi_m-20.1.10_pie-x86_dgc-p9.0-11.13_ld-p9.0-x86_dg-_dh-blueprint_pie-x86_w45_2020_mg-p9.0-x86.iso" "efi\boot\grub.cfg" -oE:\AndroidOS
==============Revert Installation==============
-Cleaning up Android Directory ... E:\AndroidOS
===Removing Boot Objects===
-Mounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /S
-Remove Android UEFI Entry
-UEFI: -1
-Cleaning up Android Directory ... Z:\EFI\Android
-UnMounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /D

====Uninstall Started on 20/01/2023 16:27:19====
Android Installation Not Found
===Removing Boot Objects===
-Mounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /S
-Remove Android UEFI Entry
-UEFI: -1
-Cleaning up Android Directory ... Z:\EFI\Android
-UnMounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /D

make mounted UEFI partition to have other drive letter

I just got an issue when installing BlissOS and PrimeOS, Both ended up failed.

When I look at the log file generated, The installer tries to mount UEFI partition to Z: drive letter which is currently used to mount my workplace network drive.

I looked to your source code and found that the drive letter to mount UEFI partition is hardcoded to use Z: drive letter.

I can install it using USB Drive. but, no shop offers <16GB USB Drive in my place.

Here's the generated log:

================Installer Info================
Installer Directory:C:\Users\Syahriel Ibnu\AppData\Local\Temp\RarSFX0
Installer Version:2.6.0.0
Secure Boot ... Disabled
Manufacturer: Hewlett-Packard
Model: HP 14 Notebook PC
Product: 22CF
BIOS info:
HPQOEM - 1
F.16
INSYDE Corp. - 10000001
Available GPU(s):
GPU: AMD Radeon(TM) R5 Graphics
=============[REQUIREMENTS CHECK]============
Administrator privilege ... ok
CPU Architecture: 9
CPU Name: AMD A8-6410 APU with AMD Radeon R5 Graphics    
OSVer: Microsoft Windows NT 10.0.18362.0
OperatingSystem Version ... ok
Windows Security: Access NVRAM Privilege ... Not All Set
System Firmware: UEFI
==========================================
====Install Started on 10/05/2019 08.20.03====
-ISO File: D:\Downloads\blisspie.iso
-TargetDrive: G
-UserData: 23068672
-Setup Directories...
-Folder Created: G:\AndroidOS
-Extracting ISO
#Launch:C:\Users\Syahriel Ibnu\AppData\Local\Temp\RarSFX0\7z.exe x "D:\Downloads\blisspie.iso" "kernel" "ramdisk.img" "initrd.img" "system.*" -oG:\AndroidOS
#Launch:C:\Users\Syahriel Ibnu\AppData\Local\Temp\RarSFX0\7z.exe e "D:\Downloads\blisspie.iso" "boot\grub\grub.cfg" -oG:\AndroidOS
-Creating Data.img
#Launch:C:\Users\Syahriel Ibnu\AppData\Local\Temp\RarSFX0\dd.exeif=/dev/zero of=G:\AndroidOS\data.img count=23068672
-Initialize Data.img
#Launch:C:\Users\Syahriel Ibnu\AppData\Local\Temp\RarSFX0\mke2fs.exe-F -t ext4 "G:\AndroidOS\data.img"
===Installing Boot Objects===
-Mounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /S
Error Executing C:\Windows\System32\mountvol.exe with Args:  Z: /S
Error output:

The directory is not empty.

==============Revert Installation==============
-Cleaning up Bliss Directory ... G:\AndroidOS
===Removing Boot Objects===
-Mounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /S
Error Executing C:\Windows\System32\mountvol.exe with Args:  Z: /S
Error output:

The directory is not empty.

-UEFI Init ... fail
-Cleaning up Bliss Directory ... Z:\EFI\boot\
-UnMounting EFI Partition...
#Launch:C:\Windows\System32\mountvol.exe Z: /D
Error Executing C:\Windows\System32\mountvol.exe with Args:  Z: /D
Error output:

The system cannot find the file specified.

==========================================

Additional hardware info:

RAM: 8GB
HDD: 500GB (13 partitions incl. system, 5 visible from windows)
OS: Windows 10 19H1 64bit, Ubuntu 18.04, Android-x86 6.0 (installed using DVD)
Broken DVD Drive.

Check Disk Space before installation

  • Check if system size and requested data size can be allocated on the disk before installation.
  • Size of temp installation files should be taken into consideration

Edit boot configure during installation?

The new release is much better than the official RemixOS installer, since this installer come with NTFS support and User-defined Data size feature.
Can you add a 'Edit Bootloader' button? This maybe not necessary for most Android x86 user, they installation will work without problem. But for remixos user, they have to do some change with grub.cfg.Otherwise the system won't boot.Such as replace --set=root /AndroidOS/android.boot with --set=root /AndroidOS/system.sfs, replace androidboot.hardware=android_x86_64 with androidboot.hardware=remix_cn_x86_64.
I know there is method to edit bootloader configure file before or after installation, but it's not very convenient.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.