yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S 5] jimwick:
The directions in the OP cannot be more clear,

G900A

[*] Be on 5.0 then continue

[*] Download and install busybox from the playstore.

[*] Install download and install safestrap.

[*] Install recovery in safestrap.

[*] Download and install NCE Flasher (Thanks k-alz benwaffle and carl1961)

[*] Download this Flashable OC4 Kernel zip (this one is fixed to work)

[*] Load NCE Flasher and follow the instructions in the app which will flash the NCE Kernel for you and you'll be rebooted into SafeStrap

[*] Flash the ROM, zips, restore your backup.

[*] Remember to flash the OC4 Kernel back afterward or you'll be back into SS quick to do so.

[*] Reboot

................. if you have SS installed uninstall it totally from your phone and follow those directions again...........
[AT&T Samsung Galaxy S 5] AjvarXX:
OK, guys, I read each and every instruction on the internet about Sagfestrap but did not find what to do in my case scenario.

I do not remember if I installed Safestrap on NCE (sister's phone) but have a feeling I did and created a ROM slot. Her phone is on ND3 now (OTA update?) and there is no splashscreen on boot to enter recovery.

Is it possible that old Safestrap for NCE is invisible with ND3 Kernel?

If so... How can I know if there is a ROM slot created taking a memory space?

What should I do? Installing SS on ND3? Or reverting to NCE kernel, trying to boot into recovery, if nothing happens - back tar ND3 kernel with Odin?

Will ROM slot be erased if I ODIN 4 files 6.0.1? Because all I want is flashing Marshmallow but afraid that wasted space for ROM slot will be forever wasted.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Seriously, you're the best! This is AMAZING! :) Absolutely superb job, Wuby! :) :) :)
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
It WOOOORRRRRRKKKKSSSSSS! GENIUS!
[Galaxy S 5 Android Development (Snapdragon)] ragz:
Working here to, appreciate the zip, thanks. (NeatROM v2.3)

SM-G900W8 / 0x1
[Galaxy S 5 Android Development (Snapdragon)] DaOldMan:
Great guide [MENTION=5493353]Wuby986[/MENTION] ! I am sure many moders & users will benefit from your clean work ! What a nice and simple guide :). Private mode can have it's uses, finally !

With friendship,

Thomas
[Galaxy S 5 Android Development (Snapdragon)] BoBCatRoM:
thanks magician wuby, :good: it works perfectly :D
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
Samsung stock odex NG2 not work
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
You need to delete the odex file of the apk. The zip replaced the apk. But the odex is still there. Delete it and it should work.

Find PersonalPageService.apk. in /system/priv-app and see if you have PersonalPageService.odex. delete it.
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
long the file has been deleted) that I just did not do. still does not work
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Then I suggest opening the actual deodexed apk for ng2 base and modding it according to the guide. Maybe there are differences.
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
did not work.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
When you say it doesn't work, what do you mean? What happens when you start private mode?

Also, since this is a development thread, log cat is usually the best way for troubleshooting. Present your log cat or the output of your log cat error. Since "doesn't work" is really a wide range of issues.
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
here is what : Failed to enable private mode. Please try again
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Please provide a log cat of your error and/or your modified smali/apk.
[Galaxy S 5 Android Development (Snapdragon)] abym:
Thank's ....

Working perfectly ???[emoji6] [emoji106] [emoji106]

SM-G900F ___abym
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
log and modified apk
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Your error is the same as if the file hasn't been modified. I will have a look at the apk and let you know.

---------- Post added at 07:08 PM ---------- Previous post was at 06:51 PM ----------

I just pushed the app you uploaded into my device and it works immidiately. Even though yours is from ng2 and I am on ng9. So the problem is on your device with something else. from your log I can see some errors on secure storage disabled... could that be the problem?

Your smali is modified correctly, your apk works on my device flawlessly. So it's something in your settings that's blocking it. Maybe one of the build.prop configs? Sorry I can't help more at this point. I will have a deeper look into your log cat. Cheers!

