[Guides & Links] TOUCHWIZ UNIFIED MODS THREAD

Search This thread

josephpatrick

Senior Member
Jan 24, 2012
1,213
237
Bangalore
I'm not sure, I only work with stock touchwiz. Maybe someone else has the answer.

how do you manage upsm settings via rom control, is it possible to share some screenshots please.
I tried using upsm manager app v3.5 but it does not include the option called "override upsm defaults" which shows up in upsm+

how can i use upsm defaults because in my rom it is enabled by default
 
Last edited:

tdunham

Inactive Recognized Contributor
Jun 21, 2008
13,686
36,465
TampaBay
how do you manage upsm settings via rom control, is it possible to share some screenshots please.
I tried using upsm manager app v3.5 but it does not include the option called "override upsm defaults" which shows up in upsm+
I only use rom control for a shortcut to launch that app I posted nothing more, sorry.
 

rick.wardenburg

Senior Member
Jan 1, 2016
620
246
Saint Joseph
Google Pixel 3a XL
@tdunham
Hey i just gota samsung j7 with MM 6.01 1st thing i did was deodex it tryed something simple as the gearutils.smali and got a FC then tryed batterybar got a FC after trying apktool 2.1.1-2.2.2 on phone and pc i keep getting .9 patch image file errors ive tryed qmg2png and picconv tryed differnt versions of aapt not sure what the deal is could it be a bad deodex i used assayyed kitchen and booted up 1st shot..

Sent from my SM-J700P using Tapatalk
 

tdunham

Inactive Recognized Contributor
Jun 21, 2008
13,686
36,465
TampaBay
@tdunham
Hey i just gota samsung j7 with MM 6.01 1st thing i did was deodex it tryed something simple as the gearutils.smali and got a FC then tryed batterybar got a FC after trying apktool 2.1.1-2.2.2 on phone and pc i keep getting .9 patch image file errors ive tryed qmg2png and picconv tryed differnt versions of aapt not sure what the deal is could it be a bad deodex i used assayyed kitchen and booted up 1st shot..
I don't think you can convert .9 images with qmg. I don't know about picconv. You have to put original files back that are .9 I think.
 

rick.wardenburg

Senior Member
Jan 1, 2016
620
246
Saint Joseph
Google Pixel 3a XL
https://github.com/iBotPeaches/Apktool/issues/1205

Is this similar to your error?

May look into what Connor said might be the issue
1st why is there a security certificate in a apk, thats new to me Screenshot_20170309-005611.png
@ShinySide, i did have that same exact error when i was trouble shooting and picconv gave me that error you poste..
The error im getting is
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 17, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, -F, /data/data/per.pqy.apktool/APKTOOL9083703077476987577.tmp, -0, arsc, -0, qmg, -0, pio, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_pressed.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_emergency_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_unlock_btn_normal.9.qmg, -0, res/drawable-xhdpi-v4/ic_notification_overlay.9.qmg, -0, webp, -0, res/drawable-xxhdpi-v4/ic_call_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_normal.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_default.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/lock_noticard_badge_bg_tilt.9.qmg, -0, res/drawable-xxhdpi-v4/recents_task_shadow.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_dark.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_light.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_mtrl.9.qmg, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/SystemUI/SystemUI_src/res, -M, /storage/emulated/0/SystemUI/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 17, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, -F, /data/data/per.pqy.apktool/APKTOOL9083703077476987577.tmp, -0, arsc, -0, qmg, -0, pio, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_pressed.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_emergency_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_unlock_btn_normal.9.qmg, -0, res/drawable-xhdpi-v4/ic_notification_overlay.9.qmg, -0, webp, -0, res/drawable-xxhdpi-v4/ic_call_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_normal.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_default.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/lock_noticard_badge_bg_tilt.9.qmg, -0, res/drawable-xxhdpi-v4/recents_task_shadow.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_dark.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_light.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_mtrl.9.qmg, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/SystemUI/SystemUI_src/res, -M, /storage/emulated/0/SystemUI/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 17, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, -F, /data/data/per.pqy.apktool/APKTOOL9083703077476987577.tmp, -0, arsc, -0, qmg, -0, pio, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_pressed.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_emergency_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_unlock_btn_normal.9.qmg, -0, res/drawable-xhdpi-v4/ic_notification_overlay.9.qmg, -0, webp, -0, res/drawable-xxhdpi-v4/ic_call_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_normal.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_default.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/lock_noticard_badge_bg_tilt.9.qmg, -0, res/drawable-xxhdpi-v4/recents_task_shadow.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_dark.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_light.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_mtrl.9.qmg, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/SystemUI/SystemUI_src/res, -M, /storage/emulated/0/SystemUI/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:97)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at brut.util.OS.exec(OS.java:90)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 8 more
I: Using Apktool 2.2.2
I: Smaling smali folder into classes.dex...
I: Building resources...
i try3d 2 things

