[AOSP/CM/Stock]Adding Lidroid Toggles + Grid View[GB] - Galaxy Y GT-S5360 General

Hello guys today iam going to teach you how to add lidroid toggles in grid view in AOSP/CM/Stock roms.
Maybe i have forgot something so dont blame me Let me know it first and i will change it.
Things REQUIRED.
1.Patience [Heavily Needed]
2.Lots of time.
3.My provided files.Here: Public.xml and Lidroid_Resources.zip
4.Notepad++ etc.
The guide is divide into two parts.
1.XML PART [Includes xml editing ]
2.SMALI PART [ Includes smali editing ]
Lets start with XML PART first.
STEP 1
Open ids.xml under res/values foler and add these in last above
Code:
<item type="id" name="quickpanel_button">false</item>
<item type="id" name="quickpanel_text">false</item>
<item type="id" name="quickpanel_image">false</item>
<item type="id" name="quickpanel_indicator">false</item>
<item type="id" name="Lidroid">false</item>
STEP 2
Open dimens.xml under res/values foler and add these in last above
Code:
</resources>
Code:
quickpanel_button_height">79.0px
STEP 3
Open strings.xml under res/values foler and add these in last above
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto rotation"</string>
<string name="quickpanel_shutdown_text">Phone will be shutdown</string>
<string name="quickpanel_shutdown_confirm">Shutdown</string>
<string name="quickpanel_sound_vibrate">Vibrate</string>
<string name="quickpanel_sound_sound">Sound</string>
<string name="quickpanel_sound_silent">Silent</string>
<string name="quickpanel_sound_sound_vibrate">Sound Vibrate</string>
<string name="quickpanel_sync">Sync</string>
<string name="quickpanel_wifiap">Wifi Ap</string>
<string name="quickpanel_wifi">Wifi</string>
<string name="quickpanel_rotation">Auto Rotate</string>
<string name="quickpanel_airplane">Airplane</string>
<string name="quickpanel_bluetooth">Bluetooth</string>
<string name="quickpanel_brightness">Brightness</string>
<string name="quickpanel_flashlight">Flashlight</string>
<string name="quickpanel_gps">GPS</string>
<string name="quickpanel_lockscreen">Lockscreen</string>
<string name="quickpanel_mobiledata">Data</string>
<string name="quickpanel_reboot">Reboot</string>
<string name="quickpanel_reboot_text">Phone will reboot</string>
<string name="quickpanel_screen_timeout">Screen Timeout</string>
<string name="quickpanel_recovery">Recovery</string>
STEP 5
Delete these if they are already present
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto rotation"</string>
STEP 6
Merge attached files with your SystemUI.apk
STEP 7
Recompile Your App.
STEP 8
Decompile it again.
STEP 9
Open Statusbar_expanded.xml or any other xml where you want to place lidroid toggles.
STEP 10
And Add this where you want to place the lidroid toggles.
Code:
<com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/Lidroid" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Now lets complete the SMALI PART
SMALI PART
STEP 11
Open com/android/systemui/statusbar/StatusBarService.smali
STEP12
In
Code:
# instance fields
Below
Code:
.field mPositionTmp:[I
Add this line
Code:
.field mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
STEP 13
In
Code:
.method private makeStatusBarView(Landroid/content/Context;)V
Add this in last above
Code:
.line (A numeric value will be there)
return-void
.line 656
iget-object v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
const v6, 0x7f090039
invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v5
check-cast v5, Lcom/lidroid/systemui/quickpanel/PowerWidget;
iput-object v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
iget-object v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v6}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
STEP 14
Open your public.xml
Search for "Lidroid" id and copy its public id and replace it with id of above code i.e with "0x7f090039"
STEP 15
OPEN Statusbarservice.smali again
STEP 16
In
Code:
.method public addIcon(Ljava/lang/String;IILcom/android/internal/statusbar/StatusBarIcon;)V
Add this in last above
Code:
.line (A numeric value will be there)
return-void
Code:
.line 1900
iget-object v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPowerWidget:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v1}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->updateWidget()V
NOTE..
Here "0x7f090039" is the public id of id "Lidroid"
STEP17
Now open all files in com/lidroid/systemui/quickpanel folder
Search "0x7f" Copy the whole id .
Open my provided public.xml
Search for that id in my public.xml
Copy the text of that id.
Like if my Public id is "0x7f030011"
Then i will copy "quickpanel_button".
Now find same text in your public.xml
Copy its public id .
And replace the id of all smali files with your public.xml's id.
Similarly do this with all smali files available in quickpanel folder.
STEP 18
Now open your apps Android-Manifest.xml.
And add this in last above
Code:
</application>
Code:
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation" />
Since You have edited Android-Manifest.xml you need to sign apk file.
STEP 19
Recompile it .
STEP 20
Sign it.
And push to system/app

CREDITS;;
ryanfebriyadi
PineappleOwl
MuSaddiq
Lidroid
serajr

{
"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"
}
Reserved for more....

Reserved
Edit : If i want to place it in ROM, so i must sign all the apk of my ROM ?
Sent from my GT-S5360 using xda app-developers app

Thanks for sharing!

Please help me.. After i flash costum kernel Merruk v.2.5 ,, i have problem charge batrai pada saat hp off tidak ada gambar batrai charger.. Please help me... Sorry i bad english

awesome guide sir!!!!!!

HAS anyone tried?
Sent from my GT-S5360 using Tapatalk 2

aemier said:
Please help me.. After i flash costum kernel Merruk v.2.5 ,, i have problem charge batrai pada saat hp off tidak ada gambar batrai charger.. Please help me... Sorry i bad english
Click to expand...
Click to collapse
I cant undersrtand what are u saying?
Sent from my GT-S5360 using Tapatalk 2

