diff --git a/data/web/core.telegram.org/reproducible-builds.html b/data/web/core.telegram.org/reproducible-builds.html index ea0e7b4d01..322d1968ed 100644 --- a/data/web/core.telegram.org/reproducible-builds.html +++ b/data/web/core.telegram.org/reproducible-builds.html @@ -58,7 +58,7 @@

Reproducible Builds for Android

Step 1. Install Docker

-

Docker can be obtained here. Once the installation is complete, log into your Docker account > Preferences > Advanced and configure the amount of resources Docker may use:

+

Docker can be obtained here. Once the installation is complete, log into your Docker account > Settings > Resources > Advanced and configure the amount of resources Docker may use:

Docker Performance

@@ -94,10 +94,12 @@ The part after the version number will help you know in which folder to look for * “x86_64” - folder name will start with “x64”. --> +

Step 3. Obtain the source code

@@ -118,11 +120,15 @@ The part after the version number will help you know in which folder to look for
+
+ +
+

These commands will produce 3 different APKs and 2 bundles:

-

apk/standalone/app.apk – used for direct downloads from telegram.org/android
apk/release/app.apk – the playstore version
apk/release/app-huawei.apk – used exclusively for the Huawei store

+

/apk/afat/standalone/app.apk – used for direct downloads from telegram.org/android
/apk/afat/elease/app.apk – the playstore version
/apk/afat/release/app-huawei.apk – used exclusively for the Huawei store

bundle/bundleAfat_SDK23Release/TMessagesProj_App-bundleAfat_SDK23-release.aab
bundle/bundleAfatRelease/TMessagesProj_App-bundleAfat-release.aab

-

These APKs can be found in:
$HOME/telegram-android/TMessagesProj/build/outputs/apk/

-

Use the folder name from Step 2 to find the correct folder that holds the same APK as installed on your device. For example, for non-universal Android 9.0 arm64-v8a, the path to your APK will be:
$HOME/telegram-android/TMessagesProj/build/outputs/apk/arm64_SDK23/release/app.apk
Copy this APK to the root source directory by running this command in Terminal:
cp $HOME/telegram-android/TMessagesProj/build/outputs/apk/arm64_SDK23/release/app.apk $HOME/telegram-android/telegram_built.apk

+

These APKs can be found in:
$HOME/telegram-android/TMessagesProj/build/outputs/apk/afat/

+

Use the folder name from Step 4 to find the correct folder that holds the same APK as installed on your device. For example, for non-universal Android 9.0 arm64-v8a, the path to your APK will be:
$HOME/telegram-android/TMessagesProj/build/outputs/apk/afat/release/app.apk
Copy this APK to the root source directory by running this command in Terminal:
cp $HOME/telegram-android/TMessagesProj/build/outputs/apk/afat/release/app.apk $HOME/telegram-android/telegram_built.apk

@@ -144,7 +150,7 @@ The part after the version number will help you know in which folder to look for

The output will look something like this:
package:/data/app/org.telegram.messenger-_zOSURFEx2GpHM8UDF_PVg==/base.apk
By using this information, pull the APK from your device to $HOME/telegram-android using command:
adb pull /data/app/org.telegram.messenger-_zOSURFEx2GpHM8UDF_PVg==/base.apk $HOME/telegram-android/telegram_store.apk

Step 6. Compare the APKs

-

Open Terminal, run the commands:
cd $HOME/telegram-android
python apkdiff.py telegram_store.apk telegram_built.apk
If the APKs are the same, you will see
APKs are the same!

+

To compare Direct and Huawei Store versions, open Terminal, run the commands:
cd $HOME/telegram-android
python apkdiff.py telegram_store.apk telegram_built.apk
If the APKs are the same, you will see
APKs are the same!