Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decompilation error #411

Open
A-AFTAHI opened this issue Dec 14, 2018 · 8 comments
Open

decompilation error #411

A-AFTAHI opened this issue Dec 14, 2018 · 8 comments

Comments

@A-AFTAHI
Copy link

A-AFTAHI commented Dec 14, 2018

Hey guys i was decompiling an application and it return some decompilation errors and i was wondering if someone could explain the source of these error and why they are happening

i got this inside the output code :

public boolean verify(java.lang.String r2, javax.net.ssl.SSLSession r3) {
/* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:okhttp3.internal.tls.OkHostnameVerifier.verify(java.lang.String, javax.net.ssl.SSLSession):boolean. bs: []
	at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:89)
	at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)
	at jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)
	at jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)
	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)
	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
	at jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)
*/
        /*
        r1 = this;
        r0 = 0;
        r3 = r3.getPeerCertificates();	 Catch:{ SSLException -> 0x000e }
        r3 = r3[r0];	 Catch:{ SSLException -> 0x000e }
        r3 = (java.security.cert.X509Certificate) r3;	 Catch:{ SSLException -> 0x000e }
        r2 = r1.verify(r2, r3);	 Catch:{ SSLException -> 0x000e }
        return r2;
    L_0x000e:
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: okhttp3.internal.tls.OkHostnameVerifier.verify(java.lang.String, javax.net.ssl.SSLSession):boolean");
    }
@Sirhc95
Copy link

Sirhc95 commented Dec 14, 2018

Same. Happens on the one important method i need lol been stuck on it for about a month

/*  JADX ERROR: JadxRuntimeException in pass: RegionMakerVisitor
        jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:com.google.android.apps.nexuslauncher.allapps.ActionsController.e():java.util.ArrayList<com.google.android.apps.nexuslauncher.allapps.Action>, dom blocks: [B:12:0x0031, B:45:0x00e3]
        	at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:89)
        	at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)
        	at jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)
        	at jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)
        	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)
        	at jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)
        	at java.base/java.util.ArrayList.forEach(ArrayList.java:1380)
        	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)
        	at jadx.core.ProcessClass.process(ProcessClass.java:32)
        	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:292)
        	at jadx.api.JavaClass.decompile(JavaClass.java:62)
        	at jadx.api.JavaClass.getCode(JavaClass.java:48)
        */
    /* JADX WARNING: Removed duplicated region for block: B:114:0x0239 A[SYNTHETIC, Splitter: B:114:0x0239] */
    /* JADX WARNING: Removed duplicated region for block: B:128:0x024a A[SYNTHETIC, Splitter: B:128:0x024a] */
    /* JADX WARNING: Removed duplicated region for block: B:119:0x0240 A[Splitter: B:7:0x0017, ExcHandler: all (th java.lang.Throwable)] */
    /* JADX WARNING: Removed duplicated region for block: B:114:0x0239 A[SYNTHETIC, Splitter: B:114:0x0239] */
    /* JADX WARNING: Removed duplicated region for block: B:114:0x0239 A[SYNTHETIC, Splitter: B:114:0x0239] */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x0054 A[PHI: r1 r2 r4 , Splitter: B:12:0x0031, ExcHandler: all (r0:12 'th' ? I:java.lang.Throwable)] */
    /* JADX WARNING: Removed duplicated region for block: B:114:0x0239 A[SYNTHETIC, Splitter: B:114:0x0239] */
    /* JADX WARNING: Removed duplicated region for block: B:114:0x0239 A[SYNTHETIC, Splitter: B:114:0x0239] */
    /* renamed from: e */
    private java.util.ArrayList<com.google.android.apps.nexuslauncher.allapps.Action> m2497e() {
     ...
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.apps.nexuslauncher.allapps.ActionsController.e():java.util.ArrayList<com.google.android.apps.nexuslauncher.allapps.Action>");
    }

@skylot
Copy link
Owner

skylot commented Dec 14, 2018

@A-AFTAHI sorry I can't reproduce your error. Which jadx version are you using? Try to check latest unstable build.

@skylot
Copy link
Owner

skylot commented Dec 14, 2018

@Sirhc95 can you attach apk file?

@Sirhc95
Copy link

Sirhc95 commented Dec 14, 2018

@A-AFTAHI
Copy link
Author

A-AFTAHI commented Dec 17, 2018 via email

@asashour
Copy link
Contributor

@Sirhc95: with latest build (master), I couldn't find the class com.google.android.apps.nexuslauncher.allapps.ActionsController or the string "in pass" in the console output.

Can you please check? As I guess this issue is resolved.

@Sirhc95
Copy link

Sirhc95 commented Mar 30, 2019

@asashour it was resolved awhile ago. I got it decompiled using 0.8.0-b616-7c353a6 the code was a bit broken but i cleaned it up and it works fine now.

https://gerrit.cypheros.co/#/c/CypherOS/packages_apps_Luna/+/8124/16/src/co/aoscp/lovegood/allapps/ActionsController.java Line 405

@asashour
Copy link
Contributor

Great that you have a working code. From the issue side, we should either define a reproducible test so it can be fixed, or we close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants