[GUIDE] duplicate activity at settings.apk - Galaxy Y GT-S5360 Android Development

hi guys I'll give you a way to create a apk like the creed parts.apk without creating file apk like on screenies:
{
"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"
}
File Required:
1. Settings.apk
2. Tools to compile/decompile
3. Brain
Tuts:
1. decompile then compile again your settings.apk to check if there is an error or not
2. after it, decompile again
3. go to folder \smali\com\android\settings
4. copy 2 file smali TestingSettings.smali, TestingSettingsBroadcastReceiver.smali
5. just copy it there will appear -copy.smali
6. then rename. for example: Octo1.smali, Octo2.smali
7. open octo1.smali, find and replace com/android/settings/TestingSettings to com/android/settings/Octo1
8. find TestingSettings.java, replace to Octo1.java
9. open Octo2.smali, find and replace com/android/settings/TestingSettingsBroadcastReceiver to com/android/settings/Octo2
10. find and replace com/android/settings/TestingSettings to com/android/settings/Octo1 then find TestingSettingsBroadcastReceiver.java rename to Octo2.java. save
11. open res/xml
12. copy and paste Testing_Settings.xml and there will appear -copy.xml
13. rename to octo1.xml
14. delete all on octo1.xml and then write this. for example i use DSP Manager
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/tittle"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.IconPreferenceScreen android:title="DSPManager" android:summary="Setting Sound Equalizer" settings:icon="@drawable/ic_settings_dsp">
<intent android:targetPackage="com.bel.android.dspmanager" android:action="android.intent.action.MAIN" android:targetClass="com.bel.android.dspmanager.activity.DSPManager" />
</com.android.settings.IconPreferenceScreen>
</PreferenceScreen>
Click to expand...
Click to collapse
15. then save
16. open public.xml
17. enter the name of the new xml that we make to the public. +1 of the largest on the xml id. for example
<public type="xml" name="tab_settings" id="0x7f04003c" />
<public type="xml" name="octo1" id="0x7f04003d" />
Click to expand...
Click to collapse
18. the new id of octo1 copy to octo1.smali
19. then, open androidmanifest. find "TestingSettings"
20. copy this 2 parts:
<activity android:label="@string/tittle" android:name="TestingSettings">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="TestingSettingsBroadcastReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SECRET_CODE" />
<data android:scheme="android_secret_code" android:host="4636" />
</intent-filter>
</receiver>
Click to expand...
Click to collapse
21. TestingSettings rename to Octo1, TestingSettingsBroadcastReceiver rename to Octo2, android:host="4636" rename to android:host="666"
22. final step, open settings.xml. paste this everywhere you want
<com.android.settings.IconPreferenceScreen android:title="@string/tittle" settings:icon="@drawable/ic_settings_octo">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.IllegalSettings" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
23. android:targetClass="com.android.settings.IllegalSettings" replace to android:targetClass="com.android.settings.Octo1"
24. compile. make sure you don't get error
25. sign-in settings
26. flash
sorry if my english is bad. thanks

fully credit to Rata Bila Bagi

Gonna try this! Reserved!

Can i make 3 tabs using duplicating the octo1 again?

TheDemiGod said:
Gonna try this! Reserved!
Click to expand...
Click to collapse
good luck bro

3r41nl33n said:
Can i make 3 tabs using duplicating the octo1 again?
Click to expand...
Click to collapse
no. this tuts just to create a apk like creedparts without make apk. please see screenshot

ocoot said:
no. this tuts just to create a apk like creedparts without make apk. please see screenshot
Click to expand...
Click to collapse
Oh sorry. I thought it was. Because in the screenies at the left has a two tabs.

3r41nl33n said:
Oh sorry. I thought it was. Because in the screenies at the left has a two tabs.
Click to expand...
Click to collapse
no problem

up

ocoot said:
up
Click to expand...
Click to collapse
Hi, I found 2 com/android/settings/TestingSettings, are they both of them need to replace?

please follow the tuts

Awesome sir ocoot:thumbup:

22. final step, open settings.xml. paste this everywhere you want
23.android:targetClass="com.android.settings.IllegalSettings" replace to android:targetClass="com.android.settings.Octo1"
24. compile. make sure you don't get error
25. sign-in settings
26. flash
Im stuck at step 22.... I would like ask regarding the step 22..
I have not found any file with a filename settings.xml. Does it mean any of example xxxxx_settings.xml files i can paste your code? Please help.
Sent from my LT18i using xda premium

