Q: Referencing `systemui` resources for building RRO/overlay themes in Oreo - Sony Cross-Device General

Hello everyone.
I'm trying to build an RRO/overlay theme for my device running Oreo to change status-bar icons/indicators.
I pulled AOSP's status-bar icons and included them in the package with a single modification: changing references to internal "systemui" package from "?attr/XXX" to "?*com.android.systemui:attr/XXX". Every time I build, the following errors are thrown:
Code:
\thm\res\drawable\stat_sys_wifi_signal_0.xml:24: error: Error: No resource found that matches the given name (at 'fillColor' with value '?*com.android.systemui:attr/fillColor').
\thm\res\drawable\stat_sys_wifi_signal_0.xml:27: error: Error: No resource found that matches the given name (at 'fillColor' with value '?*com.android.systemui:attr/backgroundColor').
__________________________________________________
I'm using command-line to build my APK, and this is my file setup:
./AndroidManifest.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="test.theme.aospstatusbar">
<overlay
android:priority="1"
android:targetPackage="com.android.systemui"
</manifest>
The following file is a sample of the drawables I included in the package, and in which the error samples above are referring to:
./res/drawable/stat_sys_wifi_signal_0.xml
Code:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="18.41dp"
android:height="18.41dp"
android:viewportWidth="21.2"
android:viewportHeight="21.2">
<group
android:translateX="0.5"
android:translateY="2.0">
<path
android:pathData="M18.79,9.79c-0.32,-0.32 -0.83,-0.32 -1.15,0L16.43,11l-1.21,-1.21c-0.32,-0.32 -0.83,-0.32 -1.15,0L14.06,9.8l0,0c-0.32,0.32 -0.32,0.83 0,1.15l1.21,1.21l-1.21,1.21l0,0c-0.32,0.32 -0.32,0.83 0,1.15l0.01,0.01c0.32,0.32 0.83,0.32 1.15,0l1.21,-1.21l1.21,1.21c0.32,0.32 0.83,0.32 1.15,0c0.32,-0.32 0.32,-0.83 0,-1.15l-1.21,-1.21l1.21,-1.21C19.1,10.64 19.1,10.13 18.79,9.79z"
android:fillColor="?*com.android.systemui:attr/fillColor"/>
<path
android:pathData="M11.69,7.44h6.27L19.95,5c0.4,-0.49 0.3,-1.22 -0.23,-1.56c-1.6,-1.05 -5.04,-2.9 -9.62,-2.9c-4.59,0 -8.03,1.85 -9.62,2.9C-0.05,3.78 -0.16,4.51 0.24,5l9.02,11.08c0.42,0.52 1.22,0.52 1.64,0l0.78,-0.96V7.44z"
android:fillColor="?*com.android.systemui:attr/backgroundColor"/>
</group>
</vector>
I build using the following command ("aapt" being in "build-tools\26.0.3"):
Code:
aapt package -M \thm\AndroidManifest.xml -S \thm\res -I %sdk%\platforms\android-26\android.jar -F \thm\build\overlay.apk -f
__________________________________________________
I believe the problem is in referencing from the "systemui" package? Am I doing something wrong?

It’s not possible. I’ve tried this before and got errors about accessing private attribute.

And you won't be able to theme signal icons, all drawable are inside a smali file.
Envoyé de mon F8331 en utilisant Tapatalk

HazemAM said:
I believe the problem is in referencing from the "systemui" package? Am I doing something wrong?
Click to expand...
Click to collapse
Did you ever figure out a solution to accessing SystemUI attrs.xml from an RRO package?

calebcabob said:
Did you ever figure out a solution to accessing SystemUI attrs.xml from an RRO package?
Click to expand...
Click to collapse
No, unfortunately.
I also posted this question over at StackOverflow, and got simliar answers.
Someone there suggested using "-I" in build command, but that also didn't work for me as you can see in the comments there.
That answer got two upvotes though, so I guess it does work with other types of resources except attributes as mentioned there, if that works for you.

calebcabob said:
Did you ever figure out a solution to accessing SystemUI attrs.xml from an RRO package?
Click to expand...
Click to collapse
Add systemUI attrs.xml inside rro package
Envoyé de mon H8266 en utilisant Tapatalk

