yashsingh1/xdaforums huggingface dataset:
[Android General] Cheemaa:
i have followed every guide on how to decompile systemui and recompile it. i have messaged so many people and used their methods and when i boot , all i get is no lockscreen, black background but all my apps are there, no notification panel.

https://ufile.io/qtdjk

i have included systemui(deodexed) and framework-res(odexed) in the zip. if you can decompile systemui and recompile again and upload it and send me the link. i will tell you if it works or not. thank you. please someone help me, i am in middle of making a rom for a device that doesn't have that much development and do really want to help. thanks..

---------- Post added at 07:57 AM ---------- Previous post was at 07:57 AM ----------

i have followed every guide on how to decompile systemui and recompile it. i have messaged so many people and used their methods and when i boot , all i get is no lockscreen, black background but all my apps are there, no notification panel.

https://ufile.io/qtdjk

i have included systemui(deodexed) and framework-res(odexed) in the zip. if you can decompile systemui and recompile again and upload it and send me the link. i will tell you if it works or not. thank you. please someone help me, i am in middle of making a rom for a device that doesn't have that much development and do really want to help. thanks..
[Android General] Albe96:
It's better to deodex the full rom first and then modify it... also seeing no lockscreen why didn't you take logcat and check what the problem is...
[Android General] Cheemaa:
The reason I can't deodex the whole system is because my phone has a locked bootloader and you can only deodex app and priv-app. Not framework.

---------- Post added at 08:53 AM ---------- Previous post was at 08:52 AM ----------

And it doesn't have root either. You can only modify the AP for Odin and add mods and other tweaks. Nothing major.
[Android General] Albe96:
Locked Bootloader? Unlock it.Where's the problem?
[Android General] Cheemaa:
LMFAO. Samsung Galaxy s8 Snapdragon varient can't be unlocked bro.

---------- Post added at 09:11 AM ---------- Previous post was at 09:05 AM ----------

There is no problem using deodexed systemui the problem is when I DECOMPILE and recompile. Then the background is black and no lock screen....
[Android General] Albe96:
Oh Snap! Snapdragon.But why... You should take logcat
[Android General] Cheemaa:
Sorry but how would I get the logcat...
[Android General] yash92duster:
Read post 1 again and tell me what you don't find in it
[Android General] Cheemaa:
Sir, I have read post 1 already about 20 times, the method that is listed on there is unfortunately not working for me and I have personally contacted other devs with different methods and they aren't working so I was just seeing if someone had the same problem as me and could help me out. Other than that, I'll learn how to get the logcat. I'm sorry about that
[Android General] yash92duster:
Give complete info

Device

Firmware build used

Odex or deodex

Tools used to extract files

Tools used to edit your apks/jars

Logs

And don't upload zips for us to check, give logs only

You must only fix it, we will give tips and try help you with logs you provide.
[Android General] PitOnthel:
What is wrong with this and what is missing sir...?

With Tickle My Android 15.5.0.1

(tinyurl.com\ticklemyandroid)

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

Installed Framework File(s):

framework-res.apk [1.apk]

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

I: Using Apktool 2.3.2

I: Smaling smali folder into classes.dex...

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 0xa

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: 65592

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

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

Recompile Not Successful!

Press any key to continue . . .

Please help me... :o

[BOLD] SOLVED [/BOLD] by [MENTION=5829833]a.raul[/MENTION]
[Android General] a.raul:
That problem is because you have added new smalis or some modification within the smali route.

My own solution to this, and there are other more possible, is:

You go to the folder smali / com /

and move the caverock folder to

smali_classes2 / com /
[Android General] wlryss:
Practically all errors connected to "Unsigned short value out of range: 65592", are caused by the shortage of the place in smali.

It is possible to move for example the folder smali/android to smali_classes2 (or other folder or smali) and everything will compile..

