[Guide] How to add a 2G Toggle to the Lidroid 23 Toggles Mod - Galaxy S III Themes and Apps

This guide adds a 2G/3G/Auto toggle to the Lidroid 23 Toggles, making it 24 toggles instead. It is based on this guide by Neme77. I've just done some legwork and made it compatible with the wanam version of the lidroid framework we're all using.
For this guide you will need:
APKtool
signapk
2G_Toggle_SecPhone.apk.zip
2G_Toggle_SystemUI.apk.zip
CWM_2G_Toggle.zip - A Blank CWM zip for you to flash your modded files once you've made them.
The latest translated version of the Lidroid framework from here
You will be decompiling:
SystemUI.apk
SecPhone.apk
services.jar
Firstly decompile SecPhone.apk using apktool and then extract the contents of 2G_Toggle_SecPhone.apk.zip into:
Code:
SecPhone.apk/smali/
Now we need to add some lines to the AndroidManifest.xml for SecPhone.apk. Open up the file and add the lines in red:
Code:
<receiver android:name="CallerInfoCacheUpdateReceiver">
<intent-filter>
<action android:name="com.android.phone.UPDATE_CALLER_INFO_CACHE" />
</intent-filter>
</receiver>
<receiver android:name="PhoneApp$NotificationBroadcastReceiver" exported="false">
<intent-filter>
<action android:name="com.android.phone.ACTION_HANG_UP_ONGOING_CALL" />
<action android:name="com.android.phone.ACTION_CALL_BACK_FROM_NOTIFICATION" />
<action android:name="com.android.phone.ACTION_SEND_SMS_FROM_NOTIFICATION" />
</intent-filter>
</receiver>
[COLOR="Red"]<receiver android:name="NetworkModeReceiver">
<intent-filter>
<action android:name="com.android.phone.CHANGE_NETWORK_MODE" />
<action android:name="com.android.phone.NEW_NETWORK_MODE" />
</intent-filter>
</receiver>[/COLOR]
<uses-library android:name="com.sec.android.app.multiwindow" android:required="false" />
<uses-library android:name="libvtmanagerjar" />
<uses-library android:name="secmediarecorder" />
<uses-library android:name="sec_platform_library" />
<uses-library android:name="touchwiz" />
</application>
</manifest>
In the original guide, he goes about it differently, but it wouldn't work for me. However, since version XXEMR2 has changed the way the firmware handles the System user you need to edit the services.jar in order to get certain toggles working, as mentioned by wanam here.
Recompile SecPhone and sign it using signapk. You can use this command:
Code:
java -jar signapk.jar certificate.pem key.pk8 your-app.apk your-signed-app.apk
Next, decompile SystemUI.apk and extract the 2G_Toggle_SystemUI.apk.zip into:
Code:
SystemUI.apk/smali/
Overwrite any files.
You may want to prep your SystemUI for later revisions and open your AndroidManefest.xml file and change the header to this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="android.uid.system" android:process="system" android:versionCode="16" [COLOR="Red"]android:versionName="4.1.2-I9300XXEMR2"[/COLOR] package="com.android.systemui" coreApp="true"
xmlns:android="http://schemas.android.com/apk/res/android">
Taking care to change the red text to your version.
Recompile SystemUI.apk. If you changed the AndroidManifest.xml, sign the package like we did the SecPhone.apk
Now decompile services.jar from /system/framework/
Find:
Code:
PackageManagerService.smali
and look for the method:
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
Replace the whole method with this:
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 7
.parameter "s1"
.parameter "s2"
.prologue
const/4 v6, 0x0
const-string v3, "Wanam: PackageManager"
const-string v4, "Skip signature check."
invoke-static {v3, v4}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I
return v6
.end method
Recompile
You can now copy your modded files into the CWM_2G_Toggle.zip file. Take care to match the names as they go in. "SystemUI.apk" must be named like that, "SecPhone.apk" must be named like that also
NB: It takes about a minute to switch from 2G to 3G and vice versa. If you dial *#197328640# you can observe the change from WCDMA2100 to GSM1800 as you switch.

Worked perfect, thank you for sharing.

fOmey said:
Worked perfect, thank you for sharing.
Click to expand...
Click to collapse
Awesome stuff

Thank you Kryten2k35. very good.

Where can I find lidroid 23 toggles?
Sent from my GT-I9300 using xda app-developers app

awshengxiang said:
Where can I find lidroid 23 toggles?
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
You need this mod, first:
http://forum.xda-developers.com/showthread.php?t=2032614

Hi Kryten2k35, this mod was implemented several months ago in Inmortal Rom.
http://www.htcmania.com/showthread.php?t=534150
Pity that users don't know this rom. They had had 24 toggles in their roms time ago.
However, good job. This will help many cooks

Can be added on stock rom with stock toggles! ?

Related

[TUTORIAL][MOD] Statusbar GB Lovers

