yashsingh1/xdaforums huggingface dataset:
[Android General] ricci206:
Fix Secure folder in A 12:​

decompile services.jar

services\smali_classes2\com\android\server\knox\dar\DarManagerService.smali

search this method:

.method public isDeviceRootKeyInstalled()Z

replace with this:

.method public isDeviceRootKeyInstalled()Z

.registers 2

const/4 v0, 0x1

return v0

.end method

search this method:

.method public isKnoxKeyInstallable()Z

replace with this:

.method public isKnoxKeyInstallable()Z

.registers 2

const/4 v0, 0x1

return v0

.end method

recompile and enjoy
[Android General] marquelito:
Thank you so much! It worked 👊
[Android General] Subodh.993435:
Thanks for sharing
[Android General] ShaDisNX255:
If anyone has a working version for Android 12 that would love to share :)

Everything about this guide in particular seems to still be the same except for the very last part, where there doesn't seem to be an "and-int" after

iget v5, v5, Landroid/content/pm/ApplicationInfo;->flags:I

I tried with just the first edit to "and-int" and it didn't work unfortunately.

Spoiler content hidden.
[Android General] marquelito:
By any chance do you know how to patch services.jar to mock location? The method i have is for android 10 and doesnt work anymore, 1 of the smalis dont exist anymore.

Thank you in advance
[Android General] ricci206:
no, sorry, but I'm looking for a guide to immersive mode for A12
[Android General] ricci206:
Fix Private share and secure wifi in A 12:​

decompile samsungkeystoreutils.jar

search smali\com\samsung\android\security\keystore\AttestParameterSpec.smali

replace this method .method public isVerifiableIntegrity()Z with:

.method public isVerifiableIntegrity()Z

.registers 2

const/4 v0, 0x1

return v0

.end method

recompile and enjoy....
[Android General] ricci206:
Screen shot app secure A12​

Decompile services.jar

services\smali_classes3\com\android\server\wm

in WindowState.smali

search method:

.method isSecureLocked()Z

Replace with:

.method isSecureLocked()Z

.registers 2

const/4 v0, 0x0

return v0

.end method

recompile and enjoy
[Android General] ricci206:
Adaptive brightness boost A12​

services\smali\com\android\server\display\AutomaticBrightnessController.smali

search:

iput v6, v0, Lcom/android/server/display/AutomaticBrightnessController;->mCurrentLightSensorRate:I

.line 405

const-wide/16 v6, 0x3e8 >>>>replace with 0x0

iput-wide v6, v0, Lcom/android/server/display/AutomaticBrightnessController;->mBrighteningLightDebounceConfig:J

.line 406

const-wide/16 v6, 0x7d0 >>>>replace with 0x0

iput-wide v6, v0, Lcom/android/server/display/AutomaticBrightnessController;->mDarkeningLightDebounceConfig:J

---------------------------

and:

.method private prepareBrightnessAdjustmentSample()V

and the end of method:

const-wide/16 v2, 0x2710 >>>>replace with 0x0

recompile and enjoy
[Android General] ricci206:
Editable Button Grid A12​

SystemUI.apk

search:

smali_classes2/com/android/systemui/util/SettingsHelper.smali

.method public isQSButtonGridPopupEnabled()Z

at the end of method:

goto :goto_0

:cond_0

const/4 v0, 0x0 ## Replace with 0x1

:goto_0

return v0

.end method
[Android General] ricci206:
Quick reply on secure lockscreen A12​

systemUI.apk

smali2/com/android/systemUI/statusbar

- Open NotificationLockscreenUserManagerImpl.smali

- Replace setLockScreenAllowRemoteInput method with this:

.method private setLockscreenAllowRemoteInput(Z)V

.locals 1

const/4 v0, 0x1

iput-boolean v0, p0, Lcom/android/systemui/statusbar/NotificationLockscreenUserManagerImpl;->mAllowLockscreenRemoteInput:Z

return-void

.end method

- Done
[Android General] ricci206:
Enable 360° screen rotation A12​

services.jar

smali_classes3\com\android\server\wm\DisplayRotation.smali

search FW_ALLOW_ALL_ROTATION

Add ###

sget-boolean v11, Lcom/samsung/android/rune/CoreRune;->FW_ALLOW_ALL_ROTATION:Z

const/4 v11, 0x1 #### add this

if-eqz v11, :cond_171

-----------------

SystemUI.apk

smali_classes2\com\android\systemui\util\DeviceState.smali

search:

.method public static shouldEnableKeyguardScreenRotation(Landroid/content/Context;)Z

add:

.method public static shouldEnableKeyguardScreenRotation(Landroid/content/Context;)Z

.locals 4

const/4 v0, 0x1 ### add this

return v0 ### add this
[Android General] ricci206:
Status Official A12​

Secsettings.apk

SecSettings\smali_classes2\com\samsung\android\settings\deviceinfo\status\SysScopeStatusPreferenceController.smali

SysScopeStatusPreferenceController.smali

.method private changeSysScopeStatus()V

.locals 8

iget-object v0, p0, Lcom/android/settingslib/core/AbstractPreferenceController;->mContext:Landroid/content/Context;

sget v1, Lcom/android/settings/R$string;->unknown:I

invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

move-result-object v0

const-string v1, "ro.boot.flash.locked"

invoke-static {v1}, Landroid/os/SystemProperties;->get(Ljava/lang/String;)Ljava/lang/String;

move-result-object v1

const-string v1, "1" ##### Add this

iget-object v2, p0, Lcom/android/settingslib/core/AbstractPreferenceController;->mContext:Landroid/content/Context;

recompile and enjoy
[Android General] ricci206:
Disable pop up volume too high A12​

SystemUI.apk

\smali_classes2\com\android\systemui\volume\VolumeDialogControllerImpl.smali

search method:

.method private onShowSafetyWarningW(I)V

Replace with:

.method private onShowSafetyWarningW(I)V

.locals 2

iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mAudio:Landroid/media/AudioManager;

invoke-virtual {v0}, Landroid/media/AudioManager;->disableSafeMediaVolume()V

return-void

.end method

enjoy
[Android General] ricci206:
Disable KNOX on csc's A12​

services.jar

smali_classes3\com\samsung\android\knoxguard\service\utils\Utils.smali

Search:

.method public static isSupportKGOnCsc()Z

replace with:

.method public static isSupportKGOnCsc()Z

.registers 1

const/4 v0, 0x0

return v0

.end method

search:

.method public static isSupportKGOnSEC()Z

replace with:

.method public static isSupportKGOnSEC()Z

.registers 1

const/4 v0, 0x0

return v0

.end method

and:

smali_classes3\com\samsung\android\security\keystore\AttestParameterSpec.smali

.method public isVerifiableIntegrity()Z

replace with:

.method public isVerifiableIntegrity()Z

.registers 2

const/4 v0, 0x1

return v0

.end method
[Android General] sharmajiilokesh:
Anyone has idea about in which apk has call background live wallpaper, I want to change it. Thank You in advance
[Android General] madadictromtester:
is there any mod which brings advance menu in a12 ?
[Android General] Shooting Star Max:
Hi and thank you very much for your patches!

I've got a question about this Dual Messenger one.

I don't have invoke-direct {p0}, Lcom/samsung/android/da/daagent/activity/DualAppActivity;->getPossibleDualAppPackages()Ljava/util/ArrayList; in my file. My device is the Galaxy Note20 Ultra (Exynos) running Android 12.

See here:

I'll be glad to provide any other file required!
[Android General] madadictromtester:
is it working in a12 oneui4.1 ?
[Android General] ricci206:
Do not delete it if it is missing. very strange
[Android General] ricci206:
Patch Theme trial A12​

edit >>> Themecenter.apk

smali\com\samsung\android\thememanager\period\PeriodManager.smali

Search:

.method private setTrialAlarm(Ljava/lang/String;J)V

.locals 8

return-void #### Add this

invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

move-result-wide v0

and:

.method public isAlarmExist(I)Z

.locals 6

const/4 v0, 0x1 #### Add this

return v0 #### Add this

const/high16 v0, 0x20000000

const/4 v1, 0x1

\smali\com\samsung\android\thememanager\period\ThemeNotiUtils.smali

# static fields

.field private static buyTrialPendingIntent:Landroid/app/PendingIntent; = null #### delete = null

.field private static goToThemeDetailPendingIntent:Landroid/app/PendingIntent; = null #### delete = null

.field private static isTrialEnd:Z = false #### delete = false

.field private static stopTrialPendingIntent:Landroid/app/PendingIntent;

and:

.method private buildNotificationIntent(Landroid/content/Context;Ljava/lang/String;)V

.locals 7

return-void #### Add this

invoke-direct {p0}, Lcom/samsung/android/thememanager/period/ThemeNotiUtils;->clearNotificationIntent()V

and:

.method public postTrialNotification(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;Z)V

.locals 8

return-void #### Add this

new-instance v0, Ljava/lang/StringBuilder;

and:

.method public setIsTrialEnd(Z)V

.locals 1

const/4 v0, 0x0 #### Add this

sput-boolean v0, Lcom/samsung/android/thememanager/period/ThemeNotiUtils;->isTrialEnd:Z #### Add this

return-void #### Add this

new-instance p0, Ljava/lang/StringBuilder;

invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

const-string v0, "setIsTrialEnd = "

recompile and enjoy
[Android General] sawixso81:
did this mod on an unlocked n975u secure folder sets it self up but when finished and I try to open secure folder force closes. When I reboot the device its in a boot loop of the carrier splash screen, any thoughts?
[Android General] Shooting Star Max:
Hi again! Do you use a specific apktool version or a signing tool? I can't seem to get this working (I could apply your other JAR patches, but not this one that applies to an APK).
[Android General] ricci206:
I Used BatchApkTols 3.7.5
[Android General] ShaDisNX255:
Bypass "Phone locked." message

Hi guys. I was porting a flagship ROM to a mid range phone and ran into a problem I couldn't figure out how to fix. Even though I didn't delete any knox app, I kept getting the error. "Phone locked. This phone can't be used without authorization." This kinda seemed similar to the whole payment error a few Android versions ago. So instead of trying to figure out if there was a specific app causing the problem I decided to just remove it from source and it seems to have worked.

I just looked up the string and its value and searched through services.jar to disable it. I've successfully been able to bypass. Let's hope this can help someone out

Here's the method:

Decompile services.jar

Open

smali_classes3/com/samsung/android/knoxguard/service/utils/Utils.smali

Search for the method

.method public static setRemoteLockToLockscreen(IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;IJIZLandroid/os/Bundle;)V

And replace it with:

.method public static setRemoteLockToLockscreen(IZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;IJIZLandroid/os/Bundle;)V
.registers 2

const/4 v0, 0x0

return v0
.end method

Recompile services.jar and push to system

Enjoy.
[Android General] nashinnnn:
*removed (kinda found a solution)
[Android General] ShaDisNX255:
Bypass "SSRM Warning" message

If anyone's ever ported a ROM from another device, you may have run into this problem.

You get this error upon every reboot.

"SSRM Warning

Fails to parse policy XML. Please confirm that XML is well formed."

Spoiler content hidden.

Many people suggested to use stock "SamsungDeviceHealthManagerService.apk" but unfortunately this didn't work for me.

Others suggested to delete the app, but this app is responsible for keeping track of battery usage for all your apps.

So I looked through it and found how to remove this error message, quite simple

Here's the method:

Decompile SamsungDeviceHealthManagerService.apk

Do a massive search of "SSRM Warning" inside the smali files. I use Notepad++ search in files function but anything like FileSeek can also work too

In my case, this warning is located in