Hi. U guided me once. And it works but toogles are misplaced. I looked at every file but cant see anything wrong. Here is my systemui, so if u have time , could you take a look at it? TIA

hi sir san, what if we already have a lidroid toggles and we want to make it grid?
Sent from my GT-S5360 using xda premium

m4RinKo2 said:
Hi. U guided me once. And it works but toogles are misplaced. I looked at every file but cant see anything wrong. Here is my systemui, so if u have time , could you take a look at it? TIA
Click to expand...
Click to collapse
The problem is in Powerwidget.smali
the id if dimens file us misplaced.
Sent from my GT-S5360 using Tapatalk 2

markmellarpes said:
hi sir san, what if we already have a lidroid toggles and we want to make it grid?
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
If lidroid toggles are with lidroid-res.apk and was by lidroid's guide then you need to follow whole guide.
Sent from my GT-S5360 using Tapatalk 2

After change the kernel merruk v.2.5 ..when the battery charge at the time of hp off I can not see the picture batrai charging... Please help me.. .. Sorry i bad english
Sent from my GT-S5360 using xda premium

@san
there is an even easier easier way to add lidroid.
use the smali by mariozawa
and also assign all layoutsnpngs ids and such all in the lidroid res apk.
so the newbies dont need to fix the const values and only need to add the smali folders and add 1 line to layout
Sent from my S500 using xda app-developers app

public.xml can't download...
please give me another link

what do you use for signing? XD can you teach mo how to sign? please.

Aleemk9 said:
public.xml can't download...
please give me another link
Click to expand...
Click to collapse
It works fine.Try downloading with other browsers.
Luwiji said:
what do you use for signing? XD can you teach mo how to sign? please.
Click to expand...
Click to collapse
I cant say i use lots of apps.
You an google any one which u like
Btw i mostly use signapk ++
Sent from my GT-S5360 using Tapatalk 2

san122 said:
It works fine.Try downloading with other browsers.
I cant say i use lots of apps.
You an google any one which u like
Btw i mostly use signapk ++
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
downloaded.
now All thing is ready for following your guide.

success... but not showing brightness slider.
anyway plz tell me how to mov this lidroid taggels to quick panel button ??

Related

[TEAM XPOSED][HOW-TO]7/18/12 SystemUI mods and how-tos (new: custom notif background)

