Skip to content

Commit dc1e6df

Browse files
committed
update v1.1
1 parent 5e97426 commit dc1e6df

5 files changed

Lines changed: 234 additions & 106 deletions

File tree

README.id.md

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,41 @@
22

33
# DexForge
44

5-
Modul Magisk/KernelSU yang dirancang untuk menganalisis HP secara otomatis dan membangun ulang (*rebuild*) cache ART/Dalvik menggunakan filter kompilasi yang paling optimal.
5+
Modul Magisk/KernelSU profesional yang dirancang untuk menganalisis sumber daya perangkat secara dinamis dan mengoptimalkan cache ART/Dalvik menggunakan strategi kompilasi cerdas berbasis tingkatan perangkat (*tier-based*).
66

77
### Cara Kerja
8-
Android menggunakan ART (Android Runtime) untuk mengompilasi aplikasi. Seiring waktu, atau setelah update sistem, cache ini bisa jadi kurang optimal, bikin HP kerasa lemot atau boros baterai.
9-
1. DexForge membaca kapasitas RAM, sisa storage, dan versi Android HP.
10-
2. Modul ini mengklasifikasikan HP ke dalam tier (Flagship, Mid, atau Entry).
11-
3. Berdasarkan tier dan sisa ruang, modul memilih filter compiler `dex2oat` terbaik (misalnya, `speed-profile`, `speed`, `verify`, atau `quicken`).
12-
4. Melakukan kompilasi ulang pada aplikasi yang terinstal untuk mengembalikan performa maksimal.
8+
Android mengompilasi aplikasi menggunakan Android Runtime (ART). Seiring waktu, atau setelah pembaruan sistem, kode terkompilasi dapat kehilangan tingkat optimasinya, mengakibatkan kelambatan peluncuran aplikasi (*sluggishness*) dan pemborosan baterai.
9+
1. **Profiling Sumber Daya**: DexForge membaca RAM, sisa ruang penyimpanan, dan versi SDK Android HP.
10+
2. **Klasifikasi Perangkat**: Mengelompokkan perangkat ke dalam kategori Flagship, Mid, atau Entry.
11+
3. **Pencegahan Layar Tidur**: Melakukan override dinamis pada setelan timeout layar (`screen_off_timeout` + `svc power stayon`) agar layar tetap menyala penuh selama kompilasi tanpa bergantung pada status pengisian daya baterai (charger), lalu memulihkan setelan asli secara otomatis saat selesai atau batal.
12+
4. **Rute Optimasi Cerdas**:
13+
- **Flagship**: Menggunakan kompilasi massal (`-a`) untuk mengompilasi seluruh aplikasi termasuk sistem bawaan (Settings, SystemUI) demi pengalaman penggunaan yang super lancar.
14+
- **Mid & Entry**: Menggunakan kompilasi bertahap khusus aplikasi pihak ketiga (`-3`) untuk menghemat penyimpanan, menjaga suhu perangkat, dan menghemat baterai.
15+
5. **SELinux Safe Pipe**: Mengambil data standar output dan error melalui pipa shell internal terlebih dahulu untuk memintas pembatasan penulisan langsung ke `/data/adb/` oleh kebijakan SELinux Android.
1316

1417
### Standar Keamanan & Kualitas
15-
**Kenapa nggak dipaksa ke 'speed' semua?** Mengompilasi semua aplikasi pakai filter `speed` bakal ngabisin storage yang gede banget dan prosesnya lama. DexForge pakai sistem profiling pintar buat terapin filter agresif cuma di HP high-end yang storage-nya lega, dan pakai filter yang lebih aman buat HP kelas menengah atau entry-level. Modul ini juga punya fitur keamanan buat otomatis batalin proses kalau sisa storage di bawah 512MB.
16-
17-
### Fitur Utama
18-
- **Smart Profiling**: Otomatis deteksi kemampuan HP (RAM & Storage).
19-
- **Filter Dinamis**: Menerapkan filter kompilasi yang paling pas sesuai spesifikasi HP.
20-
- **Safety Guards**: Mencegah bootloop atau sistem crash dengan mengecek batas storage dan versi Android.
21-
- **Support Action Button**: Nggak perlu repot buka terminal; tinggal klik tombol dari aplikasi Magisk/KernelSU.
18+
- **Proteksi Penyimpanan Rendah**: Proses otomatis dibatalkan jika sisa penyimpanan di bawah 512MB demi mencegah bootloop.
19+
- **Ambang Batas Baterai**: Proses diblokir jika daya baterai di bawah 15% dan tidak terhubung ke pengisi daya.
20+
- **Pembersihan Cache Interaktif**: Opsi interaktif via tombol volume fisik untuk membersihkan cache sebelum optimasi dimulai, lengkap dengan detail konsekuensi waktu kompilasi yang lebih lama.
21+
- **Pemasangan Hening (Magisk Silent Install)**: Pemasangan instan tanpa gangguan interaksi tombol volume saat flashing, seluruh interaksi dipindahkan ke tombol Action.
2222

