suraj0208 / WhatsappExtensions

Xposed module for WhatsApp
Apache License 2.0
100 stars 34 forks source link

Caused by: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported Android N #35

Closed Jasi2169 closed 6 years ago

Jasi2169 commented 6 years ago

Caused by: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported

on android Nougat but i see the latest version is released in september and you made changes 7 days back to make it private.

are you going to release next version for nougat compatibility

seems you need to make your shared_prefs worldredable

also xposed can not read prefs on FBE enabled devices now

Jasi2169 commented 6 years ago

added unofficial build for nougat

https://forum.xda-developers.com/showpost.php?p=74205487&postcount=1224

suraj0208 commented 6 years ago

I've worked on making it world readable. Haven't released it yet. So is there any work around for FBE enabled devices? What was your approach for making it world readable?

Jasi2169 commented 6 years ago

Hi,i used File APi to setreadable(true,false) rrr to all now this works fine, so making worldreadable with fle api to prefs is possible :)

you could use root to chmod as well

suraj0208 commented 6 years ago

Yeah i used root. Setting it to rw for all.

suraj0208 commented 6 years ago

For some reason I am not able to get it to work. I've pushed the changes in master. Can you please see whats wrong. The world readable related code is in Utils.java and I'm calling the function in onpause. Please see I dont have a phone with android N

Jasi2169 commented 6 years ago

added pull request

hi please remove the code of making readable in all activities except mainactivity just a overhead it is not required

also you can add in the commit makeread(Context c)

and from other activities which are launched calling prefs with PRIVATE mode and then calling the public function in mainacitivity with the context ather then adding it everywhere