niaboc79 said:
Add systemUI attrs.xml inside rro package
Envoyé de mon H8266 en utilisant Tapatalk
Click to expand...
Click to collapse
Yeah, I tried that. It only fixes compilation, but doesn't actually adapt to the code used with system attrs properly. Thanks

There's an other way you could try.
Add your modded file inside systemUI with a different name and try to access it from your overlay.
Envoyé de mon H8266 en utilisant Tapatalk

Related

[HOW-TO]Change Clock Color on Status Bar in latest samsung rom (jb)

Hi , I had search every where how to change clock color on status bar in latest Samsung ROM ( JB ) but non-work
Coz its code is a bit different from other ROM. So here's how
Requirement :
SystemUI.apk
A bit knowledge about decompiling
Patience
First --->
Decompile your systemUI.apk, go res/layout/tw_status_bar.xml
Then --->
Search for this code
Code:
<com.android.systemui.statusbar.policy.Clock
Then --->
You will see
Code:
android:textColor="#fffefefe
behind it.
Now you may change whatever color you want by changing the code.
Here http://html-color-codes.info/ it maybe useful for you to find the color code
Note : The last 6-digit IS the color code, whereby
the two in front it is transparency.
It count by
#FF****** ( Opaque )
#00****** (Transparent )
It is recommended not to change the first two digits except you know what you are doin :laugh:
Now --->
Recompile your apk , drag resources.arsc and tw_status_bar.xml from your newly build APK to your old SystemUI.apk
Finally --->
Push your SystemUI,apk to system/app of your phone and reboot.
DONE.
DO PRESS THE THANKS BUTTON IF I HELP YOU !!!! CHEERS
You can change the colour of the battery text on the line above this too.
BTW, as nothing is changed in resources.arsc when you decompile, edit \layout\tw_status_bar.xml and then recompile so there's no need to replace it in your old SystemUI.apk
Just replace the modified & recompiled tw_status_bar.xml
Spannaa said:
You can change the colour of the battery text on the line above this too.
BTW, as nothing is changed in resources.arsc when you decompile, edit \layout\tw_status_bar.xml and then recompile so there's no need to replace it in your old SystemUI.apk
Just replace the modified & recompiled tw_status_bar.xml
Click to expand...
Click to collapse
what's the line that I should edit to change the txt color of the battery percentage pls ?
thanks for ur help
hii1 said:
what's the line that I should edit to change the txt color of the battery percentage pls ?
thanks for ur help
Click to expand...
Click to collapse
Code:
<TextView android:textSize="12.0dip" android:textColor="#ff33b5e5" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
android:textColor="#ff33b5e5" changes the battery % text to ICS Blue - if you want a different colour, change the last six characters to the hex code of the clour you want.
Been looking for ages
Been looking for ages and tried lots of methods and finally one that works. And such a simple change too............
Thanks a million:good:
Hi there......
As posted earlier I have managed to get this to work but flashed using Villain Theme .zip........worked fine.
I have a small problem and would appreciate any input.......As said I changed the clock colour and at the same time altered a couple of other values in the values/dimens file as below to 100% for brighter notifications.
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
<item type="dimen" name="tw_status_bar_icon_drawing_alpha">100.0%</item>
However, when I recompile the values folder is not present in the recompiled build/res folder but the other I changed was. Can anyone tell me why? It would be very helpful to know if I am doing something wrong when recompiling.....
Many thanks in advance:fingers-crossed:
CarlM34 said:
Hi there......
As posted earlier I have managed to get this to work but flashed using Villain Theme .zip........worked fine.
I have a small problem and would appreciate any input.......As said I changed the clock colour and at the same time altered a couple of other values in the values/dimens file as below to 100% for brighter notifications.
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
<item type="dimen" name="tw_status_bar_icon_drawing_alpha">100.0%</item>
However, when I recompile the values folder is not present in the recompiled build/res folder but the other I changed was. Can anyone tell me why? It would be very helpful to know if I am doing something wrong when recompiling.....
Many thanks in advance:fingers-crossed:
Click to expand...
Click to collapse
Values becomes part of resources.arsc
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Values becomes part of resources.arsc
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for the reply.......worked:good:
If anyone can help it would be really appreciated!
I have posted in various theming threads but to no avail and am posting here as a last ditch cry for aid
Not sure what I have done here but my volume slider seems to be scrunched up slightly and am unsure how to rectify?
I have not altered the volume_slider_bg.9 and have changed the size of the icons but no change.
As said, any help is appreciated, thanks
How to Center the Clock in Status Bar
Hi,
Can any one provide the code to center the clock in the status bar.....I assume it is also in the tw_status_bar.xml..............JB......I cannot find anything that works at the moment.
Many Thanks in advance:good:
CarlM34 said:
Hi,
Can any one provide the code to center the clock in the status bar.....I assume it is also in the tw_status_bar.xml..............JB......I cannot find anything that works at the moment.
Many Thanks in advance:good:
Click to expand...
Click to collapse
It's the second mod in this post by @bombaybadboy