Or to create the smali_classes3 folder and all added to place everything there (if there is smali_classes2 and there isn't enough place all the same ).
[Android General] PitOnthel:
Ok

Will be test again, and i'll report again if it is successful or not sir...
[Android General] PitOnthel:
Solved for recompile sir :good:

but is there no problem if I move the file into that smali_classes2

because I installed a real network but my statusbar disappeared :laugh:

or maybe something went wrong when I installed the guide :victory:
[Android General] Recif2:
Hello,

Can't find /com in the directory (ES explorer), do I have to root the phone? If yes any tuto to do this? Thanks.

---------- Post added at 02:36 PM ---------- Previous post was at 02:34 PM ----------

Hello,

Can't find /com in the directory (ES explorer), do I have to root the phone? If yes any tuto to do this? Thanks.
[Android General] Eleo:
Have you decompiled apk? If you havebt or you dont know what it is, please go to first post of thread.
[Android General] Recif2:
I've done nothing for now, I can't fiond "decompile APK" on the first page... I can't find the file services.jar
[Android General] Eleo:
If you are new to modding I advise you to search in web and read about it.

I think this concerns to you:
[Android General] Recif2:
Ok for that, I just want to know if we need to root the phone and where the file is, the other stuff I can manage.
[Android General] ShaDisNX255:
Hi,

This is not something you can find by simply rooting and looking through your phone.

You're going to need to learn to decompile things like services.jar

But for that, you need to deodex your services.jar

So for starters, I would look up if you are using a deodexed ROM (if it's stock, it is most likely odexed)

If you are on a odexed ROM you need to:

1) Deodex your framework folder (google search)

2) Learn how to decompile services.jar (found in your /system/framework folder)

3) Follow the tutorial, the /com folder should be located in one of your smali folder like so: services.jar.out/smali/com... etc...)

4) Recompile and push to system/framework

Hope this helps
[Android General] josephpatrick:
if i do not need rc control, is this line sufficient

<com.android.keyguard.nextalarm.GetNextAlarmTimeText android:id="@id/next_alarm_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sec-roboto-light" style="@style/keyguard_text_shadow" />
[Android General] inspired55:
I got it to work by just deleting the android I'd [MENTION=4652060]next alarm toggle[/MENTION] line. You still need the lines before so it is positioned correctly.
[Android General] Recif2:
Hello,

Thanks for answer. I just bought a brand new note 9 N960F/DS, so I suppose it is odexed?

Just need to know if I need to root the phone? Because I really want to avoid that...

Thanks
[Android General] josephpatrick:
the next alarm toggle line starts with LinearLayout, is this the line you deleted. can you please share the exact code that you finally used.

<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:id="@id/next_alarm_toggle" android:paddingBottom="20.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">

<com.android.keyguard.nextalarm.GetNextAlarmTimeText android:id="@id/next_alarm_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sec-roboto-light" style="@style/keyguard_text_shadow" />

</LinearLayout>
[Android General] ShaDisNX255:
Yes, if you're going to apply any of these MODs, root is mandatory, as you cannot access the /system folder without root, as far as I know (maybe there are new methods, idk)
[Android General] Recif2:
Ok. Any chance there will be a possibility to break this rule in the future without rooting? I don't want to root my phone... :(

Thanks
[Android General] alibaba241278:
Hello !

You can guide me the steps and give me some tools to be able to decompile, edit and recompile services.jar is not. I am an amateur. Thank you !
[Android General] djb77:
Sorry mate, but this is the wrong place to ask that. This thread is for guides, not teaching people how to compile / decompile files.

You will see this mentioned in the Original Post at the top of this thread.
[Android General] PitOnthel:
Hello everyone, does anyone have a guide about AOD touch for oreo..? :o
[Android General] josephpatrick:
I did this for Nougat and it works but unable to get it at the right place...there is an overlap since i tried adding 2 lines.....i would like to move it either a little up or towards the bottom as your screenshot
[Android General] Carotix:
i need to see your layout
[Android General] nikkali25:
Is it possible to add floating messaginv in oreo?seems i cant see omc/csc in system
[Android General] josephpatrick:
i tried using the value of 20 but it was not in the right place.

I just now tried the value of 50 and it moved up close to the notifications

<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:paddingBottom="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">

<com.android.keyguard.nextalarm.GetNextAlarmTimeText android:id="@id/next_alarm_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sec-roboto-light" style="@style/keyguard_text_shadow" />

</LinearLayout>

Strangely it is not showing up in the center.

I tried originally with bottom|center and then tried only center.
[Android General] Carotix:
i can't download your shared file ... but it seems to be right

