[APK][MOD][Xposed] ResXploit : Theming your android the easiest way!!! No Kidding!!! - Android Themes

This would be my second public-released xposed module...
Original Thread: http://forum.xda-developers.com/showthread.php?t=2400369
I did not expect that my WisdomSky Xploit would be a big hit.
I'm just an Amateur developer who just started delving into android development 3months ago and I didn't expect that much appreciation from my work... XD
But all of these would not be made possible if not because of sir @rovo89 and sir @Tungstwenty and their Xposed Framework, right? That's why I thank them a lot...
REQUIREMENTS
Xposed framework must be pre-installed before installing this.
What does the ResXploit do?
ResXploit has two parts:
the Removable part, terminal
and the main star, engine
The terminal is where you enter the commands(I'll discuss it later). These commands will then be interpreted by the engine and then passed to Xposed framework...
Flow:
TERMINAL >> ENGINE >> XPOSED FRAMEWORK
I have provided a variety of modules:
ResXploit (Terminal + Engine) (RECOMMENDED FOR NEWBIES)
ResXploit Terminal (Terminal Only)
ResXploit Engine (Engine Only)
You might be wondering why I made one which has both terminal and engine... and other two which are separated...
ROM Chefs, Themers and some others would understand directly why...
All the commands are interpreted by the Engine right? so that would mean that once you have entered all the desired commands, the terminal will now end up as useless... so you will just delete so no one can touch the engine...
If you are a ROM Chef or a themer, you can theme all the apps you need to theme using ResXploit and then remove the terminal, so end-user interaction of the engine is prevented after you have released your ROMs to the world.
FOR NEWBIES!
I recommend you to use the ResXploit (Terminal + Engine)...
It is very smart..
I included 99% accurate error-checking system,
line numbering system,
and also Xposed module prioritization(which is first implemented on ResXploit for better module performance).
COMMANDSd
We have five basic commands in the ResXploit, the apk, drawable, string, color, and boolean.
apk - A prerequisite command. This command is very vital whenever you using the ResXploit. This will define the target application by using the package name of the target application. You need to include this before you enter any command or else your command will not know which application is targeted and end up in lost island.
Code:
[B]format[/B]: [I]apk <package name>[/I]
[B]example[/B]: apk com.android.systemui
drawable(also drw) - The most often used command. The command which will change icons/images (png drawables) of an application. You can either overlay the existing image with your favorite color or completely replaced it with a .png image from your sdcard.
Code:
[B]format1[/B]: [I]drawable <target application's drawable name> <image path, no need to include /sdcard> <transparency, 0 to 255>[/I]
[B]example1[/B]: drawable status_background_color my_image/bg.png 255
[B]format2[/B]: [I]drawable <target application's drawable name> <HEX RGB color code> <transparency, 0 to 255>[/I]
[B]example2[/B]: drawable status_background_color #fff00ff 255
string(also str) - This command will change string(text) values of the application. The predefined string values are usually located in res/values/strings.xml of an application, but I guess they are not visible when you view the contents of an application using Archive managers like RootExplorer. But there is a way to identify them. I will include it later.
Code:
[B]format[/B]: [I]string <target application's string value holder name> <replacement string>[/I]
[B]example[/B]: string app_name My App
color(also clr) - This command will change color values of the application. The predefined color values are usually located in res/values/colors.xml of an application, but I guess they are not visible when you view the contents of an application using Archive managers like RootExplorer as well.
Code:
[B]format[/B]: [I]string <target application's color value holder name> <replacement color in HEX RGB Format>[/I]
[B]example[/B]: color holo_background_dark #ffffff
boolean(also bln) - This command will change boolean values of the application. The predefined boolean values are usually located in res/values/bools.xml of an application, but I guess they are not visible when you view the contents of an application using Archive managers like RootExplorer as well.
Code:
[B]format[/B]: [I]string <target application's boolean value holder name> <replacement boolean value, either [B]true[/B] or [B]false[/B] only>[/I]
[B]example[/B]: color allowNumberNotifications true
Some simple examples screenshots:
drawable and string commands in action
{
"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"
}
ResXploit UI screenshots:
If you find my ResXploit module interesting,
Please hit THANKS!!! XD:angel:
Please help me buy a new Android Phone.. Y_Y

Pretty awesome, gonna have to give this a try
Sent from my SPH-L710 using Tapatalk 4

This sounds amazing! are you planning on creating a GUI based frontend?

ReelFiles said:
This sounds amazing! are you planning on creating a GUI based frontend?
Click to expand...
Click to collapse
Maybe not for now.... but if it turns out good in the future, then why not? XD
and also.....
Please refer to the original thread,
this duplicate thread is not updated anymore... XD
the original thread link is mentoned at the very top.....

Interesting, sounds like a concept similar to Ninjamorph.
A couple of quick questions:
Is this able to apply folders or just single png's?
Also do you need extract png's from apks in order to apply or does it extract and apply automatically?
:good:
Edit : just seen the above post referencing other thread, maybe get this removed or locked.

Works perfect on my htc sxl...tnx bro

Any way to replace files in assets directory?

Incredible ... Keep up the good work

Related

New Filebrowser with Root & SU permissions as well as built in terminal client

New App on market
Market Name: SU File Browser & Terminal
Developer: Protocol - X
Search for SU, Root, or pub:"Protocol-x"
Or click and or Scan this image if u have the reader installed on your Android Device.
Currently supports normal file browser commands: cut, copy, paste, rename, new directory, open ect.
ability to chmod a file or directory from the file browser with one click.
File search functionality whole partial any non case sensitive.
open, edit, save, save as, preview text,xml, css, html basically any readable format.
built in terminal emulator with soft keyboard support for devices without a hard keyboard.
This is still a beta so there are a few bugs as well as some soon to come UI changes.
keep in mind this is not ugly but it is not meant to be a "pretty" file browser. There are enough of those out there. This was designed for functionality.
{
"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"
}
***Fixed*** Known bugs:
Enter Key on soft keyboard does not work in terminal client. need to use the trackball >>if anyone knows this fix id love to hear it.<<
soft keyboard in landscape mode needs to be toggled on 2x the first time you open it.
Post any Bugs, issues, or ideas here please
Updates:
Changed Search UI so that it is no longer its own activity. This will allow the user to back out of the search box and still use the switcher on the bottom to switch between search, browse, and terminal.
Replaced pop up in search box with Search hint.
Corrected the trackball from defaulting to control key when changing Terminal prefs. Basically it will allow it to work as the enter key again after changing preferences.
Current users will have to change the preferences the first time they update in order to correct the issue if you previously had it.
menu> preferences> command key: select something other than jog ball
Updates 1.5:
Fixed Search UI bug
added preferences for List color, Text Size, and Selector Color
New:
Added ability to create sym links
Updates 1.6:
Email Support
Better thread processing to prevent system hangs and crashes.
Random amusement?
Updates 1.7:
Multiple Viewer and editor support Support
Issue with 1.7:
It appears that something was miscodded causing crashing whenever a dialog attempts to appear this will be fixed tonight I appologize in advance.
The app is currently unpublished for now. until i can fix this
1.7 Re-Published as 1.7.1:
Delete / Paste Crash Fixed
Update 1.7.5:
Search Fixed for Newer Hero Build
Current Directory/Browse To bar implemented
Partition RW/RO Status added
Update 1.7.8:
Filter set up for "Browse To" bar to prevent typos.
Bugs: Symlinks Broke?
Not sure if symlink in the code is broken or maybe if its this new hero build 2.3.3 I tried to manually create a link and that fails as well.
Any Feedback on this one would be appreciated.
Update 1.9:
Cleaned up a lot of code
added some additional menu icons
Better Alert descriptions
file support to the Browse to bar for manual entries
Update 1.9.5:
Recursive Zip Support Added for Extraction
Compressions support in the works.
view, extract all or single targets to the directory of your choice.
Remember u must Mount as RW if you would like to extract to anywhere other than in your SD card.
More terminal colors added per request:
Amber on Black
Green on Black
Red on Black
More code clean up
Update 1.9.9:
System/Data RW/RO replaced with S & D buttons as well as option to remount on click or from menu still
Optional Expandable tool bar added with:
Settable Home Button
Bookmarks
Quick Exit
Update 2.0:
Browser Download Helper Added per requests
Update 2.1:
Multi Select support added. no buttons needed, just click the icon next to the file. You can also select across multiple directories so be careful
Zip File Creation Added. You can Zip ALL files unlike other zip apps out there. Zipping files on other partitions than the sdcard may be slower though due to the special means needed for the files to be zippable.
Unzip/install apk option added for those that wanted to be able to view the apk contents
Download helper change. Hopefully this will fix the issue that arose with android 1.5 and email crashing with txt html and pdf files if u had astro, download crutch or any download helper
__________________
Protocol - X
=================
Phone: Black TMO G1 Rooted
ROM: JacHero 2.3.3
File Browser: SUFBS
MODs:
Debian
G2PX port
Overclocked & Swapped
[SIGPIC][/SIGPIC]
New Updates
New Updates
No available on the market for me...
Linda file Manger works well for me
Is this App protected
This app doesnt appear in the market search
i had already purchased this when i had my G1
Now that i have a G2 touch, the app appears in my downloads in the market, but will not install........
Anyone else having this problem with protected apps
Why post this without proper research
this App will not show as available on Hero
Also, as i had downloaded this on my G1, this app shows up in "my downloads" in the market, but will not successfully download
Sort this problem out before promoting in the Hero forum
I have done my research. This is not an issue with MY app or something I can solve. This was a decision by google and HTC for certain builds. Not all Phones running Hero will have US 1.5 paid apps locked that is why it is advertised here. As far as Linda goes, your more than welcome to use your preference but Linda is not a root browser so to compare them would not be just.
New updates please see Dream thread link located in sig

[APP] ROM OTA for Devs (v1 - Beta)

THIS IS STILL EXPERIMENTAL, I AM IN NEED OF SOME TESTERS.
See Post # 2 for Change log and Download links.
What is ROM OTA?
ROM OTA is a framework I am attempting to develop to allow ROM Devs to create a custom environment to download kernels, themes, fixes, updates, etc. to their ROMs.
Customizing ROM OTA
ROM OTA is made of 2 components, the client side application and server side xml. Each of these 2 components need to be configured.
Client Side App
Without any customization, ROM OTA the Main Menu of ROM OTA will contain generic links to various Captivate ROMS, Kernels, Modems, and GPS Fixes.
{
"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"
}
With some minor configuration, the Main Menu in ROM OTA can display different icons and links selected by the Dev. To customize the Main Menu in ROM OTA, you need to:
Edit a simple xml file (menu.xml) and place the xml and any custom icons in /sdcard/rom_ota (See ROM_OTA.zip for sample CWM Zip setup). The layout of the default menu.xml looks like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<xmlmenu>
<menu count="4" name="Captivate Downloads" server="http://sgs.wilsongis.com/xml/" >
<field menu_item_name="Captivate ROMS" desc="Latest Captivate ROMs" xml="rom.xml" icon="N" icon_name=""/>
<field menu_item_name="Captivate Kernels" desc="Latest Captivate Kernels" xml="kernel.xml" icon="N" icon_name=""/>
<field menu_item_name="Captivate Modems" desc="Captivate Compatable Modems" xml="modems.xml" icon="N" icon_name=""/>
<field menu_item_name="Captivate GPS Fixes" desc="Captivate GPS Fixes" xml="gps.xml" icon="N" icon_name=""/>
</menu>
</xmlmenu>
The following lines need to be customized (Values to update in CAPS):
<menu count="# OF MENU ITEMS" name="Captivate Downloads" server="WEB URL OF SERVER SIDE XML" >
<field menu_item_name="MENU CAPTION" desc="MENU DESC, USED ON DOWNLOAD SCREEN" xml="SERVER-SIDE XML NAME" icon="USE ICON Y/N" icon_name="LEAVE BLANK FOR DEFAULT OR IMAGENAME.PNG TO USE"/>
Use "<field menu_item_name..." to add as many menu items as you want. Remember to place the edited menu.xml and custom icons (IMAGENAME.PNG, above) in /sdcard/rom_ota folder.
Server-Side XML
The layout for the Server-side xml looks like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<rows>
<row>
<one>Captivate SGS Tools</one>
<two>wilsongis</two>
<three>Captivate_SGS_Tools.zip</three>
<four>http://sgs.wilsongis.com/rom_ota/Captivate_SGS_Tools.zip</four>
<five>http://forum.xda-developers.com/showthread.php?t=936727</five>
<image>http://forum.xda-developers.com/customavatars/avatar3014854_2.gif</image>
</row>
<row>
<one>FF Mods and Fixes</one>
<two>wilsongis</two>
<three>FF_Changer.zip</three>
<four>http://sgs.wilsongis.com/rom_ota/FF_Changer.zip</four>
<five>http://forum.xda-developers.com/showthread.php?t=968136</five>
<image>http://forum.xda-developers.com/customavatars/avatar1525116_4.gif</image>
</row>
</rows>
The following needs to be edited to customize the server-side xml (Values to update in CAPS):
<row>
<one>ITEM 1 TITLE</one>
<two>AUTHOR</two>
<three>ZIP FILE</three>
<four>ZIP URL</four>
<five>Changelog URL</five>
<image>URL TO CUSTOM ICON</image>
</row>
<row>
<one>ITEM 2 TITLE</one>
<two>AUTHOR</two>
<three>ZIP FILE</three>
<four>ZIP URL</four>
<five>Changelog URL</five>
<image>URL TO CUSTOM ICON</image>
</row>
</rows>
The text in CAPS need to be edited by the Dev and placed on a web server. Make note of the web address (See and edit WEB URL OF SERVER SIDE XML above). Basically, each item that you want in the Main Menu of the client side app requires it's own xml file.
I hope these instructions and the purpose of the app make sense. I look forward to your feedback.
Credits:
xtremekilla09
adamholden85
YOU USE THIS SOFTWARE AT YOUR OWN RISK, THE DEVELOPER OF THIS SOFTWARE IS NOT RESPONSIBLE FOR ANY DAMAGES CAUSED BY THIS APP.
Default ROM OTA APK
Sample CWM File Structure
Sample Server-Side XML
Change Log:
v1 - Beta
- Initial Release
This is gonna be huge.
I am just glad to have contributed. (Even if it was just a tiny bit)
Hopefully the devs are gonna use this like I have for FireFly.
Really makes it easier for the end-user
xtremekilla09 said:
This is gonna be huge.
I am just glad to have contributed. (Even if it was just a tiny bit)
Hopefully the devs are gonna use this like I have for FireFly.
Really makes it easier for the end-user
Click to expand...
Click to collapse
Crap I need to add credits. I appreciate all the help you gave me. I am hoping the app will work on any ROM regardless of the type of phone.
wilsongis said:
Crap I need to add credits. I appreciate all the help you gave me. I am hoping the app will work on any ROM regardless of the type of phone.
Click to expand...
Click to collapse
Credits not necessary. You did all the work.
The app should work regardless of phone type.
xtremekilla09 said:
Credits not necessary. You did all the work.
The app should work regardless of phone type.
Click to expand...
Click to collapse
You really did help.
I am hoping my instructions are clear but we will see. I think I am also going to start a separate thread for the Default app. Even without customization it should be totally usable.
Great work guys..
Black?
Anyway we could go to a black background with white text?
Also If we don't specify a icon can it just show text?
Awesome program easy to setup too! Thanks for your work on this!
Edit: I used a work around by making a transparent image.
ChanceM
Let me mess with the icons. I may also make the text and background dynamic.
ChanceM said:
Anyway we could go to a black background with white text?
Also If we don't specify a icon can it just show text?
Awesome program easy to setup too! Thanks for your work on this!
Edit: I used a work around by making a transparent image.
ChanceM
Click to expand...
Click to collapse
Sent from my SGH-I897 using XDA Premium App
Updated the default xml.
Sent from my SAMSUNG-SGH-I897 using XDA Premium App

[TEMPLATE][CM9] CM9 Theme Template

THEME TEMPLATE - CM9​
WARNING: MAY CAUSE A SEVERE ADDICTION TO THEMING​I have received numerous requests about theming CM9 from various people, and after directing them all to my home forum where I have a template, a member here (ebs512) suggested that I post the template here because it was so useful.
Some up-and-coming themers have indicated that some of the experienced themers have been reluctant to help them too much with creating new themes so in order to alleviate both the flood of PMs that experienced themers have and the lack of help that the newbies receive, here is a CM9 Template for everyone.
It's currently only for MDPI and HDPI but Anyone can easily add XHDPI compatibility by using my XML generator, see directions at the bottom concerning Density and Compatibility
PREREQUISITES: YOU MUST HAVE APKTOOL INSTALLED
There are many, many tutorials on how to install apktool, just google it.
Directions:
1. Download the template from Mediafire (updated 7/20/2012)
2. Unzip the code to a convenient location
3. Edit the images, change colors, do everything you want to it
4. Choose the Compatibility you want by following the directions of your choice (See below 4.1-4.4)
5. Open up your command prompt
6. Enter the following command:
Code:
apktool b location_of_the_source_code_folder
and it will build.
{
"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"
}
7. Don't forget to sign the apk before installing it
8. Publish your theme here or on Google Play
DISCLAIMER: I am not responsible for negative comments you receive if you create a terrible theme. Everyone has full permission to create themes off this template and distribute them (if you plan on creating paid themes, please also provide a free download in the spirit of open source).
DIRECTIONS FOR XHDPI COMPATIBILITY​Since you are using apktool to build your theme, there are inherent problems that are unfixable. The problem lies in the location of the Preview.png that shows up when you open up the theme chooser. Leaving it out will let your theme be compatible with all densities, but you will not be able to show a preview.
4.1 To make compatible with HDPI and MDPI (and LDPI)
1. Install a framework-res.apk from a Samsung Galaxy S2 CM9 ROM by downloading the apk and typing:
Code:
apktool if location_of_SGS2_ICS_framework\framework-res.apk
2. Make sure you have HDPI and MDPI folders in the theme folder with the proper images
3. Place the Preview.png in the XHDPI folder, that's right, the XHDPI folder
4. Compile
4.2 To make compatible with MDPI only
1. Delete the contents of the HDPI folder
2. Move the Preview.png from the XHDPI folder (its default location) to the HDPI folder
3. Compile
4.3 To make compatible with XHDPI and HDPI
1. Delete the MDPI Folder
2. Install an XHDPI framework-res.apk from an XHDPI CM9 ROM (Like the Galaxy Nexus):
Code:
apktool if location_of_XHDPI_framework\framework-res.apk
3. Add Images for XHDPI to the XHDPI Folder (make sure they are named correctly)
4. Move the Preview.png from drawable-XHDPI to the drawable folder
5. Compile
4.4 To make compatible with everything
1. Open up the AndroidManifest.xml and add a backslash "\" before "@drawable/preview"
2. Add XHDPI images
3. Install an XHDPI framework-res.apk from an XHDPI CM9 ROM (Like the Galaxy Nexus):
Code:
apktool if location_of_XHDPI_framework\framework-res.apk
4. Compile
More information on how to theme certain elements is located in this wonderful guide by xda member nhnt11
I do not have a donation button, but if you feel like it, purchase one of my CM9 Themes (available on several forums for free) off google play
Please visit the original thread on my home forum also.
And... if you are really stuck and need to talk to me, send me a PM or hit me up on gtalk at [email protected]​
thanks! u can make THEME TEMPLATE - CM7
sr! is my english so bad
Thanks for this. I'm sure it will be of tremendous help to many of us.
x-dira said:
thanks! u can make THEME TEMPLATE - CM7
sr! is my english so bad
Click to expand...
Click to collapse
If you're asking me to make a CM7 template, there isn't a need because there are already templates for CM7 like the cyanbread theme.
This thread should be stickied!
Sent from my Nexus S 4G using Tapatalk 2
ebs512 said:
This thread should be stickied!
Sent from my Nexus S 4G using Tapatalk 2
Click to expand...
Click to collapse
dumps some strawberry syrup all over this thread
there now its real sticky ..lmao
just kidding around
Thank you anthony for making this
Updated OP with directions about making your theme compatible with different screen densities. PLEASE READ those directions, because if you don't you will have problems applying it. Take special note about installing the proper framework-res.apk with apktool.
Thanks for this! Do you have any tips in regards to batch editing images for mdpi? It's going to take me a while to get through the 2587 images in the hdpi so when I've done it would be nice if I could just run a handy tool of some sort to re-size them all for mdpi/xhdpi.
XperienceD said:
Thanks for this! Do you have any tips in regards to batch editing images for mdpi? It's going to take me a while to get through the 2587 images in the hdpi so when I've done it would be nice if I could just run a handy tool of some sort to re-size them all for mdpi/xhdpi.
Click to expand...
Click to collapse
Batch resizing is a bad idea with all the .9.pngs, but if you want you can batch resize non-.9's. Batch recoloring is very simple with Photoshop (which I don't have).I use GIMP to batch edit. There are a couple plugins for it, but I use a script and edit using the command prompt. If you have Photoshop though, use that, it costs a lot because its the best. //Advice
anthonycr said:
Batch resizing is a bad idea with all the .9.pngs, but if you want you can batch resize non-.9's. Batch recoloring is very simple with Photoshop (which I don't have).I use GIMP to batch edit. There are a couple plugins for it, but I use a script and edit using the command prompt. If you have Photoshop though, use that, it costs a lot because its the best. //Advice
Click to expand...
Click to collapse
I'll just do what i usually do and go through one by one where I don't already have an image to replace and batch what I can. I do use PS as my main editor along with Paint.Net for certain things.
Thanks.
XperienceD said:
I'll just do what i usually do and go through one by one where I don't already have an image to replace and batch what I can. I do use PS as my main editor along with Paint.Net for certain things.
Thanks.
Click to expand...
Click to collapse
Get adobe fireworks for batch editing if you just want to change the color...otherwise if you use gimp get a plugin called bimp (batch image manipulation plugin)
Sent from my Nexus S 4G using Tapatalk 2
Could anyone please kindly help upload the template to another file host service?
For some reasons I was unable to download it from mediafire.
Thanks!
I updated the theme template. CHECK the FIRST post.
CHANGE LOG:
* Themed the volume sliders and other sliders
* Fixed the problems with inverted apps not showing up correctly (most of them)
* Removed some unnecessary images from the template (cuts down on size)
Enjoy. I'm glad to see a bunch of you using this already, glad it's helping
Do you know how to fix missing assets? I know I can ignore it, but it's just annoying. btw, those lots of redirections at redirections.xml are really needed? I've never seen any theme like this.
4.4 To make compatible with everything
1. Open up the AndroidManifest.xml and add a backslash "\" before "drawable\preview.png"
This is confusing because preview.png isn't in the AndroidManifest.xml.
The correction is "\" before "@drawable/preview"
There is another thread with the how to make a T-mobile theme which have more detail what can be themed, see link. A reference to the post is helpful for beginners.
Please update the first post.
Thanks for posting.
---------- Post added at 07:22 AM ---------- Previous post was at 07:17 AM ----------
marcellocord said:
Do you know how to fix missing assets? I know I can ignore it, but it's just annoying. btw, those lots of redirections at redirections.xml are really needed? I've never seen any theme like this.
Click to expand...
Click to collapse
The redirections aren't required when you delete the following line from the AndroidManifest.xml
<meta-data android:name="com.tmobile.theme.redirections" android:resource="@xml/redirections" />
how to change the white settings font color..what xml to edit?
Thanks waterpolo, I completely missed that.
Thank u very mch. A much needed help.
ssettor said:
how to change the white settings font color..what xml to edit?
Click to expand...
Click to collapse
Do you mean the system white color?
\\res\values\colors.xml
<color name="white">#ffffffff</color>

[THEME & GUIDE][XDA]XDA Reloaded

{
"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"
}
Introducing XDA Reloaded​
It's been a while I use XDA Labs, since it's easy to use, and very handy because you can use it at any time.
I made this theme because I wasn't satisfied at 100% of my precedent theme, you know, XDA Evolved. The icons and the general work around it was pretty minimalist , that's why I made another theme more complete this time and , in my opinion , better than the first one.
This theme has a lot of features , here's a non-exhaustive list :
• Completely customizable theme with the following tutorial
• Rounded Corners for :
- Posts
- User Infos
- My Device Suggestions
• Gradient Background for :
- User Infos
- My Device Suggestions
• Modified Color for :
- Posts
- Main Background Color
- Primary Color
- Accent Color
• New Colorful Icons and Notification Icon(see below):
Some bugs also:
• Refresh button make the app crashed
• Crashes when you rotate the screen
Here The Download Link :
• Available on Dropbox
This part is for you, yes you the tweaker, the unstoppable decompiler or others Android Enthusiast
I made this theme with dependencies , it means I made separates file in the APK file for the tweakers who wants to modify the colors I set easily.
So to modify this APK , you need to decompile it and recompile it with some tools , you will need :
• Apktool
And to Sign and Align your apk, I advice this all in one tool , it's really easy to use , thanks to @aureljared.
• ZipAligner
--> This tools doesn't work that well anymore, I address how to sign apks in my Index thread
Read on the respective link how to install them and use them if you don't know how.
So first (after setting up both Apktool and Zipaligner) ,you should decompile the Labs.apk you downloaded above.
Enter this command:
Code:
java -jar apktool.jar d Labs.apk
Then , go to the Labs folder and go to /res/drawable. Search for the files starting by "background_".
Here the list of all the file I added to make easier the modifications :
• background_mydevice (to modify the "my device" background gradient)
• background_post (to modify the post background color, you have the ability to add a gradient)
• background_quote (to modify the quote/code background,you have the ability to add a gradient)
• background_refresh (to modify the "End of Thread" button background gradient)
• background_user (to modify the user info background gradient)
The only thing you want to modify is the color code , those files are regular files like that (this is an example , some of the files are different but they have always the <gradient/> line):
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="[url]http://schemas.android.com/apk/res/android"[/url] android:shape="rectangle">
<gradient android:startColor="#ff48c6ef" android:endColor="#ff6f86d6" android:angle="135"/>
<corners android:radius="22dp"/>
</shape>
You want to modify this line to modify the color:
Code:
<gradient android:startColor="#ff48c6ef" android:endColor="#ff6f86d6" android:angle="135"/>
You just have to change the hex code, here what you want to modify here: 48c6ef and 6f86d6 , replace them with the hex code wanted.
The "startColor" tag is the color at the beginning of your gradient.
The "endColor" tag is the color and the end of your gradient.
You can add android:centerColor="#ff[hex code]" between startColor and endColor to set a middle color for your gradient.
If both startColor, centerColor and endColor are the same, you'll have only one color for your background ( the one you set for the three tags)
You want to modify this line to modify the corner radius:
Code:
<corners android:radius="22dp"/>
Replace 22 with your value
This line isn't present in every file so don't worry if you don't see it , but don't add it if she isn't here.
Then , recompile the APK file with this command:
Code:
java -jar apktool.jar b Labs
And launch ZipSigner to sign and Align the APK
Here you go , feel free to show me what you've done with screenshots in this thread.
Here some link for cool gradients and hex color view :
• https://webgradients.com
• https://www.hexcolortool.com/
And there's a website that allows you to see the Android code , make sure to test it out :
• https://labs.udacity.com/android-visualizer/

Help needed Selinux....

Hello all!
Magisk script already exists that does this but I don't wanna use magisk due to performance overhead xd
I am building rom image with all thermal modifications applied to it already , including various other mods that one would use magisk for...
Basically this is what I need help with:
{
"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"
}
This would need to be converted into a post fs service :
-place a script inside /system/bin
-create init.rc file that starts a new service which would then call and execute the script
As far as init.rc goes that looks very simple :
Code:
on property:sys.boot_completed=1 <<This needs to be replaced with post fs
start NewService
service NewService /system/bin/script.sh
user root
group root
oneshot
This looks simple enough but then how it is written above won't work due to SELinux permissions...
init warning: Service myservice needs a SELinux domain defined. Please fix.
type=1400 ... avc:denied ... scontext ... tcontext ... #some annoying warning messages like this
Another user chimed in and shared this snippet :
Code:
The issue what that I needed to add the line seclabel u:r:init:s0 to my init service.
The complete service now looks like this:
Code:
on property:sys.boot_completed=1 <<This needs to be replaced with post fs
start NewService
service NewService /system/bin/script.sh
seclabel u:r:init:s0 <<<<<
user root
group root
oneshot
Issue here is : Also note that SElinux must be set to permissive to allow this service to run or alternatively a policy must be set to allow the service to run.
Which I can't do ... leave SELinux permissive is a huge issue
Now , I found this which builds on how the selinux must be setup to a user that has access to files that the script is wanting to modify... who that user may be in my case scenario idk xd https://stackoverflow.com/a/55901362
Code:
Run into a very similar problem myself, and here's what I've found:
When you run ls -Z /system/bin/myservice and get this:
u:object_r:system_file:s0
it means that your file is in the system_file domain. Now that's not good, as system files are not supposed to be executed, or at last not during init (you may still be able to execute it later from terminal the usual way).
In my case I was lucky, 'cause I was replacing an existing system service with a customised one that I've compiled from source. This means I was able to check the security context of the original file I was replacing and that was from ls -Z /system/bin/myservice.bak :
u:object_r:myservice_exec:s0
So I updated my new file to the same using chcon u:object_r:myservice_exec:s0 /system/bin/myservice
After that it was working fine.
If you want to create a brand new service you may need to use a domain that exists in your sepolicies already, as simply setting it to myservice_exec, won't help, as that would be a non-existing domain in your case. If I were in your shoes and wanted to avoid defining custom policy I might try to find a service with similar security, check the domain on that and try to set the same to my service. init_exec may be a good candidate, but your mileage may vary...
What idk is how to check the selinux policy for all existing users and what access they might have... back to searching I guess unless u have some ideas?
I would like to do this without modifying kernel/system to make it permissive...
I was building ROMs a few years back, and a common mod I was doing was enabling/fixing SELinux denials. So to assit in that end, I created a script that would translate SELinux denials from a logcat, into the SELinux allows required to be included in the ROM source. I have migrated that script into the GUI of an app I distribute here, with the script source available.
[APP][TOOL] TeMeFI comprehensive system Administration
TeMeFI This app provides/returns a bucket load of information regarding your device and the currently running ROM, and much, much more. And hence the name "TeMeFI"; as its Too Much F????? Information. The F stands for whatever your comfortable...
forum.xda-developers.com
You can find the feature within the menu, under Logcat>Logcats>Generate SELinux Allows It is also pretty trivial to convert these to Magisk compatible allow statements.
DiamondJohn said:
I was building ROMs a few years back, and a common mod I was doing was enabling/fixing SELinux denials. So to assit in that end, I created a script that would translate SELinux denials from a logcat, into the SELinux allows required to be included in the ROM source. I have migrated that script into the GUI of an app I distribute here, with the script source available.
[APP][TOOL] TeMeFI comprehensive system Administration
TeMeFI This app provides/returns a bucket load of information regarding your device and the currently running ROM, and much, much more. And hence the name "TeMeFI"; as its Too Much F????? Information. The F stands for whatever your comfortable...
forum.xda-developers.com
You can find the feature within the menu, under Logcat>Logcats>Generate SELinux Allows It is also pretty trivial to convert these to Magisk compatible allow statements.
Click to expand...
Click to collapse
Thank you!
Will definitely take a look at this some time later... I was searching whole day yest that I feel burned out rn to continue zzz

Categories

Resources