This thread will be about various SystemUI modifications and how to achieve them. The first post will be full of screenshots and my personal mods and the second post will be the how-tos.
First of all, here is my modified SystemUI in its current form. It has been modded to do the following:
Blue ICS icons
Blue style quick toggle icons
Blue notification shade bottom from ICS
Remove clock
Remove carrier ID
Remove quick toggle text
Upcoming mods to it will be:
Battery precentages
Charging battery animations
1x display
{
"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"
}
HOW-TO
7/18/12: Custom notification pulldown background:
First, we're going to use a file that already exists in SystemUI that isn't being used by the system, so that we don't have to create IDs and anything else too difficult. Create your custom background and save it as a png. Yes, it also supports transparency right off the bat! Once you have your custom background selected, name it "status_bar_expand_default.png" and put it in the drawable-xhdpi folder in /res/drawable-xhdpi/ overwriting the current one.
Now navigate to /res/layout/tw_status_bar_tracking.xml and open it with editor
LOOK FOR:
Code:
<FrameLayout android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
CHANGE
Code:
android:background="#ff000000"
TO:
Code:
android:background="@drawable/status_bar_expand_default"
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
7/17/12: Remove battery full notification:
Navigate to /com/android/systemui/power/PowerUI$1.smali
LOOK FOR:
Code:
iget v14, v14, Lcom/android/systemui/power/PowerUI;->mBatteryStatus:I
if-ne v13, v14, :cond_1b3
move-object/from16 v0, p0
iget-object v13, v0, Lcom/android/systemui/power/PowerUI$1;->this$0:Lcom/android/systemui/power/PowerUI;
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
:cond_da
:goto_da
const/4 v13, 0x4
REMOVE:
Code:
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
How to decompile troublesome ICS apks on the GS3:
Start off by downloading the package I put together with APKTOOL v1.4.2 and v1.4.4: here
You also need to have Java installed, and WinRAR or a comparable archive manager installed.
Extract it and navigate there with a command prompt
Grab your framework-res.apk and SystemUI.apk from your ROM or ADB on your phone and place them in the same directory as your apktools
Open SystemUI with WinRAR or your archive manager and extract the META-INF folder and AndroidManifest.xml file and put them somewhere easy to find.
In command prompt type this command "apktool if framework-res.apk" and if done correct, you will have installed a dependency for whatever you're about to decompile.
The trick is to decompile with 1.4.2 which is named apktool142.jar, so rename that to apktool.jar
Now you're ready to decompile SystemUI. Type this command "apktool d SystemUI.apk" and if done correctly it will start the decompiling process and eventually finish with a new folder "SystemUI" being created.
Now you can make all of your edits.
The next trick is to recompile with 1.4.4 which is named apktool144.jar, but first rename your current apktool.jar back to apktool142.jar then rename apktool144.jar to apktool.jar.
Once done, recompile your SystemUI file by typing "apktool b SystemUI"
Once done, copy the folder and file from earlier "META-INF" and "AndroidManifest.xml" then open the "SystemUI" folder then open "build" then "apk" and paste them here, which will overwrite the current AndroidManifest.xml and create the META-INF folder in there.
Now type "apktool b SystemUI" again and this time it will build much faster than before. Once done your file is ready to be tested!
Open the "SystemUI" folder, go into "dist" and voila, your file is there, signed, and ready to be pushed back to your phone.
Go ahead and push it back with ADB, or with Root Explorer, OR create yourself a flashable zip. Whatever works for you.
Enjoy.
How to remove Quick settings toggle text or hide Quick Settinsg toggle:
I have seen inquiries about how to mod the quick toggle area to remove it. It's a fairly easy modification to make. Especially if you already know how to decompile and recompile SystemUI.apk
For the sake of making this HOW-TO short and to the point, I'm going to assume you already know how to successfully decompile and recompile SystemUI.apk. If you don't, I will be posting up another HOW-TO with all the necessary tools.
Let me first start out by apologizing because this is kind of sloppy. It may require less steps but once I got it, I didn't bother going back to figure out if it did require less steps or not.
Start off by decompiling SystemUI.apk
Next, navigate to /res/layout/tw_quick_setting_button.xml
Open it with your favorite editor
LOOK FOR:
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
CHANGE:
Code:
android:layout_height="@dimen/quick_setting_button_height"
For complete removal of quick toggle settings:
TO:
Code:
android:layout_height="0.0dip"
For text removal like my mod:
TO
Code:
android:layout_height="50.0dip"
LOOK FOR:
Code:
<TextView android:textSize="@dimen/quick_setting_button_text_size" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_text_height" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
CHANGE:
Code:
android:textSize="@dimen/quick_setting_button_text_size"
For complete or text removal:
TO:
Code:
android:textSize="0.0dip"
Save & close
Navigate to /res/layout/tw_status_bar_expanded.xml and open with editor
LOOK FOR:
Code:
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
CHANGE:
Code:
android:layout_height="wrap_content"
For complete removal:
TO:
Code:
android:layout_height="0.0dip"
For text removal like my mod:
TO:
Code:
android:layout_height="50.0dip"
If you want to remove the carrier ID (Sprint):
LOOK FOR and REMOVE:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
Save & close
These next parts probably aren't needed but I did them anyway. If you want to try compiling and using your SystemUI.apk, go for it and report back. If you want to follow exactly what I did, keep reading..
Navigate to /res/layout/tw_status_bar_toggle_slider.xml and open with editor
LOOK FOR:
Code:
<TextView android:textSize="15.0dip" android:textColor="#ffd7d7d7" android:id="@id/label" android:layout_width="46.0dip" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:singleLine="false" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
CHANGE:
Code:
android:textSize="15.0dip"
For complete or text removal
TO:
Code:
android:textSize="0.0dip"
Save & Close
Navigate to /res/values/dimens.xml and open with editor
LOOK FOR:
Code:
<dimen name="quick_setting_button_text_height">30.0dip</dimen>
<dimen name="quick_setting_button_text_size">13.0dip</dimen>
For complete or text removal:
CHANGE TO:
Code:
<dimen name="quick_setting_button_text_height">0.0dip</dimen>
<dimen name="quick_setting_button_text_size">0.0dip</dimen>
Save & Close
Finally, navigate to /res/values/strings.xml and open with editor
LOOK FOR:
Code:
<string name="status_bar_settings_wifi_button">Wi-Fi</string>
<string name="status_bar_settings_airplane">Airplane mode</string>
<string name="status_bar_settings_auto_rotation">Auto-rotate screen</string>
<string name="status_bar_settings_mute_label">MUTE</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="status_bar_settings_wifi_button"></string>
<string name="status_bar_settings_airplane"></string>
<string name="status_bar_settings_auto_rotation"></string>
<string name="status_bar_settings_mute_label"></string>
LOOK FOR:
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_silent_mode_text">"Silent
mode"</string>
<string name="quickpanel_silent_mode_sound">Sound</string>
<string name="quickpanel_silent_mode_vibrate">Vibrate</string>
<string name="quickpanel_silent_mode_mute">Mute</string>
<string name="quickpanel_rotation_text">"Screen
rotation"</string>
<string name="quickpanel_mobile_data_text">"Mobile
data"</string>
<string name="quickpanel_notification_text">Notification</string>
<string name="quickpanel_airplane_mode_text">"Flight
mode"</string>
<string name="quickpanel_sync_text">Sync</string>
<string name="quickpanel_wifi_display_text">"AllShare
Cast"</string>
<string name="quickpanel_power_saving_text">"Power
saving"</string>
<string name="quickpanel_driving_mode_text">"Driving
mode"</string>
<string name="quickpanel_error_text">Error</string>
<string name="quickpanel_ctwap_text">CTWAP</string>
<string name="quickpanel_ctnet_text">CTNET</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="quickpanel_wifi_text"></string>
<string name="quickpanel_bluetooth_text"></string>
<string name="quickpanel_gps_text"></string>
<string name="quickpanel_silent_mode_text"></string>
<string name="quickpanel_silent_mode_sound"></string>
<string name="quickpanel_silent_mode_vibrate"></string>
<string name="quickpanel_silent_mode_mute"></string>
<string name="quickpanel_rotation_text"></string>
<string name="quickpanel_mobile_data_text"></string>
<string name="quickpanel_notification_text"></string>
<string name="quickpanel_airplane_mode_text"></string>
<string name="quickpanel_sync_text"></string>
<string name="quickpanel_wifi_display_text"></string>
<string name="quickpanel_power_saving_text"></string>
<string name="quickpanel_driving_mode_text"></string>
<string name="quickpanel_error_text"></string>
<string name="quickpanel_ctwap_text"></string>
<string name="quickpanel_ctnet_text"></string>
LOOK FOR:
Code:
<string name="quickpanel_data_roaming_text">"Data
roaming"</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="quickpanel_data_roaming_text"></string>
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
Now, a lot of these could have simply been removed from the XML, but I decided to mod their values to preserve structure in case I want to put things back the way they were. If you want to experiment with removing the entire "LOOK FOR:" line, please report back the results.
Enjoy.
How to change carrier label:
Navigate to /res/values/strings.xml and open with editor
LOOK FOR:
Code:
<string name="done">Done</string>
<string name="edit">Edit</string>
AKA at the bottom of the file.
ADD AFTER:
Code:
<string name="custom_carrier">INSERT_CUSTOM_CARRIER_LABEL_HERE</string>
Add what you want where it says "INSERT_CUSTOM_CARRIER_LABEL_HERE"
Save & Close.
Navigate to /res/layout/tw_status_bar_expanded.xml and open with editor
If you haven't removed the carrier label already:
LOOK FOR:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
REPLACE WITH:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:text="@string/custom_carrier" android:layout_centerVertical="true" />
If you have removed the carrier label:
LOOK FOR:
Code:
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" android:paddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
ADD AFTER:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:text="@string/custom_carrier" android:layout_centerVertical="true" />
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
Awesome. Thank you for your contribution to the community.
Sent from my SPH-L710 using Tapatalk 2
Wondering if this qualifies as one
http://forum.xda-developers.com/showthread.php?t=1740993
i thought that's what the theming sticky was for, stuff like this
thx
thank you for your help, thisthread is very useful
nest75068 said:
Wondering if this qualifies as one
http://forum.xda-developers.com/showthread.php?t=1740993
Click to expand...
Click to collapse
You can get shutter sound controls without any modifications to sound. I don't know why it's labeled as silent camera if you can get shutter sounds without modding anything.
Anyway to modify and remove the persistant wifi conmectee text from the notification bar
Awesome freeza TY
Nice to see you here freeza.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
FrankJL_ said:
Anyway to modify and remove the persistant wifi conmectee text from the notification bar
Click to expand...
Click to collapse
Most definitely. Verizon right? Send me a copy of your systemui.apk
freeza said:
Most definitely. Verizon right? Send me a copy of your systemui.apk
Click to expand...
Click to collapse
Been trying to get rid of the same thing. Do tell, if you know how.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
I am on Verizon too. I removed the wifi notification, but decided to put it back until there is a proper toggle. Can you make a flashable zip to make the toggles like the first post?
Thanks
lynseyw said:
I am on Verizon too. I removed the wifi notification, but decided to put it back until there is a proper toggle. Can you make a flashable zip to make the toggles like the first post?
Thanks
Click to expand...
Click to collapse
Yeah but you'll have to send me a copy of your systemui
Figured out how to change carrier ID
freeza said:
Figured out how to change carrier ID
Click to expand...
Click to collapse
I've been trying to figure it out myself.
Care to share?
Sent from my SGH-T999 using xda premium
uoY_redruM said:
I've been trying to figure it out myself.
Care to share?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Sure will, Will be posting it up in the second post
Thanks for the thread.
I downloaded NinjaMorph Free and when viewing the xml files it seems, encrypted, a bunch of "?" and gibberish show. Is there a certain xml editor I'm suppose to use? Thanks for the help.
freeza said:
Figured out how to change carrier ID
Click to expand...
Click to collapse
was wondering what is that you have there under Ongoing?? with the cpu and memory and all that stuff.
Updated second post with instructions on how to change the carrier label
shadrach47 said:
Thanks for the thread.
I downloaded NinjaMorph Free and when viewing the xml files it seems, encrypted, a bunch of "?" and gibberish show. Is there a certain xml editor I'm suppose to use? Thanks for the help.
Click to expand...
Click to collapse
No problem. I think your problem is because you have to decompile the apk first, or the xmls will be encrypted.
concac858 said:
was wondering what is that you have there under Ongoing?? with the cpu and memory and all that stuff.
Click to expand...
Click to collapse
That's the app "Elixir2" free from the market.

