yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Android Development] janaman:
I recompile framework res apk, but not work

error codes:

W: Could not find sources

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11961: error: Public symbol ^attr-private/DeviceDefaultPointerStyle declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11824: error: Public symbol ^attr-private/accessibilityFocusedDrawable declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:12052: error: Public symbol ^attr-private/actionModeClipboardDrawable declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11973: error: Public symbol ^attr-private/actionModeDictionaryDrawable declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11808: error: Public symbol ^attr-private/actionModePopupWindowStyle declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11972: error: Public symbol ^attr-private/actionModeTranslationDrawable declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11807: error: Public symbol ^attr-private/activityChooserViewStyle declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:12059: error: Public symbol ^attr-private/activitySecureContainer declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11798: error: Public symbol ^attr-private/alertDialogButtonGroupStyle declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11799: error: Public symbol ^attr-private/alertDialogCenterButtons declared here is not defined.

c:\apk\3-Out\framework-res.apk\res\values\public.xml:11928:

etc....
[Galaxy Note 3 Android Development] sieuan:
Re-install framework first mate
[Galaxy Note 3 Android Development] starbucks2010:
Install the framework, do not decompile it.
[Galaxy Note 3 Android Development] janaman:
But i would like to edit the framework res
[Galaxy Note 3 Android Development] tdunham:
(Please use quote when you reply, it makes it easier to follow the conversations)

You have to install framework files that are exact match for the rom you are working with first before trying to edit any apk file in the form:

apktool if framework-res.apk

&

apktool if twframework-res.apk

Then you can decompile/recompile.

Examples of apktool if command are for stock touchwiz, your files may have slightly different names.

If using a tool with interface, there should be menu choices to install framework.
[Galaxy Note 3 Android Development] thereassaad:
Mate before edited any apk or framework-res u need to install framework-res.apk & twframework-res.apk by this

Apktool if framework-res.apk

Apktool if twframework-res.apk

Then u can decompiled ur any apk & edited then recompiling it after editer & sign it that's its mate ..
[Galaxy Note 3 Android Development] Kamy:
I'm not exactly sure but sometimes signature of compiled apps are corrupted so try dragging and dropping AndroidManifest.xml and META-INF from the original app to modified one. Hope it works. :angel:
[Galaxy Note 3 Android Development] jamesclinton:
I did that b4 flashing the secsettings apk or would you be so kind to check what i did wrong if i upload my moded settings apk?
[Galaxy Note 3 Android Development] asc1977:
Hi

I am on Ayra Mod 1.7TW. Ita a deodexed rom. I want to change the systemui.apk that it shows the network speed like written in op but dont work. After decompile and copying to privapps/system the system stopps and the statusbar is away. After reboot no statusbar. I set permissons to rwrr but after reboot not here.

Can somebody help me?
[Galaxy Note 3 Android Development] Kamy:
If you have done exactly same as OP, it might be due to signature corruption, read post 101.
[Galaxy Note 3 Android Development] Goldie:
If you are modding you should use logs. Search "fatal" in dumpstate_app_error.txt.gz from data/log
[Galaxy Note 3 Android Development] asc1977:
Now i see at recompiling there is a syntax failure. I think thats the problem. How i can solve that?
[Galaxy Note 3 Android Development] and2:
[MENTION=4819130]kmokhtar79[/MENTION] Thank you for that thread mate.

Just in case someone like it (i do) you also can add the Ambient Display to the settings.

I used this thread. The only difference is you have to put to the display_settings_2013.xml this line

<SwitchPreference android:persistent="false" android:title="@string/doze_title" android:key="doze" android:summary="@string/doze_summary" />

