[App]XSecureStorage - Bypass secure storage checks on SHealth and Private mode

Search This thread

Nfeeble

New member
Dec 30, 2014
3
1
Louisville
I'm having trouble enabling Private Mode as well. (Not sure about SHealth as I have it disabled and could care less about that app'.) I'm stock rooted on a G900T with the Xposed Framework, Wanam and XSecureStorage installed/enabled. 'Disable Secure Storage' is not checked in my Wanam settings. I'm not worried about preserving any private pictures as I've already backed them up. Can anyone walk me through the process of enabling Private Mode, please? Bear with me; I'm a bit inexperienced with Titanium Backup and CWM/Phil's Touch Recovery. My understanding is that I need to use TB to backup my User Data and then boot into recovery and clear the cache? Any help will be greatly appreciated.

Update: I tried uninstalling the Framework, enabled SHealth again (if for whatever reason it didn't like it being disabled. Just a gut feeling, I guess.) and cleared the data in my SHealth, Health Services and Personal Pages Data. I then edited the system build.prop and changed ro.securestorage.support=true to false. I read on other forums that this has fixed the SHealth issue, but the Private Mode for some as well. I rebooted after each modification to be safe and then re-installed the framework. I still can't use Private Mode. Any suggestions? Also, would I be able to use the Xprivacy module to essentially mimic the function of Private Mode? I could just change the permissions on a folder within my gallery, right? I'm beginning to feel like that may be my only option.

Final update, hopefully: I followed the op's instructions in this thread and Privade Mode is finally working! :) I don't know whether any of the steps I did prior to this had an effect on whether I was able to get it working again, but I can confirm this last step just did the trick. Keep up the good work, guys. It's appreciated.
 
Last edited:
  • Like
Reactions: Rude People

crownboyz

Senior Member
Oct 11, 2012
103
2
I've deleted personalpage folder and privatemode_edk_1000?
How to get the private mode work again??
 
Nothing works :'( HELP!!

I read the whole thread, tried everything mentioned and... Private Mode nor S Health are working for me. I'm out of ideas, reverted back to using File Hider Pro for now. Hope you can come out with a fix @wanam :)

PS I got S Health working by making ro.securestorage=false, but Private Mode still doesn't work :'(
This ^ also removed all lag I had in games :)
 
Last edited:

Mentxd

New member
Feb 25, 2015
4
1
Hi guys,

I was not planning to buy a GalaxyS5, but i was lucky to get one as gift this weekend.

One of the issues i noticed on the past two days was the SHealth incompatibility with Xposed (described on this thread), somehow if you are using Xposed framework, Secure storage will fails to process and save data, which leads to Sensor service hangs

This module bypass the secure storage checks on SHealth and Private mode services, and will let you load the SHealth App with no hangs and activate Private mode on Rooted Samsung devices running Xposed framework.

I did just the basic tests for SHealth because i don't use this App anyway, it's not easy to play football with a device on my hands/pocket :D .

Download

Note:

  • You may need to clear SHealth and Health service data (you will loose your Pedometer data).
  • Clearing Personal pages service will break Private mode.
Troubleshooting:
If you can't get Private mode to work after switching to Xposed, you need to go back to a stock FW and backup your private files, after that you can install Xposed and enable my module then remove "/data/system/users/privatemode_edk_1000" as advised by @invano.

Changelog:
1.0.1:
- Add Private mode support.
- App renamed from XHealth to XSecureStorage


Thanks to:

  • Rovo89 for his awesome work on Xposed framework and Mods.
  • Tungstwenty for contribution on Xposed framework and his many Mods

thank you so much. thanks for sharing this. its work now.
 

PIRATA!

Senior Member
Dec 6, 2010
2,719
176
Should I use this even if I have Waman Xposed for Lollipop on my new Lollipop S5 Prime?

Tnx.
 

Blackheart66

Member
Jun 6, 2015
5
0
Works like a charm on my SM-G900H (Exynos variant) running under KK.

After installing the framework (in order to install the "Global S Health" module), the sensors were frozen and they're now running normally.

Private mode is also fully operational but you have to install (and activate) the mod after wiping/clearing S Health cache/data and reupdating the app.

Envoyé de mon SM-G900H en utilisant Tapatalk
 
Last edited:

danman987

Senior Member
Aug 8, 2015
108
6
Nice catch, i will try it.

i deleted that file but the file didnt come back. how can i restore it? im using an s6 btw

thanks

---------- Post added at 08:45 AM ---------- Previous post was at 08:44 AM ----------

Hi,
I also had this issue until some minutes ago.
Honestly I don't know why but before rooting and installing xposed, I think I cleared the PersonalPage service data...I ended up in an unusable PrivateMode like other users on this thread but even worse, for me, the impossibility of removing my fingerprint reading since I was using the fingerprint unlock method with PrivateMode.

I am investigating from 1hour and, as you said, there is something strange with the FsKeyBackup string. The 'getPrivateFsKeyBackup()' method always return null and the entire management of this second key seems to be left to com.sec.knox.container.

BUT

I found 'privatemode_edk_1000' under '/data/system/users' and guess what. By deleting this file (to force its creation again) the backup key is handled correctly, getPrivateFsKeyBackup() does not return null anymore and PrivateMode works again.

*For users which have some files in PrivateMode: this procedure will reinitialize PrivateMode thus all your private data will be destroyed.

I am testing all this stuff on a Note4 N910F

i deleted that file but the file didnt come back. how can i restore it? im using an s6 btw

thanks
 
D

Deleted member 5545167

Guest
Could you tell me the workaround you used in your mod??? I have a note 4 and I have Lollipop 5.1.1 which doesnt support xposed
 
D

Deleted member 5545167

Guest
Why it doesn't support xposed?

Sent from my SM-G920F using Tapatalk

It just doesn't..... I mean it might but I'd have to deodex my rom and I really can't. Tried it before... If you could please tell me what files to change and stuff I'd really appreciate it

---------- Post added at 04:20 PM ---------- Previous post was at 04:19 PM ----------

I've already set securestorage.support to flase in build.prop

---------- Post added at 04:20 PM ---------- Previous post was at 04:20 PM ----------

I need it because I get a fingerprint service error and someone told me to use your mod and it'll go away
 

wanam

Recognized Developer / Inactive RC
Jan 26, 2011
6,209
30,012
Toulouse
wanam.net
OnePlus 7T
Sony Xperia 5 III
It just doesn't..... I mean it might but I'd have to deodex my rom and I really can't. Tried it before... If you could please tell me what files to change and stuff I'd really appreciate it

---------- Post added at 04:20 PM ---------- Previous post was at 04:19 PM ----------

I've already set securestorage.support to flase in build.prop

---------- Post added at 04:20 PM ---------- Previous post was at 04:20 PM ----------

I need it because I get a fingerprint service error and someone told me to use your mod and it'll go away
Did you try my latest update of Xposed framework? It should work on stock odexed Roms.

Sent from my SM-G920F using Tapatalk
 
D

Deleted member 5545167

Guest
Did you try my latest update of Xposed framework? It should work on stock odexed Roms.

Sent from my SM-G920F using Tapatalk

I have an exynos varient of note 4 odexed stock rom with custom kernel and root access... If you think I could install it please give me a link.... Thanks a lot for taking the time to help me man!
edit: giving it a shot anyways. Found your xposed files and about to flash, taking a nandroid backup now..... Thanks man I really appreciate it. BTW, I'd love to donate to you but unfortunately the only way I can is through google in app purchases since I live in the Middle East and don't have a credit card or paypal account
P.S. You said on the unofficial 5.1.1 xposed thread for samsung that it works only on deodexed roms

I tried deodexing my 5.0.1 rom like weeks ago and I still couldn't install xposed framework... It wasn't yours but it didn't work... Could you walk me through deodexing?

---------- Post added at 05:24 PM ---------- Previous post was at 05:07 PM ----------

NO WAY IN HELL!!!!!!!!!!!!!!!! IT WORKED!!!!! YOUR UNOFFICIAL XPOSED BUILD worked on my ODEXED stock 5.1.1 samsung rom!!!!!!!!!!!!!111 God bless you man............. Love you!!!!!!!!!!!!!
 
Last edited by a moderator:

wanam

Recognized Developer / Inactive RC
Jan 26, 2011
6,209
30,012
Toulouse
wanam.net
OnePlus 7T
Sony Xperia 5 III
I have an exynos varient of note 4 odexed stock rom with custom kernel and root access... If you think I could install it please give me a link.... Thanks a lot for taking the time to help me man!
edit: giving it a shot anyways. Found your xposed files and about to flash, taking a nandroid backup now..... Thanks man I really appreciate it. BTW, I'd love to donate to you but unfortunately the only way I can is through google in app purchases since I live in the Middle East and don't have a credit card or paypal account
P.S. You said on the unofficial 5.1.1 xposed thread for samsung that it works only on deodexed roms

I tried deodexing my 5.0.1 rom like weeks ago and I still couldn't install xposed framework... It wasn't yours but it didn't work... Could you walk me through deodexing?

---------- Post added at 05:24 PM ---------- Previous post was at 05:07 PM ----------

NO WAY IN HELL!!!!!!!!!!!!!!!! IT WORKED!!!!! YOUR UNOFFICIAL XPOSED BUILD worked on my ODEXED stock 5.1.1 samsung rom!!!!!!!!!!!!!111 God bless you man............. Love you!!!!!!!!!!!!!
You are welcome.

Sent from my SM-G920F using Tapatalk
 

frwerewolf

Senior Member
Jan 12, 2013
127
19
Hello wanam. Is there a way to access notification panel above secured lockscreen like it was before lollipop ? None of the tools i found on xposed framework seem to work. Its a really usefull tweak for me. Ready to pay for any working solution. Thanks in advance. Ps: if private mode could work too it would be a must.
I'm on arter97 8.1 kernel on a galaxy s6 edge plus C version.
 
Oct 12, 2015
15
0
Link is dead

Hi guys,

I was not planning to buy a GalaxyS5, but i was lucky to get one as gift this weekend.

One of the issues i noticed on the past two days was the SHealth incompatibility with Xposed (described on this thread), somehow if you are using Xposed framework, Secure storage will fails to process and save data, which leads to Sensor service hangs

This module bypass the secure storage checks on SHealth and Private mode services, and will let you load the SHealth App with no hangs and activate Private mode on Rooted Samsung devices running Xposed framework.

I did just the basic tests for SHealth because i don't use this App anyway, it's not easy to play football with a device on my hands/pocket :D .

Download

Note:

  • You may need to clear SHealth and Health service data (you will loose your Pedometer data).
  • Clearing Personal pages service will break Private mode.
Troubleshooting:
If you can't get Private mode to work after switching to Xposed, you need to go back to a stock FW and backup your private files, after that you can install Xposed and enable my module then remove "/data/system/users/privatemode_edk_1000" as advised by @invano.

Changelog:
1.0.1:
- Add Private mode support.
- App renamed from XHealth to XSecureStorage


Thanks to:

  • Rovo89 for his awesome work on Xposed framework and Mods.
  • Tungstwenty for contribution on Xposed framework and his many Mods
Hey links dead :(
 

izipizzy

Senior Member
Nov 20, 2015
106
6
I installed this and still the shealth doesn't work I open it check the 2 boxes press next and its stuck on checking...
 

keirchkeianmar

New member
Mar 10, 2015
3
0
hello
it work on my note edge both s health & private mode. sm-n915f..,,.I WANT TO SAY THANKS ALL OF YOU FOR THE HARD WORKS
 

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    Hi guys,

    I was not planning to buy a GalaxyS5, but i was lucky to get one as gift this weekend.

    One of the issues i noticed on the past two days was the SHealth incompatibility with Xposed (described on this thread), somehow if you are using Xposed framework, Secure storage will fails to process and save data, which leads to Sensor service hangs

    This module bypass the secure storage checks on SHealth and Private mode services, and will let you load the SHealth App with no hangs and activate Private mode on Rooted Samsung devices running Xposed framework.

    I did just the basic tests for SHealth because i don't use this App anyway, it's not easy to play football with a device on my hands/pocket :D .

    Download

    Note:

    • You may need to clear SHealth and Health service data (you will loose your Pedometer data).
    • Clearing Personal pages service will break Private mode.
    Troubleshooting:
    If you can't get Private mode to work after switching to Xposed, you need to go back to a stock FW and backup your private files, after that you can install Xposed and enable my module then remove "/data/system/users/privatemode_edk_1000" as advised by @invano.

    Changelog:
    1.0.1:
    - Add Private mode support.
    - App renamed from XHealth to XSecureStorage


    Thanks to:

    • Rovo89 for his awesome work on Xposed framework and Mods.
    • Tungstwenty for contribution on Xposed framework and his many Mods
    3
    Will you add private mode support also to Wanam Xposed?
    Yes, on my next update.
    3
    I think i have some great news about Private mode too :D .
    2
    I managed to reproduce this issue after clearing my "Personal pages service" data, it resets the private key on the service level only, and somehow the password stay incorrect while calling "mount_privatemode 1000 /mnt/shell/privatemode /storage/Private" even if i force the regeneration of the private and backup key!

    Disabling secure storage let you bypass its checks but it fails now on the Knox container level "com.sec.knox.container.util.EnterprisePartitionManager.mountPrivateMode", there no way to reset the password, obviously it requires the old one, so i don't see what we can do at this level :confused: .

    Hi,
    I also had this issue until some minutes ago.
    Honestly I don't know why but before rooting and installing xposed, I think I cleared the PersonalPage service data...I ended up in an unusable PrivateMode like other users on this thread but even worse, for me, the impossibility of removing my fingerprint reading since I was using the fingerprint unlock method with PrivateMode.

    I am investigating from 1hour and, as you said, there is something strange with the FsKeyBackup string. The 'getPrivateFsKeyBackup()' method always return null and the entire management of this second key seems to be left to com.sec.knox.container.

    BUT

    I found 'privatemode_edk_1000' under '/data/system/users' and guess what. By deleting this file (to force its creation again) the backup key is handled correctly, getPrivateFsKeyBackup() does not return null anymore and PrivateMode works again.

    *For users which have some files in PrivateMode: this procedure will reinitialize PrivateMode thus all your private data will be destroyed.

    I am testing all this stuff on a Note4 N910F
    1
    S health says it's the latest update.

    I have not done any other mods.
    I did not get a restore popup. The data was automatically restored when I uninstalled xsposed.

    Skickat från min SM-G900F via Tapatalk

    Okay, if you have time to try the module again, PM me your logcat.

    If don't get the same bellow errors, then it should be other thing:

    Code:
    I/SecureStorage( 7245): [INFO]: SPID(0x00000000)Processing data
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)transition_table [first_perm][second_perm] != 0
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)first_perm = 3
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)second_perm = 3
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Block_perm = 2
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=0 415E4000 - 41650000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=1 41650000 - 41651000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=2 41651000 - 416A7000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=3 416A7000 - 416AB000 r--p /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=4 416AB000 - 416B1000 rw-p /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=5 416B1000 - 416B5000 rw-p 
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)bad block
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)parse_proc_fs error
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Error processing data
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Android: read data error: -2
    I/SecureStorage( 7245): [INFO]: SPID(0x00000000)Processing data
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)transition_table [first_perm][second_perm] != 0
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)first_perm = 3
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)second_perm = 3
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Block_perm = 2
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=0 415E4000 - 41650000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=1 41650000 - 41651000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=2 41651000 - 416A7000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=3 416A7000 - 416AB000 r--p /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=4 416AB000 - 416B1000 rw-p /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=5 416B1000 - 416B5000 rw-p 
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)bad block
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)parse_proc_fs error
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Error processing data
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Android: read data error: -2
    I/SecureStorage( 7245): [INFO]: SPID(0x00000000)Processing data
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)transition_table [first_perm][second_perm] != 0
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)first_perm = 3
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)second_perm = 3
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Block_perm = 2
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=0 415E4000 - 41650000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=1 41650000 - 41651000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=2 41651000 - 416A7000 r-xp /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=3 416A7000 - 416AB000 r--p /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=4 416AB000 - 416B1000 rw-p /system/lib/libdvm.so
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)i=5 416B1000 - 416B5000 rw-p 
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)bad block
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)parse_proc_fs error
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Error processing data
    E/SecureStorage( 7245): [ERROR]:SPID(0x00000000)Android: read data error: -2
    I/SQLiteSecureOpenHelper( 7245): getWritableDatabase(pwd)
    I/SQLiteSecureOpenHelper( 7245): getDatabaseLocked(b,b,pwd)...
    I/SQLiteSecureOpenHelper( 7245): Open platform.db in secure mode
    E/SQLiteLog( 7245): (26) statement aborts at 0: [PRAGMA user_version;] file is encrypted or is not a database
    E/DefaultSecureDatabaseErrorHandler( 7245): Corruption reported by sqlite on database: /data/user/0/com.sec.android.service.health/databases/platform.db
    E/DefaultSecureDatabaseErrorHandler( 7245): backup the database file: /data/user/0/com.sec.android.service.health/databases/platform.db
    D/SQLiteSecureOpenHelper( 7245): ...getDatabaseLocked(b,b,pwd)
    E/JavaBinder( 7245): *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
    E/JavaBinder( 7245): java.lang.RuntimeException: android.database.sqlite.SQLiteDatabaseCorruptException: file is encrypted or is not a database (code 26)
    E/JavaBinder( 7245): 	at com.sec.android.service.health.cp.database.DBManager.getWritableDatabase(DBManager.java:164)
    E/JavaBinder( 7245): 	at com.sec.android.service.health.cp.database.DBManager.getWritableDatabase(DBManager.java:100)
    E/JavaBinder( 7245): 	at com.sec.android.service.health.cp.HealthContentProvider.query(HealthContentProvider.java:534)
    E/JavaBinder( 7245): 	at android.content.ContentProvider.query(ContentProvider.java:857)
    E/JavaBinder( 7245): 	at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
    E/JavaBinder( 7245): 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
    E/JavaBinder( 7245): 	at android.os.Binder.execTransact(Binder.java:404)
    E/JavaBinder( 7245): 	at dalvik.system.NativeStart.run(Native Method)
    E/JavaBinder( 7245): Caused by: android.database.sqlite.SQLiteDatabaseCorruptException: file is encrypted or is not a database (code 26)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteConnection.nativeExecuteForLong(Native Method)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteConnection.executeForLong(SQLiteConnection.java:788)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteSession.executeForLong(SQLiteSession.java:652)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteStatement.simpleQueryForLong(SQLiteStatement.java:107)
    E/JavaBinder( 7245): 	at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:825)
    E/JavaBinder( 7245): 	at android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:813)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteDatabase.getVersion(SQLiteDatabase.java:996)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteSecureOpenHelper.getDatabaseLocked(SQLiteSecureOpenHelper.java:366)
    E/JavaBinder( 7245): 	at android.database.sqlite.SQLiteSecureOpenHelper.getWritableDatabase(SQLiteSecureOpenHelper.java:275)
    E/JavaBinder( 7245): 	at com.sec.android.service.health.cp.database.DBManager.getWritableDatabase(DBManager.java:153)
    E/JavaBinder( 7245): 	... 7 more