[Q] Any solutions on how to remove 5 toggles on Stock ROM

Hello guys, specially for Themers.
Anyone of you knows how to remove the toggles on the statusbar expanded? If anyone could help me that could be highly appreciated.
Dunno if this working or not but u can try this...
Quickpanel_quick_setting.xml change every framelayout height to "0.0dip"
Sent from my GT-S5360 using Tapatalk 2
Try this:
in the Quickpanel_quick_setting.xml
Look for
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
replace
Code:
android:layout_height="@dimen/quick_setting_button_height"
with this
Code:
android:layout_height="0.0dip"
hope it works
remember to make a backup though
d3cka said:
Dunno if this working or not but u can try this...
Quickpanel_quick_setting.xml change every framelayout height to "0.0dip"
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
DarkZied said:
Try this:
in the Quickpanel_quick_setting.xml
Look for
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
replace
Code:
android:layout_height="@dimen/quick_setting_button_height"
with this
Code:
android:layout_height="0.0dip"
hope it works
remember to make a backup though
Click to expand...
Click to collapse
nope, neither worked. @DarkZied There's no LinearLayout in statusbar_expanded.xml. There's framelayout. Changed that wo 0.0dip, didn't work as well
Just add lidroid 15 toggles, then go into settings and uncheck every toggle.
Sent from my GT-S5830i - Hit thanks if I helped

Setup a Email Link

Hi there, looking to see if anyone knows how to set a email link from XML Coding?
Cheers
t3hShmo said:
Hi there, looking to see if anyone knows how to set a email link from XML Coding?
Cheers
Click to expand...
Click to collapse
Hi,
For TextView you can use android:autoLink = "email" property.
Something like this:
Code:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="email"
android:text="[email protected]" />
strings.xml
Code:
<string name="my_email_link"> send an <a href=mailto:[email protected]>Email</a> to developer</string>
. Then create textview, and setText() to example string.
Noted to self thrice via tapatalk

AndroidRuntime: java.lang.RuntimeException Phone app not working

