Skip to content

kotyaralih/Kityagram

 
 

Repository files navigation

What's this fork even about?

It's a fork of AyuGram for Android with no hidden source files and with full code transparency unlike original project. If you don't trust Github Actions, just build apk by yourself!

The differences between original project and this fork:

  1. Reverse engineered source files that were hidden in private repository
  2. You can build that application by yourself and forget about "implementing AyuHistoryHook and AyuMessageUtils"
  3. AyuSync removed
  4. You can download APK directly from this repository

Other information about the original project you can find on its github page

Where do i find a pre-built APK of Kityagram?

There's multiple ways to get it:

  1. Download it from Github Actions
  2. Build it using Android Command Line Tools
  3. Build it using Github Actions
  4. Build it using Android Studio

Building via Android Command Line Tools

Make sure that you have Android Command Line Tools installed

  1. Clone this repository

    git clone https://github.com/kotyaralih/Kityagram.git

  2. Navigate to repository

    cd Kityagram

  3. Create "local.properties" and add "sdk.dir" variable

    sdk.dir=/path/to/android-sdk
    
  4. Generate signing keys

    Command example: keytool -genkey -v -keystore release-key.keystore -alias release-key-alias -keyalg RSA -keysize 2048 -validity 10000

  5. Put generated .keystore file to TMessagesProj/config/extera.jks

    mv release-key.keystore TMessagesProj/config/extera.jks

  6. Create API_KEYS file with following content

    APP_ID = 6
    APP_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
    MAPS_V2_API = <...>
    
    SIGNING_KEY_PASSWORD = myPassword
    SIGNING_KEY_ALIAS = release-key-alias
    SIGNING_KEY_STORE_PASSWORD = myPassword
    
  7. Get Google Firebase "google-services.json" configuration file

    It's required... So just generate it using this instruction

  8. Add "google-services.json" to this project

    Put this file into TMessageProj/google-services.json

  9. Build APK!

    Build APK using ./gradlew <Task name>

    If you're not sure about your devices ABI, just build using ./gradlew assembleAfat

    Task name Output APK ABI
    assembleAfat (Recomended) "universal apk" that can be used on all devices
    assembleArm64 arm64-v8a
    assembleArmv7 armeabi-v7a
    assembleX64 x86_64
    assembleX86 x86

    Other tasks can be listed using ./gradlew tasks

Set up Github Actions

You can generate base64 string via:

  • Linux terminal: base64 <filename>
  • Powershell: [Convert]::ToBase64String([IO.File]::ReadAllBytes("<filename>"))
  1. Generate keystore file (it's 4th step from the command line tools build instruction) and convert it into base64
  2. Generate google-services.json file and convert it into base64
  3. Go to repository settings > Secrets and variables > Actions
  4. Add SIGNING_KEYSTORE_FILE_IN_BASE64 secret with base64 string generated from 1st step
  5. Add GOOGLE_SERVICES_JSON_FILE_IN_BASE64 secret with base64 string generated from 2nd step
  6. Add SIGNING_KEY_PASSWORD secret with keystore file password value
  7. Add SIGNING_KEY_ALIAS secret with keystore alias name value
  8. Now you're ready to run build workflow!

Building via Android Studio

Android studio can be downloaded here

  1. Clone this repository
  2. Open the project in Android Studio. It should be opened, not imported
  3. Generate and replace google-services.json
  4. Generate signing keys and fill API_KEYS
  5. Just build it!

Credits

About

Open source fork of AyuGram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 42.1%
  • C++ 30.9%
  • C 21.8%
  • Assembly 1.7%
  • Perl 1.5%
  • Go 1.3%
  • Other 0.7%