yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Android Development (Snapdragon)] oluwaponmile:
Actually I am on g00h which happen to be a great port as well. Had to reflash the rom to test this as he has the "Private Mode" disabled by default using the feature.xml since it wasn't working.

I did had some success, I was able to configure the private mode unlike before but it did failed to enable the private mode with the message "Failed to enable private mode. Please try again "

See attached pictures

Please don't bother to try and sort it out, I just wanna test this out for you and possibly points other Note 3 users (with s5 port) to this helpful thread
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Thank you my friend! It's the second port so far with confirmed not working. My suspicion is its the note3 fault ? thank you for all your troubles! highly appreciated! See you around!
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
Maybe differences in libsecure_storage or libsecure_storage_jni if not using s5 libs or the aforementioned build.prop securestorage
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Well... secure storage was checked by a user before on another s5 port to note3. Libs are a good idea to check. I will try to convince a friend [MENTION=3026895]DaOldMan[/MENTION] who's on note3 s5 port to make a tester out of his baby note ;) thanks!
[Galaxy S 5 Android Development (Snapdragon)] oluwaponmile:
I can also test it out for you my friend, just let me know what to do. ...

At least it was a positive result, I can't get to the setup stage without you guys mod

Cheers
[Galaxy S 5 Android Development (Snapdragon)] brhoomy101:
thanks man :highfive:

good job

and thanks to [MENTION=4714483]daxgirl[/MENTION]
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
You're amazing! Thanks!

1. Set up the secure storage in build prop to true

2. Make sure you have the app installed.

3. See if you have the libs that [MENTION=3065070]Goldie[/MENTION] mentioned 2 posts above. If not, I will upload my original s5 ones.

4. Test. If fails... the next step is really annoying so you really don't have to... I mean really don't have to..

3. Make nandroid of data partition and wipe data.

Test again... restore data from nandroid if fails...

P.s. [MENTION=5493353]Wuby986[/MENTION] is making modifications based on Goldie's suggestions. So maybe before you wipe data, wait to test those..

I think that pretty much covers it.

And again... you REALLY don't need to!!!

Really amazing that you're willing! You rule!!!

Dax
[Galaxy S 5 Android Development (Snapdragon)] koben147:
OK, i'm in.

-- Wiping data. . .

Formatting /data. . .

Formatting /cache. . .

and. . . a cup of coffee. . . tick tock tick tock ~
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Note 3 guys are the best :)
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Negative

1. Ok, i've notice the two files that [MENTION=3065070]Goldie[/MENTION] said (libsecure_storage or libsecure_storage_jni) is missing on my lib folder - so i added from some of s5 hyrid rom.

2. Change securestorage =false to =true in build.prop

3. Flash .zip provided from [MENTION=5493353]Wuby986[/MENTION]

4. Wipe data . . .

Result - still failed. :crying:

Ok i'm done, only this i could help you guys

p/s; hope we can manage to fix this together until we can achieve a good result. :good: :good:
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Thanks button is not enough to thank you, my friend! THANK YOU! if the solution is found I will personally tag you! In a mean while quoting pirates of the Caribbean. ... Keep a wide eye on the horizon! ?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Soo.. my latest finding are the following: i installed it on my s3 (4.4.2) to have a look.. i managed to start it and set the pin but after that i wasn' t able to enable it.. so i runned a log, and i found out that it was looking for an output from a knox package (don t remeber wich and now i wiped data forgetting about the screenshot..grrrr) and from libsecure.storage.jni.so and was looking for a backup password that wasn' t aparently able to find...

changing the lib didn' t solve, so i tried wiping data and now i have to reinstall because i cannot access wifi anymore ahaha... anyhow.. i am not sure it can be ported on other device, but if is it needs tones of hour of work...

Also i have tried it on an odexed rom and it works, even if deleting data.. i will run some more tests and then update the OP accordingly to recents events
[Galaxy S 5 Android Development (Snapdragon)] DaOldMan:
Dear Friends,