smali/G1/J.smali

And the method itself looks like this:

.method public static u(Landroid/content/Context;Ljava/lang/String;)V
.locals 1

if-eqz p0, :cond_0

new-instance v0, Landroid/app/AlertDialog$Builder;

invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

const/4 p0, 0x0

invoke-virtual {v0, p0}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

const-string p0, "SSRM Warning"
...etc...etc...etc...

All you have to do is replace the whole method as so:

.method public static u(Landroid/content/Context;Ljava/lang/String;)V
.locals 1

const/4 v0, 0x0

return-void
.end method

Recompile and push to system. The warning message should be gone now.

Enjoy.
[Android General] ricci206:
Full date on curtain, lockscreen, AOD​

Decompile SystemUI.apk

edit res/values/strings.xml

search:

<string name="abbrev_wday_month_day_no_year_alarm">EEEMMMd</string>

replace with:

<string name="abbrev_wday_month_day_no_year_alarm">EEEEMMMMd</string>

search:

<string name="quick_panel_shorten_date_pattern">EEE, MMM d</string>

replace with:

<string name="quick_panel_shorten_date_pattern">EEEE, MMMM d</string>

search:

<string name="system_ui_aod_date_pattern">EEEMMMd</string>

replace with:

<string name="system_ui_aod_date_pattern">EEEEMMMMd</string>

search:

<string name="system_ui_quick_panel_date_pattern">EEEMMMMd</string>

replace with:

<string name="system_ui_quick_panel_date_pattern">EEEEMMMMd</string>

-------------------------------------------------------------------------------------------------------

Decompile AODService_v70

edit res/values/strings.xml

search:

<string name="common_date_format_abb_week_abb_month">EEEMMMd</string>

<string name="common_date_format_abb_week_month">EEEMMMMd</string>

replace with:

<string name="common_date_format_abb_week_abb_month">EEEEMMMMd</string>

<string name="common_date_format_abb_week_month">EEEEMMMMd</string>

Enjoy
[Android General] nashinnnn:
it worked, amazing :b
[Android General] nashinnnn:
*removed
[Android General] nashinnnn:
Hello, I already have a kgclient patch in services.jar, the problem is that this KG state isn't removed when I use Samsung DeX. When I connect it, it locks both the phone and DeX, and the only way to use the phone again is by rebooting.

I attach the images
[Android General] ShaDisNX255:
This is a different error than what I was referencing on that guide.

You should check if you've deleted the apps KnoxDesktopLauncher or KnoxGuard from priv-app, that probably causes this issue.
[Android General] nashinnnn:
Yeah I have KnoxDesktopLauncher but not KnoxGuard. Anyways, yesterday I tried to put KnoxGuard back to priv-app and the issue was still there
[Android General] nashinnnn:
Disable blur on Shutdown Menu​

• This was only tested in OneUI 4.1, but should work in previous versions

• Source: This post on 4PDA

Steps:

1) Decompile services.jar

2) Open WindowsState.smali from services/smali_classes3/com/android/server/wm

3) Look for this method:

.method public applyBlurEffectInTransaction(Landroid/view/SurfaceControl$Transaction;)V

4) Replace the whole method with these lines:

Spoiler content hidden.

5) Recompile services.jar and push to /system/framework

Enjoy
[Android General] Gollo99:
hello everyone, what is the possibility of adding the extended menu in one ui 4 without the need for Rom Control
[Android General] nashinnnn:
I got the modified files for extended menu, I'm trying to figure out what files are changed. If I success, maybe i'll post a guide for OneUI 4
[Android General] Gollo99:
great thank you very much, I see that you are from South America do you use telegram?
[Android General] nashinnnn:
no problem, yes, I do
[Android General] Gollo99:
great we can talk over there, send me your ID and I'll send you messages over there
[Android General] nashinnnn:
quadraticfunction
[Android General] nashinnnn:
Getting AppLock working​

Steps:​

1) Go to /prism/etc/carriers/ and search for your CSC (may also be in /prism/etc/carriers/single).

