Comments (6)
Can you supply your proguard.cfg?
from secure-preferences.
Yes, of course:
-dontwarn **
-dontshrink
-dontoptimize
-keep class com.google.** { ; }
-keep class android.* { ; }
-keep class org.apache.* { ; }
-keep class com.activeandroid.* { ; }
-keep class com.squareup.* { ; }
-keep class retrofit.* { ; }
-keep class rx.* { ; }
-keep class com.facebook.* { ; }
-keep class pl.charmas.* { ; }
-keep class com.orhanobut.* { ; }
-keep class com.tozny.* { ; }
-keep class com.securepreferences.* { ; }
-keep class com.scottyab.* { ; }
-keep class java.security.* { ; }
-keep class javax.crypto.* { ; }
-keep class org.acra.* { ; }
-keep class okio.* { ; }
-keep class bolts.* { ; }
-keep class pl.charmas.* { ; }
#-keep class erparchitector.findwork.* { *; }
-keepattributes Signature
Gson specific classes
#-keep class sun.misc.Unsafe { ; }
-keep class sun.misc.* { ; }
-keep class com.google.gson.stream.* { *; }
Application classes that will be serialized/deserialized over Gson
#-keep class com.google.gson.examples.android.model.** { *; }
-printmapping classes-processed-proguard.map
from secure-preferences.
I had the same problem in a project using Secure-preferences.
Adding the following to the Proguard config file worked in my case:
-keep class com.tozny.crypto.android.** { *; }
-keep class com.securepreferences.** { *; }
@scottyab do you see any issue with that?
from secure-preferences.
@danybony that'll work. Of course you're excluding all the library code so it's not obfuscated. It would be better security (even if security by obscurity) to have that obfuscated too. I'll add to the issues, I'm sure it's only a small part that needs excluding.
from secure-preferences.
See issue #29
from secure-preferences.
This issue has been fixed as part of v0.1.4 - also please note unlike previous versions from 0.1.4+ no specific ProGuard config is need to get working. Just waiting for maven central to propagate dependancy.
Also please note there is specific DexGuard config supplied with DexGuard 7+ located <dexgaurd root>/samples/advanced/SecurePreferences
from secure-preferences.
Related Issues (20)
- Fix getAll method to return the correct value for StringSet. HOT 2
- AndroidQ will no longer support android.preference. HOT 1
- Android 10 - android.preference deprecated HOT 1
- Security alert on our production app on google play console
- Android Canary 3.6 not building HOT 3
- Value can't be saved when put value after clear() and kill app in background. HOT 1
- DeterministicAeadFactory.java line 13
- Flutter HOT 1
- How to use sharedPreference in flutter to stay user loggedin in flutter using a setBool and GetBool HOT 2
- [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
- java.security.KeyStoreException: the master key android-keystore://_androidx_security_master_key_ exists but is unusable
- Create tag 0.1.7 HOT 1
- SecurePreferences.getString() throws java.lang.IllegalStateException HOT 1
- Crashing in API 28 (Android Pie) s== null (DO NOT USE THIS LIBRARY, it is completely broken) HOT 22
- Does this library needs to update the TragetSDKversion to 26? HOT 1
- After upgrade Android OS Version 9 (pie) the values are not stored and retrieved. HOT 5
- all sharedPrefrences remove after app crash's
- Security Scan failed
- securePref.getAll() return map where only values decrypted and keys encrypted HOT 1
- After updating to Android Q, i am not able to retrieve the data from the Secure preferences? HOT 10
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 secure-preferences.