Edit: make sure you don't have it installed in both /system/app and /system/priv-app.

Edit: noticed something else. If you wipe data to the apk after it was working, it never enables again. Maybe wiping all data will help. I will have to try it later. My guess is since you removed the apk and the odex file it wiped data for the app, since it was removed before pushing the new one. I hope wiping data to the device will solve this. Still have to try.

Edit: wiping all data fixed it again. No problem. All works.
[Galaxy S 5 Android Development (Snapdragon)] oluwaponmile:
Not that I have an S5 or using this MOD but I just want to thank [MENTION=4715535]wuby[/MENTION]986 and [MENTION=4714483]daxgirl[/MENTION] for their continuous support and contributions to XDA developers forum. You guys rocks:good:

I will probably try it on my Note 3 S5 port
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Thanks, mate! Nice to see you around! You're on Jamal's port I see from your posts there. Quite a nice rom I hear! I can't say if the note3 is capable of having personal page partition, but I would really like to know if it works! Drop a line if it does! ???
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Wow, im so excited when this guide release :good:. Is this method can be working (Flash the zip file) on Ported S5 ROM on Note 3? I was looking for this most everyday to fix it (Private Mode). But im too noob on this manner. Still learn some knowledge, my finger keep searching non stop :crying:
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Both only for kk , one is like stock, other has more improvements, like not require pin code for lockscreen to have it working.. All things included in lollipop release
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
Ok, so for KitKat the second full it's sterling good? Any advice or anything?

About the Lollipop release that you mention..where can I find it?? Can't individuate it..

Thanx!
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well for lollipop i didn't posted a compiled apk yet, and sorry for that..

You can try this one i am using on boc7 firmware

https://www.dropbox.com/s/xopfhq7eyhmjllw/personalpageservice.apk?dl=0
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
The file is this PersonalPageService.apk file?

How does it work? It's an app!

Have you ever tried on last Lollipop?

Tnx.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Yes it is an apk..

I believe it should be fine on last base (OD3 / OD7)..

You have to copy it to system/priv-app/PersonalPageService/ folder replacing the existing one and set permission to 644 as usual
[Galaxy S 5 Android Development (Snapdragon)] botski:
:(

i use this then some apps not working :( no notification bars etc.

i flashed it using stock recovery
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Wooooow stock recovery?!? Kinda impossible [emoji6]
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
Please..how have you done that??
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
It is not possible to flash anything via stock recovery, unless it has samsung original signature.. And this is not the case.. I don't work for samsung i don't have their key to sign the zips.. So for no reason he could ever flash my zip with stock recovery..
[Galaxy S 5 Android Development (Snapdragon)] botski:
yes i'm in stock recovery, maybe that's the reason i messed up. what you think?

---------- Post added at 03:05 AM ---------- Previous post was at 02:59 AM ----------

i will elaborate what step's i made.

1 download this:

Private_mode_enabler

2 copy in memory card

3. power off my device then i press power+home+volume UP then i've update using stock recovery.

FIRMWARE: UK BOD3 5.0

Kernel: Lord 2.1.79-boeffla-config-v2.

ROOTED.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
as i said above it is not possible to flash anything via stock recovery.. so no is not possible ..
[Galaxy S 5 Android Development (Snapdragon)] botski:
oh i see my friend... thank you! but if i have Custom recovery mode will work?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
It is useless unless you have a deodexed rom.. You only need to wipe data to have it working on stock rom
[Galaxy S 5 Android Development (Snapdragon)] botski:
If ever after i wipe it out then flash this mod?
[Galaxy S 5 Android Development (Snapdragon)] Er. Aditya:
does this work on lollipop mate ??
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Yes we have made it work on lollipop and even on s6. But I will leave the honor of showing it to Wuby ;) it's his baby ???

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] Er. Aditya:
you guys are an awesome team , you or wuby as always awesome work anna :)

i am gonna try that if it works :)
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
So the mentioned file here and the procedure explained here are obsolete??