Dear Guys,
I have an LTE tab with Android version 4.0.4, when i make GSM call, black screen appears in portrait, and phone app crash by FC message "Unfortunately, the process com.android.phone has stopped", unable to make calls, now with the help of logcat, i found below exception.
AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020109
I am trying to locate the Resource ID #0x7f020109, but unable to find it , Kindly suggest some solution please. Please help me
Take a look on logcat again. Just after these lines you will see where this resource is called.
Post Some more logcat. I try to explain it.
Sent from my GT-S5360 using XDA Premium 4 mobile app
muzi786 said:
Dear Guys,
I have an LTE tab with Android version 4.0.4, when i make GSM call, black screen appears in portrait, and phone app crash by FC message "Unfortunately, the process com.android.phone has stopped", unable to make calls, now with the help of logcat, i found below exception.
AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020109
I am trying to locate the Resource ID #0x7f020109, but unable to find it , Kindly suggest some solution please. Please help me
Click to expand...
Click to collapse
Search for id in public.xml of phone.apk.if its not there it must be in framework .search there
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Search for id in public.xml of phone.apk.if its not there it must be in framework .search there
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for helping me, dear i find in both framework and phone.apk but not found this id, i think its permission issue, here below the selected lines of logcat .. and also full logcat for selected pid "5438" has been attached (phone.txt) and complete log (new.txt) . Kindly please look in to it..
03-26 15:45:48.990 5438 5438 W GsmCallTracker: test.voicecall -false
03-26 15:45:48.990 5438 5438 W GsmCallTracker: voice call is not supported!!
Above two lines are comming only for incoming calls and also for outgoing calls, and no indication of incoming calls are comming on tab.
03-26 15:45:53.725 5438 5438 D Activity: [email protected]() : com.android.phone.PrivilegedOutgoingCallBroadcaster
03-26 15:45:53.745 5438 5438 D Activity: [email protected]() : com.android.phone.PrivilegedOutgoingCallBroadcaster
03-26 15:45:53.925 396 1512 W ActivityManager: Permission Denial: broadcasting Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } from r.callerPackage (pid=5438, uid=1001) requires com.sec.android.app.factorytest.permission.KEYSTRI NG due to receiver info.activityInfo.packageName/info.activityInfo.name
03-26 15:45:54.526 5438 5438 E AndroidRuntime: FATAL EXCEPTION: main 03-26 15:45:54.526 5438 5438 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020109
That permission denial is only warning.exception is that resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
---------- Post added at 05:11 PM ---------- Previous post was at 05:10 PM ----------
Decompile phone.apk search incallscreen.smali and search this id and try to find what is it
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
That permission denial is only warning.exception is that resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
---------- Post added at 05:11 PM ---------- Previous post was at 05:10 PM ----------
Decompile phone.apk search incallscreen.smali and search this id and try to find what is it
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dear i copied Phone.apk from /system/app/Phone.apk and when i try to decompile its gives below output
./apktool d Phone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/usr123/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103031b
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103031b
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01040591
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(ResScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(ResScalarValue.java:48)
at brut.androlib.res.data.value.ResArrayValue.getType(ResArrayValue.java:74)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:50)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
In extracted Phone folder, i trying to found that resource id but not found, can you please suggest , i think decompile is not done properly and this is the same reason for incoming calls also ? as currently no indication of incoming calls on tab
You have not installed correct framework.until you are able to fully decompile you cant say that didnt found the resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
You have not installed correct framework.until you are able to fully decompile you cant say that didnt found the resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dear, thanks so much for your great support, can you please suggest the right way of decompile or if feasible to you can i attach the Phone.apk file. Please suggest..
There are lot of guides on xda search
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
There are lot of guides on xda search
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Right, i am searching and will get back to you after successful decompile Phone.apk , Thanks again dear so much..
muzi786 said:
Right, i am searching and will get back to you after successful decompile Phone.apk , Thanks again dear so much..
Click to expand...
Click to collapse
Now Phone.apk has been successfully decompiled.....
./apktool d Phone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/usr123l/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
and i found missing resource not found id in below file
res/values/public.xml: <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
Kindly please suggest..
muzi786 said:
Now Phone.apk has been successfully decompiled.....
./apktool d Phone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/usr123l/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
and i found missing resource not found id in below file
res/values/public.xml: <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
Kindly please suggest..
Click to expand...
Click to collapse
Search in framework-res.apk and if you have samsung device search twframework-res.apk also.
And as previously said search in that smali that for what purpose/element this id is being referred.
Had you deleted any apk from your system earlier?
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Search in framework-res.apk and if you have samsung device search twframework-res.apk also.
And as previously said search in that smali that for what purpose/element this id is being referred.
Had you deleted any apk from your system earlier?
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Let me check and will update you...
Dear arpitkh96
No i cant delete any apk file, I search ID in framework-res.apk and twframework-res.apk files, also i search InCallScreen.smali file but cant find in Phone.apk and frameworks apk , however i also decompile SecPhone.apk, SecContacts.apk and Settings.apk and found this id in SecContacts.apk and Settings.apk in --> public.xml
In SecContacts.apk
res/values/public.xml: <public type="drawable" name="call_dial_btn_08_press_tw_h" id="0x7f020109" />
In Settings.apk
res/values/public.xml: <public type="drawable" name="ic_sysbar_quicksettings" id="0x7f020109" />
Kindly please suggest , thanks for your great help and support.
All I can say is resource not found exception means that corresponding drawable (named like tw button 08...)is not available .search for this drawable.if its not present make one with same name.otherwise if are on stock unrooted ROM,its better to take it to Samsung care
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
All I can say is resource not found exception means that corresponding drawable (named like tw button 08...)is not available .search for this drawable.if its not present make one with same name.otherwise if are on stock unrooted ROM,its better to take it to Samsung care
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Right, actually its LTE tab which comes with out calling faclility i have rooted it and enabled voice via "voice_capable=true" in framework-res.apk, i am on stock ICS ROM, can i need to rebuild Phone.apk or can i replace the Phone.apk ? please kindly just guide me. Thanks a lot for great information..
muzi786 said:
Right, actually its LTE tab which comes with out calling faclility i have rooted it and enabled voice via "voice_capable=true" in framework-res.apk, i am on stock ICS ROM, can i need to rebuild Phone.apk or can i replace the Phone.apk ? please kindly just guide me. Thanks a lot for great information..
Click to expand...
Click to collapse
You can not use phone.apk from other device or other android version. though you can build but it requires loads of skills.and if samsungs dependencies are in phone.apk then even that would not work.its better to use a custom ROM.only that could help you.maybe devs have a better solution. I cant say
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
You can not use phone.apk from other device or other android version. though you can build but it requires loads of skills.and if samsungs dependencies are in phone.apk then even that would not work.its better to use a custom ROM.only that could help you.maybe devs have a better solution. I cant say
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Right, so its mean we have only option as you suggest before to rebuild Phone.apk for fixing the missing drawable, as per above findings, is call_dial_btn_08_press_tw_h" id="0x7f020109" related to missing resource in Phone.apk ? as this reference found in SecContacts.apk --> public.xml , its image file present in drawable folder of SecContacts, as below
SecContacts/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
SecContacts/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
So can i use below procedure for this missing drawable
1)Copy this image file to decompiled Phone directory, like below, as this image is currently not present in Phone drawable directories.
Phone/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
Phone/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
2) Edit Phone.apk --> public.xml and add reference of it like as below
replace this line --> <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
with new line --> <public type="drawable" name="call_dial_btn_08_press_tw_h" id="0x7f020109" />
3) rebuild Phone.apk and then copy it in system/app/ directory.
Either above procedure is right ? Pleas suggest
muzi786 said:
Right, so its mean we have only option as you suggest before to rebuild Phone.apk for fixing the missing drawable, as per above findings, is call_dial_btn_08_press_tw_h" id="0x7f020109" related to missing resource in Phone.apk ? as this reference found in SecContacts.apk --> public.xml , its image file present in drawable folder of SecContacts, as below
SecContacts/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
SecContacts/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
So can i use below procedure for this missing drawable
1)Copy this image file to decompiled Phone directory, like below, as this image is currently not present in Phone drawable directories.
Phone/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
Phone/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
2) Edit Phone.apk --> public.xml and add reference of it like as below
replace this line --> <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
with new line --> <public type="drawable" name="call_dial_btn_08_press_tw_h" id="0x7f020109" />
3) rebuild Phone.apk and then copy it in system/app/ directory.
Either above procedure is right ? Pleas suggest
Click to expand...
Click to collapse
Don't edit public.XML.keep it as it is.other steps same.
And I don't think this would solve the problem. as that apktool... Id indicates that it will automatically take resources from dependency apps or frameworks
please if your device has forum then better ask there else ask it in android q & a forum.I have no experience with type of problems you are facing and what you are trying to achieve so its better if you ask some expert or people who are experienced in these type .I had just given you knowledge which I had.moreover this forum is for java app development ,not for decompiling etc.Sorry please don't mind but I can't help you.probably steps you have followed to enable voice call must of seen from a guide etc.ask those people
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Don't edit public.XML.keep it as it is.other steps same.
And I don't think this would solve the problem. as that apktool... Id indicates that it will automatically take resources from dependency apps or frameworks
please if your device has forum then better ask there else ask it in android q & a forum.I have no experience with type of problems you are facing and what you are trying to achieve so its better if you ask some expert or people who are experienced in these type .I had just given you knowledge which I had.moreover this forum is for java app development ,not for decompiling etc.Sorry please don't mind but I can't help you.probably steps you have followed to enable voice call must of seen from a guide etc.ask those people
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dear arpitkh96
Thanks for your comments and suggestions, i found XDA is the best forum to acheive this kinds of issues, but unfortunately the LTE 8.9 Android tab section is not fully active, perhaps may be this has been considering old device as i found some threads related to enable voice features but i think this kind of issue is the first one which i was reported. I also posted on other forums but dont get any response. Also i am feeling afraid to flash CM10 rom but as per R&D and asking on XDA, still not get any reponse. I hope this not a big deal for a normal developer, and i hope may be in future this issue will resolve, or i will try myself to become a developer . I appreicate your help and time for communication as my learning is keep growing up. Thanks again once and best wishes for you and for all developers.