(you also can copy it from the display_settings_2014.xml

I have it below the screensaver_settings.

Cheers
[Galaxy Note 3 Android Development] Kamy:
Nice one mate. Would include it in next build of my rom. Thabks.
[Galaxy Note 3 Android Development] and2:
Ah, i forgot one. If someone use a Sview cover and want to set a custom background you have to use the settingsUi_2014. Maybe you can do a mode cause i think [MENTION=4948919]xperiacle[/MENTION] has no time.

I do it that way:

1. Install Nova Launcher

2. Push and hold the screen and select "Shortcuts"

3. Select "Activities"

4. Select "Settings" and hit SViewColor2014.

5. Open the shortcut on the launcher and you can select a custom background
[Galaxy Note 3 Android Development] asc1977:
There are no log because no weitten failure or log. Only at the end of recompile i see for a short time syntax error

There is written:

Preparring apk file

Syntax error

.......

More i cant read because the window close alone
[Galaxy Note 3 Android Development] Kamy:
a little update for 3minit quick launch:

in dimens.xml

change

<dimen name="finder_connect_layout_height">[COLOR="SeaGreen"]57.0dip[/COLOR]</dimen>

to

<dimen name="finder_connect_layout_height">[COLOR="Red"]75.0dip[/COLOR]</dimen>

This would fix size of icons in 3minit launcher panel
[Galaxy Note 3 Android Development] FdeKlerk:
Oh sweet, why don,t you join our struggle? Me and [MENTION=3002844]filchi756[/MENTION] have been going on for 2 days now. But Made a working SystemUi thanks to [MENTION=3002844]filchi756[/MENTION].

Now can you help to remove the 3 minit quick panel from lock screen?

http://xdaforums.com/showpost.php?p=58146272&postcount=225

That would be awesome!:good:
[Galaxy Note 3 Android Development] and2:
Just a guess. May be you still have it in the status_bar_expanded.xml?
[Galaxy Note 3 Android Development] FdeKlerk:
You know what! let me start from scratch and see?:good:
[Galaxy Note 3 Android Development] Goldie:
If your statusbar has gone and ui fc as you said then there will be a dumpstate
[Galaxy Note 3 Android Development] asc1977:
In the apktool there is no log or where i can find it?
[Galaxy Note 3 Android Development] friedrich420:
he means from your phone... the apktool log is no use for us since as you say the .apk compiled ok...
[Galaxy Note 3 Android Development] asc1977:
Oh thanks. Where i find it?
[Galaxy Note 3 Android Development] Kamy:
Use the tool I posted on OP, it would produce log for every process.
[Galaxy Note 3 Android Development] FdeKlerk:
No Luck!

So i did start from scratch!

And this is what i got:

My lockscreen...

[IMG="Lockscreen"]http://xdaforums.com/attachment.php?attachmentid=3114596&stc=1&d=1421232410[/IMG]
[Galaxy Note 3 Android Development] kakkooran:
Did you check this line "<dimen name="qconnect_sfinder_material_rounded_rect_radius">2.0dip</dimen>".
[Galaxy Note 3 Android Development] carlitobahsoun:
hi..plz any guide to enable all apps in multiwindow ??? note5 stock rooted rom (5.1.1) thanks in advance
[Galaxy Note 3 Android Development] thereassaad:
This one work on 5.1.1 N5

http://xdaforums.com/showthread.php?t=2769548
[Galaxy Note 3 Android Development] carlitobahsoun:
thanks dear
[Galaxy Note 3 Android Development] ROBERT CM:
Thanks for reply..

Search this line en SystemUI/res/values/dimens.xml but do not exist, try adding this line in dimens.xml but it does not work

any other ideas ?

Thanks .. ;)
[Galaxy Note 3 Android Development] Ouweshs28:
Search for 20.0..instead of 2.0

And search rounded and change those 2 values and make it 20.0 to make it rounded

Dimes.xml
[Galaxy Note 3 Android Development] and2:
Hi mate, i hope you did not search for the whole line. Search for

qconnect_sfinder_material_rounded_rect_radius

and set the value to 2.0dip. It must be there.
[Galaxy Note 3 Android Development] ROBERT CM:
Yes, I search this code

qconnect_sfinder_material_rounded_rect_radius

En SystemUI/res/values/dimens.xml

but no exist this code and try added but no work
[Galaxy Note 3 Android Development] ilker4fun:
Thank you my friend this is very helpful thread but there is no information about how to enable all apps in pop-up menu. If you know how to to this please can you tell me. Thank you
[Galaxy Note 3 Android Development] carlitobahsoun:
i try hard to find the way but faild...only what i was using xposed wanam....
[Galaxy Note 3 Android Development] thereassaad:
Will give u a guide a guide later as im out now ok
[Galaxy Note 3 Android Development] ilker4fun:
No problem mate. Thank you
[Galaxy Note 3 Android Development] thereassaad:
Unlimited Popup ,

Services.jar

com/android/server/am/MultiWindowPolicy.smali

Search for this method

.method public

isEnableMakePenWindow(I)Z

Change this

If-le v0, v1, :cond_1

To

If-gt v1, v1, :cond_1

Note ::

This tested on S6/N5 Roms even lp 5.1.1 & MM 6.0.1 ,, [emoji16][emoji16][emoji16]
[Galaxy Note 3 Android Development] carlitobahsoun:
thanks asaad...iam now on aryamod v1..and i was need it with stock...lol....i will keep this in case back to stock..thanks dear..u always here and thiere..yes asaad everywhere..lol

