yashsingh1/xdaforums huggingface dataset:
[Android General] Azazel6002:
Will this work on 8.1? Was trying to add this to Galaxy Tab S4, but getting error when trying to compile. only thing I notice different from code was

<string name="quick_settings_screen_recorder_label">Screen Record</string>

I have

<string name="quick_settings_screen_recorder_label">Record Screen</string>

Tried both ways to compile it. Error I get below

Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Landroid/support/graphics/drawable/AnimatedVectorDrawableCompat;->inflate(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)V
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:419)
at brut.androlib.Androlib.buildSources(Androlib.java:350)
at brut.androlib.Androlib.build(Androlib.java:302)
at brut.androlib.Androlib.build(Androlib.java:269)
at brut.apktool.Main.cmdBuild(Main.java:238)
at brut.apktool.Main.main(Main.java:76)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x60
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821)
... 10 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65537
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:348)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1058)
... 11 more
[Android General] stang5litre:
Move to small 2, then compile

stang5litre 5.0 Edition Roms
[Android General] Azazel6002:
So I need to move just the smali file into smali _ classes2 folder?
[Android General] stang5litre:
Yes move the mod smali files from smali 1 to smali 2

stang5litre 5.0 Edition Roms
[Android General] Azazel6002:
Thank you! Compiled Success.
[Android General] stang5litre:
No problem at all my friend [emoji41]

stang5litre 5.0 Edition Roms
[Android General] Azazel6002:
What folders do I drop the res drawables in? I dont have a drawable folder label as drawables
[Android General] youmbi:
and how to make it dual sim if mobile is one sim?
[Android General] Er. Aditya:
If u have hybrid sim then u can simply use an extender to use 2 sims and micro sd but if u have usa model with single sim then u cant
[Android General] Grouxho:
Add the :goto_aaaabbbb just above the return v26. It is not the same because you have code for log, but nothing important it is same code with different vars numbering and jump tags.

Yes, it is same, different sswitch tags numbering and vars numbering etd. In your case you have to add the code in the sswcith for 0x18 and 0x19, this is :sswitch_2b3

soi

:sswitch_2b3

####

### add here the mod.

####

invoke-virtual/range {p0 .. p0}, Lcom/android/server/policy/PhoneWindowManager;->getTelecommService()Landroid/telecom/TelecomManager;

Anyway, i have attached my updated guide for pie-ore which is much easier to implement. It takes 3 minutes.

I will be answering things related to guides i posted here because i posted them here. For my new guides as the attached one you will find easily where i will be answering to them if someone needs help.

Enjoy
[Android General] ShaDisNX255:
Thank you very much <3

It works great, I really really missed this feature thank you :)

This is what I used for Rom Control V2 (needs work, did not add everything because could not make everything work)

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Enable Skip Tracks" android:key="b_skip_tracks" android:defaultValue="true" />
<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Long press min Time" android:dependency="b_skip_tracks" android:key="b_timeout_skip_tracks" android:defaultValue="500" app:minValue="350" app:maxValue="2000" app:unitsValue=" mS" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Double click play/stop music" android:key="b_doble_click_skip_tracks" android:dependency="b_skip_tracks" android:defaultValue="true" />
<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Double Click max Time" android:dependency="b_doble_click_skip_tracks" android:key="b_timeout_dc_skip_tracks" android:defaultValue="500" app:minValue="100" app:maxValue="1000" app:unitsValue=" mS" />
[Android General] AbrahamGC:
Extended Power Menu - Pie - Odex framework

Thanks to [MENTION=4985020]Grouxho[/MENTION] & [MENTION=4658360]corsicanu[/MENTION] for find the way

Thanks to [MENTION=5829833]a.raul[/MENTION] for provide new icons

Download attached zip and follow Guide.txt

​
[Android General] Azazel6002:
Can I add this mod to my Tab S4? I don't have

<item type="bool" name="config_nightDisplayAvailable">@bool/config_setColorTransformAccelerated</item>

I searched all the bool.xml. If I can add it how does code look to set True?
[Android General] Grouxho:
In lastest oreo firmeares this mod is not needed anymore. Long pressing blue filter tile already shows the options. No idea for s4 tab

Enviado desde mi SM-G960F mediante Tapatalk
[Android General] wlryss:
Thanks a lot for the guide.

If it is possible - couple of questions.