did you use a png with 1 pixel size ? i don't see the right icon

edit: try these lines

<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="24.0dip">
<com.android.keyguard.nextalarm.GetNextAlarmTimeText android:orientation="vertical" android:id="@id/next_alarm_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="false" android:shadowColor="#7f000000" android:fontFamily="sec-roboto-light" style="@style/keyguard_text_shadow" />
</LinearLayout>
[Android General] josephpatrick:
the png file was the right one but i was putting it in drawable folder, now trying in "drawable-xxhdpi-v4".

will also check the layout that you share once this above test is complete.

thank you for checking
[Android General] Carotix:
doesn't need to change drawable folder ... you need to match the right id in the smali ....
[Android General] josephpatrick:
the id was incorrect, you are right

changed it now but would that impact the positioning

---------- Post added at 07:29 PM ---------- Previous post was at 07:23 PM ----------

that reference was the culprit, it is now in the right place...thank you so much...not sure how i missed changed it
[Android General] sfofu:
Can you upload screenshots?
[Android General] Cheemaa:
Of what? TMA?
[Android General] yash92duster:
[MENTION=9500040]Cheemaa[/MENTION]

Did you Disable signature in rom?
[Android General] Cheemaa:
What do you mean? BTW I'm running stock rom since my bootloader is locked and can't be unlocked. I can only flash a custom system.img and tar it up and flash it through Odin. But what do you mean disable signature?
[Android General] yash92duster:
I will rename thread for less confusions

I meant signature in services jar

Disable it and UI will work
[Android General] Cheemaa:
Sorry but how to disable signature in services.jar?
[Android General] yash92duster:
Post 1 has guide for signature disable

Also i updated thread title and notes in post 1

Good day
[Android General] Cheemaa:
Thank you. So I just rename the .9.png to .PNG and recompile correct? Do I have to replace the res,Dex files, and resources from original , or not?

---------- Post added at 04:37 AM ---------- Previous post was at 04:12 AM ----------

Do 100% have to do this or is there a way around this because I'm pretty sure I can't deodex firmware files without a custom boot.img and my bootloader is locked.. can you confirm this please.
[Android General] Cheemaa:
Sorry for the confusion above. Turns out I am able to deodex services.jar. can you tell me the corresponding files I have to delete in the oat folder? I found 3 files. Can you tell me the file names so I can delete them successfully ?
[Android General] pink01:
i need guide screencapture and scrollingcapture
[Android General] Cheemaa:
1.Deodexed services.jar and disabled signature check

2.replaced servicecs.jar in twrp file manager and deleted the odex,vdex, and art files for services.jar in oat/arm64

3.rebooted phone and everything is fine

4. deodexed systemui using TOAD and replaced in twrp file manager and deleted odex files

5. reboot phone, everything is fine

6. decompiled systemui(deodexed) using tickle my android (apktool 2.3.4) and replaced the .9.png

7.recompiled systemui using original signature

8. replaced systemui in twrp file manger

9.reboot, no lockscreen, no notification panel, black wallpaper, but i am able to see all the apps

10. took the recompiled systemui and replaced res, resources, and the dex files from the original deodexed systemui.

11. replaced the systemui with the new one in twrp file manager

12. reboot, SUCCESS...... buttttt all the mods i add are not there. is it because i replaced the res, dex, and resources files? should i now decompile the new working systemui and add mods and then recompile and replace it again without replacing the res, dex files , and resources?

thank you yash. i hope my instructions above helped someone.
[Android General] ropavlenko1977@gmail.ru:
Hello. I just wonder if someone have instruction to change different color of carrier's icons. It would be great if someone halp me with that. Regards
[Android General] DAvinash97:
Sir where to add those line in systemui
[Android General] Eleo:
It is mentioned inside text:

StatusBar.smali
[Android General] ragassagar:
How can i fix GPS by modding Framework-res.apk?
[Android General] DAvinash97:
I already done sir but it is not working,does it need any toggle?
[Android General] Eleo:
Do not just copy paste all texts. Read what lines say. The grx toggle is written on line shown below, but you can also out rc one instead if you have it.
[Android General] Cheemaa:
can someone please help me on this situation......
[Android General] ShaDisNX255:
I usually replacey the res folder, classes.dex and resources.arsc from the stock SystemUI with the modded SystemUI's using something like Winrar.