2323
### Persyaratan
2424
- Magisk v20.4+ atau KernelSU / APatch
2525
- Android 7.0+ (SDK 24+)
2626

2727
### Instalasi
28-
1. Download file `.zip` DexForge terbaru.
29-
2. Buka aplikasi Magisk / KernelSU / APatch.
30-
3. Masuk ke menu Modules.
31-
4. Klik **Install from storage** lalu pilih file zip yang udah di-download.
32-
5. Reboot HP.
28+
1. Unduh berkas rilis `DexForge-v1.1.zip` terbaru.
29+
2. Buka aplikasi Magisk, KernelSU, atau APatch.
30+
3. Masuk ke bagian Modul.
31+
4. Pilih **Instal dari penyimpanan** lalu tentukan berkas zip yang telah diunduh.
32+
5. Reboot perangkat Anda.
3333

3434
### Cara Pakai
35-
36-
**01 Buka aplikasi root manager**
37-
Buka Magisk, KernelSU, atau APatch di HP.
38-
39-
**02 Masuk ke Modules**
40-
Buka tab modul tempat install DexForge.
41-
42-
**03 Tekan Action Button**
43-
Cari modul DexForge, terus klik tombol **Action** (atau ikon play). Skripnya bakal otomatis jalan, baca spek HP, dan mulai proses *recompile*.
44-
45-
**04 Tunggu dan Reboot**
46-
Biarin prosesnya jalan sampai selesai. Kalo udah muncul ringkasannya, sangat disarankan buat reboot HP biar efeknya maksimal.
35+
1. Buka aplikasi root manager Anda.
36+
2. Navigasikan ke bagian modul.
37+
3. Tekan tombol **Action** (atau tombol "Jalankan") pada modul DexForge.
38+
4. Gunakan tombol volume fisik untuk memilih opsi pembersihan cache dalam waktu 10 detik.
39+
5. Tunggu proses hingga selesai (layar akan tetap menyala secara otomatis). Reboot perangkat sangat disarankan setelah kompilasi selesai.
4740

4841
### Disclaimer
49-
Ini adalah alat eksperimental. Walaupun udah dikasih sistem pengaman, memodifikasi cache sistem kadang bisa bikin aplikasi error. Gunakan dengan bijak dan pastikan punya backup data penting.
42+
Ini adalah alat optimasi tingkat lanjut. Meskipun sistem keamanan ketat telah diterapkan, memodifikasi cache sistem melibatkan operasi tingkat rendah. Gunakan secara bijak.

README.md

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,41 @@
22

33
# DexForge
44

5-
A Magisk/KernelSU module designed to automatically analyze your device and rebuild the ART/Dalvik cache using the most optimal compiler filter.
5+
A professional Magisk/KernelSU module designed to analyze your device resources dynamically and optimize the ART/Dalvik cache with high-efficiency tier-based compilation strategies.
66