I have been asked by my good friend [MENTION=4714483]daxgirl[/MENTION] to check this issue out. I am using [MENTION=3068641]jamal2367[/MENTION] and [MENTION=5326034]tyre777[/MENTION] S5 port on n9005.

1) I changed the build.prop

2) Did [MENTION=5493353]Wuby986[/MENTION] mod

3) I have the libs that [MENTION=3065070]Goldie[/MENTION] mentioned

4) I have modded settings to get "private mode" back

When trying to enable private mode I get the same error "private mode can't be enabled now, please try again".

I did a logcat of the problem and found out the Lean kernel SeLinux is problematic as it has not the correct files. I installed the stock kernel. Still not go, but now on LogCat I have an error I can't fix:

The kernel binary has been changed

The platform/kernel binaries should be synchronized for running the Secure Storage

Please use the same version of platform/kernel binaries

Also EnterprisePartitionManager can't find a file, which may be also a problem to create the secure partition. I include a small logcat of this here

There is also the problem Wuby mention with PPS_PersonalPageStorageManager can't get backup password thus not enabling Private Mode.

Hope this helps a bit,

Thomas
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Many thanks... i just quickly read it and it is trying to find the same file (as i can remeber) of the s3..

I think it cloud be maybe related to bootloader (wich actually manages the partitions) and talking with [MENTION=4714483]daxgirl[/MENTION] she seems to have the same idea..

Edit!! I just managed to get the same error you regarding the binaries get but i have a working PM.. i am using an old stock kernel on new firmware, but it is still working..
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Wow... [MENTION=5493353]Wuby986[/MENTION] [MENTION=3026895]DaOldMan[/MENTION] [MENTION=4714483]daxgirl[/MENTION] thank you so much guys on your efforts!

Perhaps we can delve into a new knowledge in these case. I'm so excited what was going on here... :good:
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
Did he try with an updated zip with issupported set to true?
[Galaxy S 5 Android Development (Snapdragon)] DaOldMan:
If you mean the build.prop mod for ro.securestorage.suport=true then YES of course :)

Thomas
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
No he means the app updatwd with latest mods he suggested.. i will upload for you soon, if you don' t mind
[Galaxy S 5 Android Development (Snapdragon)] DaOldMan:
Sure, why not. But all I saw here are nice mods that allow you to use the Private Mode without lockscreen security and without notification reminder. That doesn't sound like something that can help, unless there is more :)

Thomas
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
I have done some further research on the matter. The private mode is a strictly Linux transition of an emulated partition from the state of Linux permissions of 000 to the state of 755 permissions. As much as an sdcard is an emulated partition (that is always on rw state and is always 755), the private partition is basically the same partition only while disabled it's being moved to the system GID and denied all permissions. It occupies the same virtual space as the sdcard. So basically the Linux kernel is behind this transition. Now the Linux Base for all devices is exactly the same. What varies is only the drivers. So the kernel for all devices knows how to handle the GID transitions. But it seems that something is allowing or disallowing it. Now Wuby and I both are running kernel where in ram disk the secure storage is set to false. And yet the function works. Weather the build.prop overrides it or not. So the only thing I can think of is knox. The bl knox that doesn't have the permission for GID transition on other devices.
[Galaxy S 5 Android Development (Snapdragon)] Sikac101:
[MOD][GUIDE][HOWTO] * Enable Private Mode with KNOX 0x1

It worked fine for me. Thanks for the MOD OP.:good:
[Galaxy S 5 Android Development (Snapdragon)] tgm28:
For me Private mod work with tripped knox and without this mod.
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Hi guys. My phone model is S5 G900f. Complete new. But i lost the private mode for use xposed. According with Phone Info i' m Knox x0x. The rom is FXXU1ANCE. This method can help me? If the answer is yes all wath i hace y o do sre install the apk of the zip. Thanks for your help.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
I do believe for your current situation i would use the xposed module to enable it..
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Thanks Wuby986. I'm using the Wanam module but the problem is there.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
are you on stock odexed rom? i do believe there are some problem with it, but if you want to try i can send you a different app to test.. be aware that it could not work and that the manual substitution and delete the odex file can cause problems.. if you have any photo inside the partition remove xposed and save them before try..

