yashsingh1/xdaforums huggingface dataset:
[Android General] ShaDisNX255:
For Samsung Health, there is a repo specifically made to patch Health (the app directly) since the build.prop method no longer works on Android 12

GitHub - adil192/SamsungAppsPatcher: [Unmaintained] Samsung Apps Patcher for Samsung phones with custom ROMs

[Unmaintained] Samsung Apps Patcher for Samsung phones with custom ROMs - adil192/SamsungAppsPatcher

github.com

I think it's explained pretty well and the developer offers support even when they don't have a Samsung device to test. It's on my to-do list to start patching newer versions of Health myself but I've been lagging, maybe you can give it a look

As for Samsung Pass, there's no known bypass afaik
[Android General] nashinnnn:
SHealth you can get it to work too if you remove sakv2 text from the line ro.security.keystore.keytype in vendor build.prop and clean the app data, though I had read that doing it also breaks other stuff (don't know what exactly)
[Android General] ShaDisNX255:
Wow, you're right. Health works now. The line is keystore so I assumed it may break Secure Wi-Fi or Secure Folder but they're both just working fine. Hmm... I guess I'll find out soon maybe on what could be broken.
[Android General] Sloobot:
tried it but now my phone bootloops
[Android General] Bkblues:
This will affect “Find My Mobile”
[Android General] ShaDisNX255:
Still working fine, it was the first thing I tested on my end.

Just noticed that the option to unlock phone is no longer available, but it can still locate and ring the phone as well as locking it as if lost.
[Android General] Rawek:
Any solution
[Android General] nashinnnn:
Hello guys, I modified the following ViewModels a little bit:

- RestartActionViewModel (Restart global action wasn't asking for PIN/Pattern/Password/Biometrics if it was executed from Lockscreen, now it should)

- SafeModeActionViewModel (Safe mode global action wasn't asking for PIN/Pattern/Password if it was executed from Lockscreen, now it should but no biometrics at the moment)

- RecoveryActionViewModel (Recovery mode global action now asks for PIN/Pattern/Password if it's executed from Lockscreen)

- DownloadActionViewModel (Download mode global action now asks for PIN/Pattern/Password if it's executed from Lockscreen)

- QuickRebootActionViewModel (Quick restart global action now asks for PIN/Pattern/Password if it's executed from Lockscreen)

- SettingsActionViewModel (Settings global action now asks for PIN/Pattern/Password if it's executed from Lockscreen)

Things to take into account:

- Sadly, all this is still bypassable if you hadn't entered your SIM PIN yet, will try to fix it, but at least you have a little bit more of security now...

- I still need to make them all ask for biometrics

- The ViewModels that now ask for PIN/Pattern/Password use the strings of the RestartActionViewModel, that's why when pressing Settings for example it says "Enter PIN to restart phone", don't worry, it won't be restarted lol

I don't know how to change it yet, but i'll try to figure it out :)

By the way, I also improved a little bit the quality of some drawables and made recovery-specific ones
[Android General] nguyenxuanhoa:
like
[Android General] nashinnnn:
Thanks, nop I haven't yet, beta is not available for my device
[Android General] Shooting Star Max:
Hi there! I tried this tweak, but I receive the following message when trying to recompile:

I: Smaling smali_classes3 folder into classes3.dex...
services.jar.out\smali_classes3\com\samsung\android\knoxguard\service\utils\Utils.smali[2090,4] This method requires at least 13 registers, for the method parameters
Could not smali file: com/samsung/android/knoxguard/service/utils/Utils.smali

Has anyone else tried it? Perhaps I am doing something wrong?
[Android General] nashinnnn:
Hi, in my case I used a magisk module made by BlassGO, but send your services.jar
[Android General] Shooting Star Max:
Sure, thanks! Here it is. Just in case, it already has the secure screenshot and Secure Folder fix. It's from my Galaxy Note20 Ultra (Exynos),
[Android General] nashinnnn:
Well... for some reason every time I recompiled it, my changes disappeared, so I can't recompile it for you

Could you send a screenshot of the changes you made to the original method?
[Android General] nashinnnn:
Extended Reboot Menu​

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Read

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Features

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Bugs

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Missing features

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Requirements

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[Android General] nashinnnn:
Extended Reboot Menu​

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Instructions:

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

ㅤ​
[Android General] nashinnnn:
Extended Reboot Menu​

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Screenshots:

Spoiler content hidden.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[Android General] nashinnnn:
Extended Reboot Menu​

Changelog:

[Nov. 22, 2022]

• Fixed the settings to change the number of columns. Now it will create a column even if there aren't items to create them, allowing you to have more freedom. You only need to modify GlobalActionsContentView$BaseContentAdapter.smali again. If it crashes SystemUI when opening the reboot menu let me know and I'll check the code (in principle it's working but maybe I changed some path by mistake)

You may be wondering if that's all I did in this whole time, but actually this was a fix I applied a few months ago and I just didn't update the post. I'm trying to implement more features and make a big redesign of the settings (will take a long time anyways).
[Android General] Shooting Star Max:
Hi again everyone!

I am looking to disable an error message titled “Serious software issue detected”. I could find the string name in framework-res.apk, but I cannot find where it's actually used in code.

framework-res

res\values\public.xml, line 6166:

<public type="string" name="isrb_alert_title_issue_detected" id="0x010405c6" />

Any idea where to look at?

This started to happen after I messed up a framework-res mod, but it keeps happening after reverting it.
[Android General] jahangirbsmrau:
Can you explain how have you done this?
[Android General] Gogu24:
You reached the last level of Rescue Party, caused by SystemUI bootloops. One more and it will force you to do a wipe. To reset the level, use setprop persist.sys.rescue_level 0, and to disable it completely use setprop persist.device_config.configuration.disable_rescue_party true (also, the string is used in services.jar, to find it, convert the id to decimal and search for it in services.jar)
[Android General] winamp26:
can you edit attached file?

i try but not work, export from floydQ v7.
[Android General] kin201303:
your Ver SamsungInCallUI-1100072-11.5.10

my Ver SamsungInCallUI-1100036-11.5.10

you try

Google Drive: Sign-in

Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

drive.google.com

del your ver install my ver
[Android General] winamp26:
can you upload in android file host?
[Android General] sharmajiilokesh:
Is there any way to use digital wellbeing in secure folder ? Please tell if anyone know. thank you in advance
[Android General] kubura2999:
Any possibility for Extra Dim?

I don have that option.

Iam on m21 using ported s20 A12 rom.

I can turn on Extra Dim only with Activity Manager.
[Android General] Gollo99:
just add this line in vendor build.prop and extraDim will work, this line ro.surface_flinger.protected_contents=true
[Android General] kubura2999:
Thanks! It worked. It appeard in quick panel.
[Android General] Gollo99:
great, no problem
[Android General] ShaDisNX255:
Just to confirm, this still works in Android 13 :)
[Android General] bklyn_syed:
Anyone know how to add 3MinitBattery on A13 systemui
[Android General] rezha_levie:
how to add screen capture toggle? I can't found that. thanks
[Android General] Gollo99:
you must edit the csc of your mobile and add this line <CscFeature_SystemUI_ConfigDefQuickSettingItem>Wifi,SilentMode,Bluetooth,RotationLock,Flashlight,AirplaneMode,MobileData,WifiCalling,BlueLightFilter,WifiHotspot,SecureFolder,Aod,ScreenCapture,ScreenRecorder,ExtraDim,Dolby,WindowsLink,NightMode,Intent,Volte,NetworkBooster,ScreenRecorder</CscFeature_SystemUI_ConfigDefQuickSettingItem>
[Android General] rezha_levie:
where I found name file to add this line?

system/csc?
[Android General] Gollo99:
if in system/csc or if you have dynamic partitions in optics/carriers
[Android General] ricci206:
Android 13 One UI 5.0 MODS

Disable APK signature verifier

Framework.jar android 13 One UI 5.0

how to decompile and recompile correctly without error

Use baksmali-2.3.4 and smali-2.3.4

BatchApkTool option 83 and select smali-2.3.4

Now:

smali_classes3\android\util\apk\ApkSignatureVerifier.smali

Search:

.method public static getMinimumSignatureSchemeVersionForTargetSdk(I)I

.registers 2

.param p0, "targetSdk" # I

.line 515

const/16 v0, 0x1e

if-lt p0, v0, :cond_6

.line 516

const/4 v0, 0x2 ##### Change to 0x1

return v0

.line 518

:cond_6

const/4 v0, 0x1

return v0

.end method

recompile.
[Android General] ricci206:
Disable signature checking Android 13

services.jar

decompile with:

apktool-2.6.2-20220921_mod

smali-2.5.2

baksmali-2.5.2

Now:

smali_classes2\com\android\server\pm\PackageManagerServiceUtils.smali

search:

.method public static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I

relace the method with:

.method public static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I

.registers 9

const/4 v0, 0x0

return v0

.end method

search:

.method public static matchSignaturesCompat(Ljava/lang/String;Lcom/android/server/pm/PackageSignatures;Landroid/content/pm/SigningDetails;)Z

replace the method with:

.method public static matchSignaturesCompat(Ljava/lang/String;Lcom/android/server/pm/PackageSignatures;Landroid/content/pm/SigningDetails;)Z

.registers 14

const/4 v0, 0x0

return v0

.end method

search:

.method public static matchSignaturesRecover(Ljava/lang/String;Landroid/content/pm/SigningDetails;Landroid/content/pm/SigningDetails;I)Z

replace the method with:

.method public static matchSignaturesRecover(Ljava/lang/String;Landroid/content/pm/SigningDetails;Landroid/content/pm/SigningDetails;I)Z

.registers 8

.param p3 # I

.annotation build Landroid/content/pm/PackageParser$SigningDetails$CertCapabilities;

.end annotation

.end param

const/4 v0, 0x0

return v0

.end method

recompile.
[Android General] ricci206:
Is it possible to adapt it to android 13?
[Android General] bklyn_syed:
Will this bypass signature checking for all files or just apk. Need it to stop checking signature for apex in the system.
[Android General] ricci206:
This framework mod along with the services mod disable both apk and system apex signing. Give it a try but it will work
[Android General] bklyn_syed:
Framework mod I already knew.. But the service mod just tired it and it works. thanks
[Android General] nashinnnn:
I don't know, will see when I get OneUI 5, but probably it is
[Android General] ricci206:
I'm looking right now but I don't know.

If you're able, let me know I'll try.

Thank you.
[Android General] bklyn_syed:
so issue with this is if you factory reset it will bootloop and you have reflash non patched service.jar
[Android General] ricci206:
With A 13 things have unfortunately changed.

You need to patch both services.jar and framework.jar, otherwise any mod will cause boot loop
[Android General] bklyn_syed:
Maybe we need to patch something in smali_classes3\android\util\jar\StrictJarVerifier.smali in framework.jar because I did patch the smali_classes3\android\util\apk
[Android General] ricci206:
Exactly the method and what needs to be changed?

.method private verifyCertificate(Ljava/lang/String;)V
[Android General] a.raul:
Try searching inside the Secsettings

"http://www.samsung.com/m-manual/common"

and you will have the path to what you are looking for ...

regards
[Android General] ANDROIDXFOREVER:
thanks but there are many files where I should look for more 'or less than thank you:(
[Android General] a.raul:
If you do not have this program, it's cojonudo for searches

http://fsl.sytes.net/ssearchxt.html
[Android General] ANDROIDXFOREVER:
thanks bro:D
[Android General] ANDROIDXFOREVER:
I downloaded the app indicated and I also downloaded the version donated but I can not find anything I tried various ways I also have doubts that functions above all I have not solved my problem
[Android General] a.raul:
The secsettings is modified by you, or is it some rom and was already modified?
[Android General] ANDROIDXFOREVER:
already been modified
[Android General] a.raul:
ok, that's why I do not find what you're looking for ...

Search in com/android/settings/Utils

In the method

.method public static getUserManualSearchURLIntent(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
[Android General] a.raul:
Try this

const-string/jumbo v10, ""

invoke-static {v9, v10}, Landroid/provider/Settings$Global;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

move-result-object v6

:goto_1
if-eqz v6, :cond_0

invoke-virtual {v6}, Ljava/lang/String;->length()I

move-result v9

const/4 v10, 0x1

if-ge v9, v10, :cond_1

:cond_0
const-string/jumbo v6, "Tu URL o Telgram"
[Android General] ANDROIDXFOREVER:
I find it in this path? settings2 / Smali / com / android / settings / utils ??

if it is correct in which of these?
[Android General] a.raul:
Este :confused:
[Android General] edzamber:
Working !!!!

Thanks bro [emoji2]
[Android General] ANDROIDXFOREVER:
thanks now I have found all thanks for your help bro :D

---------- Post added at 07:43 AM ---------- Previous post was at 07:34 AM ----------

Hi bro you test from oreo o 7.1.1? Thanks

Inviato dal mio iPhone utilizzando Tapatalk
[Android General] edzamber:
No, Nougat 7.0
[Android General] JavixKGD:
Deleted
[Android General] thereassaad:
Logcat for ur hot reboot ? We need to see logcat that causes the hot reboot ..
[Android General] ANDROIDXFOREVER:
any idea for oreo?:p
[Android General] JavixKGD:
Right, Right, sorry bout that. I should have known better. I have attached the logcat. I attached whats from the fatal exception onwards. If you can help me with this, I will be very appreciative. Thanks
[Android General] bklyn_syed:
Also this..

.method constructor <init>(Ljava/lang/String;Landroid/util/jar/StrictJarManifest;Ljava/util/HashMap;Z)V

Funny thing when I removed Knox out to fix the phone LOCKED it didn't bootloop I guess removing signatures it didn't like
[Android General] ricci206:
OK,

but how to patched this methods?
[Android General] bklyn_syed:
Maybe like this...

.method constructor <init>(Ljava/lang/String;Landroid/util/jar/StrictJarManifest;Ljava/util/HashMap;Z)V

.registers 7

.annotation system Ldalvik/annotation/Signature;

value = {

"(",

"Ljava/lang/String;",

"Landroid/util/jar/StrictJarManifest;",

"Ljava/util/HashMap<",

"Ljava/lang/String;",

"[B>;Z)V"

}

.end annotation

const/4 v0, 0x0

return v0

.end method

.method private verifyCertificate(Ljava/lang/String;)V

.registers 25

const/4 v0, 0x0

return v0

.end method
[Android General] ricci206:
Tomorrow I try !

Thank you
[Android General] starbucks2010:
This is the method to patch to be able to use modded system apps:

framework.jar/smali_classes3/android/util/apk/ApkSignatureVerifier.smali

.method public static getMinimumSignatureSchemeVersionForTargetSdk(I)I

.registers 2

const/16 v0, 0x1e

if-lt p0, v0, :cond_6

const/4 v0, 0x2 ### Change to 0x1

return v0

:cond_6

const/4 v0, 0x1

return v0

.end method
[Android General] nashinnnn:
We've already got that one, but thanks buddy
[Android General] nashinnnn:
Still working on Android 13.
[Android General] ricci206:
Hi,

All A12 mods work on A13. !!
[Android General] kullanici32:
Do you know how to do android 12 s10e signature spoofing? (for microg) I searched about it but either it doesn't exist or I missed it
[Android General] nashinnnn:
Not possible at the moment. "Can't install app. App not optimized for use with Secure Folder".
[Android General] cimon666:
hi im looking for a way to force close or kill apps with long home button press without third party apps if possible
[Android General] ricci206:
LONG BACK PRESS TO KILL APP A13

Edit services.jar

I insert the 3 zips because the guide is long enough.
[Android General] cimon666:
support a12 ?
[Android General] ricci206:
none
[Android General] nashinnnn:
Seems really long, could you apply the mod properly?
[Android General] turo2710:
hello modification from android 12 is not suitable for android 13? I did it on my Samsung A30 according to the instructions from 4pda,
[Android General] ricci206:
Link?
[Android General] turo2710:
I did this according to this instruction from a respected

Mod edit: 4pda link removed
[Android General] ricci206:
I have re upload the guide "errata corrige" on PhoneWindowManager
[Android General] ShaDisNX255:
Didn't work for me, unfortunately.
[Android General] mujammilk_476:
Getting Problem After editing secsettings . when i was pasting in system by mt manager it works but when i was restart the device getting bootloop..There's a twist when doing clean flash with that edited apk also not showing ..

Tried Many times Same. with different apktools
[Android General] nashinnnn:
Before making modifications to APKs on Android 13 first you have to modify the framework.

Decompile framework.jar using baksmali 2.3.4, go to smali_classes3/android/util/apk/ and open ApkSignatureVerifier.smali

Look for the method getMinimumSignatureSchemeVersionForTargetSdk(I)I and replace it entirely with the following:

.method public static getMinimumSignatureSchemeVersionForTargetSdk(I)I
.registers 2
const/4 v0, 0x0
return v0
.end method
[Android General] ronnie_mcnutt:
i have followed your guide but services.jar cannot be compiled successfully i get this error :

[05:28:43] =====[ Build ]=====

[05:28:43] Input file: C:\Users\Ronnie\Desktop\services

[05:28:44] Using Apktool 2.7.0

[05:28:44] Smaling smali folder into classes.dex...

[05:30:07] Smaling smali_classes2 folder into classes2.dex...

[05:30:30] ..\services\smali_classes2\com\android\server\knox\dar\DarManagerService.smali[2374,4] missing EOF at '.locals'

[05:30:30] Could not smali file: com/android/server/knox/dar/DarManagerService.smali

[05:30:30] Compiling failed

[05:30:30] Time started: 24/1/2023 5:28:43 πμ

[05:30:30] Time elapsed: 01:46

(i have used the latest version of apktool gui 2.70)
[Android General] ricci206:
Use this:

Batch ApkTool 3.8.0

Представляю вниманию коллег свою утилиту для работы с файлами APK - Batch ApkTool Позволяет пакетно деод...

bursoft-portable.blogspot.com
[Android General] nashinnnn:
Can you send a screenshot of the modified method?
[Android General] ronnie_mcnutt:
what i did wrong here?
[Android General] turo2710:
Buddy you're editing methods incorrectly you're hijacking the start of the next method..Or you just replace the beginning of the method.
[Android General] nashinnnn:
The two modified methods should look like this; two booleans, both returning true:

But as turo2710 said, you're making the modifications incorrectly. As I can see in the screenshots, you are only replacing the name of the methods, not including their body or ending.

That part of the instructions means you have to find the method with that name.

He didn't include the body or the ending because methods can't have the same declaration (modifier + name + parameters + return type), thus, he's basically saving time and characters (there's no other method in DarManagerService.smali called isDeviceRootKeyInstalled).

That other part means you have to replace the whole method because the replacement contains the whole method as well.
[Android General] Ronnie McNutt:
i have tested this tool but it only supports 30< api levels can you suggest me one that supports api 33?
[Android General] turo2710:
set the value to 30 - this works on android 13
[Android General] turo2710:
Are you parsing APK or jar?
[Android General] Ronnie McNutt:
both
[Android General] turo2710:
Wrote a personal message
[Android General] Ronnie McNutt:
i cant find device_info_settings.xml has it changed on oneui 5?
[Android General] ShaDisNX255:
Use sec_software_info_settings.xml
[Android General] maanz "L":
Hi. I'm on oneui 3.1 android 11. when I did this framework.jar mod, my phone won't boot. Do you know if there's anything i can do? Because i tried to do SecSettings mods too and phone won't boot.
[Android General] turo2710:
Buddy on Android 11 do not need to do this
[Android General] maanz "L":
delete
[Android General] maanz "L":
Okay, what should i do? Because i have this phone stuck on boot after flashing SecSettings mod. Tried many times, but still the same. Is there any oat files/folders on system need to be removed? I didn't have any issues with modding on oneui2.5. Something change in oneui3.1 that i'm not aware of? Help appreciate..
[Android General] turo2710:
what can I say Maybe you are not editing the files correctly ... Maybe you are signing the application and collecting
[Android General] maanz "L":
most of my mods, i never sign applications. I use the superr kitchen to decompile and recompile and copy the compiled edited xml/smali back to original apk.

Do you think i should use the old method of decompile/recompile method?
[Android General] turo2710:
I don't know about your method, I use batch apktool
[Android General] maanz "L":
what i meant was using apktool with command prompt apktool d ...apk method. i did this just now, still won't work. i'll try batch apktool to see if it works.

EDIT: after trying with batch apktool, it still won't work. help appreciate.
[Android General] turo2710:
First of all, just disassemble and assemble the settings file without making any changes,Then check if it works in the system
[Android General] maanz "L":
ok, will do.

EDIT: I got my phone to boot right after recompiling without any mods. but some settings will crash when i click on them, such as display setting, lockscreen setting, biometric and security and developer option.
[Android General] starbucks2010:
did you used the correct framework-res.apk to decompile/recompile your apk?
[Android General] turo2710:
most likely he has a different or missing
[Android General] Ronnie McNutt:
i Have the same problem i installed stock res-framework.apk then de/re/compiled secsettings.apk it crashes (without any mods) w mods it doesnt boot
[Android General] turo2710:
You accidentally did not enable PC subscription during assembly?

Also check if the program settings are correct BatchApkTool
[Android General] starbucks2010:
It depends ... do you keep the original app signature, if is for android 13 do you mod also framework jar to accept modded apps ... you need to do more investigations
[Android General] Ronnie McNutt:
what modifications i need to framework.jar can you give me the thead link ?

here's my settings (i have updated apktool,smali it order to work properly for android 13 apks )is anything incorrect ?

(edit) what's PC subscription and how to enable it?
[Android General] starbucks2010:
Change to No the sign apk option if you mod system apps
[Android General] Ronnie McNutt:
i changed that still doesnt boot
[Android General] turo2710:
understand one thing when you edit android 13 you need to edit framework jar too. if you edit Android 12 ,framework jar should not be touched.
[Android General] Ronnie McNutt:
What modifications did you do to the framework..jar
[Android General] maanz "L":
Yes, it's the correct framework-res.apk.
[Android General] maanz "L":
No, i have the correct framework-res apk from samsung stock rom
[Android General] turo2710:
https://xdaforums.com/t/mods-samsung-not-android-mods-collection-exynos.3772017/post-87992519

No .. for Android 13, you need to edit not framework.res.apk, but framework.jar
[Android General] turo2710:
show what settings you have in the program BatchApkTool