[TUT][cyanogenMod 7] How to add soft button to your rom - Samsung Galaxy Mini

thank to autoradio for astuce
Hello all there is tut for all want to add soft button to Rom
is simple
decompile [7zip] framework-res.apk..go to res\values\ ...
in values creat an txt file name it bools.txt open with text editor and add
Code:
<bool name="cm_default_is_tablet">true</bool>
<bool name="cm_default_has_soft_buttons">true</bool>
save and rename bools.txt to bools.xml now
add PNG on drawable-mdpi and resize it [ PNG soft button pic it from ics or web ]
rezip your framwork-res.apk [ winrar right clic save zip rename it change zip by .apk
that all
and enjoy soft button
if you dont have soft button add him on drawable-mdpi and resize it and add it to drawable-ldpi that all
PS : if you dont find values folder in your framwork-res.apk just creat new folder name it values and creat bools.xml in values folder

is this work for custom rom based on stock?
can you make it works?

tested on cm7 work now test it on stock rom and feed

To what size do we resize the soft buttons pictures?
And am guessing this would work on any device running cm7/cm9 right?

medicjunKie said:
To what size do we resize the soft buttons pictures?
And am guessing this would work on any device running cm7/cm9 right?
Click to expand...
Click to collapse
mdpi are sized to 76x76 for ldpi i have used 45x45 is perfect
medicjunKie said:
this would work on any device running cm7/cm9
Click to expand...
Click to collapse
tested on cm7 test on cm9 normaly work now feed and add it on thread for help avery one

How bout HDPI?

medicjunKie said:
How bout HDPI?
Click to expand...
Click to collapse
tree 112x112

Do I have to rename the PNG before resize? And how to resize?
After I add bools.xml, rezip, flash, my phone stucks on android logo

spawk said:
decompile [7zip] framework-res.apk..go to res\values\ ...
in values creat an txt file name it bools.txt open with text editor and add
Code:
<bool name="cm_default_is_tablet">true</bool>
<bool name="cm_default_has_soft_buttons">true</bool>
save and rename bools.txt to bools.xml now
Click to expand...
Click to collapse
Where is my credits man?
Inviato dal mio GT-S5570 con Tapatalk 2

where can I download the softbuttons png?

Using a zip software [7zip etc..] != decompiling.
if u dont see the values folder it's because u've not decompiled/decoded the apk but just extracted it.
need to use apktool.

Guys, just want to share. check my mods here:
http://forum.xda-developers.com/showthread.php?t=1649999

roofrider said:
Using a zip software [7zip etc..] != decompiling.
if u dont see the values folder it's because u've not decompiled/decoded the apk but just extracted it.
need to use apktool.
Click to expand...
Click to collapse
tested with apk tool and not find it but work after creat it

sorry. You're teaching an expert ppl make some difficulties for newbie as me to catch up. Can you guide for newbie as well.?
Tq

what if our rom (cm9) already has a bools.xml in res/values?

medicjunKie said:
what if our rom (cm9) already has a bools.xml in res/values?
Click to expand...
Click to collapse
bools.xml and value already existe in cm7 but with 7zip is nor find it but if you decompile with apk decompiler you find it

So what, do i delete it and create a new bools.xml?
Or do i just add the lines you mention in the bools.xml that's already there?
Fyi, i decompiles framework-res.apk with APKTool.
Sent from my LG-E739 using Tapatalk 2

medicjunKie said:
So what, do i delete it and create a new bools.xml?
Or do i just add the lines you mention in the bools.xml that's already there?
Fyi, i decompiles framework-res.apk with APKTool.
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
yes if find it just add line creat it only if dont find it after extraction

where can i find res\values

exz8 said:
where can i find res\values
Click to expand...
Click to collapse
That's the directory lol
You find the folder values inside the folder res.
Make sure you decompile the apk.
Sent from my LG-E739 using Tapatalk 2

Related

[LINKS][TIPS] Edit system files, ROM, Kernel

I'm gonna give links for various guides to edit these files
Remember, these files are most useful for theming or making ROMs so read on if you want to develop your own ROMs...:good:
A noobs guide for uot kitchen
http://forum.xda-developers.com/showthread.php?t=1676817
Full guide for editing systemui.apk and framework-res.apk and also making a custom rom
http://forum.xda-developers.com/showthread.php?t=2086771
Editing classes.dex inside services.jar
http://forum.xda-developers.com/showthread.php?t=2160478
Change status bar clock color
http://forum.xda-developers.com/showthread.php?t=549309
Make status bar transparent
http://forum.xda-developers.com/showthread.php?t=1891702
Battery Bar Mod
http://forum.xda-developers.com/showthread.php?t=1371330
Decompiling/Recompiling and Advance Theming of 9 PNG
http://forum.xda-developers.com/showthread.php?t=2254824
Android Theming(Big guide with lots of links)
http://forum.xda-developers.com/showthread.php?t=2069287
Build.prop edits
http://forum.xda-developers.com/showthread.php?t=2256588
ADB, Logcat for n00bs and newbies
http://forum.xda-developers.com/showthread.php?t=2141817
KERNEL DEVELOPMENT(Advanced User)
How to use Github
http://forum.xda-developers.com/showthread.php?t=1877040
Guides on building kernels
http://forum.xda-developers.com/showthread.php?t=1845099&highlight=build+kernel (More useful for BCM devices)
http://forum.xda-developers.com/showthread.php?t=2226199
http://forum.xda-developers.com/showthread.php?t=2152819 (Using NDK)
Add features to your kernel( from XDA-U)
http://xda-university.com/as-a-developer/adding-features-to-your-kernel
TIPS​
Tip-1
Enable CRT screen off animation in ur phone(Will not enable animation when screen is turned on)(does not work on S5830i)
Decompile framework-res.apk
go to res/values find bools.xml and open it.
[/B]
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
If this does not work, look for detailed guide with editing of services.jar
Tip-2
Change your android version and name(just a superficial change!)
1. Open your explorer.
2. Go to system/
3. There's a file named "build.prop"
4. Long press and then open in text editor.
5. Find these-
ro.build.display.id - Build Number(Default: GINGERBREAD.XXLA2)
ro.build.version.release- Android version(Default: 2.3.6)
6. Edit, Save and Reboot!
Tip-3
Make status bar transparent(Only transparent for homescreen)
1. Decompile systemui.apk
2. Go to res/layout/status_bar,xml
3.Find android:background=FF000000 and change it to android:background=000000000 for full transparency and to android:background=5F000000 for half transparency.
4.If android:[email protected] statusbar_background (this name can be different) is present in status_bar.xml then you can find the image named statusbar_background in res/drawable-ldpi( or mdpi/hdpi depending on the device) and make that image transparent via image editors!
This simply means our status bar background is drawable and we are providing proper image for it!
Will add more tips soon!
Re: [LINKS][TIPS] Editing system files and more!
Thank js.. Very helpfull for a noob like me..
Sent from my GT-S6500D
thank you very much. it was helpful for me too.
Re: [LINKS][TIPS] Editing system files and more!
EvolutionHybrid said:
Thank js.. Very helpfull for a noob like me..
Sent from my GT-S6500D
Click to expand...
Click to collapse
eserguei said:
thank you very much. it was helpful for me too.
Click to expand...
Click to collapse
Quite strange that the guys who found it useful haven't bothered to atleast hit a small thanks button!
Sent from my Xperia Neo V using xda premium
Ghostfreak NB said:
Quite strange that the guys who found it useful haven't bothered to atleast hit a small thanks button!
Sent from my Xperia Neo V using xda premium
Click to expand...
Click to collapse
I did, but not to you
Also, is the CRT effect not able to be done on a Gingerbread-based stock rom? I decompiled my framework-res.apk with NinjaMorph but, I can't seem to find the dir [APK ROOT]/res/values nor the bools.xml file...
Another question, is it dangerous to my rom's stability if I use somebody else's framework-res.apk? (taking into account that my rom's backed up though, it's not really an issue )
Ah, my phone is a GT-S5830M (same as the GT-S5830i)
El_Dark said:
I did, but not to you
Also, is the CRT effect not able to be done on a Gingerbread-based stock rom? I decompiled my framework-res.apk with NinjaMorph but, I can't seem to find the dir [APK ROOT]/res/values nor the bools.xml file...
Another question, is it dangerous to my rom's stability if I use somebody else's framework-res.apk? (taking into account that my rom's backed up though, it's not really an issue )
Ah, my phone is a GT-S5830M (same as the GT-S5830i)
Click to expand...
Click to collapse
I am also S5830i user but this method won't work due to unknown reasons! I'll edit OP!
Otherwise it will work on other devices!
Don't replace framework-res.apk.. U'll get bricked.. If u are doing ui changes just take the pngs and replace in ur framework-res.apk! But make sure resolution is same as that of original one!
Sent from mass relay
El_Dark said:
Also, is the CRT effect not able to be done on a Gingerbread-based stock rom? I decompiled my framework-res.apk with NinjaMorph but, I can't seem to find the dir [APK ROOT]/res/values nor the bools.xml file...
Click to expand...
Click to collapse
It is yes, but you can only theme images it seems with NinjaMorph, which is why it doesn't list the folders that consist mainly of xmls, which can only be edited after being decompiled.
Was really a very easy n a extremely noov friendly tutorial.
Thnx guys!
Sent from my GT-I9100 using xda premium
VERY NICE GUIDE !!! Thanks a lot ,, many more to learn
Can u give a guide to add notification toggles in aosp ics
Sent from my GT-S5570 using xda premium
really helpful
thanks (pressed already)
How do I change the Model Number?
js2892 said:
I'm gonna give links for various guides to edit these files
Remember, these files are most useful for theming or making ROMs so read on if you want to develop your own ROMs...:good:
A noobs guide for uot kitchen
http://forum.xda-developers.com/showthread.php?t=1676817
Full guide for editing systemui.apk and framework-res.apk and also making a custom rom
http://forum.xda-developers.com/showthread.php?t=2086771
Editing classes.dex inside services.jar
http://forum.xda-developers.com/showthread.php?t=2160478
Change status bar clock color
http://forum.xda-developers.com/showthread.php?t=549309
Make status bar transparent
http://forum.xda-developers.com/showthread.php?t=1891702
Battery Bar Mod
http://forum.xda-developers.com/showthread.php?t=1371330
Decompiling/Recompiling and Advance Theming of 9 PNG
http://forum.xda-developers.com/showthread.php?t=2254824
Android Theming(Big guide with lots of links)
http://forum.xda-developers.com/showthread.php?t=2069287
Build.prop edits
http://forum.xda-developers.com/showthread.php?t=2256588
ADB, Logcat for n00bs and newbies
http://forum.xda-developers.com/showthread.php?t=2141817
KERNEL DEVELOPMENT(Advanced User)
How to use Github
http://forum.xda-developers.com/showthread.php?t=1877040
Guides on building kernels
http://forum.xda-developers.com/showthread.php?t=1845099&highlight=build+kernel (More useful for BCM devices)
http://forum.xda-developers.com/showthread.php?t=2226199
http://forum.xda-developers.com/showthread.php?t=2152819 (Using NDK)
Add features to your kernel( from XDA-U)
http://xda-university.com/as-a-developer/adding-features-to-your-kernel
TIPS​
Tip-1
Enable CRT screen off animation in ur phone(Will not enable animation when screen is turned on)(does not work on S5830i)
Decompile framework-res.apk
go to res/values find bools.xml and open it.
[/B]
Change this
<bool name="config_animateScreenLights">true</bool>
to this
<bool name="config_animateScreenLights">false</bool>
If this does not work, look for detailed guide with editing of services.jar
Tip-2
Change your android version and name(just a superficial change!)
1. Open your explorer.
2. Go to system/
3. There's a file named "build.prop"
4. Long press and then open in text editor.
5. Find these-
ro.build.display.id - Build Number(Default: GINGERBREAD.XXLA2)
ro.build.version.release- Android version(Default: 2.3.6)
6. Edit, Save and Reboot!
Tip-3
Make status bar transparent(Only transparent for homescreen)
1. Decompile systemui.apk
2. Go to res/layout/status_bar,xml
3.Find android:background=FF000000 and change it to android:background=000000000 for full transparency and to android:background=5F000000 for half transparency.
4.If android:[email protected] statusbar_background (this name can be different) is present in status_bar.xml then you can find the image named statusbar_background in res/drawable-ldpi( or mdpi/hdpi depending on the device) and make that image transparent via image editors!
This simply means our status bar background is drawable and we are providing proper image for it!
Will add more tips soon!
Click to expand...
Click to collapse
Hi,
How would I change the Model Number?
rasmutu said:
Hi,
How would I change the Model Number?
Click to expand...
Click to collapse
Please don't quote the whole OP.
go to system/build.prop
open the file and change value of ro.product.model
It seems good. I'm going to click. thank you!

[Q] How to Rearrange Notification Toggle Bottons?

How can I rearrange the toggle on my Galaxy S Advance so you have this configuration?
EDIT:​For those who would like to make this change, place here attached the file to be replaced in "/system/app"
Buon divertimento!
dnasalentino91 said:
How can I rearrange the toggle on my Galaxy S Advance so you have this configuration?
Click to expand...
Click to collapse
go to my mod here I have rearranged toggles you may like. Otherwise you need to decompile systemui.apk and in res/values edit the arrays.xml
bobfrantic said:
go to my mod here I have rearranged toggles you may like. Otherwise you need to decompile systemui.apk and in res/values edit the arrays.xml
Click to expand...
Click to collapse
In "res" I do not find "values"
There is only:
Code:
anim
color
drawable-hdpi
drawable-land
drawable-nodpi
drawable-port
drawable-sw360dp-hdpi
drawable-sw600dp
drawable-sw600dp-hdpi
drawable-sw720dp-hdpi
layout
layout-ar-IL
layout-iw
layout-land
layout-port
layout-sw600dp
layout-sw720dp
layout-sw800dp
menu
raw
xml
dnasalentino91 said:
In "res" I do not find "values"
There is only:
Code:
anim
color
drawable-hdpi
drawable-land
drawable-nodpi
drawable-port
drawable-sw360dp-hdpi
drawable-sw600dp
drawable-sw600dp-hdpi
drawable-sw720dp-hdpi
layout
layout-ar-IL
layout-iw
layout-land
layout-port
layout-sw600dp
layout-sw720dp
layout-sw800dp
menu
raw
xml
Click to expand...
Click to collapse
did you decompile your SystemUI.apk using apktool or any similar tool?
---------- Post added at 02:08 PM ---------- Previous post was at 02:06 PM ----------
After decompiling go to res > values folder... then open Arrays.xml with Notepad++ and take a look at "QuickSettingButtonAttribute"
Rearrange them to your preferences.... and below is mine:
Code:
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>Bluetooth</item>
<item>MobileData</item>
<item>SilentMode</item>
<item>AutoRotate</item>
<item>Location</item>
<item>Sync</item>
<item>PowerSaving</item>
<item>AirplaneMode</item>
<item>DormantMode</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
<item>DrivingMode</item>
</string-array>
Sami Kabir said:
did you decompile your SystemUI.apk using apktool or any similar tool?
---------- Post added at 02:08 PM ---------- Previous post was at 02:06 PM ----------
After decompiling go to res > values folder... then open Arrays.xml with Notepad++ and take a look at "QuickSettingButtonAttribute"
Rearrange them to your preferences.... and below is mine:
Code:
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>Bluetooth</item>
<item>MobileData</item>
<item>SilentMode</item>
<item>AutoRotate</item>
<item>Location</item>
<item>Sync</item>
<item>PowerSaving</item>
<item>AirplaneMode</item>
<item>DormantMode</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
<item>DrivingMode</item>
</string-array>
Click to expand...
Click to collapse
Thanks but I can not recompile the apk file ... I leave you a screenshot
dnasalentino91 said:
Thanks but I can not recompile the apk file ... I leave you a screenshot
Click to expand...
Click to collapse
Check whether you have java installed
Abhinandh Ajay said:
Check whether you have java installed
Click to expand...
Click to collapse
Of course! Java is installed..
dnasalentino91 said:
Of course! Java is installed..
Click to expand...
Click to collapse
Try using some other similar tool like "apk manager"
dnasalentino91 said:
Thanks but I can not recompile the apk file ... I leave you a screenshot
Click to expand...
Click to collapse
Did you do apktool if framework-res.apk?
Sent from my GT-I9070 using Tapatalk 4 Beta
KINGbabasula said:
Did you do apktool if framework-res.apk?
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yes, I did: "I: Framework intalled to: C:\Users\Andrea\apktool\framework\1.apk"
I'm stuck at STEP 5 of this video: http://www.youtube.com/watch?v=iUtFgltT_ho
I am attaching the error that occurs when I'm going to recompile the apk.
dnasalentino91 said:
Yes, I did: "I: Framework intalled to: C:\Users\Andrea\apktool\framework\1.apk"
I'm stuck at STEP 5 of this video: http://www.youtube.com/watch?v=iUtFgltT_ho
I am attaching the error that occurs when I'm going to recompile the apk.
Click to expand...
Click to collapse
May not have the latest apk tool. When I get to my puter I 'll share that here...
Here you go, replace the files in apktool with these ones
View attachment apktoolcomplete.rar
hope it helps if so you know what to do hehe
Sent from my GT-I9070
Thanks bobfrantic :highfive:
After recompiling the file SystemUI.apk, I went to replace it and restarting the smartphone remains stuck at bootanimation How come? What went wrong?
dnasalentino91 said:
Thanks bobfrantic :highfive:
After recompiling the file SystemUI.apk, I went to replace it and restarting the smartphone remains stuck at bootanimation How come? What went wrong?
Click to expand...
Click to collapse
when you recompile, name it SystemUI1.apk then open the new one and original one both with 7zip and copy the META-INF and the AndroidManifest.xml from the original over to your new SystemUI1.apk and close 7zip. move the new one to your desktop and rename it to remove the 1 from the name then copy to your phone and push to system/apps and set permissons and reboot. should work then. it is boot looping due to not having it signed proper. Hope you have a back up of your system with twrp or cwm so you can restore how it was. good rule; back up, everything always I going bed, check how it goes tomorrow..
All resolved...thank you for everything! :good: :highfive: :laugh: :victory:
dnasalentino91 said:
All resolved...thank you for everything! :good: :highfive: :laugh: :victory:
Click to expand...
Click to collapse
happy to read that. If you want to know more about themeing systemui go to Themeing SystemUI Tutorial by joehanh88.

[Q] OnOffTools background ?

I've decompiled OnOffTools.apk but I don't find the png image of the widgets background in drawable-xhdpi...
Any idea where I can fing this png ?
Thanks in advance.
how does your /res/...folders look?
there should be the pngs...hdpi,mdpi,xhdpi folder and more
i tried it out,i see them
i see there pngs like minimised_plate.png, plate.png, plate_pressed.png and all the icon.png's
see my png file,thats in drawable-xhdpi folder
is it, what you ask for?
edit:
i saw you asked the same in the honami home thread? so i guess you mean the onofftools.apk from that honami.zip?
i decompiled, and there isnt plate.png's...you are right.
is it transparent?
immerblind said:
how does your /res/...folders look?
there should be the pngs...hdpi,mdpi,xhdpi folder and more
i tried it out,i see them
i see there pngs like minimised_plate.png, plate.png, plate_pressed.png and all the icon.png's
see my png file,thats in drawable-xhdpi folder
is it, what you ask for?
edit:
i saw you asked the same in the honami home thread? so i guess you mean the onofftools.apk from that honami.zip?
i decompiled, and there isnt plate.png's...you are right.
is it transparent?
Click to expand...
Click to collapse
Yes, I use the honami onofftools.apk. The widget backgroung is white. There's plate.9.png in /res/drawable/nodpi. I hope it's the good one.
Thanks.
OnOffTools.apk\res\drawable-nodpi\plate.9.png
dully79 said:
OnOffTools.apk\res\drawable-nodpi\plate.9.png
Click to expand...
Click to collapse
Thanks.
I've modified plate.9.png (just applied negative filter on the white part), refashed OnOffTools.apk, but Xperia home FC when I try to add the widgets.
However, since it is a 9 patch png, I've left the image border unchanged...
When you saved the image did you save it as a .9.png and not a standard .png?
It works fine in my UFT zip
dully79 said:
When you saved the image did you save it as a .9.png and not a standard .png?
It works fine in my UFT zip
Click to expand...
Click to collapse
No. I use Gimp 2.8 or PaintShop Pro and they don't propose saving as .9.png...
nreuge said:
No. I use Gimp 2.8 or PaintShop Pro and they don't propose saving as .9.png...
Click to expand...
Click to collapse
A lot of the time photoshop doesn't.
I usually copy out the images im editing to another folder, make my edits and then when saving double click the image in the new folder to pick up the full name including .9
I use a USB stick as my workbench so i can drag and drop without moving and overwriting things unless i want to.
dully79 said:
A lot of the time photoshop doesn't.
I usually copy out the images im editing to another folder, make my edits and then when saving double click the image in the new folder to pick up the full name including .9
I use a USB stick as my workbench so i can drag and drop without moving and overwriting things unless i want to.
Click to expand...
Click to collapse
Yes, I've renamed my new image with .9.png extention and I'm really think that my new .9.png is good. Then, I've use Winrar to replace the png in OnOffTools.apk. Actually, Xperia home FC because my new OnOffTools.apk does not want to install...
I'll try to recompile OnOffTools.apk instead of using Winrar.
oh you not use apktool for decompile and recompile?
i recommend using it. its quiet easy after you setup everything
i normally open the 9.png with photoshop,then i edit and keep the black borders like it was, i not touch frame.just change color or whatever.then i just save it. (same file) its the best to edit the stock files. i think better than replace with others. just my experience
(for example open stock.9.png in drawable folder, then edit it, and override/save the file same place...)
oii,im not sure, was that understandable english?
also at beginning i got errors, only while i painted wrong accidentally some pixels in 9.png files. you sure you not touch the borders?
edit: i read u tried recompiling? have some errors while recompiling?
more edit: i remember something, after recompiling you put META-INF and AndroidManifest.xml from the stock OnOffTools.apk inside your new compiled apk?
nreuge said:
Yes, I've renamed my new image with .9.png extention and I'm really think that my new .9.png is good. Then, I've use Winrar to replace the png in OnOffTools.apk. Actually, Xperia home FC because my new OnOffTools.apk does not want to install...
I'll try to recompile OnOffTools.apk instead of using Winrar.
Click to expand...
Click to collapse
Dont bother messing with apks, use UFT.zip, you can find a link and details in my thread in the theme section(basic theming guide).
immerblind said:
oh you not use apktool for decompile and recompile?
i recommend using it. its quiet easy after you setup everything
i normally open the 9.png with photoshop,then i edit and keep the black borders like it was, i not touch frame.just change color or whatever.then i just save it. (same file) its the best to edit the stock files. i think better than replace with others. just my experience
(for example open stock.9.png in drawable folder, then edit it, and override/save the file same place...)
oii,im not sure, was that understandable english?
also at beginning i got errors, only while i painted wrong accidentally some pixels in 9.png files. you sure you not touch the borders?
edit: i read u tried recompiling? have some errors while recompiling?
Click to expand...
Click to collapse
Sucess!!
Firstly, I didn't succeed in recompliling because my 9.png was wrong. Now, the recompiling is working so the 9.png is ok.
The Winrar method don't seem to work all the time because I've use it with the good 9.png and then after fashing Xperia home FC.
Thanks for your help.
I would also suggest using apkmanager or multitool as they provide an log to check for errors.

[Q]Change Navigation Bar Height in [ROM][PORT][CM9.2][Touchwiz Revolutionised 5

I like ONscreen Buttons... So i Enabled it in "Touchwiz Revolutionised 5 by arpitkh96".. but the height is 39dip which i thought more for our phones..
I tried Decompiling nd change the navi bar Height
:
i followed this Method:
1)decompiled the framework-res.apk using apktoool ..
2)went to res folder>values folder
3)opened dimens.xml file in values folder..
4)edited these two lines:
<dimen name="navigation_bar_height">20.0dip</dimen>
<dimen name="navigation_bar_width">24.0dip</dimen>
5)Again Compiled it and the size of the framework-res.apk got reduced..
6)but i pushed it into my System folder and changed permissions..
7)after that i pushed it into framework folder..
After that my phone got struck at booting image...
Can SomeOne Help me in this....?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My Works:
NLauncherV2.0-Launcher With Toggles,Swipes ,Shortcuts,CleanUI;:http://forum.xda-developers.com/showthread.php?t=2617840
NMemo-http://forum.xda-developers.com/showthread.php?t=2625207
naresh babu said:
I like ONscreen Buttons... So i Enabled it in "Touchwiz Revolutionised 5 by arpitkh96".. but the height is 39dip which i thought more for our phones..
I tried Decompiling nd change the navi bar Height
:
i followed this Method:
1)decompiled the framework-res.apk using apktoool ..
2)went to res folder>values folder
3)opened dimens.xml file in values folder..
4)edited these two lines:
20.0dip
24.0dip
5)Again Compiled it and the size of the framework-res.apk got reduced..
6)but i pushed it into my System folder and changed permissions..
7)after that i pushed it into framework folder..
After that my phone got struck at booting image...
Can SomeOne Help me in this....?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My Works:
NLauncherV2.0-Launcher With Toggles,Swipes ,Shortcuts,CleanUI;:http://forum.xda-developers.com/showthread.php?t=2617840
NMemo-http://forum.xda-developers.com/showthread.php?t=2625207
Click to expand...
Click to collapse
It is because , you din't sign it. Do this:
open original(unmodified apk) ,modified apks with winrar and drag meta-inf folder and androidmanifest.xml from original to modified apk. Choose compression as store and flash it.
Sent from my GT-S5570 using xda premium
Venkatesh said:
It is because , you din't sign it. Do this:
open original(unmodified apk) ,modified apks with winrar and drag meta-inf folder and androidmanifest.xml from original to modified apk. Choose compression as store and flash it.
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
I will Try It Later as i m doing some work with present rom and I have to go to college.. But Thanks For the info...:laugh:
My Works:
Nlauncher-http://forum.xda-developers.com/showthread.php?t=2625863
NMemo-http://forum.xda-developers.com/showthread.php?t=2625203

