VirtualXposed_12 icon indicating copy to clipboard operation
VirtualXposed_12 copied to clipboard

getActivity().getExternalCacheDir() not correctly redirected.

Open fanthos opened this issue 3 years ago • 2 comments

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

fanthos avatar Mar 15 '22 06:03 fanthos

Merging android-hacker/VirtualXposed#1035 resolves this problem on my device.

fanthos avatar Mar 15 '22 08:03 fanthos

I added android:extractNativeLibs="true" should add to <application> and it works.

fanthos avatar Mar 17 '22 01:03 fanthos