I want to install 2 different versions of an app. I researched a little and found that I need to change APK's package name with APK Editor. I decompiled the APK with APK Editor and changed everything related to the package name. For example, the app's package name was
com.oldapk.filee, which I changed to
com.newapk.file. Then I compiled it again and installed the new APK file. But I was unable to launch the new APK file.
I enabled USB Debugging on my phone and started to looking crash logs. I saw that the package name was mentioned as
com.oldapk.filee, and I started thinking about what could be wrong. I used
ack on Linux to check which files have the
com.oldapk.filee string and saw that 2 libraries (.so files) was including the old package name. I changed them in NotePad++ (Hex Editor Addon) to the new package name, but this time when the app launched, I was able to see starting screen, but it was crashing in 0.5 seconds after I launched it. I checked the crash logs again and then I saw that the package name was still old. Maybe the changes that I made didn't affect it.
How can I edit these files?