yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Android Development (Snapdragon)] montafede:
i need because i root my s6 5.1.1 ( http://xdaforums.com/galaxy-s6-edge/help/qa-twrp-recovery-2-8-7-1-root-g925f-t3145776/page8)

adn personal page ( private mode) no work i delete file odex and rebot but no work can u help me to resolve this iussue pls bro
[Galaxy S 5 Android Development (Snapdragon)] tellez 888:
How can I do this
[Galaxy S 5 Android Development (Snapdragon)] tellez 888:
How can I see the code in my note?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
you need to learn how to deodex, decompile and edit applications for this guide, you can study treads for this purpose
[Galaxy S 5 Android Development (Snapdragon)] wish2:
is there any way to run private mode in odexed stock rooted rom ??
[Galaxy S 5 Android Development (Snapdragon)] » Arrow «:
On Lollipop 5.1.1 (Galaxy S6) is here:

.line 74

Send me deodex apk from Note 5 and i make the mod for you.

regards
[Galaxy S 5 Android Development (Snapdragon)] :
My dear dev , in stock kernel the private mode is working

but when i change to the suemax kernel it failed

I try to mod the file from your guide it didn't work

and if i back to the stock kernel i work again

any way to get this work with custom kernel like suemax kernel
[Galaxy S 5 Android Development (Snapdragon)] ROBERT CM:
Great work..!!

You are Awesome.. ;) :)

Testing..!!!
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
it is due to the selinux permissive state that the custom kernel has. you only have the option to have permissive kernel in order to keep your root if you have 5.1.1 if not you can use stock or set your kernel to be selinux enforcing.. ask to kernel dev if he/she left the option to do such a change to selinux policy and if so what's the best way to change it, since every kernel could have a different way of setting it.. most probably you cannot change it.. but who knows..
[Galaxy S 5 Android Development (Snapdragon)] :
Get it,thank you so much for your reply and useful help advice
[Galaxy S 5 Android Development (Snapdragon)] Spike97:
Can somebody provide me a modified apk of private mode for kitkat 4.4.4? I.m not a developer :)
[Galaxy S 5 Android Development (Snapdragon)] mcdachpappe:
im on G900FXXU1BOI3_Deodexed (S5) and your guide worked for me perfectly. thank you very much - private mode is working without any issues :)

[MENTION=6168609]Spike97[/MENTION]

upload me your framework-res.apk and your PersonalPageService.apk and ill try my best. but only if you are on a deodexed rom
[Galaxy S 5 Android Development (Snapdragon)] cerberus0f:
HI Guys, I really need your help.

I am on a Note 5 (SM-N920C) I am rooted using the Arter97 kernel and using the stock ROM (5.1.1)

I have the Philz recovery as well.

When Entering recovery mode I get the message "Recovery is not SEANDROID enforcing"

I just wiped data partition from Philz recovery mode and I am still getting same error "Failed to enable Private Mode" should i have wiped the Data and Data/media as well ?

Can one of the devs edit the apk for me.

UPDATE --

I tried de-compiling the PersonalPageService apk using APK Studio. It appeared to complete without any errors however there was no smali folder in the Project window.

Would appreciate any help I can get

Cheers
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
this is not an how to decompile tread.. you didn't deodexed the system before decompiling.. java classes are still not in the apk, that's why..

just install a custom rom and you'll be fine
[Galaxy S 5 Android Development (Snapdragon)] aboutaha:
where the route on note 5
[Galaxy S 5 Android Development (Snapdragon)] voden07:
i also have a note 5 that im ready to root, but private mode is very important to me, tell me whats needed to make it retain private mode while still rooted,
[Galaxy S 5 Android Development (Snapdragon)] aboutaha:
vercion root

Enviado desde mi SM-N920C mediante Tapatalk

---------- Post added at 06:06 AM ---------- Previous post was at 06:06 AM ----------

Enviado desde mi SM-N920C mediante Tapatalk

---------- Post added at 06:08 AM ---------- Previous post was at 06:06 AM ----------

Enviado desde mi SM-N920C mediante Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
listen i don't understand and pictures are not visible.. you'd better use a custom rom
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Sorry.... meaning?