[TuT] How to port Lolipop Check boxes and Radio buttons with animations

Hi, I really like Material Design and I want to share with you how to port check boxes and radio buttons with animations
(if you dont know what i talking about: Material Design) ​
We need a decompiled framework and rescues (download at attach). It's very easy, and if you know how to decompile & recompile apps you should not have any problems
Lets Go!
1. Dowload rescuses and extract it.
2. Find any btn_radio and btn_check files in your drawable-xxxx folder and delete it
3. If your framework supports xxhdpi resolution just copy and paste files from xxhdpi folder to your drawable-xxhdpi folder in /res.
If you dont have drawable-xxhdpi folder in /res just copy this folder from extracted rescuses to /res folder
4. Now copy files from extrated drawable folder to drawable folder in your decompiled framework
5. Recompile, and push your framework-res to /system/framework folder
Added drawables with all resolution, thanks to @rhar****
so big
My phone dont support xxhdpi.. I put it on my hdpi.. The box and check is so big. I hope you make smaller resolution icons. But yeah, it works. Thanks bro. Waiting for smaller resolution.. Hehe
stargwapo17 said:
My phone dont support xxhdpi.. I put it on my hdpi.. The box and check is so big. I hope you make smaller resolution icons. But yeah, it works. Thanks bro. Waiting for smaller resolution.. Hehe
Click to expand...
Click to collapse
Just open somethinf like photoshop or gimp and make them smaller
need MDPI resources
would you make MDPI icon resource as I don't have PC to resizing them all??
edit: nvrmind, i can resize it
can someone make a video pls?
@KuaQ:
you sure you have all the icons?
I'm trying to compile from source by adding your files and your xml files have icons declared that doesn't exist in aosp at all
xehed said:
would you make MDPI icon resource as I don't have PC to resizing them all??
edit: nvrmind, i can resize it
Click to expand...
Click to collapse
can you send me MDPI resources?
djedjy said:
can you send me MDPI resources?
Click to expand...
Click to collapse
I don't finish it yet, just wait..
OK, there is something wrong in your xml files..
I managed to find the xml mentioned pngs somewhere on line but 2 files are refering to on_x pngs and I think that you named them wrong.. it should be the whole btn_xxxx_on_mtrl_1
here resized icons for MDPI.
Here's an attached zip containing all dpi folders created from the OP.
xehed said:
here resized icons for MDPI.
Click to expand...
Click to collapse
NVM
LorD ClockaN said:
OK, there is something wrong in your xml files..
I managed to find the xml mentioned pngs somewhere on line but 2 files are refering to on_x pngs and I think that you named them wrong.. it should be the whole btn_xxxx_on_mtrl_1
Click to expand...
Click to collapse
Even so the pngs referred to dont exist in the package so I dont know how this is supposed to work...
EDIT: I mean the animations-- they dont exist
KuaQ said:
5. Decompile, and push your framework-res to /system/framework folder
Click to expand...
Click to collapse
Shouldn't it be RE-COMPILE up there?
Just helping...
Nice post btw :good:
I took a quick look at the xml's and I see it's the pressed state which is animated. Does the animation play even if I just push the button or I have to keep it pressed in order to see the full animation?
Please elaborate a bit
I m using KK 4.4.2 as my base... now you are saying me to decompile my systemui.apk or framework-res.apk .. please elaborate and tell me which files to change as i am using a 1280x720 resolution device. Thnx in advance
I'm a little confused
So when you copy the folder drawable-xhdpi to /res... Do you then copy the files in drawable from the downloaded package into the folder drawable-xhdpi, or do you just copy the folder to /res. Then to recompile do you just compress the two folders as a zip? Or am I completely wrong. Please explain. Thanks!
Sorry if you have any problems
Tomorrow I edit post, and all graphic in all resolution
stargwapo17 said:
My phone dont support xxhdpi.. I put it on my hdpi.. The box and check is so big. I hope you make smaller resolution icons. But yeah, it works. Thanks bro. Waiting for smaller resolution.. Hehe
Click to expand...
Click to collapse
xehed said:
would you make MDPI icon resource as I don't have PC to resizing them all??
edit: nvrmind, i can resize it
Click to expand...
Click to collapse
djedjy said:
can you send me MDPI resources?
Click to expand...
Click to collapse
xehed said:
I don't finish it yet, just wait..
Click to expand...
Click to collapse
So guys, I have created it for all resolutions
Enjoy!
 @KuaQ maybe you can add it to the First post
Did anyone who has Nexus 5 with 4.4.4 compiled this? Would appreciate a compiled version if possible!

Categories

Resources