n920c/64g/aryamad v1/arter kernel v11
[Galaxy Note 3 Android Development] sieuan:
Decompile framework.jar

Go to smali/com/samsung/android/multiwindow/MultiWindowApplicationInfos.smali

Search this method

.method public isSupportApp(Ljava/lang/String;)Z

Replace whole method with this:

.method public isSupportApp(Ljava/lang/String;)Z
.locals 4

iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

if-nez v2, :cond_1

new-instance v2, Ljava/util/ArrayList;

invoke-direct {v2}, Ljava/util/ArrayList;->()V

iput-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

new-instance v2, Ljava/io/File;

const-string v3, "/system/etc/gnt.txt"

invoke-direct {v2, v3}, Ljava/io/File;->(Ljava/lang/String;)V

invoke-virtual {v2}, Ljava/io/File;->exists()Z

move-result v2

if-eqz v2, :cond_1

:try_start_0
new-instance v1, Ljava/io/BufferedReader;

new-instance v2, Ljava/io/FileReader;

const-string v3, "/system/etc/gnt.txt"

invoke-direct {v2, v3}, Ljava/io/FileReader;->(Ljava/lang/String;)V

invoke-direct {v1, v2}, Ljava/io/BufferedReader;->(Ljava/io/Reader;)V

:cond_0
:goto_0
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

move-result-object v0

if-eqz v0, :cond_1

invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

move-result-object v0

invoke-virtual {v0}, Ljava/lang/String;->length()I

move-result v2

if-lez v2, :cond_0

iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

goto :goto_0

:catch_0
move-exception v2

:cond_1
iget-object v2, p0, Lcom/samsung/android/multiwindow/MultiWindowApplicationInfos;->mMultiWindowBlackList:Ljava/util/List;

invoke-interface {v2, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

move-result v2

if-nez v2, :cond_2

const/4 v2, 0x1

:goto_1
return v2

:cond_2
const/4 v2, 0x0

goto :goto_1
.end method

Works good with N3 running stock rom 5.0, S6/6e running stock 5.0.2
[Galaxy Note 3 Android Development] ilker4fun:
I don't understand what is the difference between you guys post. Are both working same?
[Galaxy Note 3 Android Development] thereassaad:
Emmmm u can try whatever u want mate ,, mine use it alot with S6/N5 services.jar & its working just fine for me even with Marshmellow 6.0.1 ..
[Galaxy Note 3 Android Development] ilker4fun:
Your guide much more simple. I will try yours. Thank you again mate and if you don't mind I want to ask another question to you. I use sixperience n5 port rom and I want to remove this layer. And I don't know how to do this.
[Galaxy Note 3 Android Development] thereassaad:
About 1st screenshot i was do it before months & its in framework-res but where & exact line really forget it but will check it later [emoji17] & give it to u ok

2nd screenshot really its strange i never seen this on all n5 & s6 ported roms even with my s6 too so don't know about maybe dev messed something on his framework/ related to this , [emoji16]
[Galaxy Note 3 Android Development] starbucks2010:
Can someone please tell me where I can find the background of this message? I would like to change it to black with white writing.

Thanks.
[Galaxy Note 3 Android Development] ilker4fun:
This layer is showing everywhere mate. I don't understand why. I think our developer geiti94 thought we are gonna like this but I don't like it. Is there anyway to remove this from everywhere
[Galaxy Note 3 Android Development] Kamy:
Not exactly sure the file's name as I cannot access to my PC now but it's in framework>drawable smothing like tw dialong popup material
[Galaxy Note 3 Android Development] tdunham:
And the dev [MENTION=1649452]geiti94[/MENTION] probably isn't going to be able to tell you where those colors are either. It looks like a certain amount of the sixpence rom is kanged out of my REAL Note 5 rom. And looking through the credits I see who helped him with it so now I know why.

---------- Post added at 01:47 PM ---------- Previous post was at 01:24 PM ----------

In framework-res.apk you have to remove this line:

framework-res - Copy\res\drawable\tw_dialog_background_material.xml

<?xml version="1.0" encoding="utf-8"?>
<inset android:insetLeft="@dimen/tw_dialog_background_inset_horizontal" android:insetRight="@dimen/tw_dialog_background_inset_horizontal" android:insetTop="@dimen/tw_dialog_background_inset_vertical" android:insetBottom="@dimen/tw_dialog_background_inset_vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<shape android:shape="rectangle">
<corners android:radius="12.0dip" />
<solid android:color="?colorBackground" />
[COLOR="Red"]<stroke android:width="3.0dip" android:color="?colorAccent" />[/COLOR]
</shape>

</inset>
[Galaxy Note 3 Android Development] ilker4fun:
I don't understand what you said mate. Does Geiti94 steal from you ? I saw your rom's thread and I shocked when I saw Moar Control Center because it seems exactly like our rom's settings(sixperience settings). Anyway can you remove this layer from every menu? It is very ugly :) Thanks

By the way I think geiti94's SystemUI.apk didn't cause this problem because I changed original apk to this thread's( http://xdaforums.com/note-4/themes-apps/6-0-mm-ui-mod-dn5-rom-t3289613 ) SystemUI.apk and problem still continue
[Galaxy Note 3 Android Development] tdunham:
If you look at guide I posted, the edit is in framework-res.apk.

And yes, some code is taken from my rom without permission. I do not blame dev entirely, it is the piece of crap guy helping him with the port has no respect for other peoples work and routinely steals things and claims as his own.

Sorry for this, but this makes me angry and I do not wish to put this back to you sir. :)
[Galaxy Note 3 Android Development] ilker4fun:
You are absolutely right my friend. This is not fair. By the way thank you for your guide. Finally I removed this layer. I can't put the words how much I appreciate to you mate. Thank you .
[Galaxy Note 3 Android Development] Martillero:
Wow, that's a badass ripoff, this is the real reason why devs stop sharing.
[Galaxy Note 3 Android Development] tdunham:
I share everything I do in the guide thread whenever possible and here are many many good additions in this thread too. There is no reason to take unless people like the guy that gave him my rom for use just aren't capable of creating their own. :rolleyes:

Edit: And enough on this OT stuff anyway, the dev has been notified. A moderator has also been notified.
[Galaxy Note 3 Android Development] ilker4fun:
Hi guys. I have a problem but it can be off topic. I created a thread about it but no one care it. And there are very good developers who care person that have trouble. So I decided to write here my problem. I hope you guys won't mad me :)

Here is my problem: I want to change background color of Spotify notification. I looked everywhere to do this but I didn't find any guide or topic about it. If someone help me, I will be very thankful
[Galaxy Note 3 Android Development] Rick1684:
The text is two different values. I think the buttons where material deep teal 500 or one of those. And the popup text itself is in styles. This is how it was on 5.0.1 at least. The bg can be done a couple of different ways. There is a png you can edit. Or you can do what I did and make the png clear and control the image with an xml in drawables. Open layouts/alert_dialog_material.xml and look at the top lines bg it should point to a drawable. I made mine point to a clear png and used popup_background_material.xml in drawables to contol the look of the bg. Also there are another set just like these with tw_alert_dialog_material and tw_popup_background_material. Keep in mind that some material apps will call on text from framework and use there own bg and vice versa and you will run into bob or wow issues. I would try to unlink the popup buttons from teal in colors to just whatever color you want in styles.

---------- Post added at 11:02 PM ---------- Previous post was at 10:54 PM ----------

That is in the spotify apk itself. You will have to decompile and theme it. Then everytime it updates you will lose your theme. So if you have layers support I would go that route.
[Galaxy Note 3 Android Development] ilker4fun:
I am willing to do this every time but I don't know where I am gonna edit. If you know how, please explain me. Thank you
[Galaxy Note 3 Android Development] starbucks2010:
It worked. Thank you very much.
[Galaxy Note 3 Android Development] ilker4fun:
If somebody show me how to do this, I will be very appreciated
[Galaxy Note 3 Android Development] tdunham:
Its in android.policy smali, use a global search tool like fileseek.
[Galaxy Note 3 Android Development] edzamber:
Deleted
[Galaxy Note 3 Android Development] tdunham:
Aww, you're no fun man. At least make them work for it a LITTLE bit. ;)
[Galaxy Note 3 Android Development] edzamber:
Edited.... [emoji23]
[Galaxy Note 3 Android Development] Kamy:
Isn't it written in OP already? Please before posting read and when you can find nothing then Google it, still cannot find then you can post here.
[Galaxy Note 3 Android Development] ilker4fun:
I am so sorry if I angry you. I looked OP before wrote a post but I couldn't see that part. Now I see. I am very embarrassed. I always read carefully but this time it run of my eyes. Again I am sorry if I bother you.

Thanks
[Galaxy Note 3 Android Development] Kamy:
5Way Reboot TW Marshmallow

Although Note 3 may never get MM release I felt this is better place to update the guide for Power Menu options

So the modification is still the same but as you may or not know we global actions are moved to services.jar in MM. So decompile services.jar and do as follow:

go to services.jar\smali\com\android\server\policy\GlobalActions.smali

find below line in .method private createDialog()Lcom/android/server/policy/GlobalActions$GlobalActionsDialog;

