yashsingh1/xdaforums huggingface dataset:
[Android General] Dovanchuc7521:
Rotate the screen 360 degrees with switch in RC

Android 10 Samsung (Test on Galaxy Note9)

Edit services.jar

1. Find to \services.jar\smali_classes2\com\android\server\wm\DisplayRotation.smali

add to

# static fields

.field static mAllowAllRotations:Z

Search to

.method private updateSettings()Z

After:

iget-object v0, p0, Lcom/android/server/wm/DisplayRotation;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

Add this:

const-string/jumbo v1, "prime_all_rotations"

const/4 v2, 0x0

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

sput-boolean v0, Lcom/android/server/wm/DisplayRotation;->mAllowAllRotations:Z

iget-object v0, p0, Lcom/android/server/wm/DisplayRotation;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

2. Find to \services.jar\smali_classes2\com\android\server\wm\DisplayRotation$SettingsObserver.smali

In: .method observe()V

After:

const-string/jumbo v1, "show_rotation_suggestions"

invoke-static {v1}, Landroid/provider/Settings$Secure;->getUriFor(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v1

const/4 v2, -0x1

const/4 v3, 0x0

invoke-virtual {v0, v1, v3, p0, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;I)V

Add this:

const-string/jumbo v1, "prime_all_rotations"

invoke-static {v1}, Landroid/provider/Settings$System;->getUriFor(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v1

invoke-virtual {v0, v1, v3, p0, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;I)V

Recomp services.jar

3. In GRXControl with your xml Add:

<GrxSwitchPreference android:title="Rotate the screen 360 degrees" android:key="prime_all_rotations" android:defaultValue="false" android:summaryOn="@string/summaryOn" android:summaryOff="@string/summaryOff" grx:reboot="true" grx:switchColor="?complementary_color1" />

4. Ẹnoy!!
[Android General] ricci206:
Mod SB_Brightness

Hi to all,

please

is it possible to get the mod without using rom control?

Could anyone help me?

Thank you.
[Android General] Voytec83:
From Terminal emulator:

su
settings put secure dlx_brightness_slider true
settings put secure dlx_brightness_slider_kg true

To disable, same commands but with FALSE in the end.

PS. This is only my best guess. I didn't add the attached method, neither test it.
[Android General] ricci206:
Thank You

BUt not work
[Android General] kin201303:
DialerBackground on-the-fly (Q)

Android 10 Samsung (Test on Galaxy Note10+,S10..etc)

I use the SamsungDialer_v11.1.70.15
[Android General] Er. Aditya:
full caller image for android 10 bro ?
[Android General] kin201303:
I not at home tomorrow I upload
[Android General] Er. Aditya:
thanks so much brooo :)
[Android General] kin201303:
FullScreen Caller ID in Samsung Dailer(Q)

Android 10 Samsung (Test on Galaxy Note10+,S10..etc)

I use the SamsungInCallUI_11.1.70.8

Guide To Add Big Photo And FullScreen Caller ID in Samsung Dailer(pie)

https://xdaforums.com/showpost.php?p=79128386&postcount=1148
[Android General] kin201303:
FullScreen Caller ID in Samsung Dailer(Q)
[Android General] runels:
Can you share with your big photo SamsungInCallUI_11.1.70.8 ?
[Android General] kin201303:
I use free size with rom control not only big photo

you can change the dip to 320

<dimen name="full_call_card_photo_size">320.0dip</dimen>
[Android General] edzamber:
Hi

Is this possible to make a guide with RomControl ?

Thanks [emoji4]
[Android General] Er. Aditya:
thanks champ :)
[Android General] kin201303:
Yes

free size can small circle to big circle~square~half~full

but this part not my guide
[Android General] maarifakimemes:
Any updates mate? Waiting for a while sorry if i look impateint
[Android General] thereassaad:
Still not getting time to finishing it yet , i will try to get some times to finishing it , hope so . Sorry for my delay ..

Stay home - stay safe everyone around here & worlds ..
[Android General] Er. Aditya:
thanks mate , stay safe
[Android General] Voytec83:
Try using SYSTEM instead SECURE, I didn't check correctly where pref keys are stored. Sorry for inconvenience.

PS. Make sure mod is correctly implemented into SysUI:)
[Android General] centaur31:
Hi could you please tell me what tools are needed to decompile and recompile the file I mean in order to be able to edit it. I tried with rar but got .dex files which I don't know how to open.

Thanks for your help

