yashsingh1/xdaforums huggingface dataset:
[Android General] VICosPhi:
Thanks, this is great! However, it seems that modifying services.jar introduces UI lag. Is there any way to avoid the "microlag"or lag that gets introduced after you modify the services.jar file?
[Android General] Cheemaa:
Even the asset folder? I did it without the asset folder.

1.DECOMPILE systemui

2. Replace 9.png

3 recompile

4.move all the files except the ones PLus the assets folder from the recompiled apk to the original one.

5.replace apk, reboot,

6.systemui crashes . Black wallpaper, no lockscreen, no notification panel.......
[Android General] Carotix:
drag and drop from the recompiled systemui to original systemui :

res, resources ,classes /2 and assets if you added something
[Android General] ShaDisNX255:
You may also have done something wrong with your UI. In this scenario the best course of action would be to restart your UI on to the new one and take logs to see if something you edited is causing the UI not to boot correctly
[Android General] Carotix:
when I give permissions to a new app, it always closes and I have to reopen it ...

does anyone know how to avoid it?
[Android General] thereassaad:
Have u add something to platform.xml ?

Idk if this permissions or another but im sure it is something similar to this

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >

# if u add this just deleted it & u will be fine

<group gid="sdcard_rw" />

<group gid="media_rw" />
[Android General] Cheemaa:
Did nothing wrong with my ui..... I didn't add any mods. DECOMPILEd. Recompiled. Moved files . My original deodexed system UI works. If I move files from the original apk to the modded apk. The systemui works...... I am just making a rom. Can I give a link of tutorials I want on my systemui and you could do it for me and I could give u credits? Because I have wasted weeks on this problem. It doesn't seem to work. Maybe u could do something different....

---------- Post added at 09:38 PM ---------- Previous post was at 09:37 PM ----------

I did do that exactly
[Android General] ShaDisNX255:
PM me, I can try to help if possible.
[Android General] Carotix:
oohhh you are right my friend :good:

so i need to use the stock platform but does it works fine to write on external sdcard?

thanks a lot ;)
[Android General] mawxzz:
[MENTION=7393522]AbrahamGC[/MENTION]

Sorry for the dump question, but how exactly can i do the facebook share fix, kinda lost and idk the way or the files location to edit it, appreciate your help i advance :)
[Android General] Eleo:
Modifications are in services.jar. The same place where signature check is modded. Why dont you start by explaining what you have done so far? We can try help you better if we know what you have done already.
[Android General] mawxzz:
Im just new to this, so im trying to find out what applications do i need to open the services.jar to be able to get to PackageManagerService.smali so i can edit it

So im searching for guides online trying to figure it out
[Android General] Eleo:
Check OP (first page posts)

Many tutorials and programs are provided. Check those thread links to get informed.

Good luck.
[Android General] AbrahamGC:
I think the guide is clear, anyway, your question is about how to properly decompile/recompile the .jar, so my question is why you need to do this fix? if you don't have modded previously services.jar for skip signatures, is not needed, facebook works fine.

Well, as [MENTION=4598795]Eleo[/MENTION] said, read the OP, you will find tools for decompile jar/apks, how to edit them, resign (if needed), and push it to /system again... :good:
[Android General] IzaacJ:
Hello. Been at this for quite a while. Running latest stock Samsung Galaxy S7 edge with Magisk, and I REALLY want to enable the navbar, but qemu.hw.mainkeys=0 does not work. I guess there's some apk or jar that has to be modded, but which and how?

I've got the whole system image extracted but that as far as I've gotten -_- Any guidance?
[Android General] Carotix:
you need to edit the framewrok-res.apk for sure ..

and change to this <bool name="config_showNavigationBar">true</bool>
[Android General] studywes:
Hi,

Is it possible to Deodex + decompile + recompile directly on my Note 9?

Thx for help

---------- Post added at 02:14 PM ---------- Previous post was at 02:13 PM ----------

Hi,

Is it possible to Deodex + decompile + recompile directly on my Note 9?