It's been working for me lol
[Android General] ANDROIDXFOREVER:
[emoji44]

Inviato dal mio iPhone utilizzando Tapatalk
[Android General] Xenos7:
Does anyone know how to increase camera shutter speed from 10?
[Android General] Cheemaa:
Move ONLY the res folder, classes.dex file, resources.arsc file. From MODDED FILE to the stock file? Or from stock to modded file. And when I replace res folder, classes.dex files(both of them), resources.arsc from the stock apk to the modded apk. All the mods I tried to do in the systemui are not there anymore.....
[Android General] ShaDisNX255:
You are doing it backwards

It is

Modded -> Stock
[Android General] Cheemaa:
What files do I move. Only the classes.dex the res folder and the resources file. What about the classes2.dex?

So basically. DECOMPILE. Replace 9.png file. Recompile. Move files to stock apk. Replace systemui in phone and reboot?
[Android General] ShaDisNX255:
Everything except the META-INF folder, SEC-INF folder and AndroidManifest.xml
[Android General] Cheemaa:
Thank you. Will report back n let u know if it works
[Android General] Josevega:
Just corrected , sorry its the first time i post in general, so really dont know how it works, thanks for pointing this out
[Android General] Slash360:
I tried, but not work for me. :(
[Android General] yash92duster:
Yo

Need to add by self :cool:

No flashable zips

Read post #1 again:silly:

It you try to mod and get issues I can help you with it

Good day
[Android General] jack allen:
Was wondering if someone would help me add it or show me hoe to do it so i can do it in the future
[Android General] yash92duster:
Just now tried it, and fix works:p:p

Flashed Oreo Stock ROM CRD7

Set to 8 days back and checked OTA

Rebooted

Checked OTA again

Rebooted

Dev Option turned on and OEM Toggle Appeared after 5 minutes

Flashed TWRP

Formatted Full system

Flashed back my Custom ROM

OREO Bootloader Back Again

I have tested it on Galaxy S8+

Thanks :good::silly: [MENTION=6911575]BlackMesa123[/MENTION] [MENTION=8108390]Josevega[/MENTION]
[Android General] AK2H:
[MENTION=4658360]corsicanu[/MENTION]

Check this out
[Android General] EVILWAR83:
doesnt work for me(a320f) cant find oem
[Android General] core720:
Fail Flash TWRP
[Android General] Slash360:
Amazing!!! that's work for me, in my A7 2017... Thank you!! :good::D:D:D

PD.: Sorry for my bad English...
[Android General] Albe96:
Unlock With A Fingerprint After Reboot Without Pin Or Pattern

Note:You Need To Add GearUtils To Your SystemUI To Add This Mod.

Fixed: 07/05/2018

- Thanks [MENTION=8168590]keki7[/MENTION] For Testing!

1.Decompile SystemUI.apk

2.Open SystemUI\smali\com\android\keyguard\KeyguardUpdateMonitor.smali

3.Search For This Method:

.method public isUnlockingWithFingerprintAllowed()Z

4. Increase The Locals By 2.

5.Now Before "return v0" Add The Following Code In Blue:

[COLOR="Blue"]
const/4 v1, 0x1

const-string v2, "albe_unlock_nopin"

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

move-result v2

if-eqz v2, :cond_albe

const/4 v0, 0x1

:cond_albe[/COLOR]
return v0

6.Recompile SystemUI.apk.Test And Enjoy :)

[If It Shows Black Stuatusbar,No Nav.Try Clearing Dalvik Cache From Recovery]

Rom Control V2:

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Unlock Screen With FP After Reboot" android:key="albe_unlock_nopin" android:defaultValue="false" android:summaryOn="Enabled" android:summaryOff="Disabled" />
[Android General] Albe96:
[MENTION=6377149]yash92duster[/MENTION] Lockscreen Rotation Guide is written two times in OP.Typo I guess..
[Android General] adonayescalante:
Thanks, it served me, if it worked, I could unlock the bootloader in oreo a7 2017, greetings from el salvador:laugh::laugh::D:D:D:victory::victory::victory::victory:
[Android General] ANDROIDXFOREVER:
?? it's the system we all use [emoji6]

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] Asgabat:
does anyone know how to root oreo on A320f?
[Android General] Albe96:
Open A 2017 Series Forum And Search For It.

