felixthetrap

New Member
May 13, 2019
13
60
Thank you. I will store that in the hopes of someone else being able to provide the patreon version so i can (hopefully) merge them to be uncensored.

Edit: This might actually be easier than expected the actual file formats inside the apk are the same. I'll look into it.
0.0.19 for android:
 
  • Like
Reactions: Shisaye

felixthetrap

New Member
May 13, 2019
13
60
Thank you. I will store that in the hopes of someone else being able to provide the patreon version so i can (hopefully) merge them to be uncensored.

Edit: This might actually be easier than expected the actual file formats inside the apk are the same. I'll look into it.
Edit2: from the files it seems like that there are positions missing in the android version. (which are included in the 1.0.3.0 pc version)
Edit3: First attempt fails during installation i guess i fucked up the repacking
I just found out that assets of this game can be replaced without modifying apk file.

By creating a zip file with the files you want to replace in the same hierarchy as twohorns-android.apk/assets/, then rename and move it to /sdcard/Android/obb/com.pinkcafeart.twohorns/main.{versionCode}.com.pinkcafeart.twohorns.obb

For example, to replace all mosaic.png:
Code:
main.24.com.pinkcafeart.twohorns.obb
└── res
    └── real
        ├── img_00
        │   └── 00_mosaic.png
        ├── img_01
        │   └── 01_mosaic.png
        ├── img_02
        │   └── 02_mosaic.png
        ├── img_03
        │   └── 03_mosaic.png
        ├── img_04
        │   └── 04_mosaic.png
        ├── img_05
        │   └── 05_mosaic.png
        ├── img_06
        │   └── 06_mosaic.png
        └── img_07
            └── 07_mosaic.png
 
Last edited:
  • Like
Reactions: Shisaye

Shisaye

Engaged Member
Modder
Dec 29, 2017
2,714
4,901
I just find out that assets of this game can be replaced without modifying apk file.

By creating a zip file with the same hierarchy as twohorns-android.apk/assets/ at /sdcard/Android/obb/com.pinkcafeart.twohorns/main.{versionCode}.com.pinkcafeart.twohorns.obb
Nice! But still kinda inconvenient.
I need a better tool (or brain). I'm failing to repack the apk properly. Even if i make no changes at all, just unpacking and then repacking again, (with apktool 2.5.0) the installation crashes :(
 
Last edited:

felixthetrap

New Member
May 13, 2019
13
60
Nice! But still kinda inconvenient.
I need a better tool or something. I'm failing to repack the apk properly. Even if i make no changes at all, just unpacking and then repacking again, (with apktool 2.5.0) the installation crashes :(
Crashes on installation? The installation would fail if you still have the original version installed, or didn't sign the apk.

If the apk installs successfully but crashes when when trying to start, it would likely because it's messed up when decompile and recompiling. Adding --no-res --nosrc options might help.
 

l8rdude