Not Working I am Getting Problem in apktool

shadman0 said:
Not Working I am Getting Problem in apktool
Click to expand...
Click to collapse
try using apk multitool

Pls update the SS

the_vanya1 said:
Pls update the SS
Click to expand...
Click to collapse
This guide is actually similar like this one http://forum.xda-developers.com/showthread.php?t=2166315 from @Didact74

Related

Help Theming soft keys

So as the title suggests, Is there a way to theme the softkeys in CM or Stock roms. I need to theme the background of the status bar as i dont like black. Can some one help me??
As i know the easiest way is to use aokp rom work best if you have 3113 or 5113 their are already roms for both
Sent from my GT-P5100 using xda app-developers app
For stock. Decompile systemUI.apk and edit \res\drawable-sw600dp-mdpi\tw_status_bar_background.9 All of the other assoiciated images are in the same location. My location knowledge is based off of a 7" and the 10" is prolly in the drawable-sw800dp-mdpi folder.
good day.
Now as a side bar, I run a stock tw rom on my tab2 7 (I love the ir blaster so aosp is out for me ) but I do some personal tweaking for my taste. You can change the order and add a custom button with this quick breeze over.
{
"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"
}
I added a power button and changed order of recent and home buttons plus edited all of the pressed images (also de-touch wizzed the crap out of the notif panel and got rid of the text under toggles and made line indicator line smaller and found all the powder blue text colors via xml edits). But on to adding power button and changing order.
decompile systemUI.apk and navigate to \res\layout-sw600dp\tw_status_bar.xml
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
Above is the way the lines appear in the stock xml and you can simply reorder lines so that they will appear in set order. But I added a new line and changed order seen in code below.
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_power" android:contentDescription="@string/accessibility_home" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
I added a new home line and changed the sytem key value to power from this reference http://developer.android.com/reference/android/view/KeyEvent.html and you also need to add new @drawable references as well. Next is creating 2 brand new images using gimp in \res\drawable-sw600dp-mdpi\ tw_ic_sysbar_power_normal.png and tw_ic_sysbar_power_press.png. It is also needed to create the "new" drawable xml for the 2 new images. In res\drawable\ create a new xml file named tw_ic_sysbar_power.xml with included content from 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/tw_ic_sysbar_power_press" />
<item android:drawable="@drawable/tw_ic_sysbar_power_normal" />
</selector>
<?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/tw_ic_sysbar_power_press" />
<item android:drawable="@drawable/tw_ic_sysbar_power_normal" />
</selector>
* edit * for some reason using the code paste it left off the last </selector> line as seen as a direct paste above.
compile apk and push to device.
Steps can be used to add any command. i.e. persistent play and skip media buttons.
good day.
:laugh: Thanks. Will try that and tell .
chopper the dog said:
Now as a side bar, I run a stock tw rom on my tab2 7 (I love the ir blaster so aosp is out for me ) but I do some personal tweaking for my taste. You can change the order and add a custom button with this quick breeze over.
Click to expand...
Click to collapse
Dont suppose you would happen to know about the actual navigation bar at all ? I'm under the impression that its in \framework-res\res\drawable-hdpi and named ab_bottom_solid_dark_holo.9.
I have decompiled it in VTS and extracted it and edited it. checked the 9 was ok with the 9patch tool and recompiled it . Pushed it back into my device and after a reboot nothing changes . wiped the cache and dalvik but no dice.
Also tried this one
Any ideas please ?
Thanks for the information on the softkeys , great tutorial ! :good:
Even i would love to have semi-transparent bar at bottom. With headset icon if possible
silentvisitor said:
Even i would love to have semi-transparent bar at bottom. With headset icon if possible
Click to expand...
Click to collapse
Thats what im hoping to do , just kinda stuck at the moment tho
Sean_Seany said:
Dont suppose you would happen to know about the actual navigation bar at all ? I'm under the impression that its in \framework-res\res\drawable-hdpi and named ab_bottom_solid_dark_holo.9.
I have decompiled it in VTS and extracted it and edited it. checked the 9 was ok with the 9patch tool and recompiled it . Pushed it back into my device and after a reboot nothing changes . wiped the cache and dalvik but no dice.
Any ideas please ?
Thanks for the information on the softkeys , great tutorial ! :good:
Click to expand...
Click to collapse
I dont have it decompiled atm but if you changed something and dont see a affect it prolly means theres another drawable folder its pulling it from. You can check the other drawables and see if you see the same file in them. Hell i change emm all most times lol
RomsWell said:
I dont have it decompiled atm but if you changed something and dont see a affect it prolly means theres another drawable folder its pulling it from. You can check the other drawables and see if you see the same file in them. Hell i change emm all most times lol
Click to expand...
Click to collapse
AHA i see , cool thanks for the tip :good: I will give it a shot.