https://www.dropbox.com/s/ilkq8eg2elrgrzi/PersonalPageService.apk?dl=0
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Yes theres is a complete rom stock. Let me see if i understand you. First i need remove xposed and second install this app? Wy you don't recommend me make a manual substitution?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Because deleting the file before the copy will cause problems.. it is better if you can use adb, but i also had some other confirm about the thing from other fried of mine that tested this.. i am a bit confused since it worked for me also on odexed rom, but so far all other attempts didn' t went fine..
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Wuby i download the app but wen i try to install a leyend say: theres is a problem with the analysis of the package.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
You don' t have to do a regular install... use adb would be the perfect solution if recovery is not avaible.. other solution are not the best way.. but anyway it won' t probably work
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Wath is adb?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Search google.. Is a pc bridge to the phone system
[Galaxy S 5 Android Development (Snapdragon)] webmin:
i don´t understand the problems .. i have a german g900f (o2-stock) with chainfire root, with tripped knox ... but i can use private mode without any problems. swipe down with two fingers, tap private mode, used fingerprint .. and can now hide my photos, notes etc ... no problems .. ? if i connect it to the pc i have a third partition called private...
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well it has never worked like that for me!! And same for many other people! We had a couple (with your) report of working with tripped knox and i don' t get how.. but anyway good for you ?
[Galaxy S 5 Android Development (Snapdragon)] webmin:
okay, thanks for the information :D didn´t know that there are so many differences between the devices
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
I mean that the problem should be/is the tripped knox.. this is how samsung wanted it to be, once you root it (void knox) you shouldn' t be able to access to the partition anymore.. they sold it even to USA gov for this secure/encripted partition
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
Is it not the deodex that breaks it? So it would work on rooted stock? The lib checks for framework.odex amongst other stuff
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
On the stock firmware (.odex NG2) private mode works fine and without this mod..

But only worth deodex any file in the folder /framework/ as private mode will not work and does not work even with this mod.
[Galaxy S 5 Android Development (Snapdragon)] BROKEN1981:
How come i tripped Knox and never had to do this? private mode always worked
[Galaxy S 5 Android Development (Snapdragon)] CiDev:
private mode

OMG this is SUPER!!!

thx a 1.000.000 times!!!

you rock!!!
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
This mod works on completely deodexed roms with secure storage set to false everywhere. The only thing that is modded is "fooling" the knox reading. So if the lib checks for framework.odex, how come it works on fully deodexed roms?

That is interesting... although again... I works on fully odexed roms (as a deodexed app) with tripped knox. And it works on fully deodexed roms.

When I first got the device it was the first thing I checked. Having known once I trip knox I checked the private mode. In the 15 minutes that my device was unrooted, it's the ONLY thing I checked because I wanted to see a feature that I would never be able to use again (or so we believed then). Then I rooted with cfroot and since that moment on a completely odexed framework it never worked again. So I think the determining factor is still to be found.
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
I know it works on deodexed. ....I had it in my rom a while ago. I think though that the passing null doesn't pass only the knox value. I think it passes the outcome of the lib check. Including the odex check and some others (4 libs and a bin file) So it then works on deodexed. By passing the object it overrides the outcome of the check. Pure stock deodexed with knox 0x0 doesn't work as far as I know. So it would make sense.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
It seems that you're right!!! And deodex is the main problem or one of main problems. I will let [MENTION=5493353]Wuby986[/MENTION] present his full findings though when he is done with all the tests! :)

One thing is for sure, on older firmwares is didn't work on tripped knox on fully stock rooted odexed fws. Apparently, it does now ???
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
sooo.. here i am again..