77
### How It Works
8-
Android uses the ART (Android Runtime) to compile apps. Over time, or after a system update, this cache can become unoptimized, leading to sluggish performance or battery drain.
9-
1. DexForge profiles your device's RAM, available storage, and Android version.
10-
2. It classifies your device into a tier (Flagship, Mid, or Entry).
11-
3. Based on the tier and available space, it selects the best `dex2oat` compiler filter (e.g., `speed-profile`, `speed`, `verify`, or `quicken`).
12-
4. It safely recompiles your installed packages to restore optimal performance.
8+
Android compiles apps using the Android Runtime (ART). Over time, or after software updates, compiled code can lose optimization, resulting in micro-stutters, slower app launches, and increased battery drain.
9+
1. **Resource Profiling**: DexForge checks available RAM, free storage space, and Android SDK version.
10+
2. **Tier-Based Classification**: It classifies the device as Flagship, Mid, or Entry.
11+
3. **Screen Sleep Prevention**: It dynamically overrides screen sleep timeouts (`screen_off_timeout` + `svc power stayon`) so the display stays awake during compilation regardless of the charger state, then restores original settings automatically upon completion or abort.
12+
4. **Smart Optimization Routing**:
13+
- **Flagship**: Uses bulk compilation (`-a`) to compile all apps, including critical system applications (like Settings, SystemUI) for an ultra-smooth experience.
14+
- **Mid & Entry**: Uses focused package-by-package compilation (`-3`) targeting user-installed apps to preserve storage, thermals, and battery health.
15+
5. **SELinux Safe Pipe**: Captures standard error and standard output to shell variables first, completely bypassing Android's SELinux write restrictions to `/data/adb/`.
1316

1417
### Safety & Quality Standards
15-
**Why not force 'everything' to 'speed'?** Compiling everything with the `speed` filter consumes massive amounts of storage and takes a very long time. DexForge uses smart profiling to only apply aggressive filters on high-end devices with plenty of storage, while using safer, balanced filters for mid-range and entry-level devices. It also includes built-in safeguards to abort if your free storage is under 512MB.
16-
17-
### Core Features
18-
- **Smart Profiling**: Automatically detects device capabilities (RAM & Storage).
19-
- **Dynamic Filters**: Applies the optimal compilation filter based on the device tier.
20-
- **Safety Guards**: Prevents bootloops or system crashes by checking storage limits and SDK versions.
21-
- **Action Button Ready**: No need to use the terminal; execute the optimization directly from the Magisk/KernelSU app interface.
18+
- **Low Storage Protection**: Compilation aborts instantly if free storage is below 512MB to prevent bootloops.
19+
- **Battery Threshold**: Compilation is blocked if the battery level is below 15% and not connected to a charger.
20+
- **Robust Cache Reset**: Interactive volume key option to reset target packages' cache before recompiling, detailing compile-time implications.
21+
- **Magisk Silent Install**: Seamless automated installations with an on-demand volume key interface at runtime via the Action Button.
2222

2323
### Requirements
2424
- Magisk v20.4+ or KernelSU / APatch
2525
- Android 7.0+ (SDK 24+)
2626

2727
### Installation
28-
1. Download the latest DexForge `.zip` release.
29-
2. Open the Magisk / KernelSU / APatch app.
28+
1. Download the latest `DexForge-v1.1.zip` release.
29+
2. Open the Magisk, KernelSU, or APatch manager app.
3030
3. Go to the Modules section.
3131
4. Tap **Install from storage** and select the downloaded zip file.
3232
5. Reboot your device.
3333

3434
### How to Use
35-
36-
**01 Open your root manager**
37-
Open the Magisk, KernelSU, or APatch application on your device.
38-
39-
**02 Go to Modules**
40-
Navigate to the modules tab where DexForge is installed.
41-
42-
**03 Tap the Action Button**
43-
Find DexForge and tap the **Action** (or 'Run') button. The script will automatically profile your device and begin the recompilation process.
44-
45-
**04 Wait and Reboot**
46-
Let the process finish. Once it shows the summary, it is highly recommended to reboot your device for the changes to take full effect.
35+
1. Open your root manager application.
36+
2. Navigate to the modules section.
37+
3. Tap the **Action** (or "Run") button next to DexForge.
38+
4. Use volume keys to select your cache clearing choice within 10 seconds.
39+
5. Wait for the process to complete (the screen will stay awake automatically). A reboot is highly recommended once compilation is complete.
4740

4841
### Disclaimer
49-
This is an experimental tool. While safeguards are in place, modifying system caches can sometimes cause unexpected app behavior. Use responsibly and keep a backup of your important data.
42+
This is an advanced optimization tool. While robust safeguards are implemented, modifying runtime caches involves system-level operations. Use responsibly.

0 commit comments

Comments
 (0)