1. a decompile and recompile with no modification using test signature when copied over @ 1st got a FC, rebooted no FC on boot but no wallpaper or statusbar, recents button and home button isnt working.

2. befor deompile i used winrar to extract .9.qmgs making 4 folders with only the .9.qmgs in its original state files i could copy and paste into another apk after recompile and original signature, on reboot i had a full black screen with nothing and a continous FC

I tryed a few other ways also got dame results in 1,

I decompiled and recompiled the classes.dex and put it in a orignal apk to elimibate the dex being the culprit and it worked like a charm so i can only do dex mods right now and cant even touch the RES folder i probavly should forward this over to ibot?

Sent from my SM-J700P using Tapatalk
 

ShinySide

Inactive Recognized Developer
Nov 30, 2013
3,951
4,780
IHB
1st why is there a security certificate in a apk, thats new to me
@ShinySide, i did have that same exact error when i was trouble shooting and picconv gave me that error you poste..
The error im getting is
i try3d 2 things

1. a decompile and recompile with no modification using test signature when copied over @ 1st got a FC, rebooted no FC on boot but no wallpaper or statusbar, recents button and home button isnt working.

2. befor deompile i used winrar to extract .9.qmgs making 4 folders with only the .9.qmgs in its original state files i could copy and paste into another apk after recompile and original signature, on reboot i had a full black screen with nothing and a continous FC

I tryed a few other ways also got dame results in 1,

I decompiled and recompiled the classes.dex and put it in a orignal apk to elimibate the dex being the culprit and it worked like a charm so i can only do dex mods right now and cant even touch the RES folder i probavly should forward this over to ibot?

You have a permission error so not Apktool or the apk

Cannot run program "/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0": error=13, Permission denied

Be sure you installed and set permissions correctly on Apktool
 

Kamy

Senior Member
Aug 29, 2012
5,335
19,307
Beijing
Would anybody please look at my log:

boolean com.android.server.policy.GlobalActions.isNeedConfirm(): [0xFFFFFFFF] register index out of range (3 >= 3)

I am trying this:

Code:
.method private static isNeedConfirm()Z
    .locals 3

    iget-object v1, p0, Lcom/android/server/policy/GlobalActions;->mContext:Landroid/content/Context;
    
    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
    move-result-object v1

    const-string v2, "pm_confirm_action"

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
    move-result v3
    
    if-nez v3, :cond_arya
    
    const/4 v3, 0x0
    
    :goto_0
    return v3

   :cond_arya
   const/4 v3, 0x1

   goto :goto_0
    
.end method
 

tdunham

Inactive Recognized Contributor
Jun 21, 2008
13,686
36,465
TampaBay
Would anybody please look at my log:

boolean com.android.server.policy.GlobalActions.isNeedConfirm(): [0xFFFFFFFF] register index out of range (3 >= 3)

I am trying this:

Code:
.method private static isNeedConfirm()Z
    .locals 3

    iget-object v1, p0, Lcom/android/server/policy/GlobalActions;->mContext:Landroid/content/Context;
    
    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
    move-result-object v1

    const-string v2, "pm_confirm_action"

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
    move-result v3
    
    if-nez v3, :cond_arya
    
    const/4 v3, 0x0
    
    :goto_0
    return v3

   :cond_arya
   const/4 v3, 0x1

   goto :goto_0
    
.end method
You use v3 register and .locals should be increased to 4 to account for it?
 
  • Like
Reactions: Kamy

a.raul

Senior Member
Apr 21, 2014
375
510
Mordor
@tdunham
Hey i just gota samsung j7 with MM 6.01 1st thing i did was deodex it tryed something simple as the gearutils.smali and got a FC then tryed batterybar got a FC after trying apktool 2.1.1-2.2.2 on phone and pc i keep getting .9 patch image file errors ive tryed qmg2png and picconv tryed differnt versions of aapt not sure what the deal is could it be a bad deodex i used assayyed kitchen and booted up 1st shot..

Sent from my SM-J700P using Tapatalk

Good afternoon

Try to use it for deodexing 6.0.1, SVADeodexerForArtx64_v4.1, the kitchen of ASSAYYED gives some errors in the deodex.

Maybe, you should try using apktool 2.1.2 in CMD

When you do modifying smalis, after compiling you go to the build/apk folder, with 7zip you pass the classes.dex directly to the source apk.

