copy / v86

x86 PC emulator and x86-to-wasm JIT, running in the browser
https://copy.sh/v86/
BSD 2-Clause "Simplified" License
19.81k stars 1.4k forks source link

Progress on Running Android-x86 #224

Closed boramalper closed 2 years ago

boramalper commented 6 years ago

It is clearly indicated in the readme -"No Android version seems to work, you still get a shell."- that Android doesn't run on v86, yet.

I wanted to submit a new issue for tracking the progress of running Android-x86 on v86, to share with each other


This is especially interesting/exciting since if we manage that, we can run Android as a progressive webapp (PWA) on Mobile Safari on iPhone and iPad; not that it will be necessarily useful but surely fun! =)

boramalper commented 6 years ago

android-x86-4.4-r5

Checkbox Flags:

ACPI: disabled

Browser: Firefox Quantum 61.0.1 (64-bit) on Ubuntu 16.04 v86 commit: 89f3a1c20bdf5745d400ad63c4671595289efccb


  1. I can see the bootloader, and I choose "Live CD - Debug Mode" to continue

    a1

  2. I get this glitch after /kernel and /initrd.img has been loaded:

    a2

    Edit: Setting vga parameter to 786 seems to remove the glitch (instead shows the bootloader as you've pressed enter). See GRUB VGA Modes for all possible values.

  3. I get BUG: unable to handle kernel paging request at ... which results in Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009

    a345

BelleNottelling commented 6 years ago

Look at this: https://sites.google.com/site/twisteroidambassador/android-x86/kitkat-non-sse3-build It seems android x86 needs SSE3 (and other SSE instructions) which v86 doesn't emulate

boramalper commented 6 years ago

@BenNottelling I'm downloading the image now, and will let you know the results soon. Thanks!

P.S. My download speed is horrible, not sure if I can finish downloading tonight...

BelleNottelling commented 6 years ago

Well, it seems it fails with a similar error. nope

copy commented 6 years ago

I did get Android working once (I believe android-x86-1.6-r2.iso), but it was so slow (taking one hour to boot) that I didn't bother pursuing this further.

Still would be worth fixing that panic. Contributions are very welcome.

BelleNottelling commented 6 years ago

I wonder why Android x86 is so slow

boramalper commented 6 years ago

I did get Android working once (I believe android-x86-1.6-r2.iso), but it was so slow (taking one hour to boot) that I didn't bother pursuing this further.

@copy Can you guess what might be the reason (or rather do you think it’s fixable)?

BelleNottelling commented 6 years ago

if you first install android-x86-1.6-r2.iso to a hdd image with qemu it boots MUCH faster within v86

boramalper commented 6 years ago

@BenNottelling Maybe it's relatively much faster but I still found it quite unusable, speed-wise. How was your experience?

BelleNottelling commented 6 years ago

@boramalper it was pretty unuseable lol

omerjerk commented 6 years ago

I have a doubt. Why not try to emulate normal Android on a arm emulator (probably this - https://github.com/ozaki-r/arm-js) instead of trying to emulate Android-x86 on an x86 emulator?

Just want to know what I am missing here.

niansa commented 6 years ago

You are missing, that There is no Android build for ARM Computers with Bios (MBR)… But probably it would be possible.

BelleNottelling commented 6 years ago

Hey here's a mini update for you! I found a build of android froyo (2.2) for VM's on the android X86 source forge page, and I believe it will work in vesa mode , but I haven't waited to see if it would yet. you want the froyo-vm-20100812.iso file

https://sourceforge.net/projects/android-x86/files/Testing/

omerjerk commented 6 years ago

I can try running it. πŸ˜… Will post my experience.

omerjerk commented 6 years ago

Hi,

I got time to test the image today. It's definitely some progress. I can see the Android shell getting opened and working all fine. screenshot from 2018-10-28 21-04-36

Before reaching this screen, I did see some errors like "Not a virtual machine?" and some function not found on the current system.

I tried running the same image in VirtualBox. In VirtualBox, the above shell appears and after this the actual GUI of Android appears all fine.

BelleNottelling commented 6 years ago

I'm pretty sure you can run all versions of Android x86 in virtual box

omerjerk commented 6 years ago

I mentioned VirtualBox to make the argument that the image is correct at least. And I assume that this is probably the only image which at least opens the Android shell, no?

BelleNottelling commented 6 years ago

No, I believe most reach the shell.

omerjerk commented 6 years ago

Oh. Okay. I can try getting the GUI.

BelleNottelling commented 6 years ago

Good luck sir!

m25160618 commented 4 years ago

Sorry iam late to this issue #224 I have followed Copy directions to setup local debug.html and have downloaded the Android froyo iso attached are the proof of pudding

Step1 Step2 Step3 Step4 Step5 Step6 step7

The next step is finding how to reduce the booting time of the android ? Any ideas how to achieve this are welcomed

pitust commented 4 years ago

How do you get the GUI?

copy commented 3 years ago

I added android-x86-1.6-r2.iso to the website: http://copy.sh/v86/?profile=android. Takes about 6 minutes to boot, a significant part of that is downloading cdrom sectors. It's scripted to auto-select VESA mode. If you see the A N D R O I D # prompt it's still loading.

Screenshot_2021-01-01_22-10-28

m25160618 commented 3 years ago

Sorry to have taken time to respond .

I have tested it works I dont know if your free to dive into your development of Android in browser .

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: Fabian notifications@github.com Sent: 02 January 2021 04:08 To: copy/v86 v86@noreply.github.com Cc: m25160618 m25160618@outlook.com; Comment comment@noreply.github.com Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

I added android-x86-1.6-r2.iso to the website: http://copy.sh/v86/?profile=android. Takes about 6 minutes to boot, a significant part of that is downloading cdrom sectors. It's scripted to auto-select VESA mode. If you see the A N D R O I D # prompt it's still loading.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/copy/v86/issues/224#issuecomment-753428348, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AOVQRNGZBUEVDQUHNV23SX2L2PANCNFSM4FRXDLIQ.

m25160618 commented 3 years ago

Hi Fabian

I was testing the android in MSI computer which has 32 gig memory it loads quickly but the mouse control requires alt key to free it from android , The other thing is i cant open port 80 to internet . Anothe qustion could be can i install adb in my linux computer and intract with androis os terminal

adb device

adb shell

I will be trying install Android os in my linux pc with 8 gig and see if i can run via console with web browser debuging buttons

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: cybersec cehlab M25160618@outlook.com Sent: 05 January 2021 18:45 To: copy/v86 reply@reply.github.com Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

Sorry to have taken time to respond .

I have tested it works I dont know if your free to dive into your development of Android in browser .

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: Fabian notifications@github.com Sent: 02 January 2021 04:08 To: copy/v86 v86@noreply.github.com Cc: m25160618 m25160618@outlook.com; Comment comment@noreply.github.com Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

I added android-x86-1.6-r2.iso to the website: http://copy.sh/v86/?profile=android. Takes about 6 minutes to boot, a significant part of that is downloading cdrom sectors. It's scripted to auto-select VESA mode. If you see the A N D R O I D # prompt it's still loading.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/copy/v86/issues/224#issuecomment-753428348, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AOVQRNGZBUEVDQUHNV23SX2L2PANCNFSM4FRXDLIQ.

m25160618 commented 3 years ago

Hi Fabian

Sorry forgote the screenshot for web-browser not access internet

[cid:d7932850-4a4e-4726-b4b1-16db0da859b3]

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: cybersec cehlab M25160618@outlook.com Sent: 05 January 2021 20:13 To: copy/v86 reply@reply.github.com Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

Hi Fabian

I was testing the android in MSI computer which has 32 gig memory it loads quickly but the mouse control requires alt key to free it from android , The other thing is i cant open port 80 to internet . Anothe qustion could be can i install adb in my linux computer and intract with androis os terminal

adb device

adb shell

I will be trying install Android os in my linux pc with 8 gig and see if i can run via console with web browser debuging buttons

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: cybersec cehlab M25160618@outlook.com Sent: 05 January 2021 18:45 To: copy/v86 reply@reply.github.com Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

Sorry to have taken time to respond .

I have tested it works I dont know if your free to dive into your development of Android in browser .

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: Fabian notifications@github.com Sent: 02 January 2021 04:08 To: copy/v86 v86@noreply.github.com Cc: m25160618 m25160618@outlook.com; Comment comment@noreply.github.com Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

I added android-x86-1.6-r2.iso to the website: http://copy.sh/v86/?profile=android. Takes about 6 minutes to boot, a significant part of that is downloading cdrom sectors. It's scripted to auto-select VESA mode. If you see the A N D R O I D # prompt it's still loading.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/copy/v86/issues/224#issuecomment-753428348, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AOVQRNGZBUEVDQUHNV23SX2L2PANCNFSM4FRXDLIQ.

proxy-m commented 3 years ago

Looks like you can rebuild Android-x86 without SSE3 instructions for 4.3 (or 4.4) similar to this:

1. The patch will disable the dalvik JIT.

2. Change the busybox initrd and installer to older version (install_2.2 & initrd_2.2).

3. Recompile 
   # make -j4 iso_img TARGET_PRODUCT=android_x86 TARGET_CPU_SMP=false ARCH_X86_HAVE_SSE2=true
ARCH_X86_HAVE_SSE3=false
ARCH_X86_HAVE_SSSE3=false  TARGET_KERNEL_CONFIG=/path_of_your_kernel_config_file/kernel_config.config

Source: 1) https://groups.google.com/g/android-x86/c/c-IeOvIK-ek?pli=1 2) https://sites.google.com/site/twisteroidambassador/android-x86/kitkat-non-sse3-build

foxsouns commented 3 years ago

Hey, any luck with this? I don't have a phone, and I wanted to run a fork/port of this to 3DS, which ends up needing an Android with at least 4.4. I don't have anything to compile with (well, unless you count the community computers, with a liveusb or somethin'), so I'm hoping some progress is goin on.

BelleNottelling commented 3 years ago

Hey, any luck with this? I don't have a phone, and I wanted to run a fork/port of this to 3DS, which ends up needing an Android with at least 4.4. I don't have anything to compile with (well, unless you count the community computers, with a liveusb or somethin'), so I'm hoping some progress is goin on.

Sorry to say, but you should probably look for another option

copy commented 2 years ago

Let's close this as working.

m25160618 commented 2 years ago

Hi Fabian

Thanks for the Android in browser . I still would wish to have a stand alone Android run in the browser VM with access to Android Internals (Python 3) for my up coming Festung Server training course .

Festung Server is a docker container housing metasploitable 2 image which students have to lean ethical hacking basics on . I would wish to develop Browser Android further -- guess require a lesson in develop android in browser .

Please let me know what I would require to be part of developing Android image in browser .

Regards Mussa My site for Festung is at cehlab.com

Regards Mussa Khonje | Information Assurance | Risk Information SME |Cyber Security SME Tel:07946996622


From: Fabian @.> Sent: 13 September 2022 08:17 To: copy/v86 @.> Cc: m25160618 @.>; Comment @.> Subject: Re: [copy/v86] Progress on Running Android-x86 (#224)

Closed #224https://github.com/copy/v86/issues/224 as completed.

β€” Reply to this email directly, view it on GitHubhttps://github.com/copy/v86/issues/224#event-7373747454, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH3AOVR3AUNZXS53JCGNSJ3V6AS7XANCNFSM4FRXDLIQ. You are receiving this because you commented.Message ID: @.***>

foxsouns commented 2 years ago

@m25160618: if you just want python3, try https://replit.com/; if you really need an Android phone to "pintest" then buy a 20 dollar one at your local megastore of choice (wal-mart namely, if you happen to live in the states); and quit necroposting!