Make Button Toggle
Screenshot: http://s23.postimg.org/woufjtqx7/attachment_php.jpg
To be prepared:
Apktool/Apkmanger
SystemUI.apk deodex only
Notepad ++
1, Decompile SystemUI open folder smali\com\android\systemui\statusbar
and search file StatusBarService.smali open with Notepad++ press Ctrl F search by keyword “quickpanel”
Before:
Code:
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget; const/4 v8, 0x1
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedVie w:Lcom/android/systemui/statusbar/ExpandedView;
invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/ExpandedView;->addVie w(Landroid/view/View;I)V
And change
Code:
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget; const/4 v8, 0x1
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mCloseView:L com/android/systemui/statusbar/CloseDragHa ndle;
invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/CloseDragHandle;->add View(Landroid/view/View;I)V
2. Save and compile SystemUI
3. Change pemission to rw,r,r and move to system/app/
4. Reboot
Include Settings
Screnshot: http://s1.postimg.org/akfyigmbj/SC20130509_214615_copy.png
1. Make 2 .png image, and rename to
- ic_notify_quicksettings_normal.png
- ic_notify_quicksettings_pressed.png
2. Decompile SystemUI.apk an search status_bar_expanded.xml open with NotePad++
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
And paste code below
Code:
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
Open file StatusBarService.smali
pate code below
# virtual methods
Code:
.method public settingsButton(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 1717
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
new-instance v1, Landroid/content/Intent;
const-string v2, "android.settings.SETTINGS"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
.line 1720
return-void
.end method
3. Make new file ic_notify_quicksettings.xml move to drawable
copy paste code below
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_notify_quicksettings_pressed" />
<item android:drawable="@drawable/ic_notify_quicksettings_normal" />
</selector>
4. Save and compile SystemUI
5. Change pemission to rw,r,r and move to system/app/
6. Reboot
Add Analog Clock
Screenshot: http://s21.postimg.org/4i6pk4mlz/image.png
1. Decompile SystemUI.apk
2. Open res/layout/status_bar_expanded.xml
paste code below
Code:
<LinearLayout android:orientation="horizontal"
Code:
<AnalogClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:dial="@drawable/samurai_x" android:hand_hour="@drawable/samurai_x_hour" android:hand_minute="@drawable/samurai_x_minute" android:layout_alignParentRight="true" />
3. Download Analog clock.rar extract and move to res/drawable-ldpi
4. Save and compile SystemUI
5. Change pemission to rw,r,r and move to system/app/
6. Reboot
Add Toggle Music
Screenshot: http://s17.postimg.org/uerj1iewf/image.png
1. Decompile SystemUI.apk
2. Open file res/layout/status_bar_expanded.xml
3. Add code bellow
<LinearLayout android : orientation="horizontal"
Code:
<com.android.systemui.statusbar.TogelMusrik android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
4. Open file res/values/ids.xml
Add this code above </resources>
Code:
<item type="id" name="musrik">false</item>
5. Donwload assets toggle music
6. Copy folder assets to /SystemUI/ here
7. Copy folder smali to /SystemUI/smali/com/android/systemui/statusbar/ here
8. Save and compile SystemUI
9. Change pemission to rw,r,r and move to system/app/
10. Reboot
Cridit: Jmkl Six
RESERVED
Pertamax.....
Nice mastah :good:
bacrot78 said:
Pertamax.....
Nice mastah :good:
Click to expand...
Click to collapse
yaa mastah omli :good:
english please
if you not so worry, it better you put some image before and after
This is for gb right bottom toggle manage lidroid position to the bottom of nitification pulldown
Ok good work
Ur title threads seems wrong not button toggle but bottom toggle XD
Peace gan
Sent from my GT-I8150 using Xparent Skyblue Tapatalk 2
hepi_hape said:
english please
if you not so worry, it better you put some image before and after
Click to expand...
Click to collapse
Sory for bad english... this pic now update
evanlocked said:
This is for gb right bottom toggle manage lidroid position to the bottom of nitification pulldown
Ok good work
Ur title threads seems wrong not button toggle but bottom toggle XD
Peace gan
Sent from my GT-I8150 using Xparent Skyblue Tapatalk 2
Click to expand...
Click to collapse
yes this is for GB
nice guide om
filodev said:
nice guide om
Click to expand...
Click to collapse
Thanks you to my teacher..
adikasgw said:
Thanks you to my teacher..
Click to expand...
Click to collapse
wkakakakakakakaakakakaka :laugh:
●๋•ηι¢є ιηƒσ●๋•
will try n report
hey how about add recentapps shortcut to systemUI?
sir music toggle not working on me...
xD
hey how to make it bigger? :3 its too small
My systemUI FC when i click on settings button
Sent From My Samsung Galaxy Y s5360

[CM11][Port][XS]Smallapps/Taskswitcher guide

First of all: this guide is based off the guide by @lukakas found here http://forum.xda-developers.com/showthread.php?t=2460877
I tweaked it to get it to work on CM11, comparing the files of the Z2 system dump, the 4.3 resources provided in the guide by @lukakas and compared the difference with CM11 files.
In this guide I am using OPENsemc rom beta 3, wich is CyanogenMod 11 / Android KitKat
Before flashing the files, perform a FULL BACKUP in case something goes wrong!
Code:
I will NOT be held responsible if something happens to your device while or after flashing any of these files! All flashing is done at your OWN RISK.
I recommend using Virtuous Ten Studio for editing the files. It can be downloaded from: http://www.virtuous-ten-studio.com/index.php/downloads
Setting up Virtuous Ten Studio
Click on “File” then on “Open Settings” then proceed to ApkTool, and install Framework-res.apk from the rom you are trying to port SmallApps to by clicking on “Add single framework”
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Android.policy.jar
Click on “Open” then on “New Project” and import anroid.policy.jar as shown below:
(note, in properties/settings click on “Smali” and make sure the API is set to 4.4 KitKat)
Now open smali\com\android\internal\policy\impl\PhoneWindowManager.smali and select checkAddPermission from the dropdown menu
Find and alter the following lines of code: (added code is marked in green)
.method public checkAddPermission(Landroid/view/WindowManager$LayoutParams;[I)I
(Lines of code not needed in the part of the tutorial has been cut, do not delete them though)
:cond_1
const/4 v0, 0x0
.line 1609
.local v0, permission:Ljava/lang/String;
sparse-switch v1, :sswitch_data_0
(Lines of code not needed in the part of the tutorial has been cut, do not delete them though)
:sswitch_1
const-string v0, "android.permission.SYSTEM_ALERT_WINDOW"
.line 1627
const/16 v3, 0x18
aput v3, p2, v2
goto :goto_1
.line 1397 - This number should be a new number and should not be found elsewhere in this document
:sswitch_2
const-string v0, "com.sony.smallapp.permission.SMALLAPP"
.line 1398 - This number should be a new number and should not be found elsewhere in this document
goto :goto_1
.line 1609 - This number must match the number above the line.local v0, permission:Ljava/lang/String;
nop
:sswitch_data_0
.sparse-switch
0x7d2 -> :sswitch_1
0x7d3 -> :sswitch_1
0x7d5 -> :sswitch_0
0x7d6 -> :sswitch_1
0x7d7 -> :sswitch_1
0x7da -> :sswitch_1
0x7db -> :sswitch_0
0x7dd -> :sswitch_0
0x7e7 -> :sswitch_0
0xbb5 -> :sswitch_2
0xbb6 -> :sswitch_2
.end sparse-switch
.end method
Press control s to save the document and recompile it: (use right click on android.policy and click “Build project”
Framework2.jar
For this step, import and decompile Framework2.jar like in steps show above. Right click on “framework2” and select “Open in windows explorer”
In the explorer screen, navigate to Data/smali/com, copy and paste the “sony” folder provided in the resources zip. Once done, right click on “framework2” and select “Reload project”
Once the project has reloaded, right click on “framework2” and select “Build project”
Framework-res.apk
Import framework-res.apk into the project.
Note: make sure before importing that in the Apk-Tool section you select “Use newest ApkTool” and that you select the Framework tag. (Remember you installed framework-res.apk earlier?)
Once framework-res.apk has imported, open AndroidManifest.XML
Add the lines marked in green like below.
<permission android:name="com.sony.smallapp.permission.CONTROL_SMALLAPP" androidrotectionLevel="system|signature" />
<permission android:label="@string/permlab_smallapp" android:name="com.sony.smallapp.permission.SMALLAPP" androidrotectionLevel="dangerous" android:description="@string/permdesc_smallapp" />
<permission android:label="@string/permlab_taskSwitcherPluginView" android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" androidrotectionLevel="signatureOrSystem" android:description="@string/permdesc_taskSwitcherPluginView" />
<permission android:name="com.sonymobile.permission.ACCESS_BEACON_MANAGER" androidrotectionLevel="system|signature" />
Don’t forget to save the modifications you just made.
Next up: open res/values/ and open “strings.xml”
At the end of the file, copy the green lines:
<string name="permlab_smallapp">Small application overlay</string>
<string name="permdesc_smallapp">Allows running movable small applications on top of other applications.</string>
<string name="permlab_taskSwitcherPluginView">Provide plugin-view to the task-switcher</string>
<string name="permdesc_taskSwitcherPluginView">Allows the application to provide a plugin-view to the task-switcher</string>
Save your modifications and and “Build project”
SystemUI.apk
This part can be the trickiest and can cause a lot of headache. Import SystemUI.apk and open AndroidManifest.xml
Note: make sure before importing that in the Apk-Tool section you select “Use newest ApkTool” and that you select the Framework tag.
Add the lines marked in green like below.
<uses-permission android:name="com.sonymobile.permission.XSSM_PROVIDER" />
<uses-permission android:name="com.sonymobile.permission.XSSM" />
<uses-permission android:name="android.permission.BIND_APPWIDGET" />
<uses-permission android:name="com.sony.smallapp.app.widget.permission.BIND_SMALLAPP_WIDGET_MANAGER" />
<uses-permission android:name="com.sony.smallapp.permission.SMALLAPPMANAGER_CONTROL" />
<uses-permission android:name="com.sony.smallapp.launcher.permission.ACCESS_DATABASE" />
<uses-permission android:name="android.permission.DELETE_PACKAGES" />
<permission android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" androidrotectionLevel="normal" />
Add the lines marked in green like below. (in Recents Activity)
<action android:name="com.android.systemui.recent.action.OPEN_RECENTS_INTENT_FROM_SMALL_APP_LAUNCHER" />
Now navigate to res/values/ and open “attrs.xml”
Add the line marked in green at the end of the file:
<attr name="lookupKey" format="string" />
Now navigate to res/values/ and open “ids.xml”
Add the line marked in green at the end of the file:
<item type="id" name="recent_wipe_app">false</item>
<item type="id" name="recents_inject_custom_view">false</item>
<item type="id" name="recents_layout">false</item>
<item type="id" name="recents_pluginview_container">false</item>
Now navigate to res/values/ and open “public.xml”
Since we will be working with hex id’s, a word of advice.
Always create a new hex id in this file. Duplicating other hex number will result in a fail when trying to recompile
As an example:
<public type="attr" name="maxSize" id="0x7f010008" />
<public type="attr" name="holdTime" id="0x7f010009" />
<public type="attr" name="decayTime" id="0x7f01000a" />
<public type="attr" name="orientation" id="0x7f01000b" />
<public type="attr" name="singleRow" id="0x7f01000c" />
<public type="attr" name="lookupKey" id="0x7f01000d" />
Notice that all the hex number are sequential? All these numbers are only found once in the entire document. If I were to add another line below LookupKey it would look like this:
<public type="attr" name="Tutorial" id="0x7f01000e" />
When in doubt as to if the number you assigned to a line, just copy the hex number and use control f to search for it. When you can’t find another line with that number, you know that your hex number is one of a kind.
Let’s get started shall we.
First of all locate the last “attr” line and add the line below marked in green:
<public type="attr" name="lookupKey" id="PUT_HEX_HERE" />
Locate the last “layout” line (like where you put LookupKey in the example above) and add line below marked in green:
<public type="layout" name="plugin_view" id="PUT_HEX_HERE" />
Locate the last “id” line and do the same with the line below
<public type="id" name="recents_inject_custom_view" id=" PUT_HEX_HERE" " />
<public type="id" name="recents_layout" id=" PUT_HEX_HERE" " />
<public type="id" name="recents_pluginview_container" id=" PUT_HEX_HERE" " />
Now copy and paste (and overwrite) the files in the resources to res/layout and res/layout-land.
Now copy and paste (and overwrite) the .smali files in the resources to com/android/systemui and com/android/systemui/recent
Before going any further, don’t forget to save ALL the modifications you made and after that you need to right click on “SystemUI” and click on “Reload project”
Now open up RecentsActivity.smali
Virtuous Ten Studio helps you in which lines you need to alter. Every line that has an hex id will be marked by a little blue box
In the example above, 0x7f07007f represents “recents_pluginview_container” you need to change that hex number to the number you assigned to it earlier in “public.xml”
You need to change every hex number in this file to match the hex numbers you assigned earlier.
These are:
recents_pluginview_container
recents_layout
plugin_view
status_bar_recent_panel
recents_root
config_recent_item_min_alpha
recents_pluginview_container
recents_return_to_launcher_enter
recents_return_to_launcher_exit
Note that the list above is in the same order as the lines containing the hex numbers in RecentsActivity.smali. This means that “recents_pluginview_container” represents the first hex number, “recents_layout” the second, “plugin_view” the third etc. etc.
Once that is done, save the file and open R$styleable.smali.
Find line: sput-object v0, Lcom/android/systemui/R$styleable;->RecentsPanelView:[I
Change that hex id to match the id for LookupKey, you added that in “public.xml”.
Save all modifications and build your project.
Zip up all the files in a flashable zip and start flashing
These are all the steps I made to get it working, I hope this guide will help others to port SmallApps/Taskswitcher.
nice i will try when i come home.
thanks the guide
Sent from my LT26i using xda app-developers app
Well done!
@Kevin-0100, mate where to find Recent Activity? is it in the " smali\com\android\systemui\recent " ??
EDIT: found it already :3
@Kevin-0100
EDIT: im having these errors while doing the last step mate. pls help
In the top bar in VTS, click on view log. There you will find which lines are causing the build error. Are you trying to port it tot OmniRom? If so you should not copy and paste the .smali files in my resources as they come from another ROM (opensemc). Try using the .smali files from the OmniRom
Sent from my Xperia S using XDA Premium 4 mobile app
Ohh ok tnx mate
Sent from my LT26ii using xda premium
Error on
\res\layout\status_bar_recent_panel.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_clear').'
\res\layout-land\status_bar_recent_panel.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_clear').'
what should I do
Using Beanstalk ROM
I found similar error and fix by find some similar picture
I already change @drawable/ic_recents_clear to @drawable/ic_notify_clear_normal in both status_bar_recent_panel.xml
@MaDMaT80 can you add this taskswitcher and small apps to your 4.4 kitkat rom..it would be awsome..
Sent from my LT28h using Tapatalk
nut27455 said:
Error on
\res\layout\status_bar_recent_panel.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_clear').'
\res\layout-land\status_bar_recent_panel.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_clear').'
what should I do
Using Beanstalk ROM
I found similar error and fix by find some similar picture
I already change @drawable/ic_recents_clear to @drawable/ic_notify_clear_normal in both status_bar_recent_panel.xml
Click to expand...
Click to collapse
You need to go to res/values/ids and make a new value for recents_clear. That should fix it
Sent from my C1905 using XDA Premium 4 mobile app
Kevin-0100 said:
You need to go to res/values/ids and make a new value for recents_clear. That should fix it
Sent from my C1905 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thank you it work for build.
But FC when open recent in phone.
Anyway thank you for sharing this.
If you get a logcat you could try finding the reason for the FC
Sent from my C1905 using XDA Premium 4 mobile app
Got it
I/dalvikvm(3258): Could not find method com.android.systemui.recent.RecentsActivity.dismissAndDoNothing, referenced from method com.android.systemui.recent.RecentsPanelView.dismissAndDoNothing
W/dalvikvm(3258): VFY: unable to resolve virtual method 4171: Lcom/android/systemui/recent/RecentsActivity;.dismissAndDoNothing ()V
There is an error in your RecentsActivity.smali. Open that file and search for PanelView and see if everything is correct. I think the FC may be caused by an error in the PanelView section.
Sent from my C1905 using XDA Premium 4 mobile app
@Kevin-0100
I can't understant last step.In oldu version. 10.1 Op write the line which we must past the hex code at the public. Find the blué line in RecentsActivity.smali but which is the "recents_pluginview_container" or "recents_layout" cant find.
You will not find "recents_activity" etc. In Recentsactivity.smali the names are replaced with hex numbers. Follow the last step precisely (using virtuous ten studio) and you will find which lines to edit
Sent from my C1905 using XDA Premium 4 mobile app
Good working i'll be add my rom. Thanks
Kevin-0100 said:
First of all: this guide is based off the guide by @lukakas found here http://forum.xda-developers.com/showthread.php?t=2460877
I tweaked it to get it to work on CM11, comparing the files of the Z2 system dump, the 4.3 resources provided in the guide by @lukakas and compared the difference with CM11 files.
In this guide I am using OPENsemc rom beta 3, wich is CyanogenMod 11 / Android KitKat
Before flashing the files, perform a FULL BACKUP in case something goes wrong!
Code:
I will NOT be held responsible if something happens to your device while or after flashing any of these files! All flashing is done at your OWN RISK.
I recommend using Virtuous Ten Studio for editing the files. It can be downloaded from: http://www.virtuous-ten-studio.com/index.php/downloads
Setting up Virtuous Ten Studio
Click on “File” then on “Open Settings” then proceed to ApkTool, and install Framework-res.apk from the rom you are trying to port SmallApps to by clicking on “Add single framework”
Android.policy.jar
Click on “Open” then on “New Project” and import anroid.policy.jar as shown below:
(note, in properties/settings click on “Smali” and make sure the API is set to 4.4 KitKat)
Now open smali\com\android\internal\policy\impl\PhoneWindowManager.smali and select checkAddPermission from the dropdown menu
Find and alter the following lines of code: (added code is marked in green)
.method public checkAddPermission(Landroid/view/WindowManager$LayoutParams;[I)I
(Lines of code not needed in the part of the tutorial has been cut, do not delete them though)
:cond_1
const/4 v0, 0x0
.line 1609
.local v0, permission:Ljava/lang/String;
sparse-switch v1, :sswitch_data_0
(Lines of code not needed in the part of the tutorial has been cut, do not delete them though)
:sswitch_1
const-string v0, "android.permission.SYSTEM_ALERT_WINDOW"
.line 1627
const/16 v3, 0x18
aput v3, p2, v2
goto :goto_1
.line 1397 - This number should be a new number and should not be found elsewhere in this document
:sswitch_2
const-string v0, "com.sony.smallapp.permission.SMALLAPP"
.line 1398 - This number should be a new number and should not be found elsewhere in this document
goto :goto_1
.line 1609 - This number must match the number above the line.local v0, permission:Ljava/lang/String;
nop
:sswitch_data_0
.sparse-switch
0x7d2 -> :sswitch_1
0x7d3 -> :sswitch_1
0x7d5 -> :sswitch_0
0x7d6 -> :sswitch_1
0x7d7 -> :sswitch_1
0x7da -> :sswitch_1
0x7db -> :sswitch_0
0x7dd -> :sswitch_0
0x7e7 -> :sswitch_0
0xbb5 -> :sswitch_2
0xbb6 -> :sswitch_2
.end sparse-switch
.end method
Press control s to save the document and recompile it: (use right click on android.policy and click “Build project”
Framework2.jar
For this step, import and decompile Framework2.jar like in steps show above. Right click on “framework2” and select “Open in windows explorer”
In the explorer screen, navigate to Data/smali/com, copy and paste the “sony” folder provided in the resources zip. Once done, right click on “framework2” and select “Reload project”
Once the project has reloaded, right click on “framework2” and select “Build project”
Framework-res.apk
Import framework-res.apk into the project.
Note: make sure before importing that in the Apk-Tool section you select “Use newest ApkTool” and that you select the Framework tag. (Remember you installed framework-res.apk earlier?)
Once framework-res.apk has imported, open AndroidManifest.XML
Add the lines marked in green like below.
<permission android:name="com.sony.smallapp.permission.CONTROL_SMALLAPP" androidrotectionLevel="system|signature" />
<permission android:label="@string/permlab_smallapp" android:name="com.sony.smallapp.permission.SMALLAPP" androidrotectionLevel="dangerous" android:description="@string/permdesc_smallapp" />
<permission android:label="@string/permlab_taskSwitcherPluginView" android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" androidrotectionLevel="signatureOrSystem" android:description="@string/permdesc_taskSwitcherPluginView" />
<permission android:name="com.sonymobile.permission.ACCESS_BEACON_MANAGER" androidrotectionLevel="system|signature" />
Don’t forget to save the modifications you just made.
Next up: open res/values/ and open “strings.xml”
At the end of the file, copy the green lines:
<string name="permlab_smallapp">Small application overlay</string>
<string name="permdesc_smallapp">Allows running movable small applications on top of other applications.</string>
<string name="permlab_taskSwitcherPluginView">Provide plugin-view to the task-switcher</string>
<string name="permdesc_taskSwitcherPluginView">Allows the application to provide a plugin-view to the task-switcher</string>
Save your modifications and and “Build project”
SystemUI.apk
This part can be the trickiest and can cause a lot of headache. Import SystemUI.apk and open AndroidManifest.xml
Note: make sure before importing that in the Apk-Tool section you select “Use newest ApkTool” and that you select the Framework tag.
Add the lines marked in green like below.
<uses-permission android:name="com.sonymobile.permission.XSSM_PROVIDER" />
<uses-permission android:name="com.sonymobile.permission.XSSM" />
<uses-permission android:name="android.permission.BIND_APPWIDGET" />
<uses-permission android:name="com.sony.smallapp.app.widget.permission.BIND_SMALLAPP_WIDGET_MANAGER" />
<uses-permission android:name="com.sony.smallapp.permission.SMALLAPPMANAGER_CONTROL" />
<uses-permission android:name="com.sony.smallapp.launcher.permission.ACCESS_DATABASE" />
<uses-permission android:name="android.permission.DELETE_PACKAGES" />
<permission android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" androidrotectionLevel="normal" />
Add the lines marked in green like below. (in Recents Activity)
<action android:name="com.android.systemui.recent.action.OPEN_RECENTS_INTENT_FROM_SMALL_APP_LAUNCHER" />
Now navigate to res/values/ and open “attrs.xml”
Add the line marked in green at the end of the file:
<attr name="lookupKey" format="string" />
Now navigate to res/values/ and open “ids.xml”
Add the line marked in green at the end of the file:
<item type="id" name="recent_wipe_app">false</item>
<item type="id" name="recents_inject_custom_view">false</item>
<item type="id" name="recents_layout">false</item>
<item type="id" name="recents_pluginview_container">false</item>
Now navigate to res/values/ and open “public.xml”
Since we will be working with hex id’s, a word of advice.
Always create a new hex id in this file. Duplicating other hex number will result in a fail when trying to recompile
As an example:
<public type="attr" name="maxSize" id="0x7f010008" />
<public type="attr" name="holdTime" id="0x7f010009" />
<public type="attr" name="decayTime" id="0x7f01000a" />
<public type="attr" name="orientation" id="0x7f01000b" />
<public type="attr" name="singleRow" id="0x7f01000c" />
<public type="attr" name="lookupKey" id="0x7f01000d" />
Notice that all the hex number are sequential? All these numbers are only found once in the entire document. If I were to add another line below LookupKey it would look like this:
<public type="attr" name="Tutorial" id="0x7f01000e" />
When in doubt as to if the number you assigned to a line, just copy the hex number and use control f to search for it. When you can’t find another line with that number, you know that your hex number is one of a kind.
Let’s get started shall we.
First of all locate the last “attr” line and add the line below marked in green:
<public type="attr" name="lookupKey" id="PUT_HEX_HERE" />
Locate the last “layout” line (like where you put LookupKey in the example above) and add line below marked in green:
<public type="layout" name="plugin_view" id="PUT_HEX_HERE" />
Locate the last “id” line and do the same with the line below
<public type="id" name="recents_inject_custom_view" id=" PUT_HEX_HERE" " />
<public type="id" name="recents_layout" id=" PUT_HEX_HERE" " />
<public type="id" name="recents_pluginview_container" id=" PUT_HEX_HERE" " />
Now copy and paste (and overwrite) the files in the resources to res/layout and res/layout-land.
Now copy and paste (and overwrite) the .smali files in the resources to com/android/systemui and com/android/systemui/recent
Before going any further, don’t forget to save ALL the modifications you made and after that you need to right click on “SystemUI” and click on “Reload project”
Now open up RecentsActivity.smali
Virtuous Ten Studio helps you in which lines you need to alter. Every line that has an hex id will be marked by a little blue box
In the example above, 0x7f07007f represents “recents_pluginview_container” you need to change that hex number to the number you assigned to it earlier in “public.xml”
You need to change every hex number in this file to match the hex numbers you assigned earlier.
These are:
recents_pluginview_container
recents_layout
plugin_view
status_bar_recent_panel
recents_root
config_recent_item_min_alpha
recents_pluginview_container
recents_return_to_launcher_enter
recents_return_to_launcher_exit
Note that the list above is in the same order as the lines containing the hex numbers in RecentsActivity.smali. This means that “recents_pluginview_container” represents the first hex number, “recents_layout” the second, “plugin_view” the third etc. etc.
Once that is done, save the file and open R$styleable.smali.
Find line: sput-object v0, Lcom/android/systemui/R$styleable;->RecentsPanelView:[I
Change that hex id to match the id for LookupKey, you added that in “public.xml”.
Save all modifications and build your project.
Zip up all the files in a flashable zip and start flashing
These are all the steps I made to get it working, I hope this guide will help others to port SmallApps/Taskswitcher.
Click to expand...
Click to collapse
when i recompile, erro RecentsActivity$1.smali show screenshotView attachment 2715043
You should use apktool 1.5.2 and not 2.0 beta (you are probably using he beta version
Kevin-0100 said:
You should use apktool 1.5.2 and not 2.0 beta (you are probably using he beta version
Click to expand...
Click to collapse
Can you prapere video. i think better than this. Thanks.
carlito-lt26i said:
when i recompile, erro RecentsActivity$1.smali show screenshotView attachment 2715043
Click to expand...
Click to collapse
+1

[GUIDE] Add Ten Tabs Layout to SystemUI

This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005 # Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a # Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001 # your tab 1 drawable id here
const v1, 0x7f020003 # your tab 2 drawable id here
const v1, 0x7f020004 # your tab 3 drawable id here
const v1, 0x7f020005 # your tab 4 drawable id here
const v1, 0x7f020006 # your tab 5 drawable id here
const v1, 0x7f020007 # your tab 6 drawable id here
const v1, 0x7f020008 # your tab 7 drawable id here
const v1, 0x7f020009 # your tab 8 drawable id here
const v1, 0x7f02000a # your tab 9 drawable id here
const v1, 0x7f020002 # your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162 # your tab 1 drawable id here
const v1, 0x7f020164 # your tab 2 drawable id here
const v1, 0x7f020165 # your tab 3 drawable id here
const v1, 0x7f020166 # your tab 4 drawable id here
const v1, 0x7f020167 # your tab 5 drawable id here
const v1, 0x7f020168 # your tab 6 drawable id here
const v1, 0x7f020169 # your tab 7 drawable id here
const v1, 0x7f02016a # your tab 8 drawable id here
const v1, 0x7f02016b # your tab 9 drawable id here
const v1, 0x7f020163 # your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Needed files:
View attachment TenTabsFiles.zip v0.1
Source Codes?
You want to play with the code? Add functions? Explore and Learn? Copy method snippets? You can check it at my GitHub.:good::
Suggestions? Comments? Bugs (I hope none)?
Just post a reply here and I will try to attend to it. (The word "try" always has a "catch" Exception, iykwim.)
thx, now i have 15 tabs
73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
Note: I reversed the code above because xda recognizes it as an external link.
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005# Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a# Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001# your tab 1 drawable id here
const v1, 0x7f020003# your tab 2 drawable id here
const v1, 0x7f020004# your tab 3 drawable id here
const v1, 0x7f020005# your tab 4 drawable id here
const v1, 0x7f020006# your tab 5 drawable id here
const v1, 0x7f020007# your tab 6 drawable id here
const v1, 0x7f020008# your tab 7 drawable id here
const v1, 0x7f020009# your tab 8 drawable id here
const v1, 0x7f02000a# your tab 9 drawable id here
const v1, 0x7f020002# your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162# your tab 1 drawable id here
const v1, 0x7f020164# your tab 2 drawable id here
const v1, 0x7f020165# your tab 3 drawable id here
const v1, 0x7f020166# your tab 4 drawable id here
const v1, 0x7f020167# your tab 5 drawable id here
const v1, 0x7f020168# your tab 6 drawable id here
const v1, 0x7f020169# your tab 7 drawable id here
const v1, 0x7f02016a# your tab 8 drawable id here
const v1, 0x7f02016b# your tab 9 drawable id here
const v1, 0x7f020163# your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
View attachment 2884923View attachment 2884924View attachment 2884925
Needed files:
View attachment 2884926 v0.1
Click to expand...
Click to collapse
Tanks i am work in stockrom deodex :thumbup::thumbup:
Sent from my SM-N9000 using XDA Free mobile app
73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Click to expand...
Click to collapse
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
jasper~ said:
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
Click to expand...
Click to collapse
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment TenTabsFilesDecompiledWithapktoolMobile.zip
73R3WY said:
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment 2888827
Click to expand...
Click to collapse
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
Try apktool 4.4 sir , its support smali like this
jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
73R3WY said:
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
Click to expand...
Click to collapse
Ok. Thanks bro
This is what I get.
Sent from my GT-S5360 using XDA Free mobile app
sir can i change tab 1,2,3 with custom text?

[SHARE] com.x.x-res.apk Collection For a SONY Xperia , Customizing -res APKs

hi,
in different customization of the same device , we find some option in system configuration enabled in some and other no then we can do it by changing variable value in application files in system by decompiling and recompiling after modifying ( bools or arrays...etc ) it take a lot of time
so customization Sony has choose to make a little files for a region customization or enabling or disabling option in system app without modifying the original app file by using {real_application_name}-res.apk what will be adding in /system/vendor/overlay
in 4.0.4 and before sony ericsson used /system/etc/customization/ folder for enabling and parameterizing apps, so in JB 4.2 and 4.3or 4.4these files are incompatible only 4.3 and 4.4 are compatible (attached files)
for JB 4.2
4.3 and 4.4
How to use ??
example :
for enabling data traffic notification and status icon in status bar we must change in or semcphone.apk phone.apk this line after decompiling Phone.apk or SemcPhone.apk in res/value/bools/xml we find a default value of application :
Code:
<bool name="data_connection_except_mms_can_clear_icon">true</bool>
<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
<bool name="data_connection_except_mms_show_icon_when_enabled">false</bool>
Click to expand...
Click to collapse
they must be change to :
Code:
<bool name="data_connection_except_mms_can_clear_icon">false</bool> ----->[COLOR="red"] icon always visible can't be removed[/COLOR]
<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
<bool name="data_connection_except_mms_show_icon_when_enabled">true</bool>
Click to expand...
Click to collapse
then it can be inserted in com.phone-res.apk and injected in system/vendor/overlay and rebooting after that the options are activated.
just know what value to want be activated in the main application apk
Another exemple :
in this post http://forum.xda-developers.com/showthread.php?t=2703113 to have mod for activating low cost in conversations.apk but with decompiling main apk conversations.apk but the simple one is using -res.apk
default value are :
Code:
<bool name="character_conversion">false</bool>
<bool name="character_conversion_visibility">false</bool>
Click to expand...
Click to collapse
and must be changed to
Code:
<bool name="character_conversion">true</bool>
<bool name="character_conversion_visibility">true</bool>
Click to expand...
Click to collapse
then modifing com.sonyericsson.conversations-res.apk
after decomiling
we have
Code:
[CODE]
[/CODE]
res
|-------> bools.xml -------------> to be modified
|-------> public.xml ---------------important contains all variable defined
bools.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="three_digit_number_linkify">true</bool>
<bool name="delivery_report">true</bool>
<bool name="mms_retrieval_during_roaming_visibility">true</bool>
[COLOR="Red"]<bool name="character_conversion">true</bool>
<bool name="character_conversion_visibility">true</bool>[/COLOR]
</resources>
public.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="bool" name="three_digit_number_linkify" id="0x7f020000" />
<public type="bool" name="delivery_report" id="0x7f020001" />
<public type="bool" name="mms_retrieval_during_roaming_visibility" id="0x7f020002" />
[COLOR="red"]<public type="bool" name="character_conversion" id="0x7f020003" />
<public type="bool" name="character_conversion_visibility" id="0x7f020004" />[/COLOR]
<public type="bool" name="enable_send_empty_message" id="0x7f020005" />
<public type="integer" name="max_recipients" id="0x7f030000" />
<public type="integer" name="mms_max_size" id="0x7f030001" />
<public type="integer" name="sms_max_segments" id="0x7f030002" />
<public type="integer" name="mms_trigger_sms_segments" id="0x7f030003" />
</resources>
and recompile, push it. and done.
the files contains :
For JB 4.2 taken from diffrent cutomization for xperial L (perhaps orange france)
android-res.apk
com.android.browser-res.apk
com.android.email-res.apk
com.android.internal-res.apk
com.android.phone-res.apk
com.android.providers.partnerbookmarks-res.apk
com.android.settings-res.apk
com.android.systemui-res.apk
com.sonyericsson.capabilities-res.apk
com.sonyericsson.conversations-res.apk
com.sonyericsson.customizedsettings-res.apk
com.sonyericsson.home-res.apk
com.sonyericsson.initialbootsetup-res.apk
com.sonyericsson.r2r.client-res.apk
com.sonyericsson.setupwizard-res.apk
com.sonyericsson.simcontacts-res.apk
com.sonyericsson.trackid-res.apk
com.sonyericsson.updatecenter-res.apk
com.sonyericsson.wappush-res.apk
SemcAlbum-Overlay-300.apk
SemcPhone-Overlay-285.apk
SystemUI-Overlay-285.apk
For 4.3-4.4 Tooken from Z1 customized T-mobile DE
android-res.apk
com.android.browser-res.apk
com.android.email-res.apk
com.android.nfc-res.apk
com.android.phone-res.apk
com.android.providers.partnerbookmarks-res.apk
com.android.providers.settings-res.apk
com.android.settings-res.apk
com.sonyericsson.android.omacp-res.apk
com.sonyericsson.android.socialphonebook-res.apk
com.sonyericsson.capabilities-res.apk
com.sonyericsson.conversations-res.apk
com.sonyericsson.customizedsettings-res.apk
com.sonyericsson.home-res.apk
com.sonyericsson.initialbootsetup-res.apk
com.sonyericsson.r2r.client-res.apk
com.sonyericsson.setupwizard-res.apk
com.sonyericsson.shutdownanim-res.apk
com.sonyericsson.simcontacts-res.apk
com.sonyericsson.textinput.uxp-res.apk
com.sonyericsson.trackid-res.apk
com.sonyericsson.updatecenter-res.apk
com.sonyericsson.wappush-res.apk
overlay-semcalbum-flickr-on.apk
ServiceMenu-Overlay-295.apk
SmartConnect-Overlay-295.apk
reserved For futur Use
Can you upload the modified for xperia M?
Sent from my C1904 using Tapatalk
icoolguy1995 said:
Can you upload the modified for xperia M?
Sent from my C1904 using Tapatalk
Click to expand...
Click to collapse
here is com.sonyericsson.conversations-res.apk attached, modified file compatible with JB4.3 and KK4.4

[MOD][PORT][CM11] How to add custom scrolling animation

hi guys ,
I want to share a MOD that i ported from PAC man ROM..
This will give you ability to customize scroll on your phone.
This is one of the coolest features from PAC Man ROM. I want to remind you that this is NOT my work. I'M NOT what makes this feature.
all I do is port for CM11 to make them work
Anyone is able to use this mod, just please give proper credit to Devs of PAC Man ROM and me if you want
Also I want to give a BIG THANKS to sir @ocoot - for very helpful hints, thanks um
So let's begin
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk and JAR file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else ( i use apktool 1.5.2 )
SETTINGS.APK
first DECOMPILE Settings.apk
- Download attached file and merge it to your decompiled Settings.apk
- Go to Settings.apk/res/values/
add this lines to end of it before </resources>
attrs.xml add these :
Code:
<attr name="unitsLeft" format="reference|string" />
<attr name="unitsRight" format="reference|string" />
<attr name="interval" format="integer" />
<attr name="minimum" format="integer" />
<attr name="maximum" format="integer" />
[COLOR="RoyalBlue"]</resources>[/COLOR]
ids.xml add these :
Code:
<item type="id" name="hex">false</item>
<item type="id" name="enter">false</item>
<item type="id" name="white_panel">false</item>
<item type="id" name="black_panel">false</item>
<item type="id" name="cyan_panel">false</item>
<item type="id" name="red_panel">false</item>
<item type="id" name="green_panel">false</item>
<item type="id" name="yellow_panel">false</item>
<item type="id" name="old_color_panel">false</item>
<item type="id" name="new_color_panel">false</item>
<item type="id" name="seek_bar">false</item>
<item type="id" name="seekBarPrefUnitsRightCham">false</item>
<item type="id" name="seekBarPrefValueCham">false</item>
<item type="id" name="seekBarPrefUnitsLeftCham">false</item>
<item type="id" name="seekBarPrefBarContainerCham">false</item>
[COLOR="RoyalBlue"]</resources>[/COLOR]
strings.xml add these:
Code:
<string name="press_color_to_apply">Press on color below to apply</string>
<string name="arrow_right">→</string>
<string name="arrow_down">↓</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
<string name="set">Set</string>
<string name="reset">Reset</string>
<string name="animation_settings_title">Custom animations</string>
<string name="scrolling_title">Scrolling</string>
<string name="animation_fling_velocity_title">Fling Velocity</string>
<string name="animation_scroll_friction_title">Scroll Friction</string>
<string name="animation_overscroll_distance_title">Overscroll Distance</string>
<string name="animation_overfling_distance_title">Overfling Distance</string>
<string name="animation_no_scroll_title">Customizing scroll</string>
<string name="animation_no_scroll_summary_on">Enabled</string>
<string name="animation_no_scroll_summary_off">Disabled</string>
<string name="overscroll_glow_title">Overscroll Color</string>
<string name="animation_settings_reset_message">Reset animations to default?</string>
<string name="animation_duration_summary">Set duration</string>
[COLOR="RoyalBlue"]</resources>[/COLOR]
save...
- Now go to res/xml/display_settings.xml
put this line :
Code:
[COLOR="Red"]<PreferenceScreen android:title="@string/scrolling_title" android:key="interface_animation_scroll" android:fragment="com.android.settings.pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/display_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.BrightnessPreference android:persistent="false" android:title="@string/brightness" />
[COLOR="Red"]<PreferenceScreen android:title="@string/scrolling_title" android:key="interface_animation_scroll" android:fragment="com.android.settings.pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
<PreferenceCategory android:title="@string/display_settings_title" android:key="display_prefs">
<PreferenceScreen android:title="@string/display_rotation_title" android:key="display_rotation" android:fragment="com.android.settings.cyanogenmod.DisplayRotation" />
<ListPreference android:persistent="false" android:entries="@array/screen_timeout_entries" android:title="@string/screen_timeout" android:key="screen_timeout" android:summary="@string/screen_timeout_summary" android:entryValues="@array/screen_timeout_values" />
<com.android.settings.FontDialogPreference android:title="@string/title_font_size" android:key="font_size" android:summary="@string/summary_font_size" android:dialogTitle="@string/dialog_title_font_size" />
<PreferenceScreen android:title="@string/screensaver_settings_title" android:key="screensaver" android:fragment="com.android.settings.DreamSettings" />
<PreferenceScreen android:title="@string/wifi_display_settings_title" android:key="wifi_display" android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/power_menu_expanded_desktop" android:key="expanded_desktop_category">
<ListPreference android:persistent="false" android:entries="@array/expanded_desktop_entries" android:title="@string/expanded_desktop_style" android:key="expanded_desktop" android:entryValues="@array/expanded_desktop_values" />
<CheckBoxPreference android:persistent="true" android:title="@string/power_menu_expanded_desktop" android:key="expanded_desktop_no_navbar" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/expanded_desktop_system_bars_visibility" android:key="expanded_desktop_system_bars_visibility" android:summary="@string/expanded_desktop_system_bars_visibility_summary" android:defaultValue="false" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/lights_category_title" android:key="lights_prefs">
<PreferenceScreen android:title="@string/notification_light_title" android:key="notification_pulse" android:fragment="com.android.settings.notificationlight.NotificationLightSettings" />
<PreferenceScreen android:title="@string/battery_light_title" android:key="battery_light" android:fragment="com.android.settings.notificationlight.BatteryLightSettings" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/advanced_settings" android:key="advanced_display_prefs">
<CheckBoxPreference android:title="@string/adaptive_backlight_title" android:key="adaptive_backlight" android:summary="@string/adaptive_backlight_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/sunlight_enhancement_title" android:key="sunlight_enhancement" android:summary="@string/sunlight_enhancement_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/color_enhancement_title" android:key="color_enhancement" android:summary="@string/color_enhancement_summary" android:defaultValue="true" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/double_tap_to_sleep_title" android:key="double_tap_sleep_gesture" android:summary="@string/double_tap_to_sleep_summary" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/double_tap_to_wake_title" android:key="double_tap_wake_gesture" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/proximity_wake_title" android:key="proximity_on_wake" android:summary="@string/proximity_wake_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/wake_when_plugged_or_unplugged_title" android:key="wake_when_plugged_or_unplugged" android:summary="@string/wake_when_plugged_or_unplugged_summary" android:defaultValue="false" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/screen_animation_off_title" android:key="screen_off_animation" android:defaultValue="true" />
<ListPreference android:entries="@array/screen_animation_style_entries" android:title="@string/screen_animation_style_title" android:key="screen_animation_style" android:entryValues="@array/screen_animation_style_values" />
<PreferenceScreen android:title="@string/lcd_density_title" android:key="lcd_density_setup" android:fragment="com.android.settings.interface.fragments.DensityChanger" />
<com.android.settings.hardware.DisplayColor android:persistent="false" android:title="@string/color_calibration_title" android:key="color_calibration" android:summary="@string/color_calibration_summary" android:dialogTitle="@string/color_calibration_title" />
<com.android.settings.hardware.DisplayGamma android:persistent="false" android:title="@string/gamma_tuning_title_head" android:key="gamma_tuning" android:summary="@string/gamma_tuning_summary_head" android:dialogTitle="@string/gamma_tuning_title_head" />
<PreferenceScreen android:persistent="false" android:title="@string/screencolor" android:key="screencolor_settings">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ScreenColorSettings" />
</PreferenceScreen>
<Preference android:title="@string/radio_controls_title" android:key="advanced_display_settings">
<intent android:targetPackage="com.cyanogenmod.settings.device" android:action="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" android:targetClass="com.cyanogenmod.settings.device.DisplaySettings" />
</Preference>
</PreferenceCategory>
</PreferenceScreen>
but you can put the line whereever you like,.
- Recompile your Settings.apk
- Decompile the newly recompiled APK again
go to your secondly decompiled Settings.apk/res/values/public.xml and keep it open
Pay attention to this 0x7f?????? !!!
- Go to Settings.apk/smali/net/margaritov/preference/color picker/ColorPickerDialog.smali
search this -> const v2, 0x7f040103
1. change this -> 0x7f040103 , according to the value you got in your own public.xml
Code:
<public type="layout" name="dialog_color_picker" id="0x7f??????" />
do it too to all lines below, in the smali
2. const v2, 0x7f080c3c
Code:
<public type="string" name="dialog_color_picker" id="0x7f?????? />
3. const v2, 0x7f0d00c5
Code:
<public type="id" name="color_picker_view" id="0x7f?????? />
4. const v2, 0x7f0d0324
Code:
<public type="id" name="old_color_panel" id="0x7f?????? />
5. const v2, 0x7f0d0325
Code:
<public type="id" name="new_color_panel" id="0x7f?????? />
6. const v2, 0x7f0d031e
Code:
<public type="id" name="white_panel" id="0x7f?????? />
7. const v2, 0x7f0d031f
Code:
<public type="id" name="black_panel" id="0x7f?????? />
8. const v2, 0x7f0d0320
Code:
<public type="id" name="cyan_panel" id="0x7f?????? />
9. const v2, 0x7f0d0321
Code:
<public type="id" name="red_panel" id="0x7f?????? />
10. const v2, 0x7f0d0322
Code:
<public type="id" name="green_panel" id="0x7f?????? />
11. const v2, 0x7f0d0323
Code:
<public type="id" name="yellow_panel" id="0x7f?????? />
12. const v2, 0x7f0d031c
Code:
<public type="id" name="hex" id="0x7f?????? />
13. const v2, 0x7f0d031d
Code:
<public type="id" name="enter" id="0x7f?????? />
14. const v1, 0x7f0d0325
Code:
<public type="id" name="new_color_panel" id="0x7f?????? />
- Go to Settings.apk/smali/com/android/settings/pac/SeekBarPreferenceCham.smali
search this -> const v3, 0x7f0d032f
1. change this -> 0x7f0d032f , according to the value you got in your own public.xml
Code:
<public type="id" name="seekBarPrefBarContainerCham" id="0x7f?????? />
do it too to all lines below, in the smali
2. const v4, 0x7f040106
Code:
<public type="layout" name="seek_bar_preference_cham" id="0x7f?????? />
3. const v5, 0x7f0d032d
Code:
<public type="id" name="seekBarPrefValueCham" id="0x7f?????? />
4. const v5, 0x7f0d032c
Code:
<public type="id" name="seekBarPrefUnitsRightCham" id="0x7f?????? />
5. const v5, 0x7f0d032e
Code:
<public type="id" name="seekBarPrefUnitsLeftCham" id="0x7f?????? />
- Go to Settings.apk/smali/com/android/settings/pac/animations/ScrollAnimationInterfaceSettings.smali
search this -> const v1, 0x7f080c28
1. change this -> 0x7f080c28 , according to the value you got in your own public.xml
Code:
<public type="string" name="reset" id="0x7f?????? />
do it too to all lines below, in the smali
2. const v1, 0x7f080c9e
Code:
<public type="string" name="animation_settings_reset_message" id="0x7f?????? />
3. const v1, 0x7f0801e0
Code:
<public type="string" name="ok" id="0x7f?????? />
4. const v1, 0x7f080559
Code:
<public type="string" name="cancel" id="0x7f?????? />
5. const v7, 0x7f05007a
Code:
<public type="xml" name="scroll_animation_interface_settings" id="0x7f?????? />
6. const v1, 0x7f080c28
Code:
<public type="string" name="reset" id="0x7f?????? />
7. const v1, 0x7f0200a8
Code:
<public type="drawable" name="ic_settings_backup" id="0x7f?????? />
- Go to AndroidManifest.xml
add this lines to end of it before </application>
Code:
[COLOR="Red"]<activity android:name=".pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
Code:
- - - - - -
- - - - - -
- - - - - -
<provider android:name="android.support.v4.content.FileProvider" android:exported="false" android:authorities="com.android.settings.files" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
<service android:label="LtoService" android:name=".cyanogenmod.LtoService" android:enabled="true" android:exported="false" />
<service android:name=".search.SearchPopulator" />
[COLOR="Red"]<activity android:name=".pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
</application>
</manifest>
- Done and recompile it,
- SIGN it ( you can use signer_keys on attachment )
- Push to system/priv-app/
next step on post #2
FRAMEWORK.JAR
- Decompile / Baksmali your framework.jar
- Download attached file and merge it to your decompiled framework.jar
- Go to smali/android/provider/Settings$System.smali
search
Code:
# static fields
add this :
Code:
.field public static final ANIMATION_CONTROLS_NO_SCROLL:Ljava/lang/String; = "animation_controls_no_scroll"
.field public static final CUSTOM_FLING_VELOCITY:Ljava/lang/String; = "custom_fling_velocity"
.field public static final CUSTOM_OVERFLING_DISTANCE:Ljava/lang/String; = "custom_overfling_distance"
.field public static final CUSTOM_OVERSCROLL_DISTANCE:Ljava/lang/String; = "custom_overscroll_distance"
.field public static final CUSTOM_SCROLL_FRICTION:Ljava/lang/String; = "custom_scroll_friction"
.field public static final OVERSCROLL_GLOW_COLOR:Ljava/lang/String; = "overscroll_glow_color"
- Now decompile your framework-res.apk ( we only need public.xml )
- Go to res/values/public.xml and keep it open
- Now open decompiled framework.jar then go to smali/android/view/ViewConfiguration.smali
search this -> const v12, 0x1110014
ATTENTION! id public for framework.jar
just TAKE the BLUE CODE
and SKIP the RED CODE
1. change this -> 0x1110014 , according to the value you got in your own public.xml of framework-res.apk
Code:
<public type="bool" name="config_ui_enableFadingMarquee" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
2. const v12, 0x1050008
Code:
<public type="dimen" name="config_viewConfigurationTouchSlop" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
- Go to framework.jar.out/smali/android/widget/EdgeEffect.smali
search this -> const v3, 0x10804a5
just TAKE the BLUE CODE
and SKIP the RED CODE
1. change this -> 0x10804a5 , according to the value you got in your own public.xml of framework-res.apk
Code:
<public type="drawable" name="overscroll_edge" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
2. const v3, 0x10804a6
Code:
<public type="drawable" name="overscroll_glow" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
- Save
- Recompile it
- Push or flash to system/framework/
pertamax sir
ocoot said:
pertamax sir
Click to expand...
Click to collapse
thanks so much sir
do you think , does anyone miss sir ?
woww.. nice bro...
hope work on stockrom
syaeful said:
woww.. nice bro...
hope work on stockrom
Click to expand...
Click to collapse
thanks sir ..
Would you try it ? :fingers-crossed:
thank you, great tutorial u got there dab :good:
just a little request,
if u got a free time, would u mind to share how to add network traffic to status bar ?
for cm / aosp rom.
I see ur work for Armani Multimod is great, but haven't really tried it yet because honestly, all I just need network traffic, LoL
but still, many thanks to you for sharing it
xtro-xda said:
thank you, great tutorial u got there dab :good:
just a little request,
if u got a free time, would u mind to share how to add network traffic to status bar ?
for cm / aosp rom.
I see ur work for Armani Multimod is great, but haven't really tried it yet because honestly, all I just need network traffic, LoL
but still, many thanks to you for sharing it
Click to expand...
Click to collapse
thanks dab
for network traffic on the status bar ,, you can see here
http://forum.xda-developers.com/showpost.php?p=58703754&postcount=1
or
http://forum.xda-developers.com/showthread.php?t=2620272
qoejohn said:
thanks sir ..
Would you try it ? :fingers-crossed:
Click to expand...
Click to collapse
yess. i have to follow your guide this night. but it's give fc on Touchwiz Launcher.. can you post your original ViewConfiguration.smali for compare bro? :laugh:
Sorry no error log :laugh:
Salam Kitul :good:
Click to expand...
Click to collapse
syaeful said:
yess. i have to follow your guide this night. but it's give fc on Touchwiz Launcher.. can you post your original ViewConfiguration.smali for compare bro? :laugh:
Sorry no error log :laugh:
Click to expand...
Click to collapse
ok sir
good luck ... cemungudz
qoejohn said:
ok sir
good luck ... cemungudz
Click to expand...
Click to collapse
thanks... :highfive:
Sir i've try in StockROM KitKat its success and not bootloop but when i try to open apps (that makes Overscroll appear) Its always restarting my phone sir Can you know how to fix sir?
Jawaad_S said:
Sir i've try in StockROM KitKat its success and not bootloop but when i try to open apps (that makes Overscroll appear) Its always restarting my phone sir Can you know how to fix sir?
Click to expand...
Click to collapse
may smali in .jar ..
Just try to compare .. because I 've never tried it in stockrom kitkat :fingers-crossed:
qoejohn said:
may smali in .jar ..
Just try to compare .. because I 've never tried it in stockrom kitkat :fingers-crossed:
Click to expand...
Click to collapse
Already sir but its makes my phone bootloop sir can you tell me what clue in jar name to compare to stock sir?
Jawaad_S said:
Already sir but its makes my phone bootloop sir can you tell me what clue in jar name to compare to stock sir?
Click to expand...
Click to collapse
just compare smali attached in post # 2.
http://forum.xda-developers.com/showpost.php?p=59988770&postcount=2
and this for compare
http://forum.xda-developers.com/showpost.php?p=60112392&postcount=10
Same here, @qoejohn. Tried on Note3 n9005 4.4.2 stock. The selector for overscroll glow color applies fine (modifing EdgeEffect.smali only) but when I mod the ViewConfiguration.smali, the phone gets hot reboot when I click on an app like root explorer. I'll keep on trying. Thanks again!
Enviado desde mi SM-N9005 mediante Tapatalk
thanks for guide sir...but i try on stock toucwiz has stopped
Ih24n said:
thanks for guide sir...but i try on stock toucwiz has stopped
Click to expand...
Click to collapse
try to fix it, and it would be awesome if it is successful in TouchWiz
qoejohn said:
try to fix it, and it would be awesome if it is successful in TouchWiz
Click to expand...
Click to collapse
i will try to fix sir ...berusaha sekuat pikiran tapi

Categories

Resources