When you make changes in res and do not influence any folder that is visible, after compiling you go to the build/apk folder, with 7zip you pass the resources.arsc directly to the source apk.

When you make modification, for example in some * .xml, after compiling you go to the folder build/apk/res and with 7zip you pass the modified file to the source apk.

The * .9.png or * .9.qmg files can not be modified.

Greetings and luck
 

stangdriver44

Inactive Recognized Themer
Nov 16, 2006
3,015
9,401
Cali
1st why is there a security certificate in a apk, thats new to meView attachment 4067431
@ShinySide, i did have that same exact error when i was trouble shooting and picconv gave me that error you poste..
The error im getting is
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 17, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, -F, /data/data/per.pqy.apktool/APKTOOL9083703077476987577.tmp, -0, arsc, -0, qmg, -0, pio, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_pressed.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_emergency_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_unlock_btn_normal.9.qmg, -0, res/drawable-xhdpi-v4/ic_notification_overlay.9.qmg, -0, webp, -0, res/drawable-xxhdpi-v4/ic_call_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_normal.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_default.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/lock_noticard_badge_bg_tilt.9.qmg, -0, res/drawable-xxhdpi-v4/recents_task_shadow.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_dark.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_light.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_mtrl.9.qmg, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/SystemUI/SystemUI_src/res, -M, /storage/emulated/0/SystemUI/SystemUI_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 17, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, -F, /data/data/per.pqy.apktool/APKTOOL9083703077476987577.tmp, -0, arsc, -0, qmg, -0, pio, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_pressed.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_emergency_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_unlock_btn_normal.9.qmg, -0, res/drawable-xhdpi-v4/ic_notification_overlay.9.qmg, -0, webp, -0, res/drawable-xxhdpi-v4/ic_call_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_normal.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_default.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/lock_noticard_badge_bg_tilt.9.qmg, -0, res/drawable-xxhdpi-v4/recents_task_shadow.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_dark.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_light.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_mtrl.9.qmg, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/SystemUI/SystemUI_src/res, -M, /storage/emulated/0/SystemUI/SystemUI_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0, p, --min-sdk-version, 17, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0.1, -F, /data/data/per.pqy.apktool/APKTOOL9083703077476987577.tmp, -0, arsc, -0, qmg, -0, pio, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_call_btn_pressed.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_emergency_btn_normal.9.qmg, -0, res/drawable-nodpi-v4/keyguard_carrierlockplus_unlock_btn_normal.9.qmg, -0, res/drawable-xhdpi-v4/ic_notification_overlay.9.qmg, -0, webp, -0, res/drawable-xxhdpi-v4/ic_call_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_normal.9.qmg, -0, res/drawable-xxhdpi-v4/ic_email_lock_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_default.9.qmg, -0, res/drawable-xxhdpi-v4/keyguard_fmm_btn_pressed.9.qmg, -0, res/drawable-xxhdpi-v4/lock_noticard_badge_bg_tilt.9.qmg, -0, res/drawable-xxhdpi-v4/recents_task_shadow.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_dark.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_holo_light.9.qmg, -0, res/drawable-xxhdpi-v4/tw_toast_frame_mtrl.9.qmg, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /storage/emulated/0/SystemUI/SystemUI_src/res, -M, /storage/emulated/0/SystemUI/SystemUI_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:97)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
Caused by: java.io.IOException: Cannot run program "/data/data/per.pqy.apktool/apktool/openjdk/bin/aapt6.0": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at brut.util.OS.exec(OS.java:90)
... 7 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 8 more
I: Using Apktool 2.2.2
I: Smaling smali folder into classes.dex...
I: Building resources...
i try3d 2 things

1. a decompile and recompile with no modification using test signature when copied over @ 1st got a FC, rebooted no FC on boot but no wallpaper or statusbar, recents button and home button isnt working.

2. befor deompile i used winrar to extract .9.qmgs making 4 folders with only the .9.qmgs in its original state files i could copy and paste into another apk after recompile and original signature, on reboot i had a full black screen with nothing and a continous FC

I tryed a few other ways also got dame results in 1,

I decompiled and recompiled the classes.dex and put it in a orignal apk to elimibate the dex being the culprit and it worked like a charm so i can only do dex mods right now and cant even touch the RES folder i probavly should forward this over to ibot?

Sent from my SM-J700P using Tapatalk

Are you usimg apktool "mobile", that's what it lools like from the data/data/per.pqy.apktool fioe location.

If so I would recommend trying on a pc before sending anything to ibot.

I use apktool mobile successfully and love it, but I have run into issues sometimes that were solved by using a pc.

If you're not running mobile, then my apologies and goodluck!
 
  • Like
