[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110811":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},110811,"megler-w10m","Computershik73\u002Fmegler-w10m","Computershik73","Megler: Android apps on Windows 10 Mobile - native ARM code, Google Play, Chromium WebView and drawing on the GPU. Not an emulator.",null,"Java",89,4,1,23,0,3,13,36,12,58.43,"GNU General Public License v3.0",false,"megler",true,[],"2026-11-22 15:27:55","2026-11-23 10:22:17","# Megler\n\n**Android apps on Windows 10 Mobile.** Megler runs an Android app's own code directly on\nthe phone's ARM processor, inside an ordinary Windows app. Nothing is emulated and no\nAndroid system boots: Megler stands in for Android around the app -- its linker and C\nlibrary, its Java runtime and framework, its graphics, its sound, its Google services --\nand answers each call with Windows' own.\n\nIt runs on the Windows 10 Mobile builds phones have today (1703, 10.0.15063, and later;\ndeveloped on an HP Elite x3, 10.0.15254). [docs\u002FSTATUS.md](docs\u002FSTATUS.md) says exactly\nwhat has been seen working and where; [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md) and\n[docs\u002FJAVA.md](docs\u002FJAVA.md) say how it works.\n\n**Download: [the latest release](https:\u002F\u002Fgithub.com\u002FComputershik73\u002Fmegler-w10m\u002Freleases\u002Flatest).**\nIts `Megler_\u003Cversion>_ARM.appx` has everything a phone needs, Google Play Store, Google\nPlay services and microG included; install `Megler.cer` from the same page first. The\nrelease notes say how to install it.\n\n## What it does today\n\n- **Google Play.** The official Google Play Store and Google Play services run in Megler.\n  You sign in with a Google account, find an app, and Play downloads and installs it. The\n  Gosuslugi app, installed this way, signs in and keeps its sign-in across starts.\n- **Apps written in Java and Kotlin, and native games.** Spotify, Telegram, Yandex Maps,\n  Gosuslugi and others start and are used on the phone; games built on NativeActivity or\n  Unity (IL2CPP) run with their sound and films. Each app has its own state of\n  compatibility (STATUS.md), and some still end with errors that are being fixed.\n- **A modern WebView.** Android's System WebView, Chromium 128, runs inside the app, and\n  draws its pages on the graphics processor.\n- **The phone's own hardware and services.** Windows Hello answers Android's\n  `BiometricPrompt`; text messages reach apps that wait for a code; cameras, media\n  controls on the lock screen, H.264\u002FH.265\u002FAAC\u002FMP3 decoding by Media Foundation, the\n  phone's folders as `\u002Fsdcard`.\n- **Apps installed one by one.** An APK, `.apks` or `.xapk` opened on the phone, or an\n  app from Google Play, can become a Windows app of its own (`MeglerApp.\u003Cpackage>`): its\n  own tile, its own process and memory, its own entry in the task switcher.\n\n## How it works\n\nAn APK holds two kinds of code: Java bytecode (`classes.dex`) and native ARM libraries\n(`lib\u002Farmeabi-v7a\u002F*.so`). Megler runs both on the phone's processor and puts a piece of\nits own wherever Android would have put a piece of the system:\n\n```mermaid\nflowchart TB\n    subgraph APK[\"The Android app (unchanged APK)\"]\n        DEX[\"Java \u002F Kotlin bytecode\u003Cbr\u002F>classes.dex\"]\n        SO[\"Native ARM code\u003Cbr\u002F>lib\u002Farmeabi-v7a\u002F*.so\"]\n    end\n\n    subgraph MEG[\"Megler, inside one Windows app (UWP)\"]\n        DVM[\"Java runtime\u003Cbr\u002F>interpreter, JIT to Thumb-2,\u003Cbr\u002F>concurrent garbage collector, JNI\"]\n        FW[\"Android framework\u003Cbr\u002F>Android 9 libcore + framework (API 34)\"]\n        LD[\"Linker and bionic\u003Cbr\u002F>libc, libm, pthreads, files, sockets\"]\n        GFX[\"Graphics\u003Cbr\u002F>views → display lists → RenderThread\u003Cbr\u002F>OpenGL ES → ANGLE\u003Cbr\u002F>WebView → Chromium 128\"]\n        GMS[\"Google Play services and Play Store\u003Cbr\u002F>each in a class scope of its own\"]\n        NDK[\"NDK libraries\u003Cbr\u002F>libandroid, EGL, OpenSL ES, AAudio, mediandk\"]\n    end\n\n    subgraph WIN[\"Windows 10 Mobile\"]\n        D3D[\"Direct3D 11 \u002F Direct2D \u002F DirectWrite\"]\n        AUD[\"XAudio2, Media Foundation\"]\n        SYS[\"Win32: memory, threads, files, Winsock\"]\n        DEV[\"Windows Hello, SMS, cameras, media controls\"]\n    end\n\n    DEX --> DVM --> FW\n    SO --> LD\n    SO --> NDK\n    FW --> GFX\n    FW --> GMS\n    FW --> DEV\n    NDK --> GFX\n    NDK --> AUD\n    GFX --> D3D\n    LD --> SYS\n    FW --> AUD\n```\n\nWhat stands where Android would stand:\n\n| Android has | Megler has |\n|---|---|\n| The Linux kernel and bionic, Android's C library | bionic written over Win32 inside the app: files, threads and futexes (`WaitOnAddress`), memory (`VirtualAlloc`), sockets (Winsock), signals |\n| The dynamic linker | its own linker: loads `armeabi-v7a` libraries straight out of the APK, relocates them, and rewrites the few instructions Windows does not allow an app (reading the thread pointer, ARM-mode PLT entries) |\n| ART, Android's Java runtime | its own Dalvik runtime: an interpreter, a method JIT to Thumb-2 on code pages that are writable and executable at once where the phone allows it, a concurrent garbage collector, JNI |\n| libcore and the framework | Android 9's libcore with its native libraries built for ARMv7, and an Android framework that answers as API 34 (Android 14) |\n| HWUI and SurfaceFlinger | views record display lists; a RenderThread plays them through Direct2D on the graphics processor; OpenGL ES runs on ANGLE over Direct3D 11; frames of a `TextureView`, a `SurfaceView` and the WebView stay on the graphics processor as shared Direct3D textures |\n| Separate processes and Binder | an app's other processes (`android:process`) as class scopes of its own APK, with their own statics and Application; Google Play services as a scope of its own |\n| The package manager and installer | Megler's library: APK, `.apks`, `.xapk`, and Google Play's `PackageInstaller` sessions; an app can be its own Windows package |\n| The keystore, biometrics, telephony, media | an `AndroidKeyStore` provider kept in the app's data; Windows Hello; the phone's message store; XAudio2, Media Foundation, `Windows.Media.Capture`, the system media controls |\n\nA frame of a Java app is made the way Android makes it, on two threads:\n\n```mermaid\nsequenceDiagram\n    participant M as Main thread (Java)\n    participant R as RenderThread\n    participant W as WebView render thread\n    participant G as GPU (Direct3D 11)\n    M->>M: input, animations, measure and layout\n    M->>M: record the changed views' display lists\n    M->>R: hand the frame over (Gfx.frame)\n    Note over M: goes on with the next frame\n    R->>G: play the display lists through Direct2D\n    W->>G: Chromium draws the page (draw functor, OpenGL ES on ANGLE)\n    R->>G: draw the WebView's picture in its place\n    R->>G: present the window\n```\n\nWhy it is fast:\n\n- **No emulation.** Native libraries and the JIT's code run on the phone's own\n  processor, at its full speed.\n- **Everything is drawn on the graphics processor.** Views, text, bitmaps, OpenGL ES, video\n  and the WebView all go through Direct3D; nothing is read back to the processor to be\n  shown.\n- **The main thread does what Android's does.** Drawing and presenting happen on a\n  RenderThread, as on Android, so input and layout are not held up by the screen.\n- **Hot Java code is compiled.** Methods are compiled to Thumb-2 as they get hot, small\n  ones inlined, and the garbage collector marks and sweeps alongside the app.\n\n## Megler and Project Astoria\n\nProject Astoria (\"Windows Bridge for Android\") was Microsoft's own way of running Android\napps on Windows 10 Mobile. It was announced at Build 2015, appeared in Windows 10 Mobile\nInsider builds of 2015, was taken out of them, and was cancelled in February 2016. It\nput a Linux-compatible subsystem into Windows itself (the work later became the Windows\nSubsystem for Linux) and ran an Android 4.4 system on it.\n\n| | Project Astoria (2015) | Megler |\n|---|---|---|\n| Today | cancelled; only in old Insider builds | developed; runs on the builds phones have now (1703 and later) |\n| What it is | a subsystem built into Windows | an ordinary Windows app (developer mode and an interop unlock for code generation) |\n| Android | 4.4 KitKat (API 19) | Android 9's libcore, a framework that answers as API 34 |\n| Google Play services and Play Store | none: apps were to be changed to use Microsoft's services | the official ones; apps are installed from Google Play |\n| WebView | KitKat's | Chromium 128, drawn on the graphics processor |\n| Getting an app | sideloaded from a PC with adb | an APK, `.apks` or `.xapk` opened on the phone, or Google Play |\n| An app on the phone | inside the Android system | a Windows app of its own if you want: its tile, its process, its task-switcher entry |\n| Phones | a few Lumia models | any Windows 10 Mobile ARM phone |\n| The phone's features | -- | Windows Hello, text messages, cameras, lock-screen media controls, hardware video decoding |\n| Source | closed | open (GPL-3.0) |\n\nIn short: Astoria needed Microsoft's operating system to carry Android and was never\nfinished. Megler asks the system for no more than developer mode and an interop unlock,\nruns today's apps with Google's own services, and keeps improving.\n\nWhat Megler cannot do (yet): run APKs that have only 64-bit (`arm64-v8a`) code -- Windows\n10 Mobile is 32-bit on every phone; use Vulkan; give an app more than the 2 GB of\naddresses a 32-bit process has. Each app's own state is in [docs\u002FSTATUS.md](docs\u002FSTATUS.md).\n\n## Layout\n\n```\ncore\u002F             the layer, portable C11\n  include\u002Fmegler.h  what the shell sees\n  src\u002Fhost\u002F       the OS (Win32 app container; POSIX for the tests)\n  src\u002Fld\u002F arm\u002F    the dynamic linker; what is rewritten in guest code\n  src\u002Fbionic\u002F     libc, libm, libdl, liblog, pthreads, files, the network\n  src\u002Fndk\u002F jni\u002F   libandroid, EGL\u002FGLES over ANGLE, AAudio, OpenSL ES, mediandk; JNI\n  src\u002Fdvm\u002F        the Java runtime: interpreter, JIT, garbage collector (docs\u002FJAVA.md, docs\u002FJIT.md)\n  src\u002Fdrivers\u002F    the Java side of each kind of app: graphics, GL, WebView, media, camera\n  src\u002Fapk\u002F zip\u002F   APKs, manifests, resources\n  framework\u002F      the Java framework; framework-overlay\u002F what Megler changes in it\n  tests\u002F          the tests, and guest\u002F and app\u002F: Android libraries and apps for them\napp\u002FMegler\u002F       the C++\u002FWinRT shell: library, player, Direct2D drawing, sound, codecs\ntools\u002F            build-appx.sh, build-tests.sh, build-framework.sh, phone.py\ndocs\u002F             ARCHITECTURE.md, STATUS.md, JAVA.md, JIT.md, MICROG.md, PER-APP-PACKAGES.md, DESKTOP.md, XBOX.md\n```\n\n## Build\n\nRequirements: Visual Studio 2022 17.14 (MSVC 14.44 with the ARM build tools),\nWindows SDK 10.0.22621 (headers, tools) and 10.0.15063 (ARM libraries), LLVM (clang\nand ld.lld, for the guest test libraries), Git Bash, Python 3, a JDK and the Android\nSDK's d8 (for the framework). For the tests that execute Android code: WSL Ubuntu with\n`gcc-arm-linux-gnueabihf` and `qemu-user`. ANGLE comes from a\n[gecko-w10m](https:\u002F\u002Fgithub.com\u002FComputershik73\u002Fgecko-w10m) build (`C:\\rw-obj\\dist\\bin`,\nor `MEGLER_ANGLE`).\n\n```bash\nbash tools\u002Fbuild-guest.sh          # the Android test libraries and apps (clang, no NDK)\nbash tools\u002Fbuild-tests.sh arm      # the core's tests under qemu-arm: guest code really runs\nbash tools\u002Fbuild-framework.sh      # the Java framework\nbash tools\u002Fdvm-android-root.sh     # the Android root: libcore, the framework, fonts, the WebView\nbash tools\u002Fbuild-appx.sh arm --java # → app\u002FMegler\u002FAppPackages\u002FMegler_\u003Cver>_ARM.appx\n```\n\n## On the phone\n\nThe phone must be fully interop-unlocked, in Developer mode, and trust the package's\ncertificate (`AppPackages\u002FMegler.cer`). Fully: the basic unlock grants `codeGeneration`,\nwithout which no Android code runs; the capability part of it -- in Interop Tools ›\nUnlock, **Interop\u002FCap Unlock** and **New Capability Engine Unlock**, then a restart --\ngrants `packageManagement`, without which Windows refuses every package Megler installs,\nthe apps' own and its own updates (0x80070005, access denied; Megler then says so and\nwhat to do). A package you do not build\nyourself is on [the latest release](https:\u002F\u002Fgithub.com\u002FComputershik73\u002Fmegler-w10m\u002Freleases\u002Flatest),\nwith its `Megler.cer`.\n\nThe first time, install the package from a PC through the phone's Device Portal\n(`python tools\u002Fphone.py install`), or open it in the phone's file manager, which hands it\nto Windows's App Installer. After that Megler updates itself: from GitHub (Settings ›\nUpdates), or from a newer package copied with its `Megler.cer` into the phone's\n`Pictures\\Megler` folder, which it installs when it starts. Megler installs its updates and\nthe apps' packages through Windows's deployment engine and asks the Device Portal nothing:\nthe portal need not be on for it, nor its authentication off. Then, in Megler:\n\n1. **Add APK** (or open an APK, `.apks` or `.xapk` from the phone's file manager), or open\n   Google Play from the library and install from there.\n2. **Play**, or make the app a Windows app of its own and start it from its tile.\n3. **Update All** after Megler itself is updated: each app's own package is rebuilt.\n\n**Device › Probe** and **Device › Self-test** check what this phone allows and run the\ncore's tests on it; the **Log** says what each app does, and its **Save All Logs** puts\nMegler's and every app's logs into one ZIP in `Pictures\\Megler\\logs`, for a problem\nreport: the phone's file manager and a PC over USB find it there, and Share sends it\n([docs\u002FSTATUS.md](docs\u002FSTATUS.md), \"Logs\").\n\n## On an Xbox\n\nAn Xbox in Developer Mode takes `Megler_\u003Cversion>_Xbox_x64.appx` (`bash tools\u002Fbuild-appx.sh\nx64 --xbox --java`), installed from a PC through the console's Device Portal. There Megler\ninstalls the apps' packages and its own updates through that portal, as DesktopMode_uwp's\ninstaller does on a console, and has to be let reach it after every start of the console:\n[docs\u002FXBOX.md](docs\u002FXBOX.md) says how, and what is not checked on a console yet.\n\n## Author\n\nMegler is made by Computershik. The Java framework in `core\u002Fframework` comes from\nanother project (GPL-2.0-or-later) and is licensed here under the GPL-3.0, as\n[core\u002Fframework\u002FNOTICE](core\u002Fframework\u002FNOTICE) says.\n\n- [Profile on 4pda](https:\u002F\u002F4pda.to\u002Fforum\u002Findex.php?showuser=4458524)\n- [Telegram channel @cmplog](https:\u002F\u002Ft.me\u002Fcmplog)\n- [Donate](https:\u002F\u002Fpay.cloudtips.ru\u002Fp\u002F83821e32) (within the CIS for now; from\n  outside the CIS, send a message to the Telegram channel)\n\n## License\n\nMegler is licensed under the GNU General Public License version 3 (LICENSE). The vendored zlib is under the zlib license; ANGLE is\nBSD; Android's libcore and framework are under the Apache License 2.0.\n","Megler 是一个在 Windows 10 Mobile 设备上原生运行 Android 应用的兼容层，不依赖虚拟机或完整 Android 系统。它通过替换 Android 运行时组件（如 Java 虚拟机、系统框架、Native ARM 链接器、WebView 和 Google Play 服务接口），直接在设备 ARM 处理器上执行 APK 中的 Java\u002FKotlin 字节码与原生 ARM 库，并桥接到 Windows 系统能力（如 Media Foundation、Windows Hello、短信回调等）。支持 Google Play 商店、主流 Java\u002FKotlin 应用及 Unity\u002FNDK 游戏，WebView 基于 Chromium 128 并 GPU 加速渲染。适用于已停产但仍有硬件潜力的 Windows 10 Mobile 终端（如 HP Elite x3）的 Android 应用复用与轻量级跨平台迁移场景。",2,"2026-11-24 04:39:39","CREATED_QUERY"]