[Android General] zain.ahmad:
Private Mode for S8 and Note 8

Disclaimer: This guide only works on Android 7.0 and 7.1.1 no oreo right now!!

I am just writing Guide it is not my guide just writing it as it is always good to share mods

i am making a seperate guide for both phones as it is different on S8 and Note 8

Note 8:

1. Decompile framework-res.apk file and in res/values/bools.xml file add this line

<bool name="support_private_mode">true</bool>

save file recompile file done with framework-res file

2. Decompile framework.jar file here we will be adding private mode folder from S7 attached in this post

after decompiling copy private mode folder to Smali-classes3/com/samsung/android/privatemode

replace files if ask and recompile and we are done with framework.jar file

3. Decompile SecSettings2.apk so that it will show private mode in settings app

after decompiling go to this smali

smali/com/samsung/android/settings/ockscreen/LockScreenMenuSettings.smali

and look for

iget-object v15, v0, Lcom/samsung/android/settings/lockscreen/LockscreenMenuSettings;->mPrivateMode:Landroid/preference/PreferenceScreen;

and delete

invoke-virtual {v13, v15}, Landroid/preference/PreferenceCategory;->removePreference(Landroid/preference/Preference;)Z

done recompile SecSettings2.apk file

Note: 3rd part is a bit tricky if you follow properly it should work out

4. copy Private mode app to priv-app and copy files to etc fix permissions and in recovery wipe cache and dalvik cache and you will find private mode in settings apps under locksceen and security...

For S8:

1. Decompile framework-res.apk file and in res/values/bools.xml file add this line

<bool name="support_private_mode">true</bool>

save file recompile file done with framework-res file

2. Decompile framework.jar file here we will be adding private mode folder from S7 attached in this post

after decompiling copy private mode folder to Smali-classes3/com/samsung/android/privatemode

replace files if ask and recompile and we are done with framework.jar file

3. Decompile SecSettings2.apk so that it will show private mode in settings app

after decompiling go to this smali

smali/com/samsung/android/settings/ockscreen/LockScreenMenuSettings.smali

and look for

iget-object v0, v0, Lcom/samsung/android/settings/lockscreen/LockscreenMenuSettings;->mPrivateMode:Landroid/preference/PreferenceScreen;

and delete this

invoke-virtual {v0, v1}, Landroid/preference/PreferenceCategory;->removePreference(Landroid/preference/Preference;)Z

recompile SecSettings2.apk file and we are done

Note: This part is tricky dont mix with Note 8 files

4. copy Private mode app to priv-app and copy files to etc fix permissions and in recovery wipe cache and dalvik cache and you will find private mode in settings apps under locksceen and security.....

Thats it we are done if you do it properly you will have private mode on your S8/Note 8

Enjoy

Hit thanks if it works for you and always thanks to original Makers of this mod

Thanks to

[MENTION=6377149]yash92duster[/MENTION] for helping me always

[MENTION=5405448]thereassaad[/MENTION]

[MENTION=5829833]a.raul[/MENTION]

[MENTION=5493353]Wuby986[/MENTION]

[MENTION=4715235]koko115[/MENTION]

Enjoy!!!!!​