Tnx.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
For lollipop you can find solution for s5 at post 141.. In the quote i edited the smali as per need
[Galaxy S 5 Android Development (Snapdragon)] Er. Aditya:
Il test this thanku so much wuby your a great dev :)
[Galaxy S 5 Android Development (Snapdragon)] botski:
hi guys, can't find the zip file.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
No zip file. This is a "how to" guide for devs.

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
[MENTION=5493353]Wuby986[/MENTION]

The only way is to make it my self? No way to have some already done file?

[MENTION=4714483]daxgirl[/MENTION]

About the how-to that you say...is it for editing the file as Wuby986 explained in Post 141??

Tnx.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Yep!

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
I have a ready one but it is possible is not working on any base.. And yeah it is intended for developer since only custom deodexed rom need this

https://www.dropbox.com/s/xopfhq7eyhmjllw/personalpageservice.apk?dl=0
[Galaxy S 5 Android Development (Snapdragon)] botski:
? too bad for me. I'm not devs.
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
An how to at which look at if I'd like to make it my own at my device?

Is the same old file you pointed at me a few days ago. I'm on Samsung S5 Prime G906K with BOE1 now, and your file it's wite old, isn't it?

Do you have also the not modded version of it so to compare it with my stock version?

Thanks.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Listen are you on stock rom? If so forget about this.. You really don't need it..

If you are not on stock rom and the dev of the rom you are using didn't added the fix yet he/she will find all info in this tread to implement it.. Same goes if you are planning to do your own rom.. I am not going to teach you how to decompile or recompile apps here.. There are already tons of guides on that.. This app is going to work same way on pretty much all device so you only need find that method mentioned and to overwrite the value from invoke-static of secureProperties with 0 (which means adding const/4 v0, 0x0 in next line to invoke as showed in OP)
[Galaxy S 5 Android Development (Snapdragon)] botski:
Hoping for zip file. ?
[Galaxy S 5 Android Development (Snapdragon)] botski:
@Wuby986

thank you so much for helping me! :)
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
Hoy, don't get angry with me :)

I'm already on looking on making the mod by my self as I'm on deodexed stock.

Tnx for now.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Okk so follow the instruction i gave you in last post, if you still are not able to post the method and we'll try to help you
[Galaxy S 5 Android Development (Snapdragon)] Geris:
I have failed to activate private mode after opening Link2SD, solution?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
If you are sure that that is the reason maybe it is because it works like foldermount which replaces the sdcard binary, so you maybe need to get one stock bynary pulled from a rom's zip and replace your current in /system/bin folder and give proper permission 0755 (aka rwxr-xr-x) using a root browser
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
I've decompiled and recompiled the file with this thing I found:

http://xdaforums.com/showthread.php?p=61135749

Everything went well, but haven't tried the file yet as I've not activated Private Mode yet on my brand new device.

Still too knew to the S5 family...need more practice.
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
I've recompiled my file but it went from 246Kb to 172Kb....is it normal??

Haven't tried it yet...dunno what to think about this difference.

My rom is arter97's artware Project rom: http://www.arter97.com/artware.htm

I've used Batch ApkTool for decompile/recompile: http://bursoft-portable.blogspot.it/p/blog-page_23.html (might need to translate)

Tnx.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
You need to use apktool rc4 or newer.. Or any program based on that.. Then.. Try it... I think it's the only way to test it..
[Galaxy S 5 Android Development (Snapdragon)] PIRATA!:
Oh...i see that I have rc2...but there's also apktool_2.0.0_a19.jar and apktool_2.0.0.jar

Still go for rc4?

Tnx.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
is is not the tread where to learn how to decompile and recompile.. anyway.. first of all ... TEST IT!!!!!! if it works you keep redoing it.. kinda time wasting, don't you think???!

then you can do some attempts, instead of asking, use only one apktool binary, and use a program from xda, maybe the plain apktool binary.