If private made is important to you and you don't know how to mod the apps, better not root. Note 5 really doesn't need root...

Really don't understand the question. ...
[Galaxy S 5 Android Development (Snapdragon)] voden07:
sorry for this noob question, but if you could give me a tep by step guide im sure i can handle it,

the app in question, is it the private mode apk? any help would be appreciated,

Thanks
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
the step by step is written in first page.. but if you din't understand it then is better if you leave it and as suggested use a custom rom which is already fully working
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
[MENTION=5493353]Wuby986[/MENTION] I still am not able to get this to work. I remember I sent you my coding and I everything was right. But still no private mode. Goes through the setup and as soon as you type the pin in that you saved for it . It never logs in just goes back to the pin agan. Trying to find a way around it. Thanks for your help.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
if i remember correctly the code is fine.. but i also asked you for the log because i have no idea on what is going on otherwise. also send me over your PrivateMode app and the framework-res.apk
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
That's right sorry for my jard. Memory. I'll get those too you today. Sorry about that. Dam crs. Lol[emoji106]
[Galaxy S 5 Android Development (Snapdragon)] Petreion:
Private mode not work "Failed to enable Private Mode" Help [MENTION=5493353]Wuby986[/MENTION] do you have any ideea where i must work to enable it????
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
actually no.. i will spend some time on it asap.. log will hopefully help
[Galaxy S 5 Android Development (Snapdragon)] Petreion:
I will look again but i don't think I forgot something or maybe i have some mod cause problems to private mode

Thanks :)
[Galaxy S 5 Android Development (Snapdragon)] Anubhav001:
Can you please tell me the steps clearly for me as in my rom, private mode is there but each time I try to turn it on it says "failed to enable private mode, try again". Must reply.

Thanks in advance.

My Device: Galaxy Grand 2 SM-G7102

My Rom: Note 4 Alpha S6 Revolution

My Baseband: NK1

My Kernel: Turbo by aapav
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
you cannot on grand 2.. it doesn't have it native.. it's a port
[Galaxy S 5 Android Development (Snapdragon)] Anubhav001:
But there is another rom (S6 Styled S5 Port Rom) for grand 2 which offers private mode working perfectly without any issues and it is almost same as my current rom but I don't use it as it was not upto the mark that's why I can't switch back to it.

So can you tell what's the difference and is there any way I can port that feature from that rom to mine?

Thanks for replying.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
are you a dev? if so i can try to help you out when i 'll have the time .. if not i'm not going to teach you from zero till you're able to..
[Galaxy S 5 Android Development (Snapdragon)] Anubhav001:
No I'm not at all a dev, just a noob.

So according to you, I can't even use your thread's stated method? I really am curious for having private mode feature.

