Page 1 of 1

Juanchi Android Build x64 (Step-By-Step)

Posted: Wed Jan 02, 2019 22:34
by runs
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

Re: Bogart Android Build

Posted: Thu Jan 03, 2019 01:09
by TumeniNodes
Don't worry 'bout it... I hit the beech all the time xD

0_0

Re: Bogart Android Build

Posted: Thu Jan 03, 2019 23:07
by runs
I have a bug. I change the language to 'es' but nothing changes.

Any tip to solve this?

Re: Bogart Android Build

Posted: Thu Jan 03, 2019 23:09
by runs
v0.2:

-mobs
-ambience fx
-more trees and ores.
-etc...

Re: Bogart Android Build

Posted: Fri Jan 04, 2019 01:23
by runs
I tried also to use the mod 'intlib' and in Android the server crashes on init.

Re: Bogart Android Build

Posted: Tue Nov 05, 2019 11:41
by DeepMiner
Sorry if this is repeated but Apk no longer available on your original site try https://uploadshit.com

Re: Bogart Android Build

Posted: Thu Nov 07, 2019 12:46
by cHyper-0815OL
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

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

Posted: Thu Jan 02, 2020 17:02
by runs
Updated to compile for x64 bits.

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

Posted: Fri Jan 10, 2020 21:16
by runs
Update of the tutorial:
- Step 1.1: Make some changes in code in order to the games loaded and better game resources location.

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

Posted: Mon May 11, 2020 14:05
by Kovalskii222
Please help!