Skip to content

sekedus/tc-lua-decompile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TC Lua Decompile

This repo contains a decompiled, translated, and recompiled version of the TDecompile APK file.

Note: Translated with AI.


Table of Contents


Screenshots

Screenshot 1 Screenshot 2 Screenshot 3


Step-by-step: Decompile, Modify, and Sign APK

Prerequisites

  • Java (JDK) and add to your system PATH.
    Run the following commands to confirm: java -version
  • Apktool (latest version recommended to support your APK’s Android SDK)
  • Uber Apk Signer

1️⃣ Decompile the APK

Use Apktool to decompile the APK and extract resources.

Open terminal and run:

apktool d tdecompile_<VERSION>.apk -o tcld

# Replace <VERSION> with the actual APK version name (e.g. 1.3.1_276848)
# Example:
# apktool d tdecompile_1.3.1_276848.apk -o tcld

What it means:

  • d → decode

  • -o tcld → output folder for decompiled files

  • After this, the folder tcld/ will contain:

    • assets/
    • build/
    • original/
    • res/
    • smali/
    • unknown/
    • AndroidManifest.xml
    • apktool.yml

2️⃣ Modify APK

  • Open tcld/res/values/strings.xml to translate Chinese text to English.
  • Edit other resources as needed (menu, button, etc.).

3️⃣ Rebuild the APK

After modifications, rebuild using Apktool:

apktool b tcld -o tdecompile_<VERSION>_mod.apk

# Replace <VERSION> with the actual APK version name (e.g. 1.3.1_276848)
# Example:
# apktool b tcld -o tdecompile_1.3.1_276848_mod.apk

What it means:

  • b → build
  • -o → output APK filename

At this stage, the APK is rebuilt but unsigned.

Example file progression:

tdecompile_1.3.1_276848.apk                 → original
tcld/                                       → decompiled folder
tdecompile_1.3.1_276848_mod.apk             → rebuilt (unsigned)
tdecompile_1.3.1_276848_mod-aligned-signed.apk → final signed APK

4️⃣ Generate a Keystore (First Time Only)

If you don’t have a keystore yet, generate one using keytool:

keytool -genkey -v -keystore tdecompile.keystore -alias tc_lua_decompile -keyalg RSA -keysize 2048 -validity 10000

What it means:

  • -genkey → generate a new key pair
  • -v → show detailed (verbose) output
  • -keystore tdecompile.keystore → name of the keystore file
  • -alias tc_lua_decompile → key name inside the keystore
  • -keyalg RSA → encryption algorithm
  • -keysize 2048 → key strength
  • -validity 10000 → valid for about 27 years

You will be prompted to enter details, example:

Enter keystore password:  tdecompile
Re-enter new password:  tdecompile
Enter the distinguished name. Provide a single dot (.) to leave a sub-component empty or press ENTER to use the default value in braces.
What is your first and last name?
  [Unknown]:  Top Combine
What is the name of your organizational unit?
  [Unknown]:  dev
What is the name of your organization?
  [Unknown]:  TDecompile
What is the name of your City or Locality?
  [Unknown]:  China
What is the name of your State or Province?
  [Unknown]:  Beijing
What is the two-letter country code for this unit?
  [Unknown]:  CN
Is CN=Top Combine, OU=dev, O=TDecompile, L=China, ST=Beijing, C=CN correct?
  [no]:  yes

✅ Now you have a keystore tdecompile.keystore with alias tc_lua_decompile.


5️⃣ Sign the APK

  1. Download the latest Uber APK Signer .jar file from Releases page.

  2. Save it in the same folder as your APK and keystore.

  3. Open terminal and run:

    java -jar uber-apk-signer-<VERSION>.jar -a tdecompile_<VERSION>_mod.apk --ks tdecompile.keystore --ksAlias tc_lua_decompile --ksPass tdecompile --ksKeyPass tdecompile
    
    # Replace <VERSION> with the actual .jar/APK version name
    # Example:
    # java -jar uber-apk-signer-1.3.0.jar -a tdecompile_1.3.1_276848_mod.apk --ks tdecompile.keystore --ksAlias tc_lua_decompile --ksPass tdecompile --ksKeyPass tdecompile

After signing, the APK will be renamed, example:

tdecompile_1.3.1_276848_mod-aligned-signed.apk

6️⃣ Verify the Signed APK

(Optional but recommended):

java -jar uber-apk-signer-1.3.0.jar -a tdecompile_1.3.1_276848_mod-aligned-signed.apk --onlyVerify

You should see a Verified message.

About

TC Lua Decompile (TDecompile) - Lua Decompiler

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published