Cheers!
[Android General] MKUltraBlack:
Try batchapktool
[Android General] mikeyb123:
can anyone tell me the best way and tool for decompiling - recompiling system ui android 10 one ui 2.0, as i know things have changed, dont want to run into errors whilst recompiling?
[Android General] mikeyb123:
im testing batch apktool
[Android General] MKUltraBlack:
Try putting framework-res.apk in the Framework folder and decompile an app, it will store the framework-res.apk as 1.apk in the correct place, then close the tool and re-open.
[Android General] mikeyb123:
:D just noticed i forgot the framework duh... all recompiled fine now thanks :good:
[Android General] MKUltraBlack:
I knew it worked for Q because I did the systemui.apk recovery button mod for S7. Don't forget to have fresh systemui.apk and change over classes 1&2, asrc and res folder into new apk. It seemed to crash if I didn't change the res folder too.
[Android General] mikeyb123:
I always send those files from the original, is there a new thread for android Q mods?
[Android General] MKUltraBlack:
The recovery mod (pie version) still works for 15 toggle advanced menu. I use another method by [MENTION=4658360]corsicanu[/MENTION] for long press restart for recovery (think it's still private) but there are more Q mods appearing here so keep your eyes peeled
[Android General] MKUltraBlack:
Is there a shortened down version of the 15 toggles power menu for Oreo with just the recovery button? I can do recovery button on pie and Q no problems. Today I spent 5 hours trying to do the Oreo method, tried to recompile the APK and it failed ? There's too much options in it and finding the lines of code needing edited in the smalis by searching with ## and sifting through a 15k line smali for lines that are slightly different now is a nightmare.
[Android General] sac23:
Just wanted to add this here Fix for Secure Folder N10 This working for N9750 have not tested on anything else

also, thanks go to [MENTION=4074799]ambasadii[/MENTION] this was a tough one because I had to find the right files that would fix secure folder but also kept sd card intact anyway here's the files u need to be included is also what u need to change in services

enjoy

https://mega.nz/file/7N5HiSoD#w1fbLQkKod6t07VDfAeuqvxct8xBSZpEzhjLj2A51Ho
[Android General] jaran kepang:
hello..anyone can help where i can find guide for added 5x6 grid in home and apps ?i cant find the guide anywhere..

im using note 8 rom in note fe..thank you
[Android General] Franc89:
System signature bypass or disable

Hi here I whant to know if possible to bypass system signature or disable it after edit system for boot without root?

Thanks
[Android General] Eleo:
You will need to replace framework.jar as far as I recall. I dont think you can do it without root using adb only
[Android General] MKUltraBlack:
Or you could put the services.jar in a flash zip and flash it in twrp
[Android General] Franc89:
what mod need to make in framework.jar?

Because I’m using SuperR for unpack the system so I can easily replace without root

---------- Post added at 12:35 PM ---------- Previous post was at 12:31 PM ----------

for that need to mod service.jar before replace. So what mod need to do in service.jar?

Thanks
[Android General] phanhien:
Does any one know how to make dual line status bar with analog clock? Could you guide me how to do that?

Thank you very much!
[Android General] Eleo:
Analog clock on statusbar? You would barely see it to check time

:eek:

I guess nothing other than 3minit battery comes to mind. Check whether they have something similar in hand
[Android General] phanhien:
View attachment 5066783This is my screen now. I'm using Super stable rom v7.0 on my Note 9. It has dual line status bar in rom control. But I don't know how to make it to edit by myself.
[Android General] Dovanchuc7521:
Don't see any things!!

Gửi từ SM-N960F của tôi bằng cách sử dụng Tapatalk
[Android General] phanhien:
This is the link to the ROM: https://xdaforums.com/galaxy-note-9/development/android-pieoneui-superstable-rom-galaxy-t3991009
[Android General] Dovanchuc7521:
Are you see any things?
[Android General] phanhien:
ROM super stable v7.0 has dual line status bar with analog clock on it, even on nav bar if you want!
[Android General] SammyTRK:
Does anyone know how to color the navbar on android 10 and still have it transparent on homescreen?

In android Pie it would work with this key that is in the stock smali code

<GrxColorPicker android:title="NavBar Color" [B][COLOR="Red"]android:key="navigationbar_color"[/COLOR][/B] android:summary="Change NavBar Color" android:defaultValue="0x00000000" grx:systemType="global" />

In android 10 this key still exists in the stock code but it does nothing. There is another key just below it that does work but only until a reboot or ui restart, then it'll go back to stock white color.

<GrxColorPicker android:title="NavBar Color" [B][COLOR="Green"]android:key="navigationbar_current_color"[/COLOR][/B] android:summary="Change NavBar Color" android:defaultValue="0xFF000000" grx:systemType="global" />

Maybe someone who understands the smali code can look at it and tell me how to make that color change persist after a reboot?

Its in SystemUI\smali_classes2\com\android\systemui\util\SettingsHelper.smali
[Android General] kin201303:
you call Grouxho
[Android General] Voytec83:
Hi,

I bet this was not needed...to link rom to its Developer:D

But well, sometimes users are 'to busy' to notice such details.

I wish lucky search for what U asked for. Have a nice evening!:good:

---------- Post added at 10:58 PM ---------- Previous post was at 10:54 PM ----------

How do U set those values for colors? I mean any apk or code string to any .xml?

---------- Post added at 11:03 PM ---------- Previous post was at 10:58 PM ----------

At first U will need deodexed framework and I doubt as [MENTION=9049304]MKUltraBlack[/MENTION] mentioned, to do that without rooting ur phone as boot procedure in Q invokes plenty of symlinked files
[Android General] SammyTRK:
Using the color picker preference in grxsettings. No need to edit anything, it is using stock smali code found in SystemUI. Like it says though it only sticks until reboot or restart UI and it doesn't set the color for all apps.
[Android General] kin201303:
this is android 9.0 not android 10.0

i use version SamsungInCallUI_11.1.70.44
[Android General] SammyTRK:
I am on android 10. It works until I'm in another app and I get a call. There is no popup and now way to answer until the phone app crashes then opens back up.

Does your popup call dialog work?

I have tried v 11.1.70.8 , 11.1.70.33 , and 11.1.70.85

I'll try 11.1.70.44 tomorrow.
[Android General] kin201303:
work
[Android General] SammyTRK:
Hmm, Ok. Thanks.

It must be something in Superstable rom then.

I'll try it out in another rom when I get a chance just out of curiosity.
[Android General] kin201303:
you try

Big Photo_SamsungInCallUI.apk

https://drive.google.com/file/d/1umR-o3TTUeMntDBLUzY2KqB_cZGxwV8p/view?usp=sharing
[Android General] phanhien:
If you need full screen caller, simply flash this file.
[Android General] SammyTRK:
Thank you. By comparing your apk to mine I figured out what I was doing wrong.

I was putting the modded files from the recompiled incallui into the stock incallui apk, like I always do with SystemUI.apk.

All I needed to do was use the recompiled incallui apk itself. :silly:

Now it's working. :good:
[Android General] kin201303:
If you need full screen caller,only change the dip

res\layout\in_call_view_include_card_port.xml

<ImageView android:layout_gravity="center_horizontal" android:id="@id/photo" android:layout_width="@dimen/full_call_card_photo_size" android:layout_height="@dimen/full_call_card_photo_size" android:layout_marginTop="-50.0dip" />

change to

<ImageView android:layout_gravity="center_horizontal" android:id="@id/photo" android:layout_width="@dimen/full_call_card_photo_size" android:layout_height="@dimen/full_call_card_photo_size" android:layout_marginTop="130.0dip" />

res\values\dimens.xml

<dimen name="full_call_card_photo_size">320.0dip</dimen>

change to

<dimen name="full_call_card_photo_size">910.0dip</dimen>
[Android General] ricci206:
Good Morning,

please for your mod "Rotate the screen 360 degrees with switch in RC "

it's possible without RC ?

Thank You
[Android General] AbrahamGC:
Change default value to 0x1 and done :

const-string/jumbo v1, "prime_all_rotations"

const/4 v2, 0x1 instead of 0x0
[Android General] ricci206:
Thank You AbrahamGC
[Android General] Gollo99:
hello everyone, does anyone know how to add the music Share in one ui 2.0 ???
[Android General] BlackClio:
---------- Post added at 06:39 AM ---------- Previous post was at 06:35 AM ----------

[/COLOR]

Wait. Do I replace return v2 with return v0?

Also, how safe and reliable is this method? [MENTION=4658360]corsicanu[/MENTION] Has anyone tried it? And do I have to root the phone in order to use this?

My s9+ is new. Android 9 came with it + security patch March.
[Android General] maanz "L":
Hi. Yes, you need to root in order to do all the mods here.

I've tried this mod on my note 9 android 10 oneui 2.1 and it works.
[Android General] MrKongeniality:
Root needed?

Will this need a root?
[Android General] wlryss:
You need to get services.jar from your phone, then made modification and return to phone. Without root (and TWRP) i think this is impossible..

In addition, services.jar must be deodexed in your firmware..
[Android General] Dovanchuc7521:
Color of Samsung Netspeed with dark and light mode

Android 10

SystemUI

Goto: smali_classes2/com/android/systemui/statusbar/policy/NetspeedView

In: .method public onDarkChanged(Landroid/graphics/Rect;FI)V

Before:

iget p1, p0, Lcom/android/systemui/statusbar/policy/NetspeedView;->mLightModeFillColor:I

Add:

invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/NetspeedView;->getContext()Landroid/content/Context;

move-result-object v0

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "prime_netspeed_text_color"

const v2, -0xd0d0e

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

iput v0, p0, Lcom/android/systemui/statusbar/policy/NetspeedView;->mLightModeFillColor:I

Before:

iget p3, p0, Lcom/android/systemui/statusbar/policy/NetspeedView;->mDarkModeFillColor:I

Add:

invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/NetspeedView;->getContext()Landroid/content/Context;

move-result-object v0

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "prime_netspeed_text_color_light"

const v2, -0xf0f0f1

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

iput v0, p0, Lcom/android/systemui/statusbar/policy/NetspeedView;->mDarkModeFillColor:I

GrxControl xml:

<GrxSwitchPreference android:title="Stock netspeed" android:key="network_speed" android:defaultValue="false" android:summaryOn="Show" android:summaryOff="Hide" grx:switchColor="?complementary_color1" />
<GrxColorPicker android:title="Color In Dark Mode " android:key="prime_netspeed_text_color" android:dependency="network_speed" android:defaultValue="-855310" />
<GrxColorPicker android:title="Color In Light Mode" android:key="prime_netspeed_text_color_light" android:dependency="network_speed" android:defaultValue="-15790321" />
[Android General] mistickalone:
Help please !

Hello ! do you have a tutorial for doing this ? i'm a total noob... or can you provide some help, it would be much apreciated !
[Android General] ShaDisNX255:
There tutorials are not noob friendly as you can see in the OP

My best advice to you is to use a ROM with some of these fixes already implemented for your device

Or, if you really want to learn on how to do these yourself, you need to learn how to deodex your firmware, learn how to decompile using various tools available in XDA, learn how to edit smali and the rules in editing smali and finally, learning how to recompile and pushing to system. If you're interested, google is your best friend :)
[Android General] Carotix:
just an info

in andoid Q it is no longer necessary to deodex apps to decompile them with apktool , the smalis are already included ...

for example systemui
[Android General] ShaDisNX255:
Thanks for the heads up, I haven't done any work on Android 10, I pretty much stopped at Oreo. I may pick it back up soon :)
[Android General] :
Can I use this on other ROMs as well?

If I do the same changes on A7 port running on 7870 devices will they work/create a difference?
[Android General] :
Sorry for double post.:D

Please do tell me [MENTION=6377149]yash92duster[/MENTION]:)
[Android General] sawixso81:
Did you try the core-oj mod...you ever pass a modified manifest in the UI....... got a mode that needs a line in manifest for it to work properly
[Android General] sawixso81:
You ever find anything out about this made some edits to the core oj jar but phone stays at carrier splash screen wanted to use a edited UI manifest:good::highfive::good:
[Android General] ShaDisNX255:
I am sorry to bother you with this, I'd like to know if you can help me trying to fix secure folder on a Galaxy A71 (Snapdragon)