[MOD/HOW-TO][CM10][V2][5-10-2012]Notification Drawer Tweaks

Just want to share a Mod I did on the CM10 status bar when pulled down. By default, when the notification drawer is pulled down, the status bar is hidden. I didn't like it, so I tweaked the layout to make it look like CM9 and before. Also I noticed that the 'Clear All' button gets pushed out due to the large font of the time and also due to the settings button. So I removed the settings button from the layout (I never use it anyways) I made the Top section a horizontal scroll view. And this is how it looks like...
{
"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"
}
If you're curious how I did this, following are the steps(for v1):
1. Decompile the SystemUI.apk.
2. Goto res/layout/super_status_bar.xml
3. In that find :
Code:
<include android:layout_width="fill_parent" android:layout_height="0.0dip" layout="@layout/status_bar_expanded"/>
Modify it to:
Code:
<include android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="@android:dimen/status_bar_height" layout="@layout/status_bar_expanded"/>
4. Then go to layout/status_bar_expanded.xml and find
Code:
<TextView android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:layout_gravity="bottom" android:gravity="center" android:visibility="invisible"/>
Modify it to
Code:
<TextView android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:layout_gravity="bottom" android:layout_marginBottom="57dip" android:gravity="center" android:visibility="invisible"/>
This dip value maybe different for different devices. It's necessary because your close handle and carrier label will be shifted below due to the first mod. So it's a trial error.
5. Next in the same file find...
Code:
<com.android.systemui.statusbar.phone.CloseDragHandle android:id="@id/close"....
Add this property to it...
Code:
android:layout_marginBottom="@android:dimen/status_bar_height" android:paddingBottom="-10dip"
marginBottom dimen is fixed but padding bottom depends on your device.
6. To remove settings button, find the following in layout/status_bar_expanded_header.xml:
Code:
<ImageView android:layout_width="48.0dip" android:layout_height="48.0dip" android:id="@id/settings_button" android:contentDescription="@string/accessibility_settings_button" android:scaleType="center" android:src="@drawable/ic_notify_quicksettings"/>
Modify it to
Code:
<ImageView android:layout_width="48.0dip" android:layout_height="48.0dip" android:id="@id/settings_button" android:contentDescription="@string/accessibility_settings_button" android:scaleType="center" android:visibility="gone" android:src="@drawable/ic_notify_quicksettings"/>
7. To change Notification Drawer Bg color, follow this thread.
8. Thats it. Recompile and enjoy.
Click to expand...
Click to collapse
v2
Tweaked for CM10 A2
Instead of removing the settings shortcut, made the header a Horizontal ScrollView, i.e., Now you can scroll the top section(with the clock) to reveal the Clear All icon.
Lowered the Transparency of background.
v1
Status Bar always seen.
Settings shortcut in notification drawer removed.
Drawer background changed.
Instructions:
1. Download zip from the attachment.
2. Rename to SystemUI.apk
3. Place it in a system folder and change permissions to rw-r-r.
4. Replace it in /data/sys-parts/app/ (that's where our system apps are).
5. Reboot.
Note: Change permissions before replacing the apk because SystemUI starts force closing after replacement. Don't worry about the force closes. After reboot everything will be ok.
Also if anyone makes a flashable zip, plz post it. I'll add it in the OP.
Thanx.
​
Works perfect. Persistent status bar.
Sent from my GT-I9003 using xda premium
@ ammar
Superb buddy...
Thx :thumbup:
Sent from my GT-I9003 using xda app-developers app
@Ammar786 .. what tool did you use to decompile and recompile systemui.apk ? Any link to a guide or tutorial?
Hetalk said:
@Ammar786 .. what tool did you use to decompile and recompile systemui.apk ? Any link to a guide or tutorial?
Click to expand...
Click to collapse
I use Tickle My Android. Check it out.
THanks man ... but am done for the day ...
See if you're interested in modding statusbar per tutorial http://forum.xda-developers.com/showthread.php?t=1835833&highlight=cm10
Hetalk said:
THanks man ... but am done for the day ...
See if you're interested in modding statusbar per tutorial http://forum.xda-developers.com/showthread.php?t=1835833&highlight=cm10
Click to expand...
Click to collapse
Hmmm.. Seems easy... May do it later... Currently I'm doing something else. If I get time i'll do it.
Hetalk said:
THanks man ... but am done for the day ...
See if you're interested in modding statusbar per tutorial http://forum.xda-developers.com/showthread.php?t=1835833&highlight=cm10
Click to expand...
Click to collapse
Thank you, i was looking for something like that! :good:
Is there any way to make the background a little transparent?
dj_stikes said:
Is there any way to make the background a little transparent?
Click to expand...
Click to collapse
Yeah there is. I'll post it here asap.
Guys... Want to ask something... Do you want fully transparent bg or semi-transparent?
^^ Blueish transparent
Hetalk said:
^^ Blueish transparent
Click to expand...
Click to collapse
Bluish transparent?... Let's see how it looks... Will reply back with some screenshots...
So this is how it'll look like with Blue...
^^ perfect ... gimme gimme
I hope it wont break the other tweaks you made.
Hetalk said:
^^ perfect ... gimme gimme
I hope it wont break the other tweaks you made.
Click to expand...
Click to collapse
Nope it won't, wait I'm fixing the Carrier Label Text Color.
Ok... Here it is... Attached... Will update the OP too...
^^ Amazing work man ... too good ... see screenshots. This is exactly what I wanted.
Haven't test it because i am in remics jb that already have tweaked statusbar but it look great.Anyway thanks:thumbup:
Sent from my GT-I9003 using xda premium

Themers. and Devs, Enable ink lockscreen in the sgs4. preconfigured

UNTESTED
so ink lockscreen comes pre configured in the sgs4, but all it needs is a place in the settings so..
all we have to do is
Decompile SecSettings.apk
Go to \res\xml folder and open lockscreen_settings.xml
Search for "CheckBoxPreference android:title="@string/ripple_effect"
then right below it replace the current inkeffect configuration cmds with these
Code:
<PreferenceScreen android:title="@string/ink_effect" android:key="ink_effect">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.InkeffectPreview" />
</PreferenceScreen>
then save it and Compile *if you can*
the only problem is that most of these SGS4 4.2.2 apks are to hard to decompile and compile so i havent tested this yet, so if anyone is able to
succeed in testing this. please give back feedback for testing :highfive: :highfive: :good: :good:
@cabloomi Doesnt work. I tested both by selecting the rippleeffect and also light effect! i modifed the same at line 25
<PreferenceScreen android:title="@string/ink_effect" android:key="ink_effect">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.InkeffectPreview" />
</PreferenceScreen>
I will have a look further in the smali files!
@grgsiocl , how are you able to decompile and compile it. i have many mods in mind that include the SecSettings.apk
but it wont go back and compile even if i dont touch or change anything. please zip your work space and send it to me. lol like the apktool and the framwork base's 1 and 2.
and i think it might be CSC activated like we figured out recently that the call recorder mod is also
cabloomi said:
@grgsiocl , how are you able to decompile and compile it. i have many mods in mind that include the SecSettings.apk
but it wont go back and compile even if i dont touch or change anything. please zip your work space and send it to me. lol like the apktool and the framwork base's 1 and 2.
and i think it might be CSC activated like we figured out recently that the call recorder mod is also
Click to expand...
Click to collapse
i can easily do it as i am using the newsest version apktool. I also pushed framewrok-res.apk, twframework-res.apk and ssytemui. I will upload the apktool for you in a minute!
Edit uploaded the tool here! Just push the corresponding frameworks after extracting the zip and you are good to go! I am also using the backsmali /smali versio 2.0 , that also will upload it!
i made centerclock for the s4, want it @grgsiocl
maybe you can make a black transparent bar
and thank you for the apktool. it worked perfectly
If you already done it, then share please. I always love to have missing features in phone
Sent from my GT-I9500 using Tapatalk 2
grgsiocl said:
If you already done it, then share please. I always love to have missing features in phone
Sent from my GT-I9500 using Tapatalk 2
Click to expand...
Click to collapse
the clock wont roll out the way for a notification. so.. help me. this is what i did to get it center
decompile SystemUI.apk
Navigate to res/layout/status_bar.xml
Look for a line that starts with
Code:
<com.android.systemui.statusbar.policy.Clock
and i deleted it.
then added these lines
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
under this line
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
then i changed the clock from blue to white
from this line
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
I change the
<item name="android:textColor">@*android:color/holo_blue_light</item>
to <item name="android:textColor">#ffffffff</item>
so now its center, but it wont roll out the way for a notification
any ideas @grgsiocl
never mind. got it working, but its kinda glitchy
Cabloomi,
If you did not code this, please provide a link and credit to the "original" author.
Thanks
Sent from my GT-I9500 using xda premium
and what do i do if i did code it??
nothing right. ?
cabloomi said:
and what do i do if i did code it??
nothing right. ?
Click to expand...
Click to collapse
There is lots of info on the net for this mod...... and been for a long time.
I was just asking, not accusing you, because you would have wasted your time otherwise
Sent from my GT-I9500 using xda premium
UpInTheAir said:
There is lots of info on the net for this mod...... and been for a long time.
I was just asking, not accusing you, because you would have wasted your time otherwise
Sent from my GT-I9500 using xda premium
Click to expand...
Click to collapse
Remember this from last year
{
"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"
}
lol. i still have that message in my inbox
cabloomi said:
Remember this from last year
lol. i still have that message in my inbox
Click to expand...
Click to collapse
Yeah, do remember and still stick by it mate.
I am not criticizing you. I still encourage you to keep at it, but please try and provide links and credits to any "original" work you may have borrowed to edit. That's all.
Cheers,
UITA
BTW off topic .... Noticed you have a ROM out. Nice work. You'll notice on my signature I've been cooking also for the P6810 & P6800. More to do soon as JB just released
Sent from my GT-I9500 using xda premium

(guide)How to add Owner pic in settings About Panel

Here is My guide how to add Owner pic in settings about Panel​
{
"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"
}
Always backup any original file before modifying. If your phone doesn't boot push that backup to your phone.**
REQUIRED:
--Android SDK
--APK Tool
--WinZIP
--NOTEPAD
STEPS:-​-- Download the attached ZIPowner.zip
--Decompile your Setting.apk folder
​--and replace mine res folder with yours
Code:
<PreferenceCategory android:layout="@layout/preference_category" android:title=" INFO " />
<Preference android:focusable="false" android:clickable="false" android:layout="@layout/lenox_pic" />
Below this line
xmlns:android="http://schemas.android.com/apk/res/android">
Click to expand...
Click to collapse
IT will look like this
​
Open res/values/ids.xml and add these at the end
<item type="id" name="image">false</item>
<item type="id" name="owner">false</item>
<item type="id" name="linear_layout">false</item>
<item type="id" name="profile_pic">false</item>
<item type="id" name="layout1">false</item>
<item type="id" name="change_picture_text">false</item>
<item type="id" name="photo_picker">false</item>
<item type="id" name="linear_layout1">false</item>
<item type="id" name="layout2">false</item>
<item type="id" name="name_field">false</item>
<item type="id" name="name_edit">false</item>
<item type="id" name="profile">false</item>
<item type="id" name="profile_name">false</item
Click to expand...
Click to collapse
Open strings.xml and add these strings
<string name="change_pic">Change profile picture</string>
<string name="profile_pic">SET PROFILE PICTURE</string>
<string name="profile_name">CHANGE PROFILE NAME</string>
Click to expand...
Click to collapse
Now recompile the apk and decompile it again. Now open the public.xml and find these ids.These may not be the same in your apk
-- Now, Copy the "b16h22" folder to \smali\com\(here)
Below are the most imp. steps:
This step is for matching the codes found in public.xml with that in smali foder.
1. Open each Smali files one by one which you copied now.
2. Also open Open the PublicPre.xml provided by me and Public.xml of ur current ROM in which u had registered the ID's.
3. In your smali files, find the id codes like 0x.......
4.Search dis in PublicPre.xml.
5.Copy the Item name related to dis code and search dis in ur current Public.xml.
6. And finally copy the Id of that ITEM name and replace with that in your Smali file.
7. Do the above steps with each ID codes in each Smali..
Now open the res/xml/ settings.xml
and add this iconpreferencescreen.You can add it anywhere you want.I'm assuming you have basic knowledge about preference xmls.
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
Now open the res/xml/ Open AndroidManifest.xml and add this
[QUOTE]<activity android:label="@string/change_pic" android:name="com.b16h22.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[/QUOTE]
10. Now you are done with modifications. Recompile and sign the settings.apk with kitchen​
Here is the last step
you have to disable signature check otherwise settings will not work
Here is My Guide
Decompile /system/framework/services.jar,
open com/android/server/packagemanagerservice.smali, look for
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/SignatureI
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
Click to expand...
Click to collapse
and add the red part
method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/SignatureI
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
const/4 v6, 0x0
return v6
Click to expand...
Click to collapse
Credit
b16h22
MARK
if u like my guide then press thanks button​
​
​
​
nice guide
thanks.. nice guide bro
Sent from my Micromax A57 using xda app-developers app
welcome Sir
very nice mod.... i will sure include this in my rom....& ofcourse ur & author's credit will be there...
Hi @SK(SurajKumar), will this work on 4.1.2 jelly bean as well ?
limyuyang said:
Hi @SK(SurajKumar), will this work on 4.1.2 jelly bean as well ?
Click to expand...
Click to collapse
sir did not try on 4.1 android and other high version!!
but you can try !!
and tell me result
and bro i am using 2.3.5:victory:
SK(SurajKumar) said:
sir did not try on 4.1 android and other high version!!
but you can try !!
and tell me result
and bro i am using 2.3.5:victory:
Click to expand...
Click to collapse
Hmm.....okay. I guess this mod will only work on GB because this code is only for GB, not for JB.
Code:
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
limyuyang said:
Hmm.....okay. I guess this mod will only work on GB because this code is only for GB, not for JB.
Code:
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
sir
may be it will work
Code:
<header android:icon="@drawable/ic_settings_owner" " android:title="Owner Profile" >
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" / />
</header>
Would it be worthwhile trying to create a collections of settings.apk files for various phones on various networks? Then the uninitiated, like myself, would be able to try this too
Is this an APK teardown of Hyperion?
CarlDeanCatabay said:
Is this an APK teardown of Hyperion?
Click to expand...
Click to collapse
Bro,I posted this guide long before him.I got this idea from your rom.
So,I gave you credits you can check my thread.
He just copied my thread.
I will report to the moderator.He didn't gave you credits and saying that he made this guide.
plz tell me, about guide multypanel settings for JB 4.1 Samsung Touchwiz
I hope you come out with an update guide fir kitkat. Thanks though as this is fabulous
dugeriss said:
plz tell me, about guide multypanel settings for JB 4.1 Samsung Touchwiz
Click to expand...
Click to collapse
TecknoFreak said:
I hope you come out with an update guide fir kitkat. Thanks though as this is fabulous
Click to expand...
Click to collapse
Check out my thread for 4.1 to 4.4.Check owner profile in about phone bro.
nightwalker said:
Check out my thread for 4.1 to 4.4.Check owner profile in about phone bro.
Click to expand...
Click to collapse
Ok i will once I'm on PC as i cant navigate into your threads from the xda app to get link
Thanks
This is nothing more than a copy and past thread that was stolen from @nightwalker
Please check out the original thread here
http://forum.xda-developers.com/showthread.php?t=2591100
Thread Closed

[GUIDE][JB][4.1.2][TW] CM power dialog on JB TW

{
"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"
}
hello guys, now i'm presenting you how to make your stock power dialog look a like power dialog on CM. it's easy
ok lets go
What i need?
1. tools for decompile/compile apk and jar files
2. the resource-file.zip
3. patient
How to?
A. FRAMEWORK-RES.APK
1. decompile your framework-res.apk
2. open your strings.xml then add this code below
Code:
<string name="power_dialog_header" />
<string name="power_dialog_airplane" />
<string name="power_dialog_airplane_2" />
<string name="power_dialog_network" />
<string name="power_dialog_network_2" />
3. compile your framework-res.apk then decompile again
4. open public.xml then search a new public code from code above like this
Code:
<public type="string" name="power_dialog_header" id="0x0104074f" />
<public type="string" name="power_dialog_airplane" id="0x01040750" />
<public type="string" name="power_dialog_airplane_2" id="0x01040751" />
<public type="string" name="power_dialog_network" id="0x01040752" />
<public type="string" name="power_dialog_network_2" id="0x01040753" />
5. now, open the file resource that we download earlier
6. merge/compare with yours
7. compile your framework-res.apk again
8. and then we done with framework-res.apk
B. ANDROID.POLICY.JAR
1. decompile your android.policy.jar
2. open GlobalAction.smali
3. now find this code .method private prepareDialog()Z
4. then a few line below it, you'll see a code 0xXXXXXXX (it from framework-res.apk/res/values/public-><public type="string" name="global_actions")
5. replace the code with code from <public type="string" name="power_dialog_header"
6. then, search code id public from
Code:
<string name="global_actions_airplane_mode_on_status">Flight mode is ON</string>
<string name="global_actions_airplane_mode_off_status">Flight mode is OFF</string>
<string name="global_action_data_mode_on_status">Data network mode activated</string>
<string name="global_action_data_mode_off_status">Data network mode deactivated</string>
and replace the code with code from (do a same things like step 4-5)
Code:
<string name="power_dialog_airplane" />
<string name="power_dialog_airplane_2" />
<string name="power_dialog_network" />
<string name="power_dialog_network_2" />
7. then, after it save your globalaction.smali
8. recompile your android.policy.jar
9. flash your framework-res.apk and android.policy.jar
NB:
1. do with your own risk
2. do backup first
3. if you get a errors, please report with a logcat
4. if you want to get a interface like aosp interface, go here -> http://forum.xda-developers.com/showthread.php?t=2685748
Can you attach the screen shot???
crazy_user said:
Can you attach the screen shot???
Click to expand...
Click to collapse
you can't see the screenshot above?
Sent from my Google Nexus 5 using Tapatalk
ocoot said:
you can't see the screenshot above?
Sent from my Google Nexus 5 using Tapatalk
Click to expand...
Click to collapse
sorry, my connection is bad but, thanks for this guide
anyone already try it? :|
Sent from my Google Nexus 5 using Tapatalk
up
Sent from my Google Nexus 5 using Tapatalk
I don't understand with step 6..
Sent from my GT-B5330 using xda premium
Awesome...!!
nice master ocoot :good: maybe sometimes i can try it :laugh:
Good Job
man i try your method and its work perfectly but if doesnt look like your screenshot heres mine, could you tell me how can i repositioned the words and how can eliminate the vertical dividers ?
Javho said:
man i try your method and its work perfectly but if doesnt look like your screenshot heres mine, could you tell me how can i repositioned the words and how can eliminate the vertical dividers ?
Click to expand...
Click to collapse
thx for trying. i'll tell you to night if am on computer
Sent from my Google Nexus 5 using Tapatalk
Hey mate, can you please help me remove "Device Options" from my Power menu?
Sami Kabir said:
Hey mate, can you please help me remove "Device Options" from my Power menu?
Click to expand...
Click to collapse
just follow all step on framework and step 1-5 on android.policy.jar
Javho said:
man i try your method and its work perfectly but if doesnt look like your screenshot heres mine, could you tell me how can i repositioned the words and how can eliminate the vertical dividers ?
Click to expand...
Click to collapse
what rom u use? hdpi?
ocoot said:
what rom u use? hdpi?
Click to expand...
Click to collapse
stock jb 4.1.2 Galaxy s advance hdpi
Enviado desde mi GT-I9070 mediante Tapatalk
Javho said:
stock jb 4.1.2 Galaxy s advance hdpi
Enviado desde mi GT-I9070 mediante Tapatalk
Click to expand...
Click to collapse
just put/compare my file to hdpi folder
Sent from my Google Nexus 5 using Tapatalk
Good guide..
Going to try it
Thanks.

Categories

Resources