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

Exception: ABI x86 is not supported! #46

Open
Alphexoed opened this issue Apr 1, 2021 · 4 comments
Open

Exception: ABI x86 is not supported! #46

Alphexoed opened this issue Apr 1, 2021 · 4 comments

Comments

@Alphexoed
Copy link

C:\Users\Slimakoi\Desktop\amimo\dcc>python dcc.py app.apk -o out.apk
[WARNING ] androguard.core.api_specific_resources: Requested API level 29 is larger than maximum we have, returning API level 28 instead.
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_c0_b_c_n_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_androidx_activity_ComponentActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_c0_h_b_i_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_google_android_gms_ads_AdActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_google_android_gms_common_api_GoogleApiActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_google_firebase_auth_internal_GenericIdpActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_google_firebase_auth_internal_RecaptchaActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_c0_k_a_i_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_google_android_gms_auth_api_signin_internal_SignInHubActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_tapjoy_TJContentActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= well_known_classes.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_d0_d_a_c_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_slimakoi_aminox_EditTitlesActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_slimakoi_aminox_CommunitySelectorActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_androidx_activity_ComponentActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_c0_b_c_n_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_tapjoy_TJAdUnitActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_c0_h_b_i_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Dex2C.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_c0_b_c_m_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_c0_k_a_i_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_google_android_gms_ads_AdActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_google_firebase_auth_internal_GenericIdpActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_slimakoi_aminox_InformationActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Dex2C.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_google_android_gms_auth_api_signin_internal_SignInHubActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_google_android_gms_common_api_GoogleApiActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_google_firebase_auth_internal_RecaptchaActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_slimakoi_aminox_ActionSelectorActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_tapjoy_TJContentActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= well_known_classes.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_d0_d_a_c_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_slimakoi_aminox_EditTitlesActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_c0_b_c_m_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_slimakoi_aminox_CommunitySelectorActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_tapjoy_TJAdUnitActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Compile++ thumb: nc <= Java_com_slimakoi_aminox_MainActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_slimakoi_aminox_InformationActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_slimakoi_aminox_ActionSelectorActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] SharedLibrary  : libnc.so
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[armeabi-v7a] Install        : libnc.so => libs/armeabi-v7a/libnc.so
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Compile++      : nc <= Java_com_slimakoi_aminox_MainActivity_onCreate__Landroid_os_Bundle_2.cpp
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] SharedLibrary  : libnc.so
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
fcntl(): Bad file descriptor
make: Entering directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
[arm64-v8a] Install        : libnc.so => libs/arm64-v8a/libnc.so
make: Leaving directory 'C:/Users/Slimakoi/AppData/Local/Temp/dcc-project-muw1y3yx'
I: Using Apktool 2.4.0 on app.apk
I: Copying raw resources...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[ERROR   ] dcc: Compile app.apk failed!
Traceback (most recent call last):
  File "dcc.py", line 463, in <module>
    dcc_main(infile, filtercfg, outapk, do_compile, project_dir, source_archive)
  File "dcc.py", line 417, in dcc_main
    copy_compiled_libs(project_dir, decompiled_dir)
  File "dcc.py", line 242, in copy_compiled_libs
    raise Exception("ABI %s is not supported!" % abi)
Exception: ABI x86 is not supported!
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\dcc-project-muw1y3yx
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\tmp9c5gz5bs-dcc
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\dcc-apktool-aw0m7wzb
@amimo
Copy link
Owner

amimo commented Apr 2, 2021

add "x86" to the Appliction.mk

APP_ABI := armeabi-v7a arm64-v8a x86

or just delete all the x86 libraries from your app.

@Alphexoed
Copy link
Author

Im getting this error now

I: Built apk...
[INFO    ] dcc: signing C:\Users\Slimakoi\AppData\Local\Temp\tmpnu93s97p-unsigned.apk -> out.apk
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
        at com.android.signapk.SignApk.addDigestsToManifest(SignApk.java:184)
        at com.android.signapk.SignApk.main(SignApk.java:504)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 2 more
[ERROR   ] dcc: Compile app.apk failed!
Traceback (most recent call last):
  File "dcc.py", line 463, in <module>
    dcc_main(infile, filtercfg, outapk, do_compile, project_dir, source_archive)
  File "dcc.py", line 419, in dcc_main
    sign(unsigned_apk, outapk)
  File "dcc.py", line 83, in sign
    subprocess.check_call(['java', '-jar', SIGNJAR, pem, pk8, unsigned_apk, signed_apk])
  File "C:\Program Files\Python38\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', 'tools/signapk.jar', 'tests/testkey/testkey.x509.pem', 'tests/testkey/testkey.pk8', 'C:\\Users\\Slimakoi\\AppData\\Local\\Temp\\tmpnu93s97p-unsigned.apk', 'out.apk']' returned non-zero exit status 1.
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\dcc-project-nwvp0m77
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\tmpq4vkib_b-dcc
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\dcc-apktool-942674m2
[INFO    ] dcc: removing C:\Users\Slimakoi\AppData\Local\Temp\tmpnu93s97p-unsigned.apk

@amimo
Copy link
Owner

amimo commented Apr 6, 2021

don't use the "--sign" option, then use other tool like "jarsigner" to sign the apk.

@Alphexoed
Copy link
Author

Sorry but how can I do that?
Is it a command line code?

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

2 participants