2) Open enforceskippingpackages.txt (may also be skippingpackages.txt) and delete the text "AppLock.apk".

3) Save changes.

4) Place the APK attached in a newly created folder: /system/priv-app/AppLock.

5) Flash the attached module of BlassGO.

6) Go to /optics/configs/carriers/ (may also be /optics/configs/carriers/single) and search for your CSC.

7) Go to YOUR_CSC/conf (may also be YOUR_CSC/conf/system) and open cscfeature.xml.

8) Add applock| to CscFeature_SmartManager_ConfigSubFeatures>**************</CscFeature_SmartManager_ConfigSubFeatures>.

If the CSC feature doesn't exist, then add this:

CscFeature_SmartManager_ConfigSubFeatures>applock</CscFeature_SmartManager_ConfigSubFeatures>.

9) If after rebooting the apk is still in /system/priv-app/AppLock but is not installed, check that "Applock.apk" got deleted properly from enforceskippingpackages.txt

10) Reboot and it should be working.

Done!
[Android General] Bkblues:
Do you know how to lock more than three apps? The official limit is that only three app backgrounds can be locked. thanks！
[Android General] nashinnnn:
Sorry, I can't get what you mean. I can lock more than 3 apps with the APK I left
[Android General] Bkblues:
I'm talking about locking the app background, not adding program locking to the app as you mentioned earlier
[Android General] nashinnnn:
Hmm okay, but are you sure that is from the App Lock? I've never seen it
[Android General] Bkblues:
This is the built-in function of the system. You can lock apps in recent tasks to avoid being cleaned up. Actually, it has nothing to do with applock

Anyway, thank you for your reply！
[Android General] nashinnnn:
Ohh, that thing. Hmm, can you send me your TouchWizHome_201X.apk? It's curious cause I can lock any app I want with no limitation
[Android General] Bkblues:
Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

Store photos and docs online. Access them from any PC, Mac or phone. Create and work together on Word, Excel or PowerPoint documents.

1drv.ms

oneUI4.1
[Android General] DuskGolem:
Can someone tell me how to port "side key" behaviour under advanced features of s20 settings to other samsung devices? Side key setting allows to change behavior of power button (long press, short press, etc). I want to use this feature on my A8 running android pie if possible. Anyone?

I did try other apps and "Pysical Button Master Control" did work but with some caviets so any help will be appreciated...
[Android General] nashinnnn:
Try to add this line in /system/etc/floating_feature.xml:

<SEC_FLOATING_FEATURE_SETTINGS_SUPPORT_FUNCTION_KEY_MENU>TRUE</SEC_FLOATING_FEATURE_SETTINGS_SUPPORT_FUNCTION_KEY_MENU>
[Android General] DuskGolem:
Are you sure I have to set it to false? Doesn't make sense.
[Android General] nashinnnn:
I forgot to edit the value, sorry, now it's fine
[Android General] ShaDisNX255:
It's a long shot but, does anybody have lines that work on Android 12? I think these don't work anymore lol music and video pause on bg once you record video
[Android General] DuskGolem:
Not working, just tried.
[Android General] ricci206:
Extended reboot menu'

Hello everybody,

can anyone post the mod for the extended reboot menu without rom control fot A12?

Thank you
[Android General] nashinnnn:
You rebooted, right?
[Android General] nashinnnn:
I only understood the tutorial to add it to SecSettings and works, but couldn't figure out how to get the SystemUI mod to work yet.

Apparently the mod for Pie here still works for android 12 except for a few bugs
[Android General] turo2710:
My opinion is a good solution. Although everything works beautifully with ROM Control too
[Android General] Bkblues:
Refer here
[Android General] t-mobile_mda:
hey...

can u pls refresh the link..? or anyone..?

tia..
[Android General] Bkblues:
If you are repairing a secure folder, you can see the latest repair methods.
[Android General] t-mobile_mda:
thanx..