Just for the heck of it, I did everything on this tutorial and it actually worked I didn't think it'd work because A71 is Snapdragon o:

However, SD Card reader is broken, and I see you mentioned something about it in the post

If you can give me some pointers on where to look and what I should replace, I would really appreciate it

Thank you for reading :)

EDIT: Works now, replaced bin/vold with stock one and secure folder and SD Card reader works now.
[Android General] Royal18:
Such an amazing .....

I really appriciate your hard work and i hope that you'll provide such an amazing apps and features in future too..
[Android General] starbucks2010:
Hi, would you mind telling me what adaptations you did to make it work on N10? I would like to try to make it work for S20.

Thank you.
[Android General] ricci206:
I tried to implement the mod in systemUI with no success.

I can't understand all the steps exactly.

probably one is missing.

Could you please explain all the steps to me?

Thank you.
[Android General] kirbyNx:
Nice
[Android General] BlackClio:
Boost sound on galaxys s9+? (android 8)

Samsung says it's their mistake.

Call sound works perfectly. Ringtone is very loud when somebody calls you however notification sound quality is poor, almost quiet.

Any tweak about how to increase it?

Thanks

(Samsung galaxy s9+, android 8, exynos)
[Android General] Voytec83:
Probably your issue is fixed in newer based Android versions... As mostly like U are Last Oreo User on this device (only God knows why not updated), try to dig in 'historical' posts in the section dedicated to S9+
[Android General] BlackClio:
------------------------------

