Juanchi Android Build x64 (Step-By-Step)

Post Reply
User avatar
runs
Member
Posts: 1833
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Juanchi Android Build x64 (Step-By-Step)

by runs » Post

In Linux

Notes:

- It is assumed that the minetest folder is in /opt/
- Change the /home/your_name/ for your own user

1. Download a clean Minetest with the patch for Android x64 included.
Warning: The official Minetest still do not support this method so use this above source code instead.

1.1 Do some fixes:

In src/porting_android.cpp, line 209:

Code: Select all

path_user    = path_storage + DIR_DELIM + "Android" + DIR_DELIM + "data" + DIR_DELIM + "net.minetest.minetest";
	path_share   = path_storage + DIR_DELIM + "Android" + DIR_DELIM + "data" + DIR_DELIM + "net.minetest.minetest";
In build/android/app/src/main/java/net/minetest/minetest/UnzipService.java, line 103:

Code: Select all

String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath(); String location = baseDir + "/Android/data/net.minetest.minetest/"; 
2. Install the Android SDK.

3. Install the licenses:

a. Go to /home/your_name/Android/Sdk/tools/bin

b. Run in terminal:

Code: Select all

yes | ./sdkmanager --licenses
4. Run Android Studio:

Code: Select all

./android-studio/bin/studio.sh
5. Open the project in Android Studio:

/opt/minetest/build/android/

6. Await to the dependencies downloaded.

7. In /minetest/build/android/ run:

./gradlew assemblerelease

7. Sign the apk:

Code: Select all

/home/your_name/Android/Sdk/build-tools/29.0.2/zipalign -v 4 /opt/minetest/build/android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk /opt/minetest/build/android/app/build/outputs/apk/release/minetest.apk

Code: Select all

 jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -keystore /opt/minetest/build/android/app/build/outputs/apk/release/my.keystore /opt/minetest/build/android/app/build/outputs/apk/release/minetest.apk Minetest
Futhermore

To customize your app:

[*]To change the game to be included in your apk:[/b]

Edit /opt/minetest/build/android/app/build.gradle and change:

Code: Select all

def gameToCopy = "minetest_game"
[*]To change the internal name of your apk:[/b]

Edit /opt/minetest/build/android/app/src/main/AndroidManifest.xml and change (the following line is repeated in 2 lines):

Code: Select all

android:label="Minetest"
[*]To change the application ID of your apk:[/b]

Edit /opt/minetest/build/android/app/build.gradle and change:

Code: Select all

applicationId 'net.minetest.minetest'
[*]To change the version of your apk:[/b]

Edit /opt/minetest/build/android/build.gradle and change:

Code: Select all

project.ext.set("versionMajor", 1) // Version Major
project.ext.set("versionMinor", 0) // Version Minor
project.ext.set("versionPatch", 2) // Version Patch
project.ext.set("versionCode", 3) // Android Version Code
[*]Change the icon launcher:[/b]

Replace /opt/minetest/build/android/app/src/main/res/mipmap/ic_launcher.png
Last edited by runs on Fri Jan 10, 2020 21:26, edited 20 times in total.
Day 42 of the quarantine

User avatar
TumeniNodes
Member
Posts: 2874
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: Bogart Android Build

by TumeniNodes » Post

Don't worry 'bout it... I hit the beech all the time xD

0_0
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

User avatar
runs
Member
Posts: 1833
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Bogart Android Build

by runs » Post

I have a bug. I change the language to 'es' but nothing changes.

Any tip to solve this?
Day 42 of the quarantine

User avatar
runs
Member
Posts: 1833
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Bogart Android Build

by runs » Post

v0.2:

-mobs
-ambience fx
-more trees and ores.
-etc...
Day 42 of the quarantine

User avatar
runs
Member
Posts: 1833
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Bogart Android Build

by runs » Post

I tried also to use the mod 'intlib' and in Android the server crashes on init.
Day 42 of the quarantine

DeepMiner
New member
Posts: 4
Joined: Wed May 16, 2018 02:56

Re: Bogart Android Build

by DeepMiner » Post

Sorry if this is repeated but Apk no longer available on your original site try https://uploadshit.com

cHyper-0815OL

Re: Bogart Android Build

by cHyper-0815OL » Post

DeepMiner wrote:Sorry if this is repeated but Apk no longer available on your original site try https://uploadshit.com
https://runs.itch.io/bogart-game

User avatar
runs
Member
Posts: 1833
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Juanchi Android Build x64 (Step-By-Step)

by runs » Post

Updated to compile for x64 bits.
Day 42 of the quarantine

User avatar
runs
Member
Posts: 1833
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Juanchi Android Build x64 (Step-By-Step)

by runs » Post

Update of the tutorial:
- Step 1.1: Make some changes in code in order to the games loaded and better game resources location.
Day 42 of the quarantine

Kovalskii222
New member
Posts: 1
Joined: Mon May 11, 2020 11:28

Re: Juanchi Android Build x64 (Step-By-Step)

by Kovalskii222 » Post

Please help!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests