Opps Wrong section - Galaxy Ace S5830i Android Development

Wrong Section Sorry..

Boudz78 said:
Okay As i Extracy Android.Policy in framework i get Meta files and classes.dex how do i edit these files (PS::im trying to edit default lockscreen))
Click to expand...
Click to collapse
At the first i think this thread should be in general section , at the second if you want to edit classes.dex you must decompiled classes.dex like this guide http://forum.xda-developers.com/showthread.php?t=1732635 i allways use it when i make 15 toggle with 6 lockscreens mod

Thread closed.

Related

[TUT][cyanogenMod 7] How to add soft button to your rom

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

[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!

[SOLVED] Error while decompiling and building system apk file

Can anyone please give me a solution to fix this problem? Thanks.
PS: I have searched around but some are a bit different with mine and some are not answered.
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
NuriJ said:
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
Click to expand...
Click to collapse
Oh I see. LOL-ed at myself haha. Thanks!
NuriJ said:
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
Click to expand...
Click to collapse
Just tried. The error still exist.
Can't find the apktool.yml file in the decompiled folder.
exeon said:
Oh I see. LOL-ed at myself haha. Thanks!
Click to expand...
Click to collapse
I always install them manually, to make sure of it.
Delete all installed .apk's in C:/users/<name>/apktool/*.apk
Then pull out framework-res.apk, into C:/users/<name>/apktool/1.apk
And SemcGenericUxpRes.apk into C:/users/<name>/apktool/2.apk
..
---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------
exeon said:
Just tried. The error still exist.
Can't find the apktool.yml file in the decompiled folder.
Click to expand...
Click to collapse
Apktool generates that file, make sure it isn't a problem with your apktool.
..
NuriJ said:
I always install them manually, to make sure of it.
Delete all installed .apk's in C:/users/<name>/apktool/*.apk
Then pull out framework-res.apk, into C:/users/<name>/apktool/1.apk
And SemcGenericUxpRes.apk into C:/users/<name>/apktool/2.apk
..
---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------
Apktool generates that file, make sure it isn't a problem with your apktool.
..
Click to expand...
Click to collapse
Redownload the apktool, decompile again, error still popping out, no luck.. Vomit blood.
I searched on google just now and I found some thread saying that pulling out com.htc.resources.apk file from the system and install it through apktool can solve the problem but I can't find the file in my system. Sigh.
Edit: Oh wait wait, I think I found the source problem. Is it deodexed SystemUI.apk cannot be decompile? Because I tried to use the odexed SystemUI.apk for decompiling and it decompile successfully. Ahh how should I mod my SystemUI.apk then??
exeon said:
Redownload the apktool, decompile again, error still popping out, no luck.. Vomit blood.
I searched on google just now and I found some thread saying that pulling out com.htc.resources.apk file from the system and install it through apktool can solve the problem but I can't find the file in my system. Sigh.
Edit: Oh wait wait, I think I found the source problem. Is it deodexed SystemUI.apk cannot be decompile? Because I tried to use the odexed SystemUI.apk for decompiling and it decompile successfully. Ahh how should I mod my SystemUI.apk then??
Click to expand...
Click to collapse
Did you try try this?
http://forum.xda-developers.com/showthread.php?p=43258702
The SystemUI have to be deodexed.
If you decompile the odexed SystemUI you'll get nothing useful, because the resources is in the .odex file.
"com.htc.resources" is "SemcGenericUxpRes" for us.
NuriJ said:
Did you try try this?
http://forum.xda-developers.com/showthread.php?p=43258702
The SystemUI have to be deodexed.
If you decompile the odexed SystemUI you'll get nothing useful, because the resources is in the .odex file.
"com.htc.resources" is "SemcGenericUxpRes" for us.
Click to expand...
Click to collapse
Hmm I think the problem is not at building, it's at decompiling there.
Every time when I decompiling an apk, it shows this error:
Code:
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0124
and inside the decompiled folder doesn't have apktool.yml file which lead to the failure of building.
Really hard to find a solution for this problem.
exeon said:
Hmm I think the problem is not at building, it's at decompiling there.
Every time when I decompiling an apk, it shows this error:
Code:
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0124
and inside the decompiled folder doesn't have apktool.yml file which lead to the failure of building.
Really hard to find a solution for this problem.
Click to expand...
Click to collapse
Some resources is not found, which could be because the framework files isnt installed/properly installed.
Can try to install them, like i said in post #5?
..
NuriJ said:
Some resources is not found, which could be because the framework files isnt installed/properly installed.
Can try to install them, like i said in post #5?
..
Click to expand...
Click to collapse
Found the solution, which is to decompile with original unmodified deodexed apk.
Once the apk is modified, it cannot be decompile again. LOL

lildroid-res.apk missing

hey guys,
i want to modify my toggle-bar.
but for that lidroid-res.apk is necessary, but it is NOT in /system/framework
i need this file for modding...
any ideas?
My ROM: see signature
JackoMJ
For modding toggle bar is necessary to made some smali and xml edit too, only lidroid apk in framework folder is for nothing. Look here for more info.
somin.n said:
For modding toggle bar is necessary to made some smali and xml edit too, only lidroid apk in framework folder is for nothing. Look here for more info.
Click to expand...
Click to collapse
Thx somin, i read the thread and tested it.
And i must confess that i am too silly for that ... :crying:

[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