Building with a custom theme apk as default - Nexus 7 Developer Discussion [Developers Only]

A question. What do i do if i want to build cm with another theme, meaning I want to replace the Default Cm theme apk with another one i have(from xda/playstore), and build from it (as source), with it set as default?
Could anyone help me out please? UBER or any themers?
I'm building cm10 from source.
Sent from my Nexus 7

TheDarkDefender said:
A question. What do i do if i want to build cm with another theme, meaning I want to replace the Default Cm theme apk with another one i have(from xda/playstore), and build from it (as source), with it set as default?
Could anyone help me out please? UBER or any themers?
I'm building cm10 from source.
Sent from my Nexus 7
Click to expand...
Click to collapse
I want to know this also.
Sent from my Nexus 7 using xda app-developers app

TheDarkDefender said:
A question. What do i do if i want to build cm with another theme, meaning I want to replace the Default Cm theme apk with another one i have(from xda/playstore), and build from it (as source), with it set as default?
Could anyone help me out please? UBER or any themers?
I'm building cm10 from source.
Sent from my Nexus 7
Click to expand...
Click to collapse
blmvxer said:
I want to know this also.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
There isn't a default .apk for CyanogenMod. (At least from what I see after searching everywhere in /vendor/tmobile/ and when clicking on the info button in the ThemeChooser it says the System Default theme's package is com.android.systemui) So to change the default theme you will have to first decompile the theme you want to use or if you made it just simply put everything you made into the /frameworks/base/packages/SystemUI/ and if you want to change the theme name, author, and preview from "System", "Google", and the default preview you can go to /vendor/tmobile/providers/ThemeManager/res/ in the xml/ folder there the system_theme.xml that contains the names and the path to the preview. It is possible to just add in the theme .apk you want and set it to default but that looks to be more work and it would still leave the system theme in there but if you really want to still then I recommend going to /frameworks/base/core/java/android/content/res/Configuration.java and search for "customTheme" and see how CyanogenMod saves which theme is the default and override the setToDefaults() so that instead of setting customTheme to null; to set it to your theme. Just replacing the SystemUI theme would probably be the best idea in my opinion.
Hope this helped!

TheDarkDefender said:
A question. What do i do if i want to build cm with another theme, meaning I want to replace the Default Cm theme apk with another one i have(from xda/playstore), and build from it (as source), with it set as default?
Could anyone help me out please? UBER or any themers?
I'm building cm10 from source.
Sent from my Nexus 7
Click to expand...
Click to collapse
Hi!!! Do you ever found a solution to your question? Please reply:good:

Related

Mokee OS lockscreen to Temasek CM7