with my biggest surprize (not that i didn't trust you guys, but when i tried it wasn't working!!) i flashed stock ng2 with odin wiping all data and it was working out of the box..!! then rooted, disabled knox and installed the moded one deleting the odex file, and it wasn't working till i wiped all data, wich makes sense because if i delete data for only personalpage app ( in order to change the pincode to access, but not the whole data/media) i could access to the partition and it's data..

i do guess that if i wiped all data after i voided knox the first time it would have worked....

so for [MENTION=3615250]Tamerlan2009[/MENTION] i do believe that your first post in first page is not correct, it does work on odex rom as long as you wipe data/factory reset after you delete the odex file and change the app in system/priv-app.. at least it did for my experience, and logically, if it works with a fully deodexed framework, it will even with only one deodexed app, because no matter what it checks for, it gets the value we override in the smali.

anyway if you have a fully odex stock you don't need the mod as i learnt today ( and aparently you already knew...)

[MENTION=3065070]Goldie[/MENTION] i came to the opinion that if it works on deodexed, and it checks for an odex file, why it shouldn't on odex? becasue it will anyway override, the point is that if you have an already working app (odex) and change it with this one or anyone else it will delete the data/data folder and with it the properties.xml were the key and it's backup are stored, so it won't recognize the password anymore and let you access to the partiton.

this is the only reason i could find..

tonight i will update the OP with the mods you provided
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
The stuff that the lib does is quite wide ranging to return ss_is_supported as true.

What you say makes sense. With a wipe of data and an apk that has issupported forced true and the null passed it should work on any and all I guess
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
I tested it with secure storage false FORCED in both ram disk and build.prop and without the issuport true modded and it works perfectly!

I believe that while nice addition, this modification is not necessary for the functioning app. But it's very nice. And removing of the secure lockscreen and alert dialog is just cool!
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Wubi. I try to install using the recovery but say:

E: footer is wrong

E: signature verification failed

I'm installin from the external card.

Wath i can do?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Are you on deodexed rom? Wich recovery?
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
I have a odexed rom. I see .odex files in app/sistem.

The recovery. Using power button+ home button + volume up. The i selecc install fron external sd card.

I'm wrong? ?[emoji15] [emoji15] [emoji15]
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
if you have an odex rom you don't need this, even if you have knox 0x1, you just need to wipe data/factory reset from recovery, but be sure to backup all you need or will be lost...
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
But i will loose the root?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
No root is not in data but in system..
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
ok. Xposed will make the same problem again? After the wipe.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well xposed has never created any problem to me on deodexed rom, but could be the problem... i tried and was working, but cannot confirm for all
[Galaxy S 5 Android Development (Snapdragon)] _Rube_:
Problema solved. Wipe data and all work fine. Root access and private mode. Thanks Wuby for your help.
[Galaxy S 5 Android Development (Snapdragon)] sacaman:
I can confirm also

on S5 SM-G900F on a odex ROM only way to make it enable again is to wipe data ( factory reset )no need for this MOD only the stock one can work

thanks again for your work
[Galaxy S 5 Android Development (Snapdragon)] buddy66:
Everything works fine on SM-G900F (Europe), ANE2, odex. No need to wipe anything.

I have tripped knox long ago with kernel flash.

The only thing I had to do is to delete odex file and flash the MOD again. Thanks ! :)
[Galaxy S 5 Android Development (Snapdragon)] devilyuri:
Does it work with galaxy s4?
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Does galaxy s4 have private mode? I don't remember it there... am I mistaken?

In general any device which has a Knox that supports it, and has this app and feature enabled in settings, should have the same solution as in Wuby's guide. I successfully ported it to note 4. Just needed to make some adjustments as the method is not the same on note 4.
[Galaxy S 5 Android Development (Snapdragon)] devilyuri:
Galaxy s4 has knox app so i think it can work
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
It's the same idea, but it's quite different. Logically the same thing should apply. Only difference is that know app isn't actually deodex related. It's a Knox counter related. even on odexed stock with root it wouldn't work. That's for sure. You can try and locate the app and see if there are similarities in classes and methods. If you understand the idea you will be able to mod in case there is a chance.