[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][MOD] Network Traffic 4.x to 5.x (turn on/off, color, Display unit and more)

Today i came here with new Tut
This tut includes
Status bar traffic monitor
Disable
Outgoing
Incoming
Outgoing and Incoming
Color style
Display unit
Bits per second
Bytes per second
update interval
500 ms
1000 ms
1500 ms
2000 ms
Auto hide
Inactivity threshold
Before going to tutorial First you need to have these mods (If you already had these mods then go to post #2
Color picker settings by @05Gurpreet
and Seekbar Preferences by me
Thanks to carbon rom
mod [settings/systemui]
First you need Deodexed SystemUI.apk and Settings.apk
Lets first start with SystemUI.apk
1. Decompile the SystemUI.apk
2. Open res\values\dimens.xml and add these below codes
Code:
<dimen name="net_traffic_single_text_size">12.0dip</dimen>
<dimen name="net_traffic_multi_text_size">9.0dip</dimen>
<dimen name="network_stats_text_size">10.0dip</dimen>
3. then open res\values\id.xml and these below code
Code:
<item type="id" name="networkTraffic">false</item>
4. then open res\values\status_bar.xml
look for
Code:
<include layout="@layout/system_icons" />
Add this code above it
Code:
<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@+id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />
5. Download this View attachment SystemUI.zip and merge them
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
7. After replace the public ids ( by comparing one i gave in zip
8. after compared and replace... compile the app and replace in system
Now time for settings.apk
1. Decompile the settings.apk
2. open settings.apk/res/values/arrays.xml and this below code
Code:
<string-array name="show_network_traffic_state_entries">
<item>@string/show_network_traffic_disable</item>
<item>@string/show_network_traffic_up</item>
<item>@string/show_network_traffic_down</item>
<item>@string/show_network_traffic_all</item>
</string-array>
<string-array name="show_network_traffic_state_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string-array name="show_network_traffic_unit_entries">
<item>@string/show_network_traffic_bit</item>
<item>@string/show_network_traffic_byte</item>
</string-array>
<string-array name="show_network_traffic_unit_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="show_network_traffic_frequency_entries">
<item>@string/show_network_traffic_500</item>
<item>@string/show_network_traffic_1000</item>
<item>@string/show_network_traffic_1500</item>
<item>@string/show_network_traffic_2000</item>
</string-array>
<string-array name="show_network_traffic_frequency_values">
<item>500</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
</string-array>
3. now open settings.apk/res/values/strings.xml and add these codes
Code:
<string name="default_string">Default</string>
<string name="network_traffic_summary">Enable various network traffic options in statusbar</string>
<string name="network_traffic_title">Network traffic</string>
<string name="show_network_traffic_state">Status bar traffic monitor</string>
<string name="show_network_traffic_unit">Display unit</string>
<string name="show_network_traffic_frequency">Update interval</string>
<string name="show_network_traffic_disable">Disabled</string>
<string name="show_network_traffic_up">Outgoing</string>
<string name="show_network_traffic_down">Incoming</string>
<string name="show_network_traffic_all">Outgoing and incoming</string>
<string name="show_network_traffic_bit">Bits per second</string>
<string name="show_network_traffic_byte">Bytes per second</string>
<string name="show_network_traffic_500">500 ms</string>
<string name="show_network_traffic_1000">1000 ms</string>
<string name="show_network_traffic_1500">1500 ms</string>
<string name="show_network_traffic_2000">2000 ms</string>
<string name="network_traffic_autohide">Auto hide</string>
<string name="network_traffic_autohide_summary">Hide the traffic monitor when there is no activity</string>
<string name="network_traffic_autohide_threshold">Inactivity threshold</string>
<string name="network_traffic_color_style">Color style</string>
<string name="network_traffic_color_reset">Reset color</string>
<string name="network_traffic_color_reset_message">Reset network traffic color to default?</string>
4. now open settings.apk/res/values/attrs.xml and add these codes
Code:
<attr name="unitsLeft" format="reference|string" />
<attr name="min" format="float" />
<attr name="unitsRight" format="reference|string" />
5. Add this to any of your xml
for example i had add to my personal settings (res/xm/rstatusbar.xml)
you can add in display_settings.xml or as you wish
Code:
<PreferenceScreen android:title="@string/network_traffic_title" android:key="network_traffic_state " android:summary="@string/network_traffic_summary" android:fragment="com.android.settings.rz.NetworkTraffic" />
6. download this View attachment Settings.zip and merge to your settings
7. compile and decompile so you will get ids
8. open smali/com/android/settings/rz/NetworkTraffic.smali
9. compare the public ids to my one and replace yours
10. after that compile and replace the settings.apk
Best way to compare the Public ids go here shared by @iedafarha
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
venkat kamesh said:
8. compare the public ids to my one and replace yours
9. after that compile and replace the settings.apk
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
Click to expand...
Click to collapse
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Good mode bro Tnx man
iedafarha said:
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Click to expand...
Click to collapse
tnx bro you save my time alot
Nimadroid said:
tnx bro you save my time alot
Click to expand...
Click to collapse
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Need Fix
Can you help me to fix it for me? Cause try and try but it always can't open Network Traffic menu on settings
I attach my apk
Sorry for my bad english
Thanks for help :angel:
Sloved.
I think you miss something for Public ID on NetworkTraffic.smali
For this publicID :
PHP:
<public type="integer" name="maskUp"
<public type="integer" name="maskDown"
<public type="integer" name="maskUnit"
<public type="integer" name="maskPeriod"
Keep Rockin :highfive:
iedafarha said:
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Click to expand...
Click to collapse
ohhhh yeaaa
worked like chrm...
venkat kamesh said:
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
Click to expand...
Click to collapse
i dont have networktraffic smali in my folder. can you mod my apk for me
uday94 said:
i dont have networktraffic smali in my folder. can you mod my apk for me
Click to expand...
Click to collapse
You don't have Networktraffic smali in ur folder because u did not follow the instructions in OP. This tutorial works perfectly.. Just try again. Read the full tutorial one time or two time then try..
venkat kamesh said:
Today i came here with new Tut
Click to expand...
Click to collapse
everything worked fine . but whenever i open network traffic option in settings it force closes.
uday94 said:
everything worked fine . but whenever i open network traffic option in settings it force closes.
Click to expand...
Click to collapse
Re check ids..
I used public id port app to change ids. There were some missing ids while editing.
uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
There u go.. Try manual way. Find each ids and try again like me..
uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
Download the compare_settings_systemui.zip http://forum.xda-developers.com/showthread.php?p=64516025
Decompile and check what you need (if the míssed public id is a attr= search into values/attr.xml and copy the línes you have míssed to your files and follow That way)
Who mod files for m2 2303?
djborek said:
Who mod files for m2 2303?
Click to expand...
Click to collapse
Tutorials is for learning my friend.. Just try it..
I dont know how do it.
djborek said:
I dont know how do it.
Click to expand...
Click to collapse
I made it from z5 style files
Pls send me on my PM files for 2303.

[Guide][tut] Animations Speed (Transition/windows/duration) control

Today again a new mod ( i collected this from great cataclysm rom )
You should be having Stock deodexed settings.apk
1. Decompile the settings
2. Open settings.apk/res/values/attrs.xml
Add this code
Code:
<attr name="type" format="integer" />
3. Open settings.apk/res/values/strings.xml
Add this code
Code:
<string name="window_animation_scale_title">Window animation scale</string>
<string name="transition_animation_scale_title">Transition animation scale</string>
<string name="animator_duration_scale_title">Animator duration scale</string>
4. Add this code to any of your settings like (display_settings.xml or as you wish )
Code:
<PreferenceScreen android:title="@string/animation_speeds_title" android:key="animation_speeds" android:summary="@string/animation_speeds_summary" android:fragment="com.android.settings.AnimationSpeeds" />
5. Add these ids in settings.apk/res/values/ids.xml
Code:
<item type="id" name="seek_bar_pref_unit_right">false</item>
<item type="id" name="seek_bar_pref_value">false</item>
<item type="id" name="seek_bar_pref_unit_left">false</item>
<item type="id" name="seek_bar_pref_bar_container">false</item>
6. Now download this View attachment settings.zip
and merge codes
Main Part Continued in Post #2
Final part and Result
Here comes a critical Part but not difficult
We had added new integer so we have to define in setting activity
i will explain in simple code just follow it
7. Now open settings.apk/smali/com/android/settings/R$styleable.smali
Find this code
Code:
.field public static final IntentPreference:[I
Below this add
Code:
.field public static final MySeekBarPreference:[I
Now look for
Code:
sput-object v0, Lcom/android/settings/R$styleable;->PercentageBarChart:[I
Below Add this code
Code:
.line 12360
new-array v0, v3, [I
const v1, 0x7f010044
aput v1, v0, v2
sput-object v0, Lcom/android/settings/R$styleable;->MySeekBarPreference:[I
So here you had define the integer
8. Compile and decompile so you get new public ids
From that in R$styleable.smali
Replace the Public code :- 0x7f010044 #<public type="attr" name="type" id="0x7f010044" />
and in MySeekBarPreference.smali and in AnimationSpeeds.smali compare with my public ids and replace them
9. Oh god... just compile and replace your settings.apk and enjoy the mod ( check the below image on what mod you did........... )
{
"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"
}
Don't forget to mention in if you used my work
Awesome bro ^^
“Sent From MWE V7.0.0 On My Z3”
6. Now download this settings.zip
and merge codes
Click to expand...
Click to collapse
hi venkat, i tried your guide, all is fine except the step mentioned ahead.
i compared the public.xml from the rom i use and your public(compare).xml with WinMerge and there are many differences (on both sides)
So what to do?
Tried to simple copy your xml into the values folder, but then recompiling failed.
And the second thing i don´t understand:
8. Compile and decompile so you get new public ids
Click to expand...
Click to collapse
where is this new public ids?
From that in R$styleable.smali
Replace the Public code :- 0x7f010044 #<public type="attr" name="type" id="0x7f010044" />
and in MySeekBarPreference.smali and in AnimationSpeeds.smali compare with my public ids and replace them
Click to expand...
Click to collapse
i get a new public code and must replace the similar code in R$styleable.smali?
And also in MySeekBarPreference.smali and AnimationSpeed.smali? Right?
Thx for your help.
I love this mod, so i want to try it on my own.
Add new animation?
How can I add the same animation that was on kitkat when you open an app or while you tap thumbnail on multitasking view? This animation in lollipop is missing
Can you help me to know what i did wrong?
dark90 said:
Can you help me to know what i did wrong?
Click to expand...
Click to collapse
You need to define seekbar preferences then you will get all
Another great tutorial from master @venkat kamesh :good:
venkat kamesh said:
You need to define seekbar preferences then you will get all
Click to expand...
Click to collapse
Thanks i got it.
The problem following you tut step by step is that you have 12seek_bar_preference.xml (defined in seekbarpreference.smali) and seek_bar_preference.xml (defined in myseekbarpreference.smali) and we only have seek_bar_preference.xml (defined on seekbarpreference.smali) and Just comparing the public id didnt gonnna work
dark90 said:
Thanks i got it.
The problem following you tut step by step is that you have 12seek_bar_preference.xml (defined in seekbarpreference.smali) and seek_bar_preference.xml (defined in myseekbarpreference.smali) and we only have seek_bar_preference.xml (defined on seekbarpreference.smali) and Just comparing the public id didnt gonnna work
Click to expand...
Click to collapse
In my settings I had 2 to 3 different seekbar bro
For this mod the seek bar out value should be px
The one in tut I have and the one 12seekbar are same brother.. You can compare
Any how it worked for you bro
Happy to hear
for that ppl that cant make it work (just the ppl who did all the things in op), just:
-download, uncompres and copy this file to your settings.apk/res/layout folder
-compile and decompìle to get the new public id
-open you settings.apk/res/value/public.xml and search <public type="layout" name="seekbar_preference" id
-open settings.apk/smali/com/android/settings/rz/myseekbarpreference.smali and go to the line 92 " const v1, 0x7f040103 # type="layout" name="seek_bar_preference "
-change the id for the one you find before in public.xml
-now compile and sign and you got it now working, well i hope xD
Great Job venkat
Sorry I forget modify some lines all works like a charm thanks bro
@dark90 mate
Thanks. Ur solution works like a charm..
dark90 said:
for that ppl that cant make it work (just the ppl who did all the things in op), just:
-download, uncompres and copy this file to your settings.apk/res/layout folder
-compile and decompìle to get the new public id
-open you settings.apk/res/value/public.xml and search <public type="layout" name="seekbar_preference" id
-open settings.apk/smali/com/android/settings/rz/myseekbarpreference.smali and go to the line 92 " const v1, 0x7f040103 # type="layout" name="seek_bar_preference "
-change the id for the one you find before in public.xml
-now compile and sign and you got it now working, well i hope xD
Click to expand...
Click to collapse
@dark90
This aint work bro, when i add your xml and try to compile, i have error cant find the ids in public.xml and i send you a pm btw.
I have it all except the switches
deleted

[Guide][tut] AOKP System animations (Xperia devices ) 5.x +

Hello guys
here go a new tut on
System animations from AOKP
{
"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"
}
First pray for god to give you best part of patience
For this you need
Deodexed:- Service.jar, Framework-res.apk, framework.jar, Settings.apk
First let me start from Framework-res.apk
1. Decompile the Framework-res,apk
2. Download this View attachment framework-res-merge.zip
3. Merge this part of attachment and public.xml is to compare
4.Now open framework-res.apk/res/values/string.xml
in that at the bottom part add these strings
Code:
<string name="animation_fade">Fade</string>
<string name="animation_slide_right">Slide in right</string>
<string name="animation_slide_left">Slide in left</string>
<string name="animation_slide_right_no_fade">Slide in right (No fade)</string>
<string name="animation_slide_left_no_fade">Slide in left (No fade)</string>
<string name="animation_slide_up">Slide in bottom</string>
<string name="animation_slide_down">Slide in top</string>
<string name="animation_default">Default</string>
<string name="animation_translucent">Translucent</string>
<string name="animation_grow_shrink">Grow in (Top)</string>
<string name="animation_grow_shrink_center">Grow in (Center)</string>
<string name="animation_grow_shrink_bottom">Grow in (Bottom)</string>
<string name="animation_grow_shrink_left">Grow in (Left)</string>
<string name="animation_grow_shrink_right">Grow in (Right)</string>
<string name="action_null">Blank</string>
5.Now compile the framework-res.apk and then decompile ( for public ids )
Now lets move to Second part in post #2
framework.jar
Here you need god blessings for patience
1. Decompile framework.jar
2. Download this View attachment framework.jar-merge.zip ( this included file to compare )
3. After you merge the file open
smali/com/android/internal/util/aicp/AwesomeAnimationHelper.smali
Compare all public ids and replace from your framework-res.apk public codes ( if you dont know please dont ask me )
compare file of mine was available in above framewor-res.apk public
4. Now Open smali_classes2/android/provider/Settings$System.smali
in that look for this code
Code:
.field public static final ACCELEROMETER_ROTATION:Ljava/lang/String; = "accelerometer_rotation"
Below that Add this line
Code:
.field public static final ACTIVITY_ANIMATION_CONTROLS:[Ljava/lang/String;
Now look for this
Code:
.field public static final ANIMATOR_DURATION_SCALE:Ljava/lang/String; = "animator_duration_scale"
Above it add these lines
Code:
.field public static final ANIMATION_CONTROLS_DURATION:Ljava/lang/String; = "animation_controls_duration"
.field public static final ANIMATION_CONTROLS_EXIT_ONLY:Ljava/lang/String; = "animation_controls_exit_only"
.field public static final ANIMATION_CONTROLS_NO_OVERRIDE:Ljava/lang/String; = "animation_controls_no_override"
.field public static final ANIMATION_CONTROLS_REVERSE_EXIT:Ljava/lang/String; = "animation_controls_reverse_exit"
now look for this code
Code:
sput-object v0, Landroid/provider/Settings$System;->CLONE_TO_MANAGED_PROFILE:[Ljava/lang/String;
add these lines after that line
Code:
.line 4604
const/16 v0, 0xb
new-array v0, v0, [Ljava/lang/String;
const-string v1, "activity_open"
aput-object v1, v0, v5
const-string v1, "activity_close"
aput-object v1, v0, v6
const-string/jumbo v1, "task_open"
aput-object v1, v0, v7
const-string/jumbo v1, "task_close"
aput-object v1, v0, v8
const-string/jumbo v1, "task_to_front"
aput-object v1, v0, v9
const/4 v1, 0x5
const-string/jumbo v2, "task_to_back"
aput-object v2, v0, v1
const/4 v1, 0x6
const-string/jumbo v2, "wallpaper_open"
aput-object v2, v0, v1
const/4 v1, 0x7
const-string/jumbo v2, "wallpaper_close"
aput-object v2, v0, v1
const/16 v1, 0x8
const-string/jumbo v2, "wallpaper_intra_open"
aput-object v2, v0, v1
const/16 v1, 0x9
const-string/jumbo v2, "wallpaper_intra_close"
aput-object v2, v0, v1
const/16 v1, 0xa
const-string/jumbo v2, "task_open_behind"
aput-object v2, v0, v1
sput-object v0, Landroid/provider/Settings$System;->ACTIVITY_ANIMATION_CONTROLS:[Ljava/lang/String;
5. Now compile ( remember dont forgot about the changing public ids )
now
framework-res.apk and framework.jar was done
now next part Service.jar in post #3
Service.jar
This is not a heavy part
1. Decompile Service.jar ( make sure you already had superusermod)
2. Download this View attachment service.jar-merge.zip merge it
3. now from the public replace the ids ( from the first post )
compare them and replace ( besure while replacing )
now compile
Finally heavy part of
Framework-res.apk
framework.jar and
service.jar was done
Finally Settings
look for next post #4 to finish
settings.apk final part
Easy part
1. Decompile Settings.apk
2. Download this View attachment Settings.apk-merge.zip merge it (public.xml to compare ids )
3. Now open settings.apk/res/values/string.xml
add these strings
Code:
<string name="aokp_animation_title">System animations</string>
<string name="aokp_animation_summary">AOKP custom animation</string>
<string name="title_animation_no_override">Prevent App Overrides</string>
<string name="summary_animation_no_override">Prevent apps from overriding transitions.</string>
<string name="animation_exit_only_title">Enter only animation</string>
<string name="animation_reverse_exit_title">Reverse exit animation</string>
<string name="activity_open_title">Activity open animation</string>
<string name="activity_close_title">Activity close animation</string>
<string name="task_open_title">Task open animation</string>
<string name="task_close_title">Task close animation</string>
<string name="task_move_to_front_title">Move to front animation</string>
<string name="task_move_to_back_title">Move to back animation</string>
<string name="wallpaper_open_title">Wallpaper open animation</string>
<string name="wallpaper_close_title">Wallpaper close animation</string>
<string name="wallpaper_intra_open_title">Wallpaper intra open animation</string>
<string name="wallpaper_intra_close_title">Wallpaper intra close animation</string>
<string name="task_open_behind_title">Task open behind animation</string>
<string name="animation_duration_title">Animation duration</string>
<string name="animation_duration_default">Default</string>
4. Now open Settings.apk\smali\com\android\settings\SettingsPreferenceFragment.smali
Look for this
Code:
# instance fields
Add these
Code:
.field protected mContentRes:Landroid/content/ContentResolver;
.field protected mContext:Landroid/content/Context;
Find this method
Code:
.method public onCreate(Landroid/os/Bundle;)V
in that method look for this line
Code:
invoke-super {p0, p1}, Lcom/sonymobile/settings/preference/util/SomcSettingsPreferenceFragment;->onCreate(Landroid/os/Bundle;)V
After that line add these lines
Code:
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;
move-result-object v1
invoke-virtual {v1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;
move-result-object v1
iput-object v1, p0, Lcom/android/settings/SettingsPreferenceFragment;->mContext:Landroid/content/Context;
.line 95
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;
move-result-object v1
invoke-virtual {v1}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
iput-object v1, p0, Lcom/android/settings/SettingsPreferenceFragment;->mContentRes:Landroid/content/ContentResolver;
Now look for this method
Code:
.method protected showDialog(I)V
Before that method add this method
Code:
.method public setTitle(I)V
.locals 1
.param p1, "resId" # I
.prologue
.line 526
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/app/Activity;->setTitle(I)V
.line 527
return-void
.end method
save it and close
5. In any part of settings ( example Display_settings.xml ) add this line
Code:
<PreferenceScreen android:title="@string/aokp_animation_title" android:key="aokp_animation" android:summary="@string/aokp_animation_summary" android:fragment="com.android.settings.aicp.AnimationControls" />
6. Now compile and decompile and replace public ids
then recompile and sign it
Finally
Replace all these files
framework-res.apk
framework.jar
service.jar and
settings.apk
Credits
CyanogenMod
AOKP
Aicp
maaadr group
Dont forgot to mention me in your thread if you use my work
Good Luck​
Great job bro @venkat kamesh ^^
“Sent From MWE V9.5.0 On My Z3”
robertlindz said:
This is not your work...i see this guide in forum maaad facebook
Click to expand...
Click to collapse
+1
venkat kamesh said:
cool
yes i do found that
since i had my changes for xperia
have you read what i wrote ( Xperia )
compare the smali codes of mine ( oops my complete tut )
( remember i had modified from maaadon )
and i had already gave credits for the developers ... read before you waste your post here in my thread
Edit :-
next tut was about lockscreen weather
not from last time bull****
from rr source ( most of my tuts are from source )
i think you need to read my hot topics lol
Click to expand...
Click to collapse
Looking forward for that one, lockscreen weather tut ?
I got bootloop after replace service.jar and framework.jar I make the tut twice and replace last long the id from framework.jar xD how can i fix the bootloop bro? I make backup xD
Hi bro
Got bootloop.. Tried 3 times so far..
First replaced framework-res.apk and reboot. No bootloop
Second replaced framework.jar and reboot. Boom.. Its bootlooping...
Can u pls check the framework.jar_merge.zip? In that zip in class2 folder i can see only one smali file. Its named something blah(compare).smali. Do i need to rename it or what?
Rajeev said:
Hi bro
Got bootloop.. Tried 3 times so far..
First replaced framework-res.apk and reboot. No bootloop
Second replaced framework.jar and reboot. Boom.. Its bootlooping...
Can u pls check the framework.jar_merge.zip? In that zip in class2 folder i can see only one smali file. Its named something blah(compare).smali. Do i need to rename it or what?
Click to expand...
Click to collapse
compare file is to compare with your stock one bro
so you can know what i added
that makes you easy
Great Job again master venkat:good:
venkat kamesh said:
compare file is to compare with your stock one bro
so you can know what i added
that makes you easy
Click to expand...
Click to collapse
I think thats the mistake i done. What i did i just renamed that.. Heeeee.. Let me try once again
Finally..
All working.. Awsom tutorial bro.. First i can't see any difference. But after setting my window animation to 0.5 or 1 its start to work... Great great and great... Thanks alot bro..
So without enabling window animation its won't work. Right?
Nice tut.
I was wondering, if it's possible to add "random" mode for animations like in xposed xuimod here: https://github.com/zst123/XuiMod/blob/master/res/values/arrays_anim_control.xml and here: https://github.com/zst123/XuiMod/bl...od/mods/animation/AwesomeAnimationHelper.java
I did it!!! Thank very much bro my mistake it's the form to decompile the jar I did ur method to replace classes n.n thanks very much bro
raziel zarafan said:
I did it!!! Thank very much bro my mistake it's the form to decompile the jar I did ur method to replace classes n.n thanks very much bro
Click to expand...
Click to collapse
Congratulations bro. And i am really sorry to reply u lately in PM. I was sleeping.. Now only wakeup..
Rajeev said:
Congratulations bro. And i am really sorry to reply u lately in PM. I was sleeping.. Now only wakeup..
Click to expand...
Click to collapse
Don't worry bro and thanks any way u always try to solve my questions
@raziel zarafan
maybe you know but which ids we need to replace in settings and from where ?
Pandemic said:
@raziel zarafan
maybe you know but which ids we need to replace in settings and from where ?
Click to expand...
Click to collapse
For settings
AnimationsControl.smali
Line 263: "string" name="aokp_animation_title"
Line 268: "xml" name="aicp_aokp_animation_controls"
AnimBarPreference.smali
Line 80: "layout" name="slider_preference"
Line 90: "id" name="monitor_box"
Line 101:"id" name="seek_bar"
Line 223:"string" name="animation_duration_default"
raziel zarafan said:
For settings
AnimationsControl.smali
Line 263: "string" name="aokp_animation_title"
Line 268: "xml" name="aicp_aokp_animation_controls"
AnimBarPreference.smali
Line 80: "layout" name="slider_preference"
Line 90: "id" name="monitor_box"
Line 101:"id" name="seek_bar"
Line 223:"string" name="animation_duration_default"
Click to expand...
Click to collapse
Thanks alot bro ^^
I have sometimes struggles with the annoying public ids lol
“Sent From MWE V9.5.0 On My Z3”

Categories

Resources