make sure your result app has inside the original (meaning from original apk) meta-inf folder and androidmanifest.xml
[Galaxy S 5 Android Development (Snapdragon)] Craigh83:
Then why does it say in the op that there is one?

---------- Post added at 12:10 AM ---------- Previous post was at 12:10 AM ----------

A zip file that is
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Because i provided a kk one back then.. Then i edited the OP and forgot to remove that part..

Why you need a zip file?
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
Jeez Wuby....why on earth are you not providing zips for every device and fw available? Thoughtless I tell ya! [emoji14]
[Galaxy S 5 Android Development (Snapdragon)] Craigh83:
It would be a more convenient way for me to implement the fix as I am not currently familiar with the process of decompiling and editing apps. I can learn easy enough, just saw a bunch of posts about flashing the zip and it working. Didn't know that was kk only.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Yeah i know it's easier.. But i was wondering.. You need the fix because you are using a custom (deodexed) rom which doesn't have the fix yet? If you are on stock there are only 2 possibility: wipe data or only if you have installed folder mount or similar app you need to replace the sdcard binary ( rougly meaning flash the stock again via odin)
[Galaxy S 5 Android Development (Snapdragon)] Craigh83:
Yeah I'm on XtreStoLite 2.2 and have flashed the private mode option from the aroma installer addons but I get the usual try again later error when I try to enable it.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
So given that no one is experiencing that problem using that rom, you should start searching you user apps for the problem.. Reflash the rom.. And ask for support in rom tread.. It is not related to this
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Yeah!!!! I say he needs to be punished!!! Wuby, timeout! [emoji14]

Btw, congrats on your new s6 toy!!! (To Goldie) ;)

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] Craigh83:
Sorry guys, I thought this was a thread about a fix to enable private mode on deodexed roms and since I am on a deodexed ROM with non working private mode and want to try this fix I figured this would be the appropriate place to ask
[Galaxy S 5 Android Development (Snapdragon)] botski:
I don't know what's the main problem. I'm using custom rom now. I tried to replace. But still failed to enable.
[Galaxy S 5 Android Development (Snapdragon)] botski:
Maybe that's why it's failed to enable because i don't have a knox apps in my system app or private app. What do you think guys?
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
That shouldn't be it. If the rom you're using claims they have it fixed, and you can't enable it, then the problem is most likely because you didn't wipe data.

Private mode works no problem on stock, rooted stock, regardless of knox apps. What breaks it mostly is deodexed framework. If you applied the fix and it doesn't work, your only choice is to try and wipe data. And any case your private mode will never work until you do. Even if you flash stoke. And any information you have there is lost. You will never recover it again. Once rye private mode refuses to be enabled once, your info is locked. No matter what fux you apply, unless you wipe data it will not work. And once you wipe data, all your old private mode content is gone. So either way, it's lost.

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] botski:
Your suggestion is to wipe the data first then procees to copy the apk mate?
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
My suggestion is either 2 choices:

1. Flash one of the roms where the developer applied the fix (wipe data when you flash). If you have a problem after that, please address the role developer/s with your issue.

2. Use stock. Private mode will work. Even if it's rooted.

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] botski:
as of now... i'm using this rom.

http://xdaforums.com/galaxy-s5/development/rom-t3078179

yes it's working in stock rom. i've tried that before i switch to custom rom.
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Then you should address the issue on the rom thread. If the rom developer says he has the private mode issue fixed, you should raise your problem there, including log cats and specifics. Only your rom dev knows what they did to fix it. If the private mode doesn't work for you but works for other users, the problem is with your config. This is not the place to solve it.

Sent from my awesome g920f powered by 6thGear
[Galaxy S 5 Android Development (Snapdragon)] botski:
Alright mate. Thanks for the heads up. ?
[Galaxy S 5 Android Development (Snapdragon)] benis4:
Hi

Can i use this on 9500(s4) lollipop stock rom?

If i can,please help me
[Galaxy S 5 Android Development (Snapdragon)] Er. Aditya:
No you need a deodexed rom
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Does it have private mode???