which one is it..? my device has And10..smalipatcher..? or which one.?
[Android General] Bkblues:
What is your Android version?
[Android General] t-mobile_mda:
Android 10..
[Android General] Bkblues:
Try this
[Android General] nashinnnn:
Extended Reboot Menu​

I was having issues when modifying and previsualizing the post, besides I think I had already reached the limit of characters, so now the guide is distributed into 4 sections, starting from here
[Android General] ShaDisNX255:
Wow, appreciate so much that you took your time to share this. I'll definitely try it out. Thank you very much <3

And also thanks to the original creators and editors, you guys rock.
[Android General] nashinnnn:
No problem, I've spent like a month trying to figure this out actually, everything being in Russian was hard for me to understand lol

By the way, I've just seen another feature for this mod in 4PDA, if I get it to work I'll update the post

Enjoy :giggle:
[Android General] ShaDisNX255:
It must've been a lot of dedication and hard work. Not everyone has the patience to do it. Wow, just gotta say congratulations to you too for taking your time to getting it to work and sharing it with everyone. Truly appreciate it
[Android General] turo2710:
But now you know how it's done)))))
[Android General] nashinnnn:
Ok, I updated the post. Made changes to SystemUI and SecSettings apks to add these settings:

Spoiler content hidden.

So that you don't have to do it all over again, to add them just do the Mickles.zip, GlobalActionFeatures.smali, sec_global_actions_item.xml steps for SystemUI, and the code after </PreferenceCategory> for SecSettings

I also updated the screenshots
[Android General] ShaDisNX255:
Just wanted to confirm, perfectly working and tutorial is superbly explained

Will definetely mention this tutorial in my Thanks to... post

Awesome job all around
[Android General] ShaDisNX255:
Sorry for the double post. I'm just making this general observation and please don't take it in any way a negative comment.

Do you think it would be possible to make most if not all of these ask for PIN when doing them from lockscreen?

While Power Off button keeps its characteristic of asking for a PIN when trying to turn it off from lockscreen, I think we should look for a way to make the rest have this characteristic too

While rooting your phone is already a security risk it's still in our best interest to try and keep the few locks still available in our software

And also at the end of the day, it's really not that useful of a lock since anyone can always force a reboot with the hardware keys, so that's maybe you or the original creators decided to just lose that requirement, I still think it'd would be nice to have even if optional

Again, it's a great mod and I'm really happy to use it on my ROMs, just wanted to see if we could add that. I'll definitely try with my limited smali knowledge and will post if I find any type of solution
[Android General] nashinnnn:
Yes, probably. It may be related to the method .method private isNeedSecureConfirm()Z or .method public onPressSecureConfirm()V in each viewmodel.smali but I'm not sure.

I also thought about that, but as I didn't know anything about how to get that to work I just left it like that, but yeah it would be great if we could get that feature

Oh okay, good luck! Keep us updated 😁

By the way, I've just checked and apparently it doesn't either ask for pin to power off when you haven't entered the SIM pin yet
[Android General] f-_-Ger_RL_Maik:
I hardly look through here at this forum because my English is also just dirt.

Maybe someone can help me here so I do not check all this because.

I have rooted my devices and would now like my Huawei freebuds Pro also work with mitkrofphone is there to fix it?

Dann möchte ich einen Netzwerkmonitor ohne App einfügen, ist das möglich?

Und dann noch am besten die Farbe z.ß der Uhr in der Statusleiste ändern, was ist machbar? Vielleicht kann ein gesicherter Benutzer helfen Vielleicht auch auf Deutsch, wenn es erlaubt ist.
[Android General] SkilletDesire:
Here is the services.jar from Android 13 One UI 5 Beta. All the old methods no longer work. If anyone wants to do some tinkering. I got Secure Folder to work. I also attached samsungkeystoreutils.jar for Private Share and encrypted wifi mod which didn't work.
[Android General] Sloobot:
Does anyone know how to fix Samsung health in android 12? And maybe Samsung pass

Thanks