Skip to content
harmssiPublic

About

Diablo II: LoD on the AYN Thor – game on top, live deck in the game's own look on the second screen (fork of D2Android, bring your own game)

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

Thor D2

Diablo II: Lord of Destruction 1.13d on the AYN Thor, with a live deck on the second screen.

Thor D2 is a fork of D2Android 1.5.2 for dual-screen Android handhelds such as the AYN Thor. The game runs on the upper screen as a clean picture without touch buttons; the lower screen shows a deck with your character, items, skills and quests, live from the game.

If it works for you, a ⭐ on GitHub helps – and subscribing on YouTube helps me bring more ports to the Thor.

Unofficial fan project, not affiliated with, endorsed or supported by Blizzard Entertainment. Diablo is a trademark or registered trademark of Blizzard Entertainment, Inc. You need your own, purchased copy of Diablo II and Lord of Destruction (CD keys from your Battle.net account, or an existing 1.13d installation). The app contains no game files.

▶ Update video: 0.1.1–0.1.5 · Watch the install guide · Showcase video

In the Rogue Encampment (top + bottom screen) Deck while trading
Barbarian in the Rogue Encampment on the top screen, live deck with life, mana, resistances, skills and inventory on the bottom screen Shop window on the top screen, the deck's inventory tab on the bottom screen

Real screenshots from an AYN Thor (deck language follows the game language, German here).

Made a video about this? Open an issue and I'll link it here.

All Thor ports: toravo.de/en/thor

Quick start

  1. Download ThorD2-<version>.apk from the Releases and install it (Play Protect may warn because the app targets an older Android version: More details → Install anyway). It installs next to D2Android (package de.harmssi.thord2), so both can stay.
  2. Open Thor D2 and allow storage, notifications and background running.
  3. Install the game (without a PC): choose English or German and type in your two CD keys (Diablo II and Lord of Destruction, from your Blizzard account under Games & Subscriptions). The app downloads Blizzard's official installers, installs into its own storage and patches to 1.13d (about 2 GB download; use Wi-Fi). The keys go straight to Blizzard's installer and are never stored. Or copy an existing Diablo II 1.13d folder (with Game.exe, d2data.mpq, d2exp.mpq, …) to the device and use Choose game folder.
  4. Start a character. The deck appears on the lower screen by itself.