From the guide:

Copy framework.jar/smali_classes3/com/samsung/android/globalactions to SystemUI/smali_classes2/com/samsung/android/globalactions

Now rename that globalactions folder to globalactionsdlx

Using notepad++, sublime, or even terminal, we need to replace both previous path in the UI.
Doing that, power menu will load from UI and not from framework, so we can add our preferences.

So, change recursivelly com/samsung/android/globalactions to com/samsung/android/globalactionsdlx

What is meant "replace both previous path in the UI"?

I have in the S8+ device only one globalactions folder in SystemUI - smali/com/android/systemui/globalactions/

The second folder I copied according to guide from framework.jar/smali_classes3/com/samsung/android/globalactions to SystemUI/smali_classes2/com/samsung/android/globalactions and then renamed to globalactionsdlx.. I renamed all pathes in this folder into compliance with change from globalactions to globalactionsdlx

Thanks in advance for the response

One more question - if I made Power Menu with use of a tile earlier - whether will be the conflict with this mode?
[Android General] Azazel6002:
Thank you, It does have the filter already.
[Android General] AbrahamGC:
On smali classes 1, there is globalactions, there you need to replace too com/samsung/android/globalaction with com/samsung/android/globalactionsdlx.

About ur other mod, don't seems to be affected :good:
[Android General] wlryss:
Many thank`s - Everything turned out.

At first renamed all in SystemUI/smali_classes2/com/samsung/android/globalactionsdlx/ by Notepad++ - from /globalactions/ to /globalactionsdlx/

Then in SystemUI - from com/samsung/android/globalactions/ to com/samsung/android/globalactionsdlx/

Unfortunately in your archive there was no picture - Reboot to Download Mode. If it can be received - that everything will be fine.

With the previous mode with use of a tile - there is no conflict

It is necessary for me to return still stock pictures of icons which changed, there was no instruction yet. Or add other all custom icons - i have many variants..
[Android General] AbrahamGC:
Ooops, updated the ZIP, download again and u will see the icons.

There is too icons for reboot/shutdown/emergencymode but they are as stock so I dont added instructions for it.
[Android General] a.raul:
Los iconos
[Android General] wlryss:
Now everything is fine.
[Android General] Azazel6002:
I need some help with Service.jar part. Want put this on my Tab S4 my code is different. I'm new to doing mods and I know nothing about coding expect for what the guides tell me.

This part im confused with. add the following 3 line.

Inside the method look for this code and add the following three lines.

const-string/jumbo v2, "android.intent.action.DOCK_EVENT"

move-object/from16 v0, v19

invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

######

const-string/jumbo v2, "com.mods.grx.SERVICES"

move-object/from16 v0, v19

invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

######

move-object/from16 v0, p0

iget-object v2, v0, Lcom/android/server/policy/PhoneWindowManager;->mDockReceiver:Landroid/content/BroadcastReceiver;

move-object/from16 v0, p1

Here is the code from Tab S4

const-string/jumbo v3, "android.intent.action.DOCK_EVENT"

invoke-virtual {v13, v3}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 2439
move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/server/policy/PhoneWindowManager;->mDockReceiver:Landroid/content/BroadcastReceiver;

move-object/from16 v0, p1

invoke-virtual {v0, v3, v13}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

move-result-object v14

.line 2440
.local v14, "intent":Landroid/content/Intent;
if-eqz v14, :cond_3

.line 2442
const-string/jumbo v3, "android.intent.extra.DOCK_STATE"

.line 2443
const/4 v4, 0x0

.line 2442
invoke-virtual {v14, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

move-result v3

move-object/from16 v0, p0

iput v3, v0, Lcom/android/server/policy/PhoneWindowManager;->mDockMode:I

In .method public constructor <init>()V

I don't have this line

iput-object v0, p0, Lcom/android/server/policy/PhoneWindowManager;->mScreenshotTimeout:Ljava/lang/Runnable;

Do I need to have device connected to pc with logcat going?
[Android General] gia01:
How to lineage base N can add native blur sir
[Android General] JesseBenson:
Testing this :) , Will edit out the post and tell how everything goes.A huge thanks for this

have a good day!

Edit:

It worked thanks a million. I hope you can add toggles to your advanced menu pie version aswell
[Android General] JesseBenson:
I can only see mobile data toggle added other ones aint there i didnt missed anything from guide
[Android General] AbrahamGC:
Post here both globalactions folders from SystemUI
[Android General] JesseBenson:
here
[Android General] AbrahamGC:
You only have copied globalactions from framework.

But smalis are not renamed to use new path... so check the guide again

All lines with com/samsung/android/globalactions should be com/samsung/android/globalactionsdlx
[Android General] JesseBenson:
globalactionsdlx and replace all after i have opened those smalis ? And same applies for the smalis in guide im editing right? Is it possible to only add recovery? I only need recovery + Is it possible to remove that ugly emergency mode toggle?
[Android General] AbrahamGC:
Is just open notepad++, sublime or any other text editor... and do a replace function in whole SystemUI...

Once you got it working then we'll see how to remove items.
[Android General] JesseBenson:
Alrighty ill tell in morning thanks :)
[Android General] JesseBenson:
YEAH!! It worked thanks a million toook some time but it was worth of :) lets start with removing some of those toggles?
[Android General] an-_-dro:
which one of those codes indicate dim level?

i want to remove permanently this dim effect but without RomControl.
[Android General] djb77:
This is the info I got from [MENTION=7393522]AbrahamGC[/MENTION] regarding how to remove buttons that you don't want:

look on DefaultActionViewModelFactory

if you want to remove screenshot, search const-string v14, "screenshot"

change the value to screenshot_null
[Android General] JesseBenson:
Thanks i was able to remove unwanted ones now i have recovery download power reboot and mobile data im unable to find mobile data one, I did removed emergency mode also it looks ugly lol, And so i have 4 toggles Excluding mobile data, these toggles are in square form is there a way i can make them vertical 4 in staright line

---------- Post added at 09:46 AM ---------- Previous post was at 09:14 AM ----------

btw [MENTION=7393522]AbrahamGC[/MENTION] sorry if i disturbed by tagging, Can you make guide for mobile and wifi icons on sb left right toggles for 6thgear rc or if can link me to the existing one which work will be cool and thanks
[Android General] wlryss:
Not really it was pleasant to me how works Restart SysUI and Quick Reboot from Power Menu therefore I made so for these two points :

In SystemUI/smali_classes2/com/samsung/android/globalactionsdlx/presentation/viewmodel/DefaultActionViewModelFactory.smali

.method public createActionViewModel(Lcom/samsung/android/globalactionsdlx/presentation/SecGlobalActions;Ljava/lang/String;)Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/ActionViewModel;

I added two if-eq v14, v11, :cond_300 and if-eq v14, v11, :cond_400 that these two points weren't displayed in Power Menu

:cond_200
const-string v14, "quickreboot"

if-ne v14, v11, :cond_300

if-eq v14, v11, :cond_300 ### From me - The Quick Reboot won't be displayed in Power Menu
#### quickreboot
new-instance v15, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/QuickRebootActionViewModel;

:cond_300
const-string v14, "rebootui"

if-ne v14, v11, :cond_400

if-eq v14, v11, :cond_400 ### From me - Restart SysUI won't be displayed in Power Menu
#### rebootui
new-instance v15, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/RebootUIActionViewModel;

It is also possible to make with remaining additional points in Power Menu
[Android General] JesseBenson:
Thanks but the thing i want to know is how can we hide the mobile data toggle + Make toggles in one line instead of 2
[Android General] wlryss:
To hide the mobile data toggle

SystemUI/smali/com/android/systemui/globalactions/presentation/features/GlobalActionFeatures.smali

Change const/4 v0, 0x1 to const/4 v0, 0x0

.method private isDataModeSupported()Z
.locals 1

const/4 v0, 0x1

return v0
.end method

Make toggles in one line instead of 2 - with it it is more difficult. Probably it is necessary to change in output parameters much
[Android General] JesseBenson:
Thanks wanted this ✌ But sadly cant make them in one line i have three toggles only power reboot recovery
[Android General] wlryss:
Can you lay out a screenshot?
[Android General] thereassaad:
Ok guys here we go again , after very long time, i didn't post here ( XDA ) anything due to some issues . Anyway here we go ,

This is NOTIFICATIONS TEXTS COLORED MODS it's now fully coloring thanks Samsung for making it in SytemUI.apk so just enjoy it ,,

Edit:: if u got this mod from another forum so u need to updated it with this new one as i fixed some texts that's doesn't colored on previous released GUIDE ..

Edit 2 :: also added the icon color with switch key ???

Link ::

https://mega.nz/#!vZQgGCIY!BJ-B56RVITuDeTlBtvtn7_M0NrFr20dADc1GfrQweUw

Screenshots:::
[Android General] JesseBenson:
Here ill hide data soon away from pc
[Android General] thereassaad:
I qouted the post just to post this screenshot where the fixed is done , sorry there no permissions for me to upload screenshots in my posts it's xda permissions & issues ..
[Android General] a.raul:
Welcome, again, to the jungle ... :good:
[Android General] Qayyum Yusof:
dimens find scrim_behind_alpha change it to 0.0
[Android General] an-_-dro:
thanks ++.

will try that... :highfive:
[Android General] Albe96:
Oops.Didn't saw.. ?

---------- Post added at 11:36 AM ---------- Previous post was at 11:29 AM ----------

This One Should Go To The OP-->https://xdaforums.com/showpost.php?p=76409989&postcount=70
[Android General] folusmile:
Does it mean u set back the date before flashed oreo stock?
[Android General] dani010:
i did every thing and this not work ,i set the date to 8 days earlier after that i restart then the date comes back to real date and when i check for update noting happen , i test in my a5 2017 on CRD5 , thanks
[Android General] koolkunz:
This is supposed to allow me to use fingerprint after reboot rather than pin right?

This is not working for me on S7 Edge ERD5 Official Oreo.
[Android General] koolkunz:
ROM Control part is optional right ?

After doing all this. I should just replace the SystemUI apk in /system/priv-app/SystemUI/ folder ?

Or are there any other steps?

And I used APK Manager for decompiling and compiling..What method do you use and suggest?
[Android General] Albe96:
Yep.Replace and set permission.

and for these modification stuff,we all recommend you to use a pc with TickleMyAndroid application.
[Android General] koolkunz:
ok thanks :good: trying out this modding for the first time :p

---------- Post added at 01:34 AM ---------- Previous post was at 12:36 AM ----------

I have done all the steps but encountering an error during recompilation..

W: ERROR: 9-patch image C:\TickleMyAndroid\_WorkArea1\_working\SystemUI.apk\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.

I searched online and it says to fix the .9.png file but how to do that ? [MENTION=7334959]Albe96[/MENTION] ?
[Android General] Albe96:
will you mind reading it? :-p

Here I already posted guide to fix-->https://xdaforums.com/showpost.php?p=76361966&postcount=49
[Android General] koolkunz:
thanks for the fix...the apk compiled but its not working..when i replace the SystemUI.apk and reboot SystemUI does not work.. I dont get any lockscreen any wallpaper etc. cant open notifications or recent apps etc.

dont know what i am doing wrong :confused:
[Android General] Albe96:
explain what you've done!! What did you modify?

did you increased the locals by 2? and added the code in blue before return v0 like shown in guide?
[Android General] Albe96:
[MENTION=5262182]koolkunz[/MENTION] Sorry for the inconvenience.The guide is fixed now.Check the guide again!
[Android General] Dovanchuc7521:
What's guide?
[Android General] Albe96:
Unlock After Fingerprint Without Pin And Pattern
[Android General] Dovanchuc7521:
Ok, thank you
[Android General] koolkunz:
Yes I did all that...will try the updated guide :good:
[Android General] a.raul:
Good afternoon

Have you looked at the first post of the thread creator? I think not...

https://xdaforums.com/showpost.php?p=76259485&postcount=39

Saludos
[Android General] koolkunz:
got the fix already thanks :good:
[Android General] koolkunz:
still having issues...i think it has something to do with the rom im using...it is an odexed rom so I deodexed SystemUI using TMA.. Replaced the odexed apk using the resulting deodexed apk in /system/priv-app/SystemUI folder (permission rw-r-r) and deleted the oat folder in /system/priv-app/SystemUI.

But when I reboot I have again the problem of no lockscreen no wallpaper etc.

NOTE : I have not applied any mod..just simply tried to deodex SystemUI.. I will go ahead with modding once I fix this issue..

any help would be appreciated..
[Android General] JesseBenson:
Thanks for the hardwork i will test and reply tomorrow ??, Can you make guide to remap navbar buttons on pie? Like long press opens for recent button and such functions

But yeah really like the work u did thanks a million
[Android General] wlryss:
Additional screenshots
[Android General] sfofu:
After PIE cracks the signature, it still cannot be re-signed. Can anyone tell me what is the reason?
[Android General] edzamber:
Many thanks , working great !!!

If i want add Reboot ui is this correct ?

:cond_2

# if-ne v14, v11, :cond_3

move-object/from16 v5, p0

move-object/from16 v6, p1

const/4 v5, 0x0

const-string v6, "power_reboot_ui_show"

invoke-static {v6, v5}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

move-result v6

if-nez v6, :cond_ed

const-string v14, "rebootui"

if-eq v14, v11, :cond_3

:cond_ed

Edit :

Oupps... Answer is No [emoji23]

If you have a solution to toogle Reboot ui...
[Android General] wlryss:
Hi, the code must be:

return-object v1

:cond_300
move-object/from16 v5, p0 ### Start Displaying Restart SysUI

move-object/from16 v6, p1

const/4 v5, 0x0

const-string v6, "power_restartui_show" ### Key for Rom Control - or another as you want.

invoke-static {v6, v5}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

move-result v6

if-nez v6, :cond_ed

const-string v14, "rebootui"

if-eq v14, v11, :cond_400

:cond_ed ### End Displaying Restart SysUI
const-string v14, "rebootui"

if-ne v14, v11, :cond_400

#### rebootui
new-instance v15, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/RebootUIActionViewModel;

iget-object v3, v0, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/DefaultActionViewModelFactory;->mConditionChecker:Lcom/samsung/android/globalactionsdlx/util/ConditionChecker;

iget-object v4, v0, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/DefaultActionViewModelFactory;->mSAnalytics:Lcom/samsung/android/globalactionsdlx/util/SecGlobalActionsAnalytics;

For RomControl - use "power_restartui_show" in:

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Restart SystemUI" android:key="power_restartui_show" android:defaultValue="false" android:summaryOn="Show" android:summaryOff="Hide" />

This is without picture-icon for Restart SystemUI in Rom Control. If you wont add picture/icon to Rom Control - add picture-icon to RomControl/res/drawable-xxhdpi and add a line in such look:

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:icon="@drawable/name_of_icon" android:title="Restart SystemUI" android:key="power_restartui_show" android:defaultValue="false" android:summaryOn="Show" android:summaryOff="Hide" />

Unfortunately I have no such icon in a custom look

In attachment - all custom icons for Rom Control except Restart SysUI
[Android General] edzamber:
Thanks bro

I have remodded a little bit because :cond_400 and :cond_300 made errors of object non placed yet …

Here the goog one :)

return-object v1

:cond_2

move-object/from16 v5, p0 ### Start Displaying Restart SysUI

move-object/from16 v6, p1

const/4 v5, 0x0

const-string v6, "power_restartui_show" ### Key for Rom Control - or another as you want.

invoke-static {v6, v5}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

move-result v6

if-nez v6, :cond_ed

const-string v14, "rebootui"

if-eq v14, v11, :cond_3

:cond_ed ### End Displaying Restart SysUI
const-string v14, "rebootui"

if-ne v14, v11, :cond_3

#### rebootui

new-instance v15, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/RebootUIActionViewModel;

---------- Post added at 06:35 PM ---------- Previous post was at 06:35 PM ----------

Thanks bro

I have remodded a little bit because :cond_400 and :cond_300 made errors of object non placed yet …

Here the right one :)

return-object v1

:cond_2

move-object/from16 v5, p0 ### Start Displaying Restart SysUI

move-object/from16 v6, p1

const/4 v5, 0x0

const-string v6, "power_restartui_show" ### Key for Rom Control - or another as you want.

invoke-static {v6, v5}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

move-result v6

if-nez v6, :cond_ed

const-string v14, "rebootui"

if-eq v14, v11, :cond_3

:cond_ed ### End Displaying Restart SysUI
const-string v14, "rebootui"

if-ne v14, v11, :cond_3

#### rebootui

new-instance v15, Lcom/samsung/android/globalactionsdlx/presentation/viewmodel/RebootUIActionViewModel;
[Android General] wlryss:
Yes, of course. These :cond_400 and :cond_300 - from first guide. After compiling/recompiling of the SystemUI.apk the compilator makes other numbers..

The sample of the code was shown for an example