Thx for help
[Android General] Eleo:
For decompile/recompile you can use apktool X apk by AndroBlack on his androidfilehost folder, just search it and it will pop up (I use it on my note3 and it works very well). Deodex is not possible from android afaik.
[Android General] DAvinash97:
Thanks for the mod Got screen Recorder and it is working, only issue screen Capture is not there. Can you Tell me how to get it. THANKS IN ADVANCE
[Android General] DAvinash97:
Will this only work for Arm64 Devices?

And not for Arm devices?
[Android General] DAvinash97:
Can't able to recompile apk with the 3rd method, the error is "string types not allowed (at 'id' with value '+@id/left_signal')"
[Android General] Dovanchuc7521:
Delete + and recompare. Before it add left_signal to ids.xml

Gửi từ SM-G955F của tôi bằng cách sử dụng Tapatalk
[Android General] DAvinash97:
Sorry Didnt get you, can you be more specific
[Android General] Dovanchuc7521:
Add this to

notification_icon_area.xml

<LinearLayout android:textColor="#ffffffff" android:orientation="horizontal" android:id="@id/left_signal" android:paddingTop="5.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="0.0dip" android:paddingEnd="0.0dip" android:layout_marginStart="0.0dip" android:layout_marginEnd="-1.0dip" android:layout_alignParentStart="true">
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_margin_start" layout="@layout/signal_cluster_view" />
</LinearLayout>

and this in

res/values/ids.xml

<item type="id" name="left_signal">false</item>
[Android General] Carotix:
[MENTION=6377149]yash92duster[/MENTION]

hi my friend ,

can you add this post in IncallUI section in your first post?

thanks :)
[Android General] AbrahamGC:
Fixed the guide.

No need to declare it on ids, just follow as it's now (@+id) and done... :good:
[Android General] DAvinash97:
Thanks will try and tell you

---------- Post added at 10:54 AM ---------- Previous post was at 10:49 AM ----------

Ok i will try
[Android General] yash92duster:
Today Friday

Dry day

I update thread every once in two weeks:cool:

Good day mate

Edit: Thread Updated
[Android General] ANDROIDXFOREVER:
Genius [emoji106][emoji106]

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] yash92duster:
You have Samsung device?

You voted as you don't have one :eek:

And never tag whole post

Seeing post in xda labs shows as if new mod is posted

:cool:
[Android General] ANDROIDXFOREVER:
can not you read? sm-n950f idont like sad Rom sorry
[Android General] yash92duster:
this isnt a rom thread lol

its general mods thread for sharing tweaks between moders/devs/themers/learners
[Android General] folusmile:
I still don't understand why your status has not changed to either Recognised Contributor / developer.. Confusing
[Android General] thereassaad:
Ask XDA moderator or ADMINS , as we are a Samsung modders , modification finders not allowed to us to be XDA RD because we aren't AOSP Developers or kernel DEVS .....
[Android General] yash92duster:
Ignore and move on

Or better I say

I work on non development roms

Samsung roms with just some changes, means nothing great.

its just moving files from one path to another

I will apply if you want to see my name in green ??

What we know and whats allowed here, we will share here

And users can learn and enjoy

Stay to topic

No need OT here

Good day
[Android General] folusmile:
Hmmmmmm. Too bad
[Android General] anwar amu:
Anyone know how to modd disable power option in lockscreen? Thanks
[Android General] Dovanchuc7521:
https://xdaforums.com/showthread.php?p=77786107

Gửi từ SM-N950F của tôi bằng cách sử dụng Tapatalk
[Android General] wowanbelousov:
Good day!

Please indicate what could be the problem

