iBotPeaches / Apktool

A tool for reverse engineering Android apk files

Home Page:https://apktool.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Missing res-xml file after building

Android-Unknown opened this issue · comments

Information

  1. Apktool Version (apktool -version) - 2.7.0, 2.9.3
  2. Operating System (Mac, Linux, Windows) - Windows
  3. APK From? (Playstore, ROM, Other) - Other
  4. Java Version (java --version) - 17.0.5

Stacktrace/Logcat

java.lang.RuntimeException: Unable to get provider androidx.core.content.FileProvider: java.lang.IllegalArgumentException: Missing android.support.FILE_PROVIDER_PATHS meta-data
                                                                                                    	at android.app.ActivityThread.installProvider(ActivityThread.java:7251)
                                                                                                    	at android.app.ActivityThread.installContentProviders(ActivityThread.java:6787)
                                                                                                    	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6704)
                                                                                                    	at android.app.ActivityThread.access$1300(ActivityThread.java:237)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loop(Looper.java:223)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7664)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
                                                                                                    Caused by: java.lang.IllegalArgumentException: Missing android.support.FILE_PROVIDER_PATHS meta-data

Steps to Reproduce

  1. Original folder res/xml before decoding:
    изображение

  2. java -jar apktool_2.9.3.jar d -r app.apk

  3. java -jar apktool_2.9.3.jar b app

изображение

Please, help me

Do you mind putting up a failing test case by editing a sample application with some of the files involved in this? Without an application that would help give me a base to start from.