new-instance v5, Lcom/android/server/policy/GlobalActions[COLOR="Red"]$9[/COLOR];

and change to

new-instance v5, Lcom/android/server/policy/GlobalActions[COLOR="Blue"]$99[/COLOR];

and

invoke-direct {v5, v0, v4, v6}, Lcom/android/server/policy/GlobalActions[COLOR="Red"]$9[/COLOR];->(Lcom/android/server/policy/GlobalActions;II)V

to

invoke-direct {v5, v0, v4, v6}, Lcom/android/server/policy/GlobalActions[COLOR="Blue"]$99[/COLOR];->(Lcom/android/server/policy/GlobalActions;II)V

in GlobalActions$SinglePressAction add lines in blue

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/server/policy/GlobalActions;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x40a
name = "SinglePressAction"
.end annotation

[COLOR="Blue"]# static fields
.field public static rebootMode:I

.field public static final rebootOptions:[Ljava/lang/String;

.field public static final rebootString:[Ljava/lang/String;[/COLOR]

# instance fields

and also

[COLOR="Blue"]# direct methods
.method static constructor <clinit>()V
.locals 9

const/4 v8, 0x5

const/4 v7, 0x4

const/4 v6, 0x3

const/4 v5, 0x2

const/4 v4, 0x1

const/4 v3, 0x0

new-array v0, v8, [Ljava/lang/String;

const-string/jumbo v2, "Reboot"

aput-object v2, v0, v3

const-string/jumbo v2, "Hot Reboot"

aput-object v2, v0, v4

const-string/jumbo v2, "Download"

aput-object v2, v0, v5

const-string/jumbo v2, "Recovery"

aput-object v2, v0, v6

const-string/jumbo v2, "Safe Mode"

aput-object v2, v0, v7

sput-object v0, Lcom/android/server/policy/GlobalActions$SinglePressAction;->rebootString:[Ljava/lang/String;

new-array v1, v8, [Ljava/lang/String;

const-string v2, "Reboot"

aput-object v2, v1, v3

const-string v2, "Hot Reboot"

aput-object v2, v1, v4

const-string v2, "Download"

aput-object v2, v1, v5

const-string v2, "Recovery"

aput-object v2, v1, v6

const-string v2, "Safe Mode"

aput-object v2, v1, v7

sput-object v1, Lcom/android/server/policy/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void
.end method[/COLOR]

.method protected constructor[COLOR="Blue"] <init>[/COLOR](II)V

Now download attached smalis and drop it in services.jar\smali\com\android\server\policy folder

To change power menu title it is same as lollipop, find const-string v2, "Reboot Menu" and change to whatever you wish

compile and profit.

PS: If you are using this guide please consider credit in your OP.
[Galaxy Note 3 Android Development] kep2008:
Thank you for guide. :good:

To quickly get to the restart menu (if you have already made ​​changes to Globa lActions.smali)

find below lines in .method private createDialog()Lcom/android/server/policy/GlobalActions$GlobalActionsDialog;

new-instance v5, Lcom/android/server/policy/GlobalActions$99;

sget-boolean v4, Lcom/android/server/policy/GlobalActions;->mNewFeatureForM:Z

if-eqz v4, :cond_1ee

const v4, 0x[COLOR="Blue"]108095f[/COLOR]

:goto_11c
const v6, 0x10408cf

move-object/from16 v0, p0

invoke-direct {v5, v0, v4, v6}, Lcom/android/server/policy/GlobalActions$99;-><init>(Lcom/android/server/policy/GlobalActions;II)V

copy 108095f and find them

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mConfirmPowerOffIconResId:I

[COLOR="Red"]const v1, 0x108095f

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mRestartIconResId:I

const v1, 0x1080960

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mConfirmRestartIconResId:I[/COLOR]

const v1, 0x108095c

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mEmergencyIconResId:I

and delete lines in red.

Sorry for the translation.

View attachment 3662466View attachment 3662467
[Galaxy Note 3 Android Development] grzegorz354:
Dude

Has anyone can mod removed a warning about high volume for android MM and Changing dialogs in the system graphics Android MM

THX
[Galaxy Note 3 Android Development] kep2008:
see here http://xdaforums.com/showpost.php?p=57014806&postcount=1

AudioService.smali looking in services.jar
[Galaxy Note 3 Android Development] kep2008:
Changes here.
[Galaxy Note 3 Android Development] thereassaad:
Hello kmokhtar my friend tried ur guide for 5way reboot for mm but this what i got

Any help my friend
[Galaxy Note 3 Android Development] Kamy:
Did you included global action 99 and 99$1?