Member
Jan 13, 2020
157
602
Since you're about to unpack and repack the apk to uncensor the game fully I thought I'd provide direct patches to launch the game on those platforms immediately in debug mode (although I really love felixthetrap's discovery on how to manually activate it).
Replace the contents of the lib/ with the one in the attached lib.zip. This will enable debug mode by default.

I tested and verified this on android x86 and android ARM32. I am unable to test this on ARM64/AArch64 unfortunately but I am very confident it works. You can find a debugSigned APK here:

Anyone with an ARM64 device feel free to test it if possible.

Shisaye
This is what I did:

Decompile ("unzip") apk:
apktool d --no-res --no-src twohorns-android.apk

Output:
Code:
I: Using Apktool 2.4.1 on twohorns-android.apk
I: Copying raw resources...
I: Copying raw classes.dex file...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Then replace libs (and in your case /assets/*) with new patched files

Build new apk:
apktool b twohorns-android

Output:
Code:
I: Using Apktool 2.4.1
I: Copying twohorns-android classes.dex file...
I: Checking whether resources has changed...
I: Copying raw resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
align and sign apk:
cd twohorns-android\dist
java -jar uber-apk-signer-1.2.1.jar --apks .

(uber-apk-signer available )

Output:
Code:
source:
        D:\Games\twohorns\android\twohorns-android\dist
zipalign location: BUILT_IN
        C:\Users\l8rdude\AppData\Local\Temp\uapksigner-6152119150671608542\win-zipalign_29_0_2.exe33532341370783229.tmp
keystore:
        [0] 161a0018 C:\Users\l8rdude\AppData\Local\Temp\temp_7421543200000936082_debug.keystore (DEBUG_EMBEDDED)

01. twohorns-android.apk

        SIGN
        file: D:\Games\twohorns\android\twohorns-android\dist\twohorns-android.apk (216.54 MiB)
        checksum: f33411f0c40885d947a090d9ae12524082c08703bbbff0a0cdff61dfe3bc10ad (sha256)
        - zipalign success
        - sign success

        VERIFY
        file: D:\Games\twohorns\android\twohorns-android\dist\twohorns-android-aligned-debugSigned.apk (216.82 MiB)
        checksum: bee260754bfb5381d587ea94071446f2132b042aca3121d95093f61cec2c894d (sha256)
        - zipalign verified
        - signature verified [v1, v2, v3]
                Subject: CN=Android Debug, OU=Android, O=US, L=US, ST=US, C=US
                SHA256: 1e08a903aef9c3a721510b64ec764d01d3d094eb954161b62544ea8f187b5953 / SHA256withRSA
                Expires: Thu Mar 10 21:10:05 CET 2044
Cheers,
 

asfasfasfvas

Member
Oct 13, 2018
104
41
Hello everyone!

I have discovered that debug mode can be enabled without modifying the game, by clicking 公式Webサイト (Official Website) button on コンフィグ (Config) screen 11 times. There's no prompt when it's enabled. And the interface doesn't reload by it self. So you have to reopen the config interface to see if it works.

Enabling debug mode will force the game to use english, as mentioned by l8rdude. Which means by doing this, the DLsite version can be played in english on Android without modifying the apk.
View attachment 1270218 View attachment 1270219 View attachment 1270220 View attachment 1270223
someone need to put this in OP
 

Shisaye

Engaged Member
Modder
Dec 29, 2017
2,714
4,901
Since you're about to unpack and repack the apk to uncensor the game fully I thought I'd provide direct patches to launch the game on those platforms immediately in debug mode (although I really love felixthetrap's discovery on how to manually activate it).
Replace the contents of the lib/ with the one in the attached lib.zip. This will enable debug mode by default.

I tested and verified this on android x86 and android ARM32. I am unable to test this on ARM64/AArch64 unfortunately but I am very confident it works. You can find a debugSigned APK here:

Anyone with an ARM64 device feel free to test it if possible.

Shisaye
This is what I did:

Decompile ("unzip") apk:
apktool d --no-res --no-src twohorns-android.apk

Output:
Code:
I: Using Apktool 2.4.1 on twohorns-android.apk
I: Copying raw resources...
I: Copying raw classes.dex file...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Then replace libs (and in your case /assets/*) with new patched files

Build new apk:
apktool b twohorns-android

Output:
Code:
I: Using Apktool 2.4.1
I: Copying twohorns-android classes.dex file...
I: Checking whether resources has changed...
I: Copying raw resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
align and sign apk:
cd twohorns-android\dist
java -jar uber-apk-signer-1.2.1.jar --apks .

(uber-apk-signer available )

Output:
Code:
source:
        D:\Games\twohorns\android\twohorns-android\dist
zipalign location: BUILT_IN
        C:\Users\l8rdude\AppData\Local\Temp\uapksigner-6152119150671608542\win-zipalign_29_0_2.exe33532341370783229.tmp
keystore:
        [0] 161a0018 C:\Users\l8rdude\AppData\Local\Temp\temp_7421543200000936082_debug.keystore (DEBUG_EMBEDDED)

01. twohorns-android.apk

        SIGN
        file: D:\Games\twohorns\android\twohorns-android\dist\twohorns-android.apk (216.54 MiB)
        checksum: f33411f0c40885d947a090d9ae12524082c08703bbbff0a0cdff61dfe3bc10ad (sha256)
        - zipalign success
        - sign success

        VERIFY
        file: D:\Games\twohorns\android\twohorns-android\dist\twohorns-android-aligned-debugSigned.apk (216.82 MiB)
        checksum: bee260754bfb5381d587ea94071446f2132b042aca3121d95093f61cec2c894d (sha256)
        - zipalign verified
        - signature verified [v1, v2, v3]
                Subject: CN=Android Debug, OU=Android, O=US, L=US, ST=US, C=US
                SHA256: 1e08a903aef9c3a721510b64ec764d01d3d094eb954161b62544ea8f187b5953 / SHA256withRSA
                Expires: Thu Mar 10 21:10:05 CET 2044
Cheers,
Thank you, The signing bit fixed it not installing, but my first attempt of just using the assets of 0.0.19 seems to still have failed as the game crashes upon leaving the SisterMart.
I cannot fully rule out that my phone is just too old to run the game though. :HideThePain:
So here's the .apk for someone else to test.
 

asfasfasfvas

Member
Oct 13, 2018
104
41
someone who knows how to edit saves can put the rebellion shield/medal in this save, its a full save but i cant have both playing normal
 

asfasfasfvas

Member
Oct 13, 2018
104
41
I already posted a full save a few pages back but here is the edit you wanted:
How did you get? I tried using the decoder but I didn't find anything specific about the items, I'm trying to see if I left any item behind in the game, like that love stick
 

Shisaye

Engaged Member
Modder
Dec 29, 2017
2,714
4,901
How did you get? I tried using the decoder but I didn't find anything specific about the items, I'm trying to see if I left any item behind in the game, like that love stick
You probably already know but this is where your current items are listed after you decrypt the save:
items.jpg
They are in the order you received them.
I knew that the rebel emblem was 77 because I made a save for the alternate ending back then and could see that my last 2 items added were 77 (the rebel emblem) and 81 (the key to the pinkcafeart building).
 
  • Like
Reactions: asfasfasfvas
Jan 11, 2018
125
110
Hello everyone!

I have discovered that debug mode can be enabled without modifying the game, by clicking 公式Webサイト (Official Website) button on コンフィグ (Config) screen 11 times. There's no prompt when it's enabled. And the interface doesn't reload by it self. So you have to reopen the config interface to see if it works.

Enabling debug mode will force the game to use english, as mentioned by l8rdude. Which means by doing this, the DLsite version can be played in english on Android without modifying the apk.
View attachment 1270218 View attachment 1270219 View attachment 1270220 View attachment 1270223
does debug mode do anything other than the uncensor and allowing you to save anywhere because im not sure what it lets you do other than those two things since none of the other menu options work
 

Shisaye

Engaged Member
Modder
Dec 29, 2017
2,714
4,901
i think the emblem effects are hardcoded into the game because speaking to the rebellion members on this save doesnt bring up the option to fuck them
My guess is those items do nothing and the actual switch is here:
(normal end)
normal end.jpg
(alternate end)
alternate end.jpg

But is that dialogue option even really needed if you can just bonk them on the head instead? :KEK:
 
  • Like
Reactions: HumanityPhantom
4.10 star(s) 13 Votes