And If You Are Failing To Root You May Check This Guide--https://xdaforums.com/samsung-a-series-2017/how-to/guide-root-install-twrp-samsung-t3747535
[Android General] yash92duster:
Fixed lol:p
[Android General] DaniPS2002:
This method changes rmm state?
[Android General] Albe96:
Deleted.Already In OP!
[Android General] AbrahamGC:
Duplicated guide bro... OP already posted it https://xdaforums.com/showpost.php?p=76093180&postcount=5

:p
[Android General] Kill-Switch:
How to fix key-lights on non supported ports ?

What is this guide for ?

As we know Samsung abandoned Hardware keys and now they are using soft keys :mad:, So let's say you ported S9/N8/S8 Rom to S7 or any device with hardware keys you will notice keys are not lighting at all. So today i'm gonna show you how to fix this bug :)

First you will have to decompile services.jar

--Go to smali/com/android/server/power/PowerManagerService.smali

--Search for this method (Only S9/S9+ Ports)

.method public constructor <init>(Landroid/content/Context;)V

--Scroll Down till you find this line :

iput-boolean v3, p0, Lcom/android/server/power/PowerManagerService;->mInputDeviceEnabled:Z

-- Change V3 to V6

-- Then Search for this method (Only S9/S9+ Ports)

.method constructor <init>(Landroid/content/Context;Lcom/android/server/power/BatterySaverPolicy;)V

--Scroll down till you find this line :

iput-boolean v3, p0, Lcom/android/server/power/PowerManagerService;->mInputDeviceEnabled:Z

--Change V3 to V8

--Now this part is Must for all ports , Search for this method

.method private updatePowerStateLocked()V

--Scroll down till you find these 2 lines and delete them

iget-boolean v3, p0, Lcom/android/server/power/PowerManagerService;->mIsFolderType:Z

if-eqz v3, :cond_54

-- Now search for this line

iput-object v2, v0, Lcom/android/server/power/PowerManagerService;->mAttentionLight:Lcom/android/server/lights/Light;

Or

iget-boolean v2, v0, Lcom/android/server/power/PowerManagerService;->mIsFolderType:Z

--Under this line

(iput-object v2, v0, Lcom/android/server/power/PowerManagerService;->mAttentionLight:Lcom/android/server/lights/Light;)

--Add this

new-instance v2, Lcom/android/server/power/PowerManagerService$InputDeviceLightState;

const/4 v3, 0x2

move-object/from16 v0, p0

invoke-direct {v2, v0, v3}, Lcom/android/server/power/PowerManagerService$InputDeviceLightState;-><init>(Lcom/android/server/power/PowerManagerService;I)V

move-object/from16 v0, p0

iput-object v2, v0, Lcom/android/server/power/PowerManagerService;->mTouchkeyLightState:Lcom/android/server/power/PowerManagerService$InputDeviceLightState;

-- In last, it has to look like this

####iput-object v2, v0, Lcom/android/server/power/PowerManagerService;->mAttentionLight:Lcom/android/server/lights/Light;

new-instance v2, Lcom/android/server/power/PowerManagerService$InputDeviceLightState;

const/4 v3, 0x2

move-object/from16 v0, p0

invoke-direct {v2, v0, v3}, Lcom/android/server/power/PowerManagerService$InputDeviceLightState;-><init>(Lcom/android/server/power/PowerManagerService;I)V

move-object/from16 v0, p0

iput-object v2, v0, Lcom/android/server/power/PowerManagerService;->mTouchkeyLightState:Lcom/android/server/power/PowerManagerService$InputDeviceLightState;

####move-object/from16 v0, p0

iget-boolean v2, v0, Lcom/android/server/power/PowerManagerService;->mIsFolderType:Z

--Recompile and enjoy:)

If you used this fix. Please have proper credits

Credits:

[MENTION=4985020]Grouxho[/MENTION]

I attached Stock and Modded smalis in zip :)