the instruction does not work manual : Fully spoof signature check (doesn't show in Lucky Patcher)

Android 8.1.1 Samsung J730FM

Only the method worked shows - Optional for installing Old App Versions Over Newer
[Android General] Josevega:
Is your system deodexed ? , It won't work on odexed systems
[Android General] Xenos7:
Can someone show me where to edit and change camera shutter speed from 10 to let's say 30.

You just need to edit the .apk right? No such options in /system/cameradata or is there?
[Android General] Er. Aditya:
hi sir if i try to boot without flashing magisk i dont get past samsung logo
[Android General] AbrahamGC:
This is not longer working. Deodex ROM needs permissive kernel or sepolicy patched for prevent lag, but flash Magisk before dalvik-cache creation, will end in a lagged system. That's why 90% of the ROMs recommend to reboot after first boot.

Anyway, something is wrong in ur boot.img if is not booting without Magisk...

Don't replace that dex-opt lines anymore, doesn't make sense :good:
[Android General] ShaDisNX255:
Well dang :eek:

I replaced them and it booted fine for me lol

Even on an S9 ported firmware

BUT

I used strictly SuperSU for root

Also patched SE Policy with Super R's kitchen, so maybe it worked because of that and had nothing to do with dex-opt lines :laugh:
[Android General] AbrahamGC:
It doesn't fix anything, but doesn't create other bugs, simply if it's useless, better to keep the lines as they come ;)
[Android General] Er. Aditya:
before dalvik creation ? after first boot or after first reboot after first boot

sir boot.img was extracted with superr kitchen , completly untouched
[Android General] ShaDisNX255:
Something interesting happened

I also tried to run deodex without flashing Magisk and it doesn't even get to the boot animation, it just stops at the boot logo and bootloops

BUT

This only happened when I tried running software that was not on my phone

So let me try to explain

I had firmware I flashed through Odin, which was my original phone carrier's firmware

After rooting and stuffs, I dedoexed and did everything required by Super R's kitchen. Wiped and flashed deodex firmware

Booted fine

Can boot without root after wipes

Can boot with SuperSU after wipes

Can boot with Magisk (and reboot after initial boot to fix lag) after wipes

However, when I download newer firmware and/or firmware from another carrier different than mine and WITHOUT flashing through Odin, I try to flash via TWRP after wipes as well and it will not boot as I stated before it doesn't even get to the bootanimation

Can't boot without root after wipes

Can't boot with SuperSU root method after wipes

CAN boot with Magisk root method after wipes (needs the reboot to get rid of lag)

Is there something in Magisk that makes it work and allows it to boot? :confused:

Keep in mind, when I flash through TWRP I only flash the /system and /vendor partitions
[Android General] ShaDisNX255:
Sorry, ignore this message. I am dumb lol.

This worked fine
[Android General] VICosPhi:
Does anyone know why after modifying services.jar introduces UI lag? I tried the dual sim mod in this thread and even though it works, the phone acts kind of slow to respond when you open apps or unlock using fingerprint. If you restore original services.jar, it works snappy and fast.

Any ideas??
[Android General] bigTINY779:
Can someone point me in the direction of dual status bar mod? Thanks
[Android General] :
Hello

There is this http://4pda.ru/forum/index.php?showtopic=540887&st=1140#entry49464658

Good luck !! :good:
[Android General] hemadrishire:
Any one help me

Hai sir I'm using A720F INS CRH1 oreo Stock firmware deodexed and hades kernel 1.6. but signature verification not removed. Iam trying to remove signature in core-oj.jar smalis bun not working, there is some extra code is like line numbers and l/java/security, how to remove line numbers and security lines. Please help me.
[Android General] enesuzun2002:
This mod doesn't work on HWC1 devices, it results on broken HWC and sometimes panics the kernel. Better only use it on HWC2 devices, exynos7420 failed it because of HWC1
[Android General] yash92duster:
Thread Title and logo updated

Later I'll Post Some Pie MODS

​
[Android General] yash92duster:
Signature Check Disable For Pie:​

Locate to

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

Search for

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

Replace the entire .method with the following code:

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

const/4 v0, 0x0

return v0
.end method

This Guide is Optimized from

https://xdaforums.com/showpost.php?p=66207890&postcount=557

by edzamber, tdunham, one_love_420 and CNexus
[Android General] yash92duster:
* How to Modify framework-res.apk For Pie:​

I use TickleMyAndroid - v15.1.0 For PIE ANd it works perfectly, later versions gave issue for res apk

Locate to

Res/values/Styles.xml

Delete The Following Duplicate Entries

framework-res.apk\res\values\styles.xml:2509: error: Resource entry Theme.DeviceDefault already has bag item dropdownListPreferredItemHeight.

framework-res.apk\res\values\styles.xml:2508: Originally defined here.

<item name="dropdownListPreferredItemHeight">@dimen/tw_dropdown_list_item_height</item>

framework-res.apk\res\values\styles.xml:1250: error: Resource entry Theme.Holo already has bag item textEditSuggestionItemLayout.

framework-res.apk\res\values\styles.xml:1249: Originally defined here.

<item name="textEditSuggestionItemLayout">@layout/text_edit_suggestion_item</item>

framework-res.apk\res\values\styles.xml:1326: error: Resource entry Theme.Holo already has bag item preferenceFrameLayoutStyle.

framework-res.apk\res\values\styles.xml:1325: Originally defined here.

<item name="preferenceFrameLayoutStyle">@style/Widget.Holo.PreferenceFrameLayout</item>

framework-res.apk\res\values\styles.xml:1335: error: Resource entry Theme.Holo already has bag item textEditSuggestionContainerLayout.

framework-res.apk\res\values\styles.xml:1334: Originally defined here.

<item name="textEditSuggestionContainerLayout">@layout/text_edit_suggestion_container</item>

framework-res.apk\res\values\styles.xml:1337: error: Resource entry Theme.Holo already has bag item textEditSuggestionHighlightStyle.

framework-res.apk\res\values\styles.xml:1336: Originally defined here.

<item name="textEditSuggestionHighlightStyle">@style/TextAppearance.Holo.SuggestionHighlight</item>

framework-res.apk\res\values\styles.xml:3707: error: Resource entry TextAppearance.DeviceDefault.Widget.ActionBar.Title already has bag item fontFamily.

framework-res.apk\res\values\styles.xml:3706: Originally defined here.

<style name="TextAppearance.DeviceDefault.Widget.ActionBar.Title" parent="@style/TextAppearance.Material.Widget.ActionBar.Title">

<item name="textSize">@dimen/sem_text_size_title_material_toolbar</item>

<item name="textStyle">normal</item>

<item name="textColor">@color/tw_text_color_title_material_toolbar_dark</item>

<item name="textAllCaps">false</item>

<item name="fontFamily">@string/config_headlineFontFamilyMedium</item>

<item name="fontFamily">sec-roboto-light</item> << - Delete This Line - >>

</style>

framework-res.apk\res\values\styles.xml:3992: error: Resource entry TextAppearance.Material.Notification.Title already has bag item fontFamily.

framework-res.apk\res\values\styles.xml:3991: Originally defined here.

<style name="TextAppearance.Material.Notification.Title" parent="@style/TextAppearance.Material.Notification">

<item name="textSize">@dimen/notification_title_text_size</item>

<item name="textColor">@color/notification_primary_text_color_light</item>

<item name="fontFamily">sans-serif-medium</item>

<item name="fontFamily">sec-roboto-regular</item> << - Delete This Line - >>

</style>

Guide by yash92duster
[Android General] yash92duster:
Guide To Change Navigation Bar Height Oreo/Pie:​

You can change the Nav Bar height in S8/N8/S9/N9

Locate to

framework-res.apk\res\values\dimens.xml

Search for Following Strings

Stock values For S8/N8/S9/N9:

<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height_car_mode">96.0dip</dimen>
<dimen name="navigation_bar_height_landscape">48.0dip</dimen>
<dimen name="navigation_bar_height_landscape_car_mode">96.0dip</dimen>
<dimen name="navigation_bar_height_with_mobile_keyboard">95.0px</dimen>

Change it to what ever height you want:

For Example - 25dpi:

Use The Following:

<dimen name="navigation_bar_height">25.0dip</dimen>
<dimen name="navigation_bar_height_car_mode">25.0dip</dimen>
<dimen name="navigation_bar_height_landscape">25.0dip</dimen>
<dimen name="navigation_bar_height_landscape_car_mode">25.0dip</dimen>
<dimen name="navigation_bar_height_with_mobile_keyboard">25.0px</dimen>

For Example - 40dpi:

Use The Following:

<dimen name="navigation_bar_height">40.0dip</dimen>
<dimen name="navigation_bar_height_car_mode">40.0dip</dimen>
<dimen name="navigation_bar_height_landscape">40.0dip</dimen>
<dimen name="navigation_bar_height_landscape_car_mode">40.0dip</dimen>
<dimen name="navigation_bar_height_with_mobile_keyboard">40.0px</dimen>

Guide by yash92duster
[Android General] yash92duster:
Guide To Permanently Disable Flag Secure in Pie:​

This MOD enable Screenshots and Screen Record into Secure apps

Locate to

services.jar\smali_classes2\com\android\server\wm\WindowManagerService.smali

From

.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 3

iget-object v0, p1, Lcom/android/server/wm/WindowState;->mAttrs:Landroid/view/WindowManager$LayoutParams;

iget v0, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

and-int/lit16 v0, v0, 0x2000

const/4 v1, 0x1

if-eqz v0, :cond_0

return v1

:cond_0
invoke-static {}, Landroid/app/admin/DevicePolicyCache;->getInstance()Landroid/app/admin/DevicePolicyCache;

move-result-object v0

iget v2, p1, Lcom/android/server/wm/WindowState;->mOwnerUid:I

invoke-static {v2}, Landroid/os/UserHandle;->getUserId(I)I

move-result v2

invoke-virtual {v0, v2}, Landroid/app/admin/DevicePolicyCache;->getScreenCaptureDisabled(I)Z

move-result v0

if-eqz v0, :cond_1

return v1

:cond_1
iget-object v0, p0, Lcom/android/server/wm/WindowManagerService;->mSamsungWindowManager:Lcom/android/server/wm/SamsungWindowManagerService;

invoke-virtual {v0, p1}, Lcom/android/server/wm/SamsungWindowManagerService;->isScreenCaptureDisabledLocked(Lcom/android/server/wm/WindowState;)Z

move-result v0

if-eqz v0, :cond_2

return v1

:cond_2
const/4 v0, 0x0

return v0
.end method

To

.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 1

const/4 v0, 0x0

return v0
.end method

This Guide is from

https://xdaforums.com/showpost.php?p=73830449&postcount=234

Thanks to edzamber and fOmey
[Android General] yash92duster:
Guide to Remove High Volume Warning in Pie:

Decompile SystemUI.apk

Locate to

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

Find the method and replace it fully with new method

From

.method private onShowSafetyWarningW(I)V
.locals 1

iget-boolean v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mShowSafetyWarning:Z

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/android/systemui/volume/VolumeDialogControllerImpl;->mCallbacks:Lcom/android/systemui/volume/VolumeDialogControllerImpl$C;

invoke-virtual {v0, p1}, Lcom/android/systemui/volume/VolumeDialogControllerImpl$C;->onShowSafetyWarning(I)V

:cond_0
return-void
.end method

To

.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

This Guide is optimized from

https://xdaforums.com/showpost.php?p=70176615&postcount=46

Thanks to Grouxho
[Android General] yash92duster:
Permanently Disable High Level Brightness Popup in Pie:​

Locate to

SystemUI/smali/com/android/systemui/settings/ToggleSliderView.smali

Search for

.method public updateStrainAlertDialog(I)V

Make The Following Changes:

.method public setEyeStrainDialogEnabled(I)V
.locals 1

if-nez p1, :cond_0

const/4 v0, 0x1 [COLOR="Red"]<< -- Change This Line To const/4 v0, 0x0 -- >>[/COLOR]

goto :goto_0

:cond_0
const/4 v0, 0x0

:goto_0
iput-boolean v0, p0, Lcom/android/systemui/settings/ToggleSliderView;->mShowEyeStrainDialog:Z

return-void
.end method

Guide by yash92duster
[Android General] Techvir:
[MENTION=6377149]yash92duster[/MENTION] what is the best tool for editing smali in pie?
[Android General] Eleo:
Tools are provided on first page.

Smali on mm, nougat, oreo and pie are not different. You just need a code editor for all (not any text editor like MS Notepad/Wordpad/Word)

Search and find what works on your OS and which of them YOU like the best. There is (as always it is the case) no ONE "best" for everybody
[Android General] TheDevelopper:
Thanks, that's great