Thanks for responding.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
you can!! but i am not going to teach you how to decompile and recompile, solve non working over your bootloader ( because frankly i don't even know how they did) and so on..

i will provide the new method for those that are having issue in make it work on newest version.. dunno when.. but i will
[Galaxy S 5 Android Development (Snapdragon)] Anubhav001:
okk thanks, do you know anyone else who can help?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
just use the other rom..
[Galaxy S 5 Android Development (Snapdragon)] lucky_sidhu:
Its not working for me. I always get "Failed to enable Private Mode"

What I have already done.

1. Changing to stock kernel

2. Done all mods as mentioned in OP

3. build prop settings for ro.securestorage etc

Logcat attached
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
yeah now i know that there is a new method of writing the key. as said i will work on it asap.. by now i don't have so much spare time
[Galaxy S 5 Android Development (Snapdragon)] Umair Ahmad:
[MENTION=5493353]Wuby986[/MENTION] mate just looked your private mod enable post/guide... will just want to know will this work on stock rooted odex firmware? and do i have to do something with .odex file??? thanks....

[MENTION=1042140]tdunham[/MENTION] [MENTION=4714483]daxgirl[/MENTION] or anyother can you tell me how to mod stock rooted firmware??? mean i want to mod or theme any apk that is from stock rooted odex firmware... thanks
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
i think you clearly miss a LOT of background on this..

and about to mod or theme any app of the stock fw you'd better read and learn instead of asking for a tutor
[Galaxy S 5 Android Development (Snapdragon)] voden07:
hey there Wuby, any luck on the new method to enable private mode after root? Thanks
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
nothing safe for now.. but using an enforcing kernel might be a trick for now
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
[MENTION=5493353]Wuby986[/MENTION] log and apks sent. Please let me know if you need anything else from me to help get this figured out. Thanks so much for your time and help. It's greatly appreciated
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
[MENTION=5493353]Wuby986[/MENTION] did you get all my apks and log?
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
yes got all thanks.. i will check asap
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
Thanks [emoji2] . My Internet was wonkey so wanted to male sure lol
[Galaxy S 5 Android Development (Snapdragon)] ajkdaboxer:
hey im using alliance rom 5.0 L and the developer says that private rom isnt working due to the rom being deoxed. i used your method on post 141 but when i go in my private mode app it asks me for the security lock but then says fail . when i switch it on it goes back off

need some help much appreciate
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
I have the same issue. Your gonna have to send a log and your private mode app plus framework-res. He's looking into mine when he gets a chance but it's not the deodex that is the problem. This requires knox, which is removed from the rom your on.
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
you want it ready you should use the stock kernel.. no issues with enforcing kernel.. plus new su beta doesn't require anymore the full permissive custom kernel to run.. so this is the fix for now
[Galaxy S 5 Android Development (Snapdragon)] stang5litre:
Is this for mine as well? Didn't know if you had a chance yet to look at everything. I have a couple kernels I built so it would be easy to test.

Thanks for any help [MENTION=5493353]Wuby986[/MENTION]. A lot of applications need permissive kernel.

Let me know and I can test it for you with mine. Take about 30 mins or less. Stupid optimizing apps lol.

Thanks again

Edit: Working on at&t with Hulk Kernel and its not enforcing but only at&t. Something is missing not sure what though
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
i think some kernel dev added the support for it.. but i still not dig in deep.. sorry but is not best period by now
[Galaxy S 5 Android Development (Snapdragon)] xXCgruntXx:
will it work on the vrtoxin rom its android m.......
[Galaxy S 5 Android Development (Snapdragon)] asc1977:
please any help

i tried fixing private mode on marshmallow. i didnt get it to work

here what i tried:

please hrlp anyone
[Galaxy S 5 Android Development (Snapdragon)] asc1977:
[MENTION=599722]niaboc79[/MENTION] could you help please

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] niaboc79:
Some more changes may be needed on MM . Try to read full thread to find answers. Not easy to find a solution as I don't own the device.

Envoyé de mon D6503 en utilisant Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] bluflight:
Good work my friend [MENTION=5493353]Wuby986[/MENTION], thanks to share it ;) work like a charme on my S6 MM firmware :good:
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
great!! and your custom kernel too i guess [emoji2] [emoji106][emoji106][emoji106]
[Galaxy S 5 Android Development (Snapdragon)] bluflight:
Yep :D kernel in enforcing mode, your mod, all work ok :cool:
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
what have you tried so far? post 141 should give the correct answer
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Are you refering to actual line?

I see you added after the move.. should be before so when it moves the value it will move the value we want
[Galaxy S 5 Android Development (Snapdragon)] ambasadii:
[MENTION=5493353]Wuby986[/MENTION]

Did someone report to you that private mode on newest s6 edge+ stock kernel after modification still not working?

I try all but without succes.

Meaby bulid.prop is related?

ro.securestorage.knox=false
ro.securestorage.support=false

but with s6 flat with the same stuff didn't get any problems with private mode.

Edit:

I forgot to mention that after flash custom kernel private mode is working...
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well this has happend before in history aparently randomly on some device and fw as you can read back on tread. And all as well was solved by using custom kernels. I believe also on custom kernel there was some edit to the ramdisk because some didn't worked anyway.. i never digged it mainly because i never had the issue on any of my devices.
[Galaxy S 5 Android Development (Snapdragon)] kashyap3010:
Private mode data

Hey expert,