Hello community!
The question that I have is:
I`m currently running Temasek CM7 ,I ran MokeeOS for 2 days last week, but switched back to Temasek because of lag and data drops. I really liked the locked screen with 4 rings(and the ring animation while charging) and I was wondering if there is any way I can import that screen in the Temasek build?
anyone?!
Think all you can do is skin it with something from the market.
buru898 said:
Think all you can do is skin it with something from the market.
Click to expand...
Click to collapse
Can`t I just copy -paste the file from Mokee to Temasek? Both of them are CM7 based, I just don`t know which file is it....
I think for something like this you have to decompile apks and change stuff around in there. Isn't lockscreen part of framework_res.apk?
TwitchyEye said:
I think for something like this you have to decompile apks and change stuff around in there. Isn't lockscreen part of framework_res.apk?
Click to expand...
Click to collapse
I have no idea! That`s why I`m asking here....
TwitchyEye said:
I think for something like this you have to decompile apks and change stuff around in there. Isn't lockscreen part of framework_res.apk?
Click to expand...
Click to collapse
Yes it is, it would be difficult. Just get widget locker.

How to change notification background?

Hi, is it possible to change background in the notification center on a 4.2.1 ROM? Is there an easy way (like an app) or i must decompile systemui.apk and edit xml files?
Thank you
Nobody?
Sent from my Nexus S - Xylon 4.2.1
I know klinkerkp themed it into transparent. Don't know how he does it though. Try getting in touch with him(check my sig for his theme)
Sent from my Nexus S
It's hard to find the correct image, however I won't give up!!
meanwhile, if someone wants to try, this is a zip file with decompiled SystemUI.apk and framework-res.apk
What changed with respect to the normal darkbeanjelly?
Sent from my Nexus S
Nothing. I've just decompiled it, so it's easier if someone wants to analyze it.
Can anybody share a flashable transparent one, working with every aokp/cm10.1 rom?
Sent from my Nexus S using xda app-developers app
Yup. You can
andre-83 said:
hi, is it possible to change background in the notification center on a 4.2.1 rom? Is there an easy way (like an app) or i must decompile systemui.apk and edit xml files?
Thank you
Click to expand...
Click to collapse
i am using revolt jb rom 4.3.there is an option where you can change the notification backgroud and choose from gallery

[DEV QUESTION] APK Decompile Enable Single Screen Non-Scrolling?

Hello,
I have a question about modifying APKs.
I have just decompiled the Apex Launcher APK, and I would like to change the Homescreen Settings to display the wallpaper as a "Single screen non-scrolling"
Does anyone know which XML file this would be under? And what values should I change to make this happen?
Thanks for any help.
troby86 said:
Hello,
I have a question about modifying APKs.
I have just decompiled the Apex Launcher APK, and I would like to change the Homescreen Settings to display the wallpaper as a "Single screen non-scrolling"
Does anyone know which XML file this would be under? And what values should I change to make this happen?
Thanks for any help.
Click to expand...
Click to collapse
Hi,
Maybe you will find some joy HERE
malybru said:
Hi,
Maybe you will find some joy HERE
Click to expand...
Click to collapse
Thanks for the link.
I have found that the Scrolling Settings for Android are within the Workspace.smali file.
Does anyone know exactly what line of code would need to be changed? There is over 19,000 lines in this file, so anyone that has experiance in this would be amazing, thanks. My only goal is to have the OS start with "Single screen non-scrolling" enabled instead of the "Multi screen scrolling" that is enabled by default.
Ok, so I have uploaded a copy of the Workspace.smali I am working with. I have found references at line 4201, 16220, and 18887 that deal with scrolling and wallpaper dimensions. Could someone look over this and let me know if any of these line are able to be modified to change the scrolling? Thanks.
Apex launcher has this in setting to change wallpaper mode. Why are you trying to modify apk then? Just trying to understand your purpose.
webharsh said:
Apex launcher has this in setting to change wallpaper mode. Why are you trying to modify apk then? Just trying to understand your purpose.
Click to expand...
Click to collapse
Because I am developing a ROM, and I am trying to learn how to modify smali files to control certain parts of the system, so that I can have preset settings already activated as soon as a ROM is flashed.
Sent from my HTC Sensation 4G using xda app-developers app
troby86 said:
Because I am developing a ROM, and I am trying to learn how to modify smali files to control certain parts of the system, so that I can have preset settings already activated as soon as a ROM is flashed.
Sent from my HTC Sensation 4G using xda app-developers app
Click to expand...
Click to collapse
It'll be easier for you if you just compiled it from source. It'll also be easier to locate the needed line that would need to be changed.
Sent from my HTC Sensation using xda premium

[Q] Possible to change font of ROM and apps?

I had AOKP ROM, and I really couldn't stand the size of the font and the font its self. Is there a way before I install the ROM that I could change all of that? I'm familiar with modifying Paranoid Android, so if all else fails, I know how to mod the ROM.
pyrogoggles said:
I had AOKP ROM, and I really couldn't stand the size of the font and the font its self. Is there a way before I install the ROM that I could change all of that? I'm familiar with modifying Paranoid Android, so if all else fails, I know how to mod the ROM.
Click to expand...
Click to collapse
YEP! sure is, after you install the rom that is.. you can use "ifont", an app on the play store to change the font and you could use "textdroider" also another app to change the dpi and make things smaller!
BE SURE TO HIT THAT THANKS BUTTON IF I HELPED
I've tried to use those apps with it, and they didn't work.
Sent from my Nexus 5 using XDA Free mobile app
Anyone else have any idea if I could change it within the folders of the ROM before I reinstall it?

dark themed google now launcher!

Can anyone address me to a dark themed google now launcher? I had it in Thyrus dark theme for terminus rom and, since I don't know how to extract that feature (for my own personal use, of course) from the theme, I was wondering if there's a ready-made version somewhere.
Thanks for any help
There's one in themes and kappa section
rootSU said:
There's one in themes and kappa section
Click to expand...
Click to collapse
Kappa section? You mean here in the nexus 5 area?
astrovale said:
Kappa section? You mean here in the nexus 5 area?
Click to expand...
Click to collapse
Haha. Sorry, my keyboard often corrects "apps" to "kappa".
Yes, the nexus 5 themes and apps section. There is a dark theme. It has different parts, such as settings.apk and Google launcher
rootSU said:
Haha. Sorry, my keyboard often corrects "apps" to "kappa".
Click to expand...
Click to collapse
Mobile text correction is wonderful
Lethargy said:
Mobile text correction is wonderful
Click to expand...
Click to collapse
Yeah. Not sure why it thinks I'm spelling out Greek letters.
rootSU said:
Haha. Sorry, my keyboard often corrects "apps" to "kappa".
Yes, the nexus 5 themes and apps section. There is a dark theme. It has different parts, such as settings.apk and Google launcher
Click to expand...
Click to collapse
Thanks a lot. I'll look for it. Could you tell me which one, if at all possible? I don't if this is the right place to ask, but I sure know you're the right person to ask something to! What makes a theme specific to a rom or group of roms? I'd like to know because I'd love to learn how to make my own themes or use some theme for my purposes (I hope there's nothing against the unwritten rules of this world).
Thanks
Sent from my Nexus 5 using XDA Free mobile app
astrovale said:
Thanks a lot. I'll look for it. Could you tell me which one, if at all possible? I don't if this is the right place to ask, but I sure know you're the right person to ask something to! What makes a theme specific to a rom or group of roms? I'd like to know because I'd love to learn how to make my own themes or use some theme for my purposes (I hope there's nothing against the unwritten rules of this world).
Thanks
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
There's a few material / dark themes. I had a look but it wasn't in the one I thought. That's either because it was the wrong one or it had been removed. Maybe ask in each thread if they theme Google launcher. I've definitely seen it but I thought it was the one by vivek.
As for why themes are ROM / build specific...
Themes are a combination of replacing images and editing XML files. These are mostly in framework-res.apk and SystemUI.apk
The easiest way to make a theme is to use these apk from a specific ROM. However, these apk ate specific to a specific ROM or build. For example ROM SlimLP has different features to stock so therefore has different code in these apk, so wrong apk, phone will boot loop. Same is true between 5.0.1 and 5.0.0 etc
There are more complicated ways to theme using things like ZipThemer. This will add your changes to the files that are on the phone already. This means it is more compatible than the easier method, as long as you don't change files that have special code from the Dev in them.
rootSU said:
There's a few material / dark themes. I had a look but it wasn't in the one I thought. That's either because it was the wrong one or it had been removed. Maybe ask in each thread if they theme Google launcher. I've definitely seen it but I thought it was the one by vivek.
As for why themes are ROM / build specific...
Themes are a combination of replacing images and editing XML files. These are mostly in framework-res.apk and SystemUI.apk
The easiest way to make a theme is to use these apk from a specific ROM. However, these apk ate specific to a specific ROM or build. For example ROM SlimLP has different features to stock so therefore has different code in these apk, so wrong apk, phone will boot loop. Same is true between 5.0.1 and 5.0.0 etc
There are more complicated ways to theme using things like ZipThemer. This will add your changes to the files that are on the phone already. This means it is more compatible than the easier method, as long as you don't change files that have special code from the Dev in them.
Click to expand...
Click to collapse
Thanks a lot for the explanantion. I will investigate a little more along the line you indicate.
Happy new year and thanks again (already hit the button!)
Theoretically, if i have a theme for a specific rom but for different update (same Google version, same build), i could extract the the file, replace the framework and system apks with the ones of the new update, re-compress the file and then flash it as a new theme? Seems a bit too easy, but IT makes sense, I think.
rootSU said:
There's a few material / dark themes. I had a look but it wasn't in the one I thought. That's either because it was the wrong one or it had been removed. Maybe ask in each thread if they theme Google launcher. I've definitely seen it but I thought it was the one by vivek.
As for why themes are ROM / build specific...
Themes are a combination of replacing images and editing XML files. These are mostly in framework-res.apk and SystemUI.apk
The easiest way to make a theme is to use these apk from a specific ROM. However, these apk ate specific to a specific ROM or build. For example ROM SlimLP has different features to stock so therefore has different code in these apk, so wrong apk, phone will boot loop. Same is true between 5.0.1 and 5.0.0 etc
There are more complicated ways to theme using things like ZipThemer. This will add your changes to the files that are on the phone already. This means it is more compatible than the easier method, as long as you don't change files that have special code from the Dev in them.
Click to expand...
Click to collapse
Theoretically, if i have a theme for a specific rom but for different update (same Google version, same build), i could extract the the file, replace the framework and system apks with the ones of the new update, re-compress the file and then flash it as a new theme? Seems a bit too easy, but IT makes sense, I think.
Sent from my Nexus 5 using XDA Free mobile app
astrovale said:
Theoretically, if i have a theme for a specific rom but for different update (same Google version, same build), i could extract the the file, replace the framework and system apks with the ones of the new update, re-compress the file and then flash it as a new theme? Seems a bit too easy, but IT makes sense, I think.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
99.9% no.
too good to be true!

Categories

Resources