Comments (2)
Are you using Xposed (or something similar)? Generally you would get the context value from the thing you are hooking as a parameter or field. Since you're touching the UI, there is basically always a context field you can get from somewhere nearby. I have also heard that https://stackoverflow.com/a/12495865 works, but I strongly recommend against it as it's an implementation detail of the system.
from remotepreferences.
Thanks for you reply Apsun it's nice :) Yes I use more precisely EdXposed but it use same synthax and libraries.
Ok thanks for the info (I will try the solution of your link tomorrow it's 00:33am here π )
And to get the context of the Activity I hook how can I do this if you can help me ? I searched and tried a lot of differents solutions and I don't arrived to make it working.
If you need my Module code or other I can no problem :)
Thanks you,
Have nice day
from remotepreferences.
Related Issues (20)
- [QUESTION] How to get preferences from Android system package? HOT 6
- Android 10 return default value HOT 8
- Exception thrown when accessing preferences from Xposed (Android 11) HOT 10
- [Please Delete] Non-issue. HOT 2
- No exception thrown when Key is NULL HOT 2
- Unable to get provider HOT 9
- Move away from jcenter HOT 2
- Is it Solve Xsharedpreference Canβt Access Preference XML HOT 3
- App closed when try to use RemotePreference HOT 5
- [INFO] java.lang.SecurityException: Given calling package android does not match caller's uid HOT 6
- Variable preference name? HOT 5
- Does not work when trying to access via Xposed on an app targeting Android 11 HOT 16
- multiple apps use the library but they have same authority for a content provider, which creates conflict HOT 1
- Android 13:RemotePreferenceAccessException: query() failed or returned null cursor HOT 1
- Doesn't work in initZygote
- [Question] RemotePreferences not loaded after Android reboot HOT 4
- Cannot get preferences when application get killed HOT 6
- Should checkAccess check for the preferences owner package? HOT 4
- Unable to launch app **** for provider **** process is bad HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remotepreferences.