I hav a s5 rooted on marshmallow with tripped knox on stock rom my private mode data is present in system but private mode says failed to enable i tried deleting private mode 1000 edk den private mode starts working but my data is seen as encrypted in private mode which cannot be opend by any apps

I just want my data back i can do anything and everything for the data i dont mind paying u too plss help me out
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well unfortunately i think you now cannot.. it is encrypted with a key that is now changed on your phone.. so i think its a no go no matter what you try specially from phone
[Galaxy S 5 Android Development (Snapdragon)] AlexOnay:
[MENTION=3065070]Goldie[/MENTION], [MENTION=5493353]Wuby986[/MENTION], [MENTION=4714483]daxgirl[/MENTION], first of all greetings and Happy New Year. I have a Samsung Galaxy S4 Tmobile variant M919. With Stock Roms Private mode is not officially suported on this device, but with custom roms it works. I have two ROMS that have Private mode ported and working, both of them are TW ports from S6 and S7, Lollipop 5.0.2. I'm writing because I have a problem and need some help. One of those roms is Thor S7 v1.5 (TW S6 Lollipop 5.0.2 ported rom) which have support for Private mode and works fine on my device. The problem is that it comes with Aurora Kernel, which is not compatible with my device, it works, but camera and wi-fi have issues (which is why I have to flash Imperium Kernel, that works great with that rom and my device). On the ROM with Aurora Kernel, Private mode works fine on my device, but when I flash Imperium Kernel, Private mode stops working. On the other hand, I have another ROM, which is also a TW Lollipop 5.0.2 S6 port that brings Imperium Kernel and Private Mode working fine, so, Imperium Kernel works fine with Private Mode. My question is, how can I make Private Mode to work on Thor ROM after flashing Imperium Kernel.

Any help and/or ideas are welcome. Thank you vey much in advance.
[Galaxy S 5 Android Development (Snapdragon)] doulc:
my device has secure folder but strangely it don't have Personalpage

Can someone with working personalpage MM upload their apk? I want to flash to my rom to see if setting will change

Mine apparently need to setup knox to get securefolder etc

Btw, Op can you check decompiled knox application, that will be faster

I really wonder which jar or apk is providing result for knox counter.

If we can find that jar/apk we can straight override it
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
it's not one apk for all.. you need model and sw version, but if is not in system i doubt it works from another model

Inviato dal mio SM-G930F utilizzando Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] koko115:
Hi. Where i find full guide for port private mode to galaxy s8, like implemented in renovate rom ?

For now i add Privatemode from galaxy s7 from framework.jar classes3....../privatemode to classes3 galaxy s8, now private mode works, but dont work move to private option.

Where i find guide for this ? In renovate rom this option works great. But dev [MENTION=3699616]mwilky[/MENTION] dont tell me how do it.
[Galaxy S 5 Android Development (Snapdragon)] abdelrahmannagi:
[MENTION=5493353]Wuby986[/MENTION]

thanks for this great guide .

may you more explain

for those not able to enable the private mode with stock rom it is more likely due to wipe not done, or foldermount or any other app that replaces the sdcard binary

I want to make private mode work on my stock rooted rom s5 mm > help me please
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
you should have no problem if you wiped data..

Inviato dal mio SM-G930F utilizzando Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] abdelrahmannagi:
Yes I wiped data and it worked .but when I flash custom kernel it give :failed"
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
that's different.. you should ask the kernel dev if there's a way but i am not sure it's possible or you need to mod it yourself

Inviato dal mio SM-G930F utilizzando Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] Snwn:
Can I enable private mode in samsung galaxy note 8 with this guide? Since, it is running nougat 7.1.1
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well you can try and let us know.. I dunno if the ported firmware can manage it, but you can try.. Worse then not working it can't be :D
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
updated zip in OP to auto delete the odex file for odexed roms..

