BlackDex
BlackDex is an Android unpack(dexdump) tool, it supports Android 5.0~12 and need not rely to any environment. BlackDex can run on any Android mobile phone or emulator, you can unpack APK File in several seconds.
Top Related Projects
LSPosed Framework
Virtual Engine for Android(Support 14.0 in business version)
This is a tool to repackage apk file, then the apk can load any xposed modules installed in the device. It is another way to hook an app without root device.
Dynamic java method AOP hook for Android(continution of Dexposed on ART), Supporting 5.0~11
Quick Overview
BlackDex is an Android unpack (dex dump) tool that can be used to unpack or dump dex from various Android protection systems. It's designed to work on Android 4.4 to Android 12 and supports both 32-bit and 64-bit architectures. BlackDex operates by injecting a native library into the target application process.
Pros
- Supports a wide range of Android versions (4.4 to 12)
- Works with both 32-bit and 64-bit architectures
- Can unpack multiple types of Android protection systems
- Open-source project with active development
Cons
- Requires root access on the Android device
- May not work with all types of protection systems
- Potential legal and ethical concerns regarding reverse engineering
- Limited documentation, especially for non-Chinese speakers
Getting Started
To use BlackDex:
- Download the latest release APK from the GitHub repository.
- Install the APK on a rooted Android device.
- Open the BlackDex app and grant root permissions.
- Select the target application from the list.
- Click the "Unpack" button to start the unpacking process.
- Once completed, the unpacked dex files will be saved in the specified output directory.
Note: Using BlackDex may violate terms of service for some applications and could be illegal in certain jurisdictions. Use responsibly and only on applications you have permission to analyze.
Competitor Comparisons
LSPosed Framework
Pros of LSPosed
- More comprehensive and versatile, supporting a wide range of Android versions and devices
- Actively maintained with frequent updates and a larger community
- Offers advanced features like module management and system-wide modifications
Cons of LSPosed
- More complex to set up and use, requiring root access and custom recovery
- Potentially higher risk of system instability due to deep system modifications
- Larger footprint and resource usage compared to BlackDex
Code Comparison
LSPosed (Java):
public class XposedHelpers {
public static void findAndHookMethod(Class<?> clazz, String methodName, Object... parameterTypesAndCallback) {
// Implementation
}
}
BlackDex (Kotlin):
class BlackDex {
fun unpack(context: Context, apkPath: String, outputPath: String) {
// Implementation
}
}
Summary
LSPosed is a powerful Xposed framework implementation for Android, offering extensive customization and modification capabilities. It's more feature-rich but requires more technical expertise. BlackDex, on the other hand, is a simpler tool focused specifically on unpacking and decompiling Android apps. While LSPosed provides broader functionality, BlackDex offers a more straightforward approach for its specific use case.
Virtual Engine for Android(Support 14.0 in business version)
Pros of VirtualApp
- More comprehensive virtualization capabilities, allowing for full app cloning and sandboxing
- Larger community and more frequent updates
- Better documentation and examples for integration
Cons of VirtualApp
- More complex setup and integration process
- Heavier resource usage due to full app virtualization
- Potential legal concerns due to app cloning functionality
Code Comparison
VirtualApp:
VirtualCore.get().setResourcesHook(true);
VirtualCore.get().setComponentDelegate(new MyComponentDelegate());
VirtualCore.get().initialize(new VirtualInitializer() {
@Override
public void onMainProcess() {
// Main process initialization
}
});
BlackDex:
BlackDex.init(this);
BlackDex.setDebug(true);
BlackDex.addHookClass(MyHookClass.class);
BlackDex.start();
Summary
VirtualApp offers more comprehensive app virtualization and cloning capabilities, with a larger community and better documentation. However, it's more complex to set up and use, and may have legal implications. BlackDex, on the other hand, focuses on simpler app unpacking and protection removal, making it easier to use for specific tasks but less versatile overall.
This is a tool to repackage apk file, then the apk can load any xposed modules installed in the device. It is another way to hook an app without root device.
Pros of Xpatch
- Focuses specifically on modifying APKs to bypass signature verification
- Provides a command-line interface for easier integration into build processes
- Supports both Windows and Linux operating systems
Cons of Xpatch
- Limited to signature verification bypass, less comprehensive than BlackDex
- May require more technical knowledge to use effectively
- Less actively maintained, with fewer recent updates
Code Comparison
BlackDex (Java):
public class Shell {
public static String exec(String command) {
try {
Process process = Runtime.getRuntime().exec(command);
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
StringBuilder output = new StringBuilder();
String line;
while ((line = reader.readLine()) != null) {
output.append(line).append("\n");
}
return output.toString();
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
}
Xpatch (Java):
public class ApkSignatureSchemeV2Verifier {
private static boolean verifyV2Signature(ByteBuffer apk, int apkSigningBlockOffset, int centralDirOffset, int eocdOffset, Map<Integer, byte[]> signatureSchemeV2Signatures) throws SecurityException {
// Verify APK Signature Scheme v2 signature
ByteBuffer signatureBlock = sliceFromTo(apk, apkSigningBlockOffset, centralDirOffset);
return verifySignatures(signatureBlock, signatureSchemeV2Signatures);
}
}
Both repositories focus on Android app manipulation, but BlackDex offers a more comprehensive solution for unpacking and modifying apps, while Xpatch specializes in bypassing signature verification. BlackDex's code example shows a general shell execution method, while Xpatch's code demonstrates specific signature verification logic.
Dynamic java method AOP hook for Android(continution of Dexposed on ART), Supporting 5.0~11
Pros of Epic
- More comprehensive Android system modification capabilities
- Supports a wider range of Android versions (4.0 to 13)
- Active development with frequent updates and community support
Cons of Epic
- More complex setup and usage compared to BlackDex
- Requires root access, which may not be suitable for all users
- Potentially higher risk of system instability due to deep modifications
Code Comparison
Epic (Java):
public class Epic {
public static void main(String[] args) {
EpicNative.init(null);
// Additional initialization code
}
}
BlackDex (Kotlin):
class BlackDex : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
// Initialization and context attachment
}
}
Summary
Epic offers more extensive Android system modification capabilities, supporting a wider range of Android versions and providing active development. However, it requires root access and has a more complex setup. BlackDex, on the other hand, focuses specifically on unpacking and is generally easier to use but with more limited functionality. The code comparison shows the different approaches to initialization, with Epic using a native interface and BlackDex extending the Application class.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
BlackDex
BlackDexæ¯ä¸ä¸ªè¿è¡å¨Androidææºä¸çè±å£³å·¥å ·ï¼æ¯æ5.0ï½12ï¼æ éä¾èµä»»ä½ç¯å¢ä»»ä½ææºé½å¯ä»¥ä½¿ç¨ï¼å æ¬æ¨¡æå¨ãåªéå ç§ï¼å³å¯å¯¹å·²å®è£ å æ¬æªå®è£ çAPKè¿è¡è±å£³ã
è¿è¡åç
项ç®å£°æ
æ¬é¡¹ç®å¹¶ä¸é对任ä½å åºï¼å¨éå°æ£æµç¯å¢çåä¸å¤çï¼ä» ä¾å®å ¨é¢ååæç¨éã项ç®å è´¹å¼æºä» ä¾å¦ä¹ ç¨éã请å¿ç¨äºéæ³ç¨éãå¦ååæèªè´ï¼
Blackç³»å交æµç¾¤ï¼390562046ï¼QQï¼
ç¼è¯è¯´æ
è¿è¡å请请Make Projectä¸æ¬¡
è¿è¡å请请Make Projectä¸æ¬¡
è¿è¡å请请Make Projectä¸æ¬¡
è±å£³è¯´æ
æ¬é¡¹ç®é对ä¸ï¼è½å°å è½½ï¼ãäºï¼å åå è½½ï¼ãä¸ï¼æ令æ½åï¼ä»£å£³ï¼æè±å¯¹ä»¥å¾è±å£³ç¯å¢çå°æ°ï¼å ä¹æ¯æ5.0以ä¸çä»»ä½ç³»ç»ã并ä¸æ¥æ å¿«éãæ¹ä¾¿ãæåçé« çä¼ç¹ãä¸è¬åªéè¦å ç§éå³å¯å®æ对已å®è£ å æ¬æªå®è£ åºç¨è±å£³ã**æªå®è£ åºç¨**è±å£³æ¶é´ä¸»è¦è±è´¹å¨å¤å¶æ件IOæ¶èä¸ï¼ç±åºç¨å¤§å°å³å®é度ãå·²å®è£ åºç¨ä¸è¬å¨æ°ç§å å³å¯å®æè±å£³ã
è±å£³æ件说æ
- hook_xxxx.dex hookç³»ç»apiè±å£³çdexï¼æ·±åº¦è±å£³ä¸ä¿®å¤
- cookie_xxxx.dex å©ç¨dexFile cookieè±å£³çdexï¼æ·±åº¦è±å£³æ¶ä¼ä¿®å¤æ¤dex
è±å£³åç
éè¿DexFile cookieè¿è¡è±å£³ï¼çè®ºå ¼å®¹artå¼å§çææçæ¬ãå¯è½å°æ°å 设å¤èå¼ï¼ç»å¤§é¨åæ¯æ¯æçãèµæºæéæ æ³å¤§éæµè¯ï¼éå°é®é¢è¯·æissues.
深度è±å£³
深度è±å£³æ¨¡å¼ä¸ä¼èªä¸»ä¿®å¤è¢«æ½åçæ¹æ³æ令ï¼å°æåå ¶ä»å ååçæ令åå¡«è³DEXå ï¼è§£å³nopé®é¢ï¼ä½æ¯ä¸ä¼ç¡®ä¿ä¸å®ä¼æç¨ï¼ä¾å¦ï¼æ令éè¦ä¸»å¨è°ç¨æ解å¯çåæ æ³åå¡«æè 说æ¯æ æåå¡«ã深度è±å£³å¹¶ä¸å å«ä»»ä½è§£å¯ã主å¨è°ç¨çæä½ãæ¬åè½ä»ç¶å¨æµè¯é¶æ®µï¼å¯è½ä¼åºç°ä»¥ä¸æ åµï¼è¯·æç¥ï¼æ¿ä¸ä¸åæ nopã
- è±å£³æ¶é´ä¼å¤§å¹ 度ä¸åï¼é¢è®¡å åéé½åå åéä¸ç
- è±å£³æé´æå¯è½ä¼åºç°åºç¨éªéï¼éå°åæ£æµçï¼
- ä¼å¢å è±å£³å¤±è´¥å ç
- ä¸ä¸å®è½å¤100%è¿å
é¨åæ½å壳è±å£³åå对æ¯
ç¯å¢è¦æ±
- ä¸å°æ®éææº
XposedFridaMagiskRootå®å¶ç³»ç»
æ¶æç¹å«è¯´æ
æ¬é¡¹ç®åºå32ä½ä¸64ä½ï¼ç®åæ¯2个ä¸åçappï¼å¦å¨Demoå·²å®è£ å表å æ æ³æ¾å°éè¦å¼å¯çapp说æä¸æ¯æï¼è¯·ä½¿ç¨å¦ä¸ä¸ªçæ¬ã
BlackDexä¸è½½ï¼https://github.com/CodingGay/BlackDex/releases
æ¼ç¤º
æè°¢
License
Copyright 2021 Milk Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Top Related Projects
LSPosed Framework
Virtual Engine for Android(Support 14.0 in business version)
This is a tool to repackage apk file, then the apk can load any xposed modules installed in the device. It is another way to hook an app without root device.
Dynamic java method AOP hook for Android(continution of Dexposed on ART), Supporting 5.0~11
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot