How can I edit Gmail's App Code? - General Questions and Answers

Hello everyone.
How can I edit Gmail app code? I would liek to check if I can enable dark theme for me with editing the code because I heard dark theme option is already in the code but not available yet.
Thanks for the answers in advance!

ECC9 said:
Hello everyone.
How can I edit Gmail app code? I would liek to check if I can enable dark theme for me with editing the code because I heard dark theme option is already in the code but not available yet.
Thanks for the answers in advance!
Click to expand...
Click to collapse
Well first you would have to decompile the APK. The coding for dark mode is probably in an XML file....possibly more than one. Most likely is res/layout. Then recompile the APK. There are plenty of tutorials here on XDA in regards to decompiling, modifying/themeing and recompiling apps.

Pain-N-Panic said:
Well first you would have to decompile the APK. The coding for dark mode is probably in an XML file....possibly more than one. Most likely is res/layout. Then recompile the APK. There are plenty of tutorials here on XDA in regards to decompiling, modifying/themeing and recompiling apps.
Click to expand...
Click to collapse
Is it possible to only make the theme selector available at the settings menu ?

ECC9 said:
Is it possible to only make the theme selector available at the settings menu ?
Click to expand...
Click to collapse
That would require even more coding. Best bet is to probably just wait for Google to add the function into the application

ECC9 said:
Hello everyone.
How can I edit Gmail app code? I would liek to check if I can enable dark theme for me with editing the code because I heard dark theme option is already in the code but not available yet.
Thanks for the answers in advance!
Click to expand...
Click to collapse
pLEASE POST IN The proper section! and use search before posting!
Moved to q&a

Pain-N-Panic said:
That would require even more coding. Best bet is to probably just wait for Google to add the function into the application
Click to expand...
Click to collapse
Aigh't then.
Logix said:
pLEASE POST IN The proper section! and use search before posting!
Moved to q&a
Click to expand...
Click to collapse
Sorry i'm new.

Related

[Q] Tweaks.apk Question! :)

Hey all,
Please ping me or otherwise correct me if I'm mistaken, but I've searched for a very long time for the answer to my question :
I need help theming tweaks.apk, specifically the images shown in the sliders. I'm a n00b when it comes to theming, but I'm also not afraid of possible bricks and the like. If someone has any info, it would be GREATLY appreciated! Thanks!
BUMP anyone??
if you're trying to theme the sliders and thngs on the lockscreen then you don't have to theme the Tweaks.apk you have to look in the framework-res.apk as that is where all the lockscreen pics are in
erikmm said:
if you're trying to theme the sliders and thngs on the lockscreen then you don't have to theme the Tweaks.apk you have to look in the framework-res.apk as that is where all the lockscreen pics are in
Click to expand...
Click to collapse
Thank you so much! Could you possibly tell me the exact location in the unpacked .apk that those files reside?
abaddon23 said:
Thank you so much! Could you possibly tell me the exact location in the unpacked .apk that those files reside?
Click to expand...
Click to collapse
Yep it's in /res/drawable-hdpi/ folder the sliders you are looking for are all the way at the bottom of that folder...good luck
if you ain't first you're last
I have another twist... I installed a theme on top of the rom....
Where might I find the themed files?
Sent from my SGH-T959V using XDA
abaddon23 said:
I have another twist... I installed a theme on top of the rom....
Where might I find the themed files?
Sent from my SGH-T959V using XDA
Click to expand...
Click to collapse
for tweaks it was a good question but for themes there's a lot of guides and sources u can check for that on google man so try searching a bit too. eh!
but I'll answer it, to check what a theme changes just open up the file of the theme u flashed and check to see what files were changed and you'll know where to check.

[HOW-TO][GUIDE][CM-9/ICS] Changing Background of Recent Apps [21/4/13]