The deck (lower screen)

  • Character: name, class, level, difficulty; life, mana, experience to the next level; resistances as the character screen shows them (difficulty penalty included); strength, dexterity, vitality, energy, defense, magic find, unspent stat and skill points; gold and stash gold.
  • Skills: left and right skill (with icons from your own game files), F1–F8.
  • Effects and auras with time left.
  • Area and act, town or not.
  • Items by touch: drag an item to its new place, or tap an item to take it (it shows gold), tap a cell to put it there: inventory, stash and cube (open them in the game), belt slots. While an item is taken the buttons offer use, to belt, sell (a shop open), identify (an unidentified item, with a scroll or tome at hand), drop and cancel. Equipment slots work too (tap an equipped item, then an inventory cell, or the other way round). The mod sends the game's own pick-up and put-down commands; an item the game refuses goes back where it was.
  • Horadric Cube: the Cube tab opens the cube and transmutes (the game's own button); fill and empty it by touch.
  • Swap and quick move: drop an item on a taken place and the two swap, also on an equipped slot. A double tap moves an item to the open stash or cube and back, a potion into the belt, a worn item into the inventory.
  • Stash: the Stash tab sorts the stash (also the large 10x10 one) and moves gold in and out. With a shop open, Sell junk sells all plain weapons and armour (white or grey, no sockets, not ethereal) after asking once.
  • Points: with free stat points a + shows next to the four attributes; with free skill points the Skills tab shows all skills of the class and Spend a point.
  • Waypoints: while the waypoint menu is open in the game, the deck lists the waypoints by act; tap one to travel.
  • Skills on keys: in the Skills tab tap a learnt skill, then where it goes: left/right mouse button or F1–F8 (on the pad X, Y, R3, RB+R3, RB+X, RB+Y, RB+A, RB+B). The current keys show with icon and name. The deck uses the game's own skill and hotkey commands (single player); the controller stays with the game.
  • Tabs: Inventory (grid with item names in quality colours, belt, equipped items), Stash, Cube, Mercenary (life, level, equipment), Quests (state of every quest of the current act, progress of the others, next goal).
  • Tap an item for its full name.
  • Sort inventory: D2Android's sort moves the items one by one with normal pick-up and put-down actions of the game, never by writing item positions into memory. Single player only; in multiplayer the deck's actions are off. It does not start while a shop, trade or the stash is open, a monster is near, or the game is paused.
  • Portal and Potion buttons.

Looks like the game, ships nothing of it: frames, life and mana orbs, fonts, skill icons and the item pictures in the grids are read at runtime from your own game files (MPQs), as D2Android does for its bars. Without them the deck falls back to a plain dark look of its own.

While the deck shows, the upper screen is the plain game picture: D2Android's widescreen at 960×540, scaled exactly 2× to the Thor's 1920×1080 OLED (sharp, no borders), without touch buttons or the menu row.

Installation on the Thor: all pages run in landscape; during the installation the lower screen shows the steps (downloader, Lord of Destruction, Diablo II, CD keys, install, patch 1.13d, check), the progress and hints. The CD key fields are masked (every character shows as a dot at once, no keyboard suggestions, no full-screen keyboard text field) and the key page cannot be captured: screenshots, scrcpy and screen recordings show it black (FLAG_SECURE, set through the window attributes because the AYN Thor's firmware drops it from Window.addFlags). The D-pad moves between fields and buttons, A confirms, B goes back.

Controls on the AYN Thor

The deck window cannot take focus, so the controller always stays with the game. Layout (Xbox naming, A is the right face button and confirms):

Button Action With RB held
Left stick walk
A attack / main skill; talks to NPCs, opens the stash and chests F7
B pick up ("Take"; hold: ring of targets) F8
X skill F1 F5
Y skill F2 F6
R3 skill F3 F4
LB swap weapons swap weapons
RB hold: second row of skills
LT healing potion rejuvenation potion
RT mana potion item names
D-pad up / down map / town portal belt 4 / 3 to the mercenary
D-pad left / right belt 3 / 4 belt 1 / 2 to the mercenary
Start game menu (hold: app menu)
Select (View) inventory (hold: wheel of the game's windows)
L3 run / walk

In the inventory, stash, shops and menus the stick moves a pointer and A clicks, as in D2Android. Every button except Start, RB and the D-pad can be changed under Settings → Controls → Gamepad.

Differences to D2Android: RB is the second-row button (D2Android: LT), so the triggers can drink; the D-pad gives map and portal instead of belt 1/2 (LT/RT drink those).

Fresh installation without losing saved games (adb)

For a clean reinstall (e.g. to film the installation) the saves can be parked and brought back. The app accepts these commands only with a fresh token from the adb shell and only while no game runs:

adb shell 'touch /data/local/tmp/d2android-spieltest.ok; chmod 600 /data/local/tmp/d2android-spieltest.ok'
adb shell am start -n de.harmssi.thord2/com.winlator.d2.D2LaunchActivity -e d2_saves_spiegel aus        # copy saves out
adb pull /sdcard/Android/data/de.harmssi.thord2/files/spiegel/saves ./thord2-saves                      # keep a copy
adb shell am start -n de.harmssi.thord2/com.winlator.d2.D2LaunchActivity -e d2_saves_spiegel spiel-weg  # saves out, then remove only the game
# … install again in the app …  then (new token first):
adb shell am start -n de.harmssi.thord2/com.winlator.d2.D2LaunchActivity -e d2_saves_spiegel ein        # saves back

The result of each step is in /sdcard/Android/data/de.harmssi.thord2/files/spiegel/ergebnis.txt. spiel-weg checks that every character (.d2s) is in the copy before it deletes anything, and never touches the saves folder.

Building

Linux x86_64 with Docker, or any machine as D2Android's build notes describe.

export THOR_BUILD_HOST=user@linux-host-with-docker   # builds there in the image from thor/Dockerfile
./thor/build.sh            # -> dist/ThorD2.apk (signed with a key kept on the build host)
./thor/build.sh --install  # and adb install -r

The image adds MinGW, an aarch64 cross compiler, NDK 24 and CMake to an Android build image (JDK 17, SDK 35). The build downloads every third-party part from its original location and checks the pinned SHA-256, exactly as D2Android's scripts do.

Thor D2 changes against D2Android 1.5.2 (see git log):

  • package de.harmssi.thord2; the runtime's 12-byte package path is rewritten as /data/data/<package>//rootfs and the app links <data dir>/rootfs to files/rootfs (tools/build-runtime.py, D2Runtime);
  • mod/d2deck.c (read-only deck data), D2DeckData, D2Deck, D2DeckArt, D2DeckScreen, D2InstallDeck;
  • landscape pages, masked CD key fields (FLAG_SECURE), no touch menu row while the deck shows;
  • Thor controller layout (D2Gamepad, D2GamepadInput, D2TouchOverlay.padBelt);
  • update check and bug report point to this repository; no telemetry key is built in.

Licences

  • D2Android's own code (winlator/app/src/main/java/com/winlator/d2/, mod/, tools/ except tools/alsa-plugin/) and Thor D2's additions: MIT, Copyright (c) 2026 The D2Android authors (LICENSE).
  • Parts taken over from Winlator: GNU LGPL 2.1 (winlator/LICENSE), see README.upstream.md.
  • Third-party components: THIRD-PARTY-NOTICES.txt; their sources: SOURCE-OFFER.txt. See also NOTICE.

Thanks

All the hard work – running Diablo II through Wine and Box64 on Android, the mod inside Game.exe, the installer with Blizzard's own files, sorting, the gamepad support – is D2Android by N1v0k and the D2Android authors. Thank you! Thor D2 only adds the second screen and a Thor layout. Thanks as well to Winlator, Wine, Box64, Mesa Turnip, DXVK, D2DX and PlugY.

About

Diablo II: LoD on the AYN Thor – game on top, live deck in the game's own look on the second screen (fork of D2Android, bring your own game)

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages