
Hello. My name is Alexey and I am engaged in reverse adnroid-applications. Many who did reverse the android-applications, faced with the fact that when rebuilding using apktool, the application was not collected and wrote about errors during the Building resources. As a rule, these errors can be corrected manually in the places of their occurrence. But what to do when there are a lot of them? Corrections will take more than one hour. Today I will tell how to deal with these for a couple of minutes.
1. Install on the device \ emulator where we will use the lucky patcher application and the patch device.
Toolbox → Patch to Android → and patch the first 2 points as in the picture.
')
2. Build the application using apktool. Apk will not be created, but if you do not have errors in the smali files, then we will have the collected .dex file at the application_folder → build → apk
3. Open the original apk with winrar and put our modified dex-file there.
4. Install on patched device \ emulator. Profit.
PS Once I came across an application that generated a token based on the signature apk. And it is this way that helped me figure it out and successfully start generating tokens in my bot)