enjoy :)
[Galaxy S 5 Android Development (Snapdragon)] CStoikov:
Why can not I download the ZIP file?!? It says that either moved or deleted ...
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
I just updated it... maybe server still need to update.. try in a few minutes
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Tried already, bad news. Still get error "Failed to enable Private Mode" :crying: I'm not sure what file is missing that related to Private Mode system to make it working :crying::crying: Maybe [MENTION=5444625]fahadali2315[/MENTION] can help or try to figure out on this? Since i am using his awesome ROM :good:
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
I do believe you' re on deodexed rom, so the problem is not the odex file.. we'll soon take a look at it i guess
[Galaxy S 5 Android Development (Snapdragon)] CStoikov:
Yes, I was able to download, just flashed and it works perfectly. Thanks, man !!!
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Yup mate, absolutely deodexed rom :o. Thank you for your efforts :good: :good:
[Galaxy S 5 Android Development (Snapdragon)] daxgirl:
Fahadali's rom is a port to note3. We don't know if note 3 supports personal page partition... :)
[Galaxy S 5 Android Development (Snapdragon)] koben147:
That's what I was thinking too :) hhhmmm... :rolleyes: :crying:
[Galaxy S 5 Android Development (Snapdragon)] fahadali2315:
It doesn't as much as i know but i am a noob so :P can't be sure.
[Galaxy S 5 Android Development (Snapdragon)] ManDone.vRs:
also private mode with know 0x1 can work 100% with XSecureStorage in Xposed ! :good:
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Ohhh nice!! I didn't know that!!
[Galaxy S 5 Android Development (Snapdragon)] ManDone.vRs:
yes , is developed by wanam , but this is for ´´noob´´ people , for me is easy your way to solve private mode with knox 0x1 , glad to read your post !
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
Maybe his rom sets securestorage to false in build.prop. I believe without additional changes to issupported that would also stop it working
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well yes!! I just didn' t thought about it.. and i am currently on securestorage "true".. thanks for the hint :)
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
I just forced it true in SecureStorage.smali....

.method public static isSupported()Z

.locals 1

.prologue

.line 2060

const/4 v0, 0x1

return v0

.end method
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Many many thanks..!! as soon as i get home i will fix it
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
Also....in this method in PersonalPageService.smali...

.method private declared-synchronized handlePrivateModeOn()V

Change here to enable private mode use on non secure lockscreens whilst still needing pin/pass/print to unlcok private....

new-instance v0, Lcom/android/internal/widget/LockPatternUtils;

iget-object v1, p0, Lcom/samsung/android/personalpage/service/PersonalPageService;->mContext:Landroid/content/Context;

invoke-direct {v0, v1}, Lcom/android/internal/widget/LockPatternUtils;->(Landroid/content/Context;)V

invoke-virtual {v0}, Lcom/android/internal/widget/LockPatternUtils;->isSecure()Z

move-result v1

###here###

const/4 v1, 0x1

###end###

if-nez v1, :cond_0
[Galaxy S 5 Android Development (Snapdragon)] Goldie:
And in PersonalPageNotiManager in this method....

.method private static secretModeSetNotification(Landroid/app/NotificationManager;IIIIII)V

...change the method to just return-void to stop the damn annoying notification...
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Well.. Onestly this last one i think could be usefull, but i will add to the guide if someone wants to add it.. Thanks again for your help!!

Highly appeciated :)
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Thanks you sir for the hint. Had tried last night in build.prop set securestorage to =true, still can't get it work. I am wondering, what is actually related to "Private Mode" and is there any special partition required to make it function? So sorry, newbie asking :o
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
I think your chance is wipe data.. i tried as well enabling it to false on the fly (without wiping data) and it is still working... just a wild guess actually by now, but i think you have enabled it in the past and now you need to wipe data to have it working again.. but i repete is only a wild guess
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
I did wipe data but not work private mode.. stock odex NG2
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
Data for app or whole data partition?
[Galaxy S 5 Android Development (Snapdragon)] koben147:
Yeah... i'll try it, but later. Right now struggle with my exam :crying: will update the result soon. :o
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
in case it is still not working can you please post a log ? i will look at it tonight if i can
[Galaxy S 5 Android Development (Snapdragon)] Tamerlan2009:
recovery- full wipe data and cache
[Galaxy S 5 Android Development (Snapdragon)] Wuby986:
ok.. iwill go deeper into when iget out from work...