[TUTORIAL]Add the "Delete" button on the screenshot preview

Requirement:
1. apktool 1.5.2
2. Notepad++
3. Deodex System
---------------------------------------------------
1. Decompile SystemUI.apk
2. Download delete_button.rar from attachment and merge to your SystemUI.apk
3.Open /res/value/stings with Notepad++ add the following lines:
<string name="screenshot_delete_action">Delete</string>
<string name="screenshot_delete_confirmation">Screenshot deleted.</string>
<string name="permdesc_screenshot">Capture screenshot</string>
<string name="permlab_screenshot">Allows the app to cature a screenshot. This is protected by SystemUI.</string>
<string name="screenshot_toast">Screenshot in %1$d seconds</string>
Click to expand...
Click to collapse
4.Now compile your SystemUI.apk
5.Now decompile the SystemUI.apk you just compiled
6.Navigate to com/android/systemui/screenshot/DeleteScreenshot.smali
7. find 0x7f090049 delete id
And replace your id
<public type="string" name="screenshot_delete_confirmation" id
Click to expand...
Click to collapse
8.Navigate to SystemUI\smali\com\android\systemui\screenshot\SaveImageInBackgroundTask.smali
find id and delete id and replace your id
0x10405b7 (-Framework-res- public.xml) = <public type="string" name="share"
0x7f09007b = <public type="string" name="screenshot_saving_ticker"
0x7f09007c = <public type="string" name="screenshot_saving_title"
0x7f09007d = <public type="string" name="screenshot_saving_text"
0x7f0200f2 = <public type="drawable" name="stat_notify_image"
0x7f020022 = <public type="drawable" name="ic_menu_share"
0x7f020021 = <public type="drawable" name="ic_menu_delete"
0x7f090048 = <public type="string" name="screenshot_delete_action"
0x7f09007e = <public type="string" name="screenshot_saved_title"
0x7f09007f = <public type="string" name="screenshot_saved_text"
Click to expand...
Click to collapse
9. AndroidManifest.xml
find
Code:
<service android:exported="false" android:name=".screenshot.TakeScreenshotService" android:process=":screenshot"/>
and change to
Code:
<service android:name=".screenshot.TakeScreenshotService" android:permission="android.permission.SCREENSHOT" android:exported="false" android:process=":screenshot">
<intent-filter>
<android name="android.intent.action.SCREENSHOT" />
</intent-filter>
</service>
<receiver android:name=".screenshot.DeleteScreenshot" android:exported="true" />
<service android:name=".LoadAverageService" android:exported="true" />
find
<uses-permission android:name="android.permission.CRYPT_KEEPER" />
Click to expand...
Click to collapse
change to
Code:
<uses-permission android:name="android.permission.CRYPT_KEEPER" />
<protected-broadcast android:name="android.permission.SCREENSHOT" />
<protected-broadcast android:name="android.intent.action.SCREENSHOT" />
<permission android:label="@string/permlab_screenshot" android:name="android.permission.SCREENSHOT" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_screenshot" />
10. Save the file and close it.
11. Now recompile your SystemUI.apk and sign it.
12. Enjoy!
Thanks - grisha84
Screenshotes
Nice bro, will try it
A very useful tutorial indeed great work!!
@sportik555
Nice work m8 as always.
Do you know how to add clear all button in recent apps? Or know some tutorial?
Thanks
thanks
please fix all
.parameter "xxx"
Click to expand...
Click to collapse
because i use apktool_2.0.0rc3 to decompile my systemUI and its dont have .parameter only have .param p1, "xxx"
p/s : i've fixed it already but why dont have delete confirm message ?
devilmaycry2020 said:
thanks
please fix all because i use apktool_2.0.0rc3 to decompile my systemUI and its dont have .parameter only have .param p1, "xxx"
Click to expand...
Click to collapse
you need Apktool 1.5.2
Dzepar said:
@sportik555
Nice work m8 as always.
Do you know how to add clear all button in recent apps? Or know some tutorial?
Thanks
Click to expand...
Click to collapse
I know, but you need to check, give systemUI and I try
sportik555 said:
you need Apktool 1.5.2
Click to expand...
Click to collapse
why dont use newest apktool ? old apktool can't decompile android 4.4
and maybe you missed add a call parameter to DeleteScreenshot.smali in GlobalScreenshot.smali .i'm using android 4.3
devilmaycry2020 said:
why dont use newest apktool ? old apktool can't decompile android 4.4
and maybe you missed add a call parameter to DeleteScreenshot.smali in GlobalScreenshot.smali .i'm using android 4.3
Click to expand...
Click to collapse
smali for apktool 1.5.2 , old can decompile 4.4
maybe you missed add a call parameter to DeleteScreenshot.smali in GlobalScreenshot.smali
Click to expand...
Click to collapse
no it is not necessary to do,tested 3 sony android 4.4 phones and work delete button
sportik555 said:
smali for apktool 1.5.2 , old can decompile 4.4
no it is not necessary to do,tested 3 sony android 4.4 phones and work delete button
Click to expand...
Click to collapse
i said it worked but what string "screenshot_delete_confirmation" use for ? i mean when i press delete icon it dont show any confirm message want to delete or not.
devilmaycry2020 said:
i said it worked but what string "screenshot_delete_confirmation" use for ? i mean when i press delete icon it dont show any confirm message want to delete or not.
Click to expand...
Click to collapse
screenshot_delete_confiramation use for DeleteScreenshot.smali
6.Navigate to com/android/systemui/screenshot/DeleteScreenshot.smali
7. find 0x7f090049 delete id
And replace your id
Quote:
<public type="string" name="screenshot_delete_confirmation" id
Click to expand...
Click to collapse
i mean when i press delete icon it dont show any confirm message want to delete or not
Click to expand...
Click to collapse
you are wrong edited AndroidManifest.xml .
sportik555 said:
I know, but you need to check, give systemUI and I try
Click to expand...
Click to collapse
It's from Xperia J JB 4.1.2.
SystemUI
Thanks
sportik555 said:
screenshot_delete_confiramation use for DeleteScreenshot.smali
you are wrong edited AndroidManifest.xml .
Click to expand...
Click to collapse
So string "screenshot_delete_confirmation" is useless it didn't show anywhere. how do you know i were wrong edited AndroidManifest.xml? i've not upload any my file to you.
anyway here is my file.
Dzepar said:
[MENTION=5555617]
Do you know how to add clear all button in recent apps? Or know some tutorial?
Click to expand...
Click to collapse
All you needed was a little research. http://forum.xda-developers.com/showthread.php?t=2614356 (I prefer the Z3 style)
Can OP please disable emoticons in the first post? It's annoying to copy code and there are some emoticons in the middle..
And yes there is an option to disable emoticons on the post... Just edit it properly or put
Code:
[/ code] in the code sections... Not QUOTE..
Enviado do meu SM-N9005 através de Tapatalk
joluke said:
Can OP please disable emoticons in the first post? It's annoying to copy code and there are some emoticons in the middle..
And yes there is an option to disable emoticons on the post... Just edit it properly or put
Code:
[/ code] in the code sections... Not QUOTE..
Enviado do meu SM-N9005 através de Tapatalk[/QUOTE]
I find 1 emotions post and post edit
Click to expand...
Click to collapse
Papanik said:
All you needed was a little research. http://forum.xda-developers.com/showthread.php?t=2614356 (I prefer the Z3 style)
Click to expand...
Click to collapse
i don't think so, maybe he want it look like this.
works great on my z1 compact using z3 SystemUI, thanks
Gave error recompile . see the log below...

Categories

Resources