A little bit confused. o_O

Does it mean that I have to delete this the whole code:

.method private isSimSdBlock()Z
.locals 3

const/4 v2, 0x0

invoke-direct {p0}, Lcom/android/server/StorageManagerService;->isSim2Inserted()Z

move-result v0

if-eqz v0, :cond_0

invoke-direct {p0}, Lcom/android/server/StorageManagerService;->isSdInserted()Z

move-result v0

if-eqz v0, :cond_0

const-string/jumbo v0, "StorageManagerService"

const-string/jumbo v1, "isSimSdBlock: show popup!"

invoke-static {v0, v1}, Lcom/android/server/utils/sysfwutil/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

invoke-virtual {p0}, Lcom/android/server/StorageManagerService;->showSimSdBlockAlert()V

const/4 v0, 0x1

return v0

:cond_0
iget-object v0, p0, Lcom/android/server/StorageManagerService;->mUsimAlertDialog:Landroid/app/AlertDialog;

if-eqz v0, :cond_1

const-string/jumbo v0, "StorageManagerService"

const-string/jumbo v1, "isSimSdBlock: close popup!"

invoke-static {v0, v1}, Lcom/android/server/utils/sysfwutil/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

iget-object v0, p0, Lcom/android/server/StorageManagerService;->mUsimAlertDialog:Landroid/app/AlertDialog;

invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V

sput-boolean v2, Lcom/android/server/StorageManagerService;->isShown:Z

:cond_1
return v2
.end method

and paste this one instead:

.method private isSimSdBlock()Z
[COLOR="Blue"] .locals 1

const/4 v0, 0x0

return v0[/COLOR]
.end method

Am I right? :unsure:

Also, should this work on all Samsung S20 series?
[Android General] exocetdj:
Hi all - i have noticed that the Data usage counter appears on OneUI 3.0 but no digits appear after - it either needs further modification or activation via a menu item.

Has anyone seen this on One UI 3 and got the data amount to display?
[Android General] Voytec83:
Do U use any #hex plug-ins? Data usage counter is a feature provided by csc (think same on OneUI 3.0), but the text itself (like on provided image) can be enabled with bool value in SystemUI.apk (or overlay for it as well)
[Android General] exocetdj:
I use hex installer for simple theming but the data counter In my rom has always been activated by the csc feature code.

The text is there but no number is displayed. So either its missing something or the feature is permanently broke.

Do you have a method for the system ui edit? We edit system ui for 3minit so can tie this in.

Thanks for the info my friend 👍
[Android General] Gollo99:
hi everyone there is a guide available to permanently disable the high level brightness popup android 10
[Android General] Gollo99:
guide change clock position on panel as in android 10

decompile systemUI

go to res/layout/qs_service_box.xml and make the following changes

I searched:

<LinearLayout android:gravity="left" android:id="@iD/qs_big_clock_container" android:paddingLeft="26.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">

replace with:

<LinearLayout android:gravity="left" android:id="@iD/qs_big_clock_container" android:paddingLeft="26.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">

now search:

<LinearLayout android:gravity="left" android:id="@iD/qs_big_date_container" android:paddingLeft="26.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">

replace with:

<LinearLayout android:gravity="left" android:id="@iD/qs_big_date_container" android:paddingLeft="26.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">

ready recompile systemUI....now enjoy

This guide is intended for users who stayed on Android 9 and did not receive Android 10 from Samsung

all thanks to my brother OSyesus :)

I will leave the xml uploaded in androidfile

link:https://androidfilehost.com/?fid=17248734326145702826
[Android General] Nordintje:
Hello have question does camera works and IR Laser?
[Android General] Hnojohn:
[Delete]
[Android General] Hnojohn:
Hi, is there a Guide to add Scroll Capture?
[Android General] Ziggy54:
i'm looking for an updated tutorial for android 10, maybe the one with advanced reboot menu toggle in quick settings. thanks in advance!
[Android General] a.raul:
Oh my god... la que acabas de liar :D
[Android General] thereassaad:
Is it need 2nd reboot after 1st booting ?

#edited

Yep as Abraham explained to me in pm it's working fine on Oreo just let android upgrading finished & done , wooow awesome find Abraham ...