And even if it does (which I doubt), on stock private mode always work. Even when it's rooted.

---------- Post added at 05:42 PM ---------- Previous post was at 05:40 PM ----------

That's not the point. The app that needs editing is always deodexed. On odexed roms you never have the problem with private mode. The problem is only on deodexed.
[Galaxy S 5 Android Development (Snapdragon)] Er. Aditya:
yes maam, understood :D

thanks anna :)
[Galaxy S 5 Android Development (Snapdragon)] fefuzzo:
does it's possible to activate private mode on note 3 deodexed rom??
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Sorry i missed the post, anyway no is not possible
[Galaxy S 5 Android Development (Snapdragon)] Rajada:
hello

I have a similar problem with private mode.

I have a note 4, sm-910F with stock rom odexed lollipop boc5.

As expected, private mode works well with stock kernel. However, I need to use a kernel with selinux permissive, to use viper_android_fx. The kernel that I use, only has this change.

With this custom kernel, I lose the private mode.

below, i leave a log, where we can see the following error

07-03 16:43:44.956: E/PPS_PersonalPageStorageManager(17948): getPrivateFsKey: Failed to get key value from SecureProperties

I leave also, my SecureProperties.smali and PersonalPageStorageManager.smali, where there are references to fsprivatekey.

I need some help to modify, my smali code, to be able to have private mode with my SELinux kernel permissive

thanks in advance for any help
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
You can do as stated in OP, that should be enough for you to have it working, of course you will need to apply to a deodexed app, and remeber to delete the .odex related file
[Galaxy S 5 Android Development (Snapdragon)] Rajada:
thanks for your help.

I had already experienced the proposal in OP.

I went back to clear the cache and dalvik-cache. Same result. it failure

This time I tested the modified application, with the stock kernel and also failure.

In lollipop, although the framework is odexed, some applications are deodexed in stock firmware, is the case of PersonalPageService.apk

below is my original application and the modified, if someone can take a look
[Galaxy S 5 Android Development (Snapdragon)] Rajada:
I think the value v0 I'm changing to 0 (zero), according the op, perhaps is wrong, and maybe it's the other, the expected value.

My question is , which statement I can use in the original apk, where the private mode works well, instead of

const / 4 v0, 0x0

to know the result that is returned when the private mode is activated.

is there any statement, that returns the correct value, and I can view it, in the log or in some other way?

something like: print v0, to anywhere?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
i need framework-res.apk to decompile the apps... can you upload it?
[Galaxy S 5 Android Development (Snapdragon)] Rajada:
Thanks for your help:

My framework files are below:
[Galaxy S 5 Android Development (Snapdragon)] fefuzzo:
another question: if I go to insert "activity" with nova launcher, and i search into "settings" app, i found "personale this:

Settings$PersonalPageSettingsActivity

and

personalepage.PersonalPageSettings

why?? if i try to open, i go to private mode configuration but i can't activate it....is possible to port only the apk for note 3 to have this great features???
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Sorry i forgot about this.. I'll be back soon hopefully!!!

There is the intent to the app but it won't work the app itself
[Galaxy S 5 Android Development (Snapdragon)] fefuzzo:
ok thanks...can you have the personalpage.apk from s5/note4??? so i try to edit ;)
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
You don't believe me uh? I tell you there are tons of devs that tried this and no one managed..

Free to try anyway, it is always an experience ;)
[Galaxy S 5 Android Development (Snapdragon)] fefuzzo:
yes, i believe you! 100%! ;)
[Galaxy S 5 Android Development (Snapdragon)] Rajada:
don't worry.

it's solved!
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
good.. sorry forgot again..
[Galaxy S 5 Android Development (Snapdragon)] montafede:
Where is the file zip pls can u put link? FOR S6EDGE
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
i have removed the zip because they were for old s5 fw.. so no chances you could use it with s6 or not even with new s5 fw.. as stated in op this is an how to for devs that are able to compile and decompile apps to modify, if you are unable pick a custom rom that already uses it