Change Background Of Recent Apps.​
NOTE:
-This Works only with Sense4.0a,ICS,CM-9 [Trust me I've tested it myself]
-I'll take the Black Color Code to Change the Background.
-Read before posting Queries.
-Changing Background-- Increases Smoothness
Click to expand...
Click to collapse
TUTORIAL :
Click to expand...
Click to collapse
Pull SystemUI.apk from your Phone.
Decompile the APK Using Any APK Decompiler.
Navigate to res/values/drawables.xml
Search "<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>" inside "drawables.xml"
Change The Color Code That is "#b3000000" To "#ff000000" to make it black.
You can Change to any color you want, Just change the color code.
Save the xml.
Recompile APK
Sign the APK
Push it in /system/app
You're free to Enjoy .
Open this Thread and Hit Thanks. Least You can do.
Thank's. Try it and let me know.
Click to expand...
Click to collapse
Mine.
Request
Can you add some screen ? and can we change it blue/purple or ....
good idea....:good:
XenoMorphv2 said:
Can you add some screen ? and can we change it blue/purple or ....
good idea....:good:
Click to expand...
Click to collapse
Yup you can If you're using MiniCM9 I can upload for you with grey background. Post the screenshot here too. Actually I'm on Sense 4 currently and lazy to change my ROM . If you want just post here.
Sent via HTC Sense.
Why can't you just post systemui.apk here only , modded one with black recent apps panel ?
Regards
via HTC Sense
Blue3125 said:
Why can't you just post systemui.apk here only , modded one with black recent apps panel ?
Regards
via HTC Sense
Click to expand...
Click to collapse
Okay I'll but later. You can follow the guide too

[Q] Can I upload customized apk files

Hi,
I was wondering If i could share some of the apk which I have modfied (customised) here on this forum.
If this is possible could someone point to me the right forum section (maybe a link) where I could upload the modified (customised) apk.
The reason why I wanted to share was because I gained a lot from this site and was hoping to share whichever apks I have modified. I have been modifying Samsung S3 Jellybean 4.3 apks (individual apks) and would like to upload them just incase someone would like to try them too.
Thanks
fms007 said:
Hi,
I was wondering If i could share some of the apk which I have modfied (customised) here on this forum.
If this is possible could someone point to me the right forum section (maybe a link) where I could upload the modified (customised) apk.
The reason why I wanted to share was because I gained a lot from this site and was hoping to share whichever apks I have modified. I have been modifying Samsung S3 Jellybean 4.3 apks (individual apks) and would like to upload them just incase someone would like to try them too.
Thanks
Click to expand...
Click to collapse
Hello friend!
You can upload it to your device Themes and Apps
Please Note that the App you have edited is not a paid app and Give proper credits to the app developer.
Hit thanks if i helped you :fingers-crossed:
SadEff said:
Hello friend!
You can upload it to your device Themes and Apps
Please Note that the App you have edited is not a paid app and Give proper credits to the app developer.
Hit thanks if i helped you :fingers-crossed:
Click to expand...
Click to collapse
Thank you for your quick reply and for the link too. Till now I modified 3 apps : SecCamera.apk, SMemo.apk and SecCalender.apk.....These are apps which have come with the stock ROM........are these paid apps?.....Because if they are paid apps, than I will not upload.....wouldn't want to break any forum rules...
No these are not paid apps you can Uplode it! :highfive:
SadEff said:
No these are not paid apps you can Uplode it! :highfive:
Click to expand...
Click to collapse
Thanks again
fms007 said:
Thanks again
Click to expand...
Click to collapse
Almost Welcome
Am unable to upload the apks because outside links are not accepted till one completes 10 posts....
Also for some reason just cannot access this forum without using proxy website. This has been happening for the past few days. I can access this forum only via proxy website not directly. And if I use a proxy website, the insert link, attachement buttons etc which are used for compiling a post do not work......
fms007 said:
Am unable to upload the apks because outside links are not accepted till one completes 10 posts....
Also for some reason just cannot access this forum without using proxy website. This has been happening for the past few days. I can access this forum only via proxy website not directly. And if I use a proxy website, the insert link, attachement buttons etc which are used for compiling a post do not work......
Click to expand...
Click to collapse
Did you try "Manage attachments" option you can upload the file to your xda account so there is no need of outer website to upload the files..
SadEff said:
Did you try "Manage attachments" option you can upload the file to your xda account so there is no need of outer website to upload the files..
Click to expand...
Click to collapse
Manage Attachments allows only 8mb of apk file to be uploaded. The apk file which I want to upload are all above 11mb. One is 11mb, one is 15mb.
Lol!
fms007 said:
Manage Attachments allows only 8mb of apk file to be uploaded. The apk file which I want to upload are all above 11mb. One is 11mb, one is 15mb.
Click to expand...
Click to collapse
Why dont you post another replay to complete your 10 posts..
what's new in your modded apks? hope i can try that out
adam neal said:
what's new in your modded apks? hope i can try that out
Click to expand...
Click to collapse
Here is the link to the modded apks which I have uploaded. There are some screenshots too of the modded apks. If you like the screenshots, than do try them.
Modded Apks Link
thanks a lot. i tried the camera. i didnt try the calendar and memo because of the color, red i a bit strong in my eyes hope you could try out a greener ones.
adam neal said:
thanks a lot. i tried the camera. i didnt try the calendar and memo because of the color, red i a bit strong in my eyes hope you could try out a greener ones.
Click to expand...
Click to collapse
Hope you liked the camera app. When you referred to greener app...r u saying greener text would look more pleasing
fms007 said:
Hope you liked the camera app. When you referred to greener app...r u saying greener text would look more pleasing
Click to expand...
Click to collapse
yup maybe coz your calendar app contains more colour red: textbox, fonts and the buttons. try to make it more neutral. :good:
adam neal said:
yup maybe coz your calendar app contains more colour red: textbox, fonts and the buttons. try to make it more neutral. :good:
Click to expand...
Click to collapse
Have uploaded the SecNoteMyFiles.apk which has green text and modified icons (pngs), incase you are interested.
fms007 said:
Have uploaded the SecNoteMyFiles.apk which has green text and modified icons (pngs), incase you are interested.
Click to expand...
Click to collapse
okay i'll try that out too. :good:

[WTA] change setting background

hello. did anyone know how to theming the setting background? i was success to change my theme from light to dark. then i want to use my own background. it was success but it only show half of picture.
morisah said:
hello. did anyone know how to theming the setting background? i was success to change my theme from light to dark. then i want to use my own background. it was success but it only show half of picture.
Click to expand...
Click to collapse
how did you do that ? and on what did you do it ? there is a thread here somewhere that is about how to do this
matthys said:
how did you do that ? and on what did you do it ? there is a thread here somewhere that is about how to do this
Click to expand...
Click to collapse
i just follow this tut TUTORIAL - Theming.
he want to made his bg from black to white, so i just revert his method. if you want to try, just find word " .LIGHT " and delete them. not necessary to change the html text code.
morisah said:
i just follow this tut TUTORIAL - Theming.
he want to made his bg from black to white, so i just revert his method. if you want to try, just find word " .LIGHT " and delete them. not necessary to change the html text code.
Click to expand...
Click to collapse
Would you mind uploading the apk file/s as it is now ?
as it already works and would save some of us some time
and might help you find the problem
thanks in advance
matthys said:
Would you mind uploading the apk file/s as it is now ?
as it already works and would save some of us some time
and might help you find the problem
thanks in advance
Click to expand...
Click to collapse
oh..thanks mate.. appreciate it..:victory::victory::victory: this is my framework-res.apk. i dont how to do more..have no idea where the bg to replace.
p6200xme framework-res.apk
morisah said:
oh..thanks mate.. appreciate it..:victory::victory::victory: this is my framework-res.apk. i dont how to do more..have no idea where the bg to replace.
p6200xme framework-res.apk
Click to expand...
Click to collapse
Thanks for the upload with see if i have time after work to tinker
can't wait

Any way to theme phones any more?

I've been trying to skin my phone and run into a problem I can't seem to theme where the navigation bar is Eg using uccw you can't place nothing or when using docks on launchers it places a rectangle that stops above nav bar. I know with lollipop there is no xposed framework
Sent from my Nexus 5
You decompile the apk packages, change what you want and recompile.
Lethargy said:
You decompile the apk packages, change what you want and recompile.
Click to expand...
Click to collapse
There is no need to decompile and recompile. You can just copy/paste same named png-s in .apk/res/drawable nodpi or drawable xxhdpi for our device. That works for all apps from factory image.
Regards, Zagor
Is it possible to theme nav from homescreen only so I can give it its own background
Sent from my Nexus 5
zagorteney said:
There is no need to decompile and recompile. You can just copy/paste same named png-s in .apk/res/drawable nodpi or drawable xxhdpi for our device. That works for all apps from factory image.
Regards, Zagor
Click to expand...
Click to collapse
Recompilation is required to edit things like XML. Signing properly is also important.
Lethargy said:
Recompilation is required to edit things like XML. Signing properly is also important.
Click to expand...
Click to collapse
Whith respecr dear Lethargy! You don't need to decompile and signing properly stock app. For example: if you want to change almost all of UI, you just have to change images in framework-res.apk. You don' t need to do things mentioned before. When I was on Xperia I made this way too UI look like AOSP as possible.
I think that for noob is enough to know that. But off course, if you are UI designer and developer that isn't enough.
Regards, Zagor
zagorteney said:
Whith respecr dear Lethargy! You don't need to decompile and signing properly stock app. For example: if you want to change almost all of UI, you just have to change images in framework-res.apk. You don' t need to do things mentioned before. When I was on Xperia I made this way too UI look like AOSP as possible.
I think that for noob is enough to know that. But off course, if you are UI designer and developer that isn't enough.
Regards, Zagor
Click to expand...
Click to collapse
For replacing a .png it might be okay, but in no way are you going to modify anything else that way. Recompiling is the PROPER way to do it.
So in short someone like me I'm out of luck
Sent from my Nexus 5
tonyt3rry said:
So in short someone like me I'm out of luck
Sent from my Nexus 5
Click to expand...
Click to collapse
If your launcher supports it you can hide the navbar then attempt to use something like Zooper Widget to imitate them on the bottom, but other than that, you have to recompile SystemUI.apk.
Wouldn't I need it for when I'm in apps
Sent from my Nexus 5
tonyt3rry said:
Wouldn't I need it for when I'm in apps
Sent from my Nexus 5
Click to expand...
Click to collapse
Read my post again, I said on the launcher.
Can you tell me what launcher supports it I know if I had pie or what ever it is called I could hide it
Sent from my Nexus 5

Categories

Resources