I don't own the device so I really can't test or look.
[Galaxy S 5 Android Development (Snapdragon)] hensk:
10ks m8,working exellent on Samsung Galaxy Alpha

superb mod
[Galaxy S 5 Android Development (Snapdragon)] edwardsiow:
I already flashed the mod and enabled securestorage=true, but still failed to enable private mode..

Is it a MUST to wipe data in order to make it works? I don't want to wipe data........
[Galaxy S 5 Android Development (Snapdragon)] F@HIM:
[MENTION=5493353]Wuby986[/MENTION] and [MENTION=4714483]daxgirl[/MENTION] its not working on galaxy note 2....flashed both the zips but still not working suggest any solns plsss
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Wich device? Wich rom?

Well it can't work unless it is already present by default on your device
[Galaxy S 5 Android Development (Snapdragon)] edwardsiow:
[MENTION=5493353]Wuby986[/MENTION], S5 ported rom for Galaxy Note II with knox triggered and 4.4.2
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
That's why.. It cannot be enabled on note2
[Galaxy S 5 Android Development (Snapdragon)] edwardsiow:
Dear [MENTION=5493353]Wuby986[/MENTION], any specific reason? hardware related?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Yep.. It isn't builded to enable a virtual partition.. On s5 when you check via root browser you can always see the partition but is not mounted and you can't see nothing in.. Maybe it is possible.. But i don't know how by now.. I will research a bit more on s3 if i find some more time
[Galaxy S 5 Android Development (Snapdragon)] F@HIM:
Yeh plsss if u can find a soln for note 2 that would be too gr8....anyways thanks for reply...:)
[Galaxy S 5 Android Development (Snapdragon)] edwardsiow:
Thanks! It will be wonderful if you can find a way..........you are the best! thanks again~
[Galaxy S 5 Android Development (Snapdragon)] onyez:
Still unable to enter private mode

I'm rooted and on stock odexed rom but instill can't start private mode, if anyone can tell me what app data to clear I'd appreciate it. I even installed an xposed module but it still didn't work.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Most likely you need to remove xposed in case you're not using a modded private mode
[Galaxy S 5 Android Development (Snapdragon)] kami_karakaj:
private mode is activated but does not function

Послато са SM-G900F уз помоћ Тапатока
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
If is active it does work.. Go to gallery, select a photo then hit 3dot menu and select move to private
[Galaxy S 5 Android Development (Snapdragon)] kami_karakaj:
Solved ... tnx.. ☺

Послато са SM-G900F уз помоћ Тапатока
[Galaxy S 5 Android Development (Snapdragon)] iepurasu_poznas:
This method work on lollipop to?
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Once we manage to deodex the apps we need, we will see if it can be modded again on lollipop. Sure :)
[Galaxy S 5 Android Development (Snapdragon)] iepurasu_poznas:
PersonalPageService.apk comes already deodexed!

I get this error when i try to decopile PersonalPageService.apk!
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
If you don't have a deodexed framework you should't have a problem using it as it comes with stock rom flashed with odin
[Galaxy S 5 Android Development (Snapdragon)] iepurasu_poznas:
I am working on my own rom! At the moment entire rom it is odex (oat)! I debloated the rom and also i have removed knox apps and knox container folder from system! Then private mod can't be activated anymore!
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
You just need to wipe data for what i know..
[Galaxy S 5 Android Development (Snapdragon)] iepurasu_poznas:
I have tried but no luck...
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well here it is working!! And i just flashed the stock with odin it was working out of the box
[Galaxy S 5 Android Development (Snapdragon)] koko115:
This is work on bnl9 deodex lollipop ?
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
The method looks different. We will update it soon I guess. But I can confirm it works. I modded it successfully for lollipop