getActivity().getExternalCacheDir() not correctly redirected.
Describe the bug
getActivity().getExternalCacheDir() returns /storage/emulated/0/Android/data/com.example.test2/cache, and listFiles returns null instead of empty array.
To Reproduce
Steps to reproduce the behavior:
Run getActivity().getExternalCacheDir() + "\n" + Arrays.toString(getActivity().getExternalCacheDir().listFiles()) in app.
Expected behavior
File.listFiles should return array.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: Vivo V2055A
- OS: Android 12
- Version: master
Merging android-hacker/VirtualXposed#1035 resolves this problem on my device.
I added android:extractNativeLibs="true" should add to <application> and it works.