Reactions: ShinySide

ShinySide

Inactive Recognized Developer
Nov 30, 2013
3,951
4,780
IHB
Are you usimg apktool "mobile", that's what it lools like from the data/data/per.pqy.apktool fioe location.

If so I would recommend trying on a pc before sending anything to ibot.

I use apktool mobile successfully and love it, but I have run into issues sometimes that were solved by using a pc.

If you're not running mobile, then my apologies and goodluck!

I was wondering what the hell that file location was ? makes sense now lol
 
  • Like
Reactions: stangdriver44

rick.wardenburg

Senior Member
Jan 1, 2016
620
246
Saint Joseph
Google Pixel 3a XL
Are you usimg apktool "mobile", that's what it lools like from the data/data/per.pqy.apktool fioe location.

If so I would recommend trying on a pc before sending anything to ibot.

I use apktool mobile successfully and love it, but I have run into issues sometimes that were solved by using a pc.

If you're not running mobile, then my apologies and goodluck!
I use both mobile and pc

Sent from my SM-J700P using Tapatalk
 

kep2008

Senior Member
Feb 27, 2016
353
653
Slutsk
SMusic notification text color.
Did on SGS6, android 7.0.

In SMusic\smali\com\samsung\android\app\music\service\remoteview\NotificationRemoteViewBuilder.smali find
Code:
.method public setTitles(Ljava/lang/String;Ljava/lang/String;)Lcom/samsung/android/app/music/service/remoteview/RemoteViewBuilder;
and add the highlighted blue
Code:
    .locals 8
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "artist"    # Ljava/lang/String;

    .prologue
    const v7, 0x7f1200c9    #<public type="id" name="artist" id="0x7f1200c9" />

    const v6, 0x7f12006c    #<public type="id" name="title" id="0x7f12006c" />

    const v5, 0x7f0a01d8

    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 85
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mRemoteView:Landroid/widget/RemoteViews;

    if-nez p1, :cond_0

    .line 86
    invoke-virtual {p0}, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 85
    .end local p1    # "title":Ljava/lang/String;
    :cond_0
    invoke-virtual {v1, v6, p1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    [COLOR="Blue"]invoke-direct {p0}, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->setSmusicNotiTextColor()I

    move-result p1

    invoke-virtual {v1, v6, p1}, Landroid/widget/RemoteViews;->setTextColor(II)V[/COLOR]

    .line 87
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mRemoteView:Landroid/widget/RemoteViews;

    if-eqz p2, :cond_1

    const-string v4, "<unknown>"

    .line 88
    invoke-virtual {v4, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 89
    :cond_1
    invoke-virtual {p0}, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    .line 87
    .end local p2    # "artist":Ljava/lang/String;
    :cond_2
    invoke-virtual {v1, v7, p2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

    [COLOR="Blue"]invoke-direct {p0}, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->setSmusicNotiTextColor()I

    move-result p2

    invoke-virtual {v1, v7, p2}, Landroid/widget/RemoteViews;->setTextColor(II)V[/COLOR]

    .line 94
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mContext:Landroid/content/Context;
At end of this smali add method
Code:
.method private setSmusicNotiTextColor()I
    .locals 3

    iget-object v0, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mContext:Landroid/content/Context;

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

    move-result-object v0

    const-string v1, "smusic_noti_text"

    const v2, -0xdadadb

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

    move-result v0

    return v0
.end method

In SMusic\smali\com\samsung\android\app\music\service\observer\NotificationUpdater.smali find method, increase locals by 3
Code:
.method private createNotificationBuilder()V
    .locals [COLOR="Red"]9[/COLOR]
in this method find
Code:
const v5, 0x7f1100f2   #<public type="color" name="quick_panel_brand" id="0x7f1100f2" />
and add the highlighted blue
Code:
    const v5, 0x7f1100f2

    invoke-virtual {v4, v5}, Landroid/content/Context;->getColor(I)I

    move-result v4
		
    [COLOR="Blue"]iget-object v6, p0, Lcom/samsung/android/app/music/service/observer/NotificationUpdater;->mContext:Landroid/content/Context;

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

    move-result-object v6

    const-string v7, "smusic_brand_noti_text"

    const v8, -0xbd532d

    invoke-static {v6, v7, v8}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v4[/COLOR]

    iput v4, v3, Landroid/app/Notification;->color:I

Button color.

In SMusic\smali\com\samsung\android\app\music\service\remoteview\NotificationRemoteViewBuilder.smali find method and increase locals by 3
Code:
.method protected onCreateButtons()Lcom/samsung/android/app/music/service/remoteview/RemoteViewBuilder;
    .locals [COLOR="Red"]10[/COLOR]
find
Code:
sget-boolean v1, Lcom/samsung/android/app/music/common/info/features/AppFeatures;->SUPPORT_NOTIFICATION_BLACK_THEME:Z

    if-eqz v1, :cond_0
Remember :cond_0, insert the code highlighted in blue and delete, highlighted in red
Code:
invoke-virtual {v1, v2, v3}, Landroid/widget/RemoteViews;->setTextColor(II)V

    .line 39
    [COLOR="Blue"]:cond_0[/COLOR]  # memorized above
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mRemoteView:Landroid/widget/RemoteViews;

    const v2, 0x7f1200cc   # <public type="id" name="prev_icon" id="0x7f1200cc" />

    const-string v3, "setColorFilter"

    .line 40
    invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4
	
    [COLOR="Blue"]iget-object v7, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mContext:Landroid/content/Context;

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

    move-result-object v7

    const-string v8, "smusic_button_noti_color"

    const v9, -0xdadadb

    invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v4[/COLOR]

    .line 39
    invoke-virtual {v1, v2, v3, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V

    .line 41
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mRemoteView:Landroid/widget/RemoteViews;

    const v2, 0x7f1200cb   # <public type="id" name="play_pause_icon" id="0x7f1200cb" />

    const-string v3, "setColorFilter"

    .line 42
    invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4
	
    [COLOR="Blue"]iget-object v7, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mContext:Landroid/content/Context;

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

    move-result-object v7

    const-string v8, "smusic_button_noti_color"

    const v9, -0xdadadb

    invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v4[/COLOR]

    .line 41
    invoke-virtual {v1, v2, v3, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V

    .line 43
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mRemoteView:Landroid/widget/RemoteViews;

    const v2, 0x7f1200cd   # <public type="id" name="next_icon" id="0x7f1200cd" />

    const-string v3, "setColorFilter"

    .line 44
    invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    [COLOR="Blue"]iget-object v7, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mContext:Landroid/content/Context;

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

    move-result-object v7

    const-string v8, "smusic_button_noti_color"

    const v9, -0xdadadb

    invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v4[/COLOR]
	
    .line 43
    invoke-virtual {v1, v2, v3, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
	
    .line 45
    iget-object v1, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mRemoteView:Landroid/widget/RemoteViews;

    const v2, 0x7f1201b5   # <public type="id" name="quick_panel_close_icon" id="0x7f1201b5" />

    const-string v3, "setColorFilter"

    .line 46
    invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4
	
    [COLOR="Blue"]iget-object v7, p0, Lcom/samsung/android/app/music/service/remoteview/NotificationRemoteViewBuilder;->mContext:Landroid/content/Context;

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

    move-result-object v7

    const-string v8, "smusic_button_noti_color"

    const v9, -0xdadadb

    invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v4[/COLOR]

    .line 45
    invoke-virtual {v1, v2, v3, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V

    .line 49
    [COLOR="Red"]:cond_0[/COLOR]  # memorized above
    invoke-super {p0}, Lcom/samsung/android/app/music/service/remoteview/RemoteViewBuilder;->onCreateButtons()Lcom/samsung/android/app/music/service/remoteview/RemoteViewBuilder;

Rom Control v2.
Code:
<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
        hexValue="true"
        alphaSlider="true"
        android:key="smusic_brand_noti_text"
        android:title="SMusic brand text color"/>
    <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
        hexValue="true"
        alphaSlider="true"
        android:key="smusic_noti_text"
        android:title="SMusic artist text color"/>
    <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
        hexValue="true"
        alphaSlider="true"
        android:key="smusic_button_noti_color"
        android:title="SMusic button color"/>
 

Attachments

  • Screenshot_20170310-034642.jpg
    Screenshot_20170310-034642.jpg
    133.5 KB · Views: 663
  • Screenshot_20170310-034658.jpg
    Screenshot_20170310-034658.jpg
    159.3 KB · Views: 655
  • Screenshot_20170310-132647.jpg
    Screenshot_20170310-132647.jpg
    129.8 KB · Views: 586
Last edited:

josephpatrick

Senior Member
Jan 24, 2012
1,213
237
Bangalore
I'm not sure, I only work with stock touchwiz. Maybe someone else has the answer.

finally found a solution for my query by analyzing upsm+ app code.

In short, if the ROM does not have the upsm related xml files under system/csc, max power saving works by default shows dialer and sms apps in max power saving mode.

Now next step is to to try getting sms app in emergency mode somehow.
 
  • Like
Reactions: bunnys7679

Top Liked Posts