Related
[MOD] Browser useragent set to "Desktop" for 7510 and 7500 Update 5/8: UEKMB added
Here is a mod for the stock web browser to always use "desktop" as user agent.
Check your firmware version in settings/about tablet: build number
Install with adb or copy and paste with rootexplorer into system/framework
Make backup first!
For 7510 WIFI tablet
For GT-P7510 UEKMB (only) UEKMB
For GT-P7510 XXKG8 (only) XXKG8
For GT-P7510 XXXFC (only) XXXFC
For GT-P7510 UEKF3 (only) UEKF3
For GT-P7510 UEKM7 (only) UEKM7
For 7500 3G tablet
For GT-P7500 XWKG1 [3G] (only) XWKG1
For GT-P7500 XXKG7 [3G] (only) XXKG7
For GT-P7500 XXKFF [3G] (only) XXKFF Cw version XXKFF
Thanks for the support by Secretfile
{
"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"
}
Workin for me. Thank you. I tried decoding this last night but got errors.
Sent from my GT-P7510 using Tapatalk
Thanks a lot bro!!! It works awesome!
More goodies in works
Post your framework if you have any other rom, i make some ua change frameworks when i get some time to spend.
I hope I'm not asking a dumb question here, but what is the difference between XXXFC and UEKF3? How can I tell which one I'm running?
SolusCado said:
I hope I'm not asking a dumb question here, but what is the difference between XXXFC and UEKF3? How can I tell which one I'm running?
Click to expand...
Click to collapse
Check settings/about tablet
Build number shows your rom version
SolusCado said:
I hope I'm not asking a dumb question here, but what is the difference between XXXFC and UEKF3? How can I tell which one I'm running?
Click to expand...
Click to collapse
No, it's not a dumb question. I'm a professional android developer and I had no idea what he was talking about. I had a look in "About tablet" in the settings and realized that it's the build number. Mine is HMJ37.XXKFF, running touchwiz. I'm guessing UEKF3 is for stock roms(non-touchwiz).
You can also do this by typing "about:debug" into the address bar and hitting enter, then going to Settings>Debug>UAstring and selecting Desktop.
Sent from my GT-P7510 using XDA Premium App
insomniawesome said:
You can also do this by typing "about:debug" into the address bar and hitting enter, then going to Settings>Debug>UAstring and selecting Desktop.
Sent from my GT-P7510 using XDA Premium App
Click to expand...
Click to collapse
That will not stick... and will be only semi functional at best
@docrambone
It it just the browser you had to modify. The reason I ask is because I'm running a custom theme and i dont want to mess with it. I'll just take the browser out of you mod and throw it in system/app if that's the case. Thanks
task650 said:
@docrambone
It it just the browser you had to modify. The reason I ask is because I'm running a custom theme and i dont want to mess with it. I'll just take the browser out of you mod and throw it in system/app if that's the case. Thanks
Click to expand...
Click to collapse
No, the user agent is set in framework-res.apk.
You have to decompile the apk and change some of the xml's and then recompile it again.
DocRambone said:
More goodies in works
Click to expand...
Click to collapse
Doc, you are a shining star, my only hope for now. Offtopic here but PLEASE work out a solution for the file size limitation of the tablet. I don't understand why files larger than 4 GBs can't be copied on the Tab when it has ext4 file system, so I assume there will be a way to get around this. This limitation is killing me (720p mkvs with Diceplayer you recommended the other day)
Your SGS roms revolutionized my phone, so great to see you work on this tab too.
styxx said:
Doc, you are a shining star, my only hope for now. Offtopic here but PLEASE work out a solution for the file size limitation of the tablet. I don't understand why files larger than 4 GBs can't be copied on the Tab when it has ext4 file system, so I assume there will be a way to get around this. This limitation is killing me (720p mkvs with Diceplayer you recommended the other day)
Your SGS roms revolutionized my phone, so great to see you work on this tab too.
Click to expand...
Click to collapse
Yes, lots of things to look into:
Animation speed in app tray, way to sloooow
Screen swipe animations
Warning about copy to sd
File limitations
SMS and call functions etc
Some possibilities opens maybe...:
<bool name="config_statusBarCanHide">true</bool>
<bool name="config_sf_limitedAlpha">false</bool>
<bool name="config_sf_slowBlur">true</bool>
<bool name="config_closeDialogWhenTouchOutside">false</bool>
<bool name="config_emulateExternalStorage">true</bool>
<bool name="config_caseSensitiveExternalStorage">true</bool>
<bool name="config_externalStorageRemovable">false</bool>
<bool name="config_tether_dun_required">false</bool>
<bool name="config_wifi_dual_band_support">false</bool>
<bool name="config_wifi_background_scan_support">false</bool>
<bool name="config_bypass_keyguard_if_slider_open">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_annoy_dianne">true</bool>
<bool name="config_unplugTurnsOnScreen">true</bool>
<bool name="config_animateScreenLights">true</bool>
<bool name="config_allowAllRotations">true</bool>
<bool name="config_reverseDefaultRotation">false</bool>
<bool name="config_deskDockEnablesAccelerometer">false</bool>
<bool name="config_carDockEnablesAccelerometer">true</bool>
<bool name="config_batterySdCardAccessibility">false</bool>
<bool name="config_UsbHostStorageRemovable">true</bool>
<bool name="config_hasUsbHostStorage">true</bool>
<bool name="config_hasUsbHostSupport">true</bool>
<bool name="config_use_strict_phone_number_comparation">false</bool>
<bool name="config_disableMenuKeyInLockScreen">false</bool>
<bool name="config_enableSlidingTabFirst">true</bool>
<bool name="config_enableLockScreenRotation">false</bool>
<bool name="config_swipeDisambiguation">true</bool>
<bool name="config_filterTouchEvents">false</bool>
<bool name="config_filterJumpyTouchEvents">false</bool>
<bool name="config_bluetooth_sco_off_call">true</bool>
<bool name="config_voice_capable">false</bool>
<bool name="config_sms_capable">true</bool>
<bool name="config_sip_wifi_only">true</bool>
<bool name="config_built_in_sip_phone">false</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_showMenuShortcutsWhenKeyboardPresent">false</bool>
<bool name="config_telephony_use_own_number_for_voicemail">false</bool>
<bool name="lockscreen_isPortrait">true</bool>
i cant wait until you really get stuff moving here bro. you do some awesome work. any luck or any further on porting 3.2
task650 said:
i cant wait until you really get stuff moving here bro. you do some awesome work. any luck or any further on porting 3.2
Click to expand...
Click to collapse
No, need a 3.2 kernel to get it running properly.
Kernel development is not my strong area
But i will have a go at the 3.2 base rom anyway
What about a bootloader unlock patch, like in galaxy tab? though the bootloader lock in tab 10.1 is way different as we can flash roms/kernels but can't use nvflash and fastboot anymore! fastboot is an asset to revert to stock recovery or stock kernel without loosing data! just thinking of possibilities for materializing an ingenious idea for solving concerned issue.
I'm using Super Manager to install from system/framework, but I keep getting application not installed. What am I missing? Rooted on touchwiz rom.
okstranger said:
I'm using Super Manager to install from system/framework, but I keep getting application not installed. What am I missing? Rooted on touchwiz rom.
Click to expand...
Click to collapse
You could just use root explorer. Its really easy. Make sure you set the permissions.
I tried to copy over to the system/framework but said not enough space and a lots of FS occurred. And I shut down the TAB. And now when power on the TAB keep on going to the re looping when the Samsung screen on. And it's cannot load now.....try to do a data wipe and it's don't help. Any idea? how do I flashed the ROM again? How to I copy the update.zip to the SD again ?
I flashed to the
[ROM][GUIDE] 3.1 TouchWiz UX for 10.1 WiFi [UPDATE: New WiFi Base Rom and rooted previously.
rogconnect said:
I tried to copy over to the system/framework but said not enough space and a lots of FS occurred. And I shut down the TAB. And now when power on the TAB keep on going to the re looping when the Samsung screen on. And it's cannot load now.....try to do a data wipe and it's don't help. Any idea? how do I flashed the ROM again? How to I copy the update.zip to the SD again ?
I flashed to the
[ROM][GUIDE] 3.1 TouchWiz UX for 10.1 WiFi [UPDATE: New WiFi Base Rom and rooted previously.
Click to expand...
Click to collapse
Use odin and flash the rom again, http://forum.xda-developers.com/showthread.php?t=1167250
I have always loved the extended settings Andy Thomoson has made for MIUI (found here), especially the carrier logo's in the statusbar
Well, I have been messing around with the SystemUI.apk from the latest 2.3.7 OTA for the NS4G and made it accessible for that stock ROM. I'll make one for BuglessPete's GPA17 and maybe CM soon.
I'm pretty sure this option has been around for a while but it really is a cool mod and wanted to revive it.
Here is an example of what it looks like
{
"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"
}
The logo can be a lot of things.. Here is a good thread for some carrier logos
So here is the one I showed in the pic: download here
^^That zip was built against the 2.3.7 SystemUI.apk for the NS4G.
I will take requests. Also please refer to the second post for a "How-To"
Instructions
1) Flash ZIP in recovery and rebot
2) Download this eri.xml.zip found HERE
3) Extract that eri.xml and copy/paste it to /data
4) Change permissions to "everything"
-looks like this using Root Explorer or ES File Explorer
5) Toggle airplane mode or reboot to see changes
6) Enjoy!!
How To Submit Request
1) Post your SystemUI.apk and framework-res.apk from your current ROM
(SystemUI.apk is found in /system/app and /system/framework)
2) Post the carrier logo you want (or give an idea of what you want)
3) Post what ROM your using
If you want any other mods like differnt colors for the clock, date, ticker notifications, pretty much anything in the statusbar letme know and I can do that as well
GUIDE
1) Decompile your SystemUI.apk
2) Navigate to your decompiled SystemUI folder and goto
res>layout>status_bar.xml
3) Open it with word processor of choice (I prefer Notepad++)
4)Find the line that starts with
Code:
<com.android.systemui.statusbar.IconMerger
5) Place your curser right at the beginning of that line, press enter to make a space
6) In the empty line now, copy/paste this line of code
Code:
<com.android.systemui.statusbar.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:id="@id/carrier" android:background="@drawable/carrier_logo" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
7) Save and exit
8) Now goto res>values>ids.xml
9) Open that xml and add this line to the end of the id's (right above the </resources> at the bottom)
Code:
<item type="id" name="carrier">false</item>
10)Save and exit
11) Now take your carrier logo picture you want to use and place it in res>drawable-hdpi and name it "carrier_logo"
12) Now compile your SystemUI, sign it if using apktool and make it into a flashable zip
Here's an empty flashable zip folder structure you can use
DOWNLOAD HERE
Just extract that zip, place your moddified SystemUI.apk in the /system/app folder, then select both the system and META-INF folder and zip em up
EDIT: 2-13-12
I changed the code for the carrier logo to hopefully get rid of overlapping text with carrier logo
Outstanding... Thanks fergie
Sent from my Nexus S 4G using xda premium
info[]box1 said:
Outstanding... Thanks fergie
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Hey, there he is! Lol glad you like. Gunna be running to school now but post any issues/ideas. I'll be awake at somepoint tonight lol
Sent from my Nexus S 4G using Tapatalk
Just wanted to say the guide works for CM too
Here's mine from n125
Here's the zip for the carrier logo in the pic
DOWNLOAD HERE
Request
Hi fergie!
Very nice work!!!
I using on my HTC HD2 the ROM Typhoon Cyanogenmod 7 based on Android 2.3.7
Here is the link
http://forum.xda-developers.com/showthread.php?t=933951
If is possible, I want to display the carrier name only in the status bar.
I have tried some solution, but on this nevest build don't work
I send you my framework and system-ui
Can you made for me a flashable zip?
Thank you very much and sorry for my bad english....
Hmmm. Well I've only tried on the Nexus S/ Nexus S 4G. But I'll definitely give it a go when I get home!
Sent from my Nexus S 4G using Tapatalk
fergie716 said:
Hmmm. Well I've only tried on the Nexus S/ Nexus S 4G. But I'll definitely give it a go when I get home!
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
Thank you, Fergie!!!
Only carrier name, no graphics logo...
This patch (see attachment) working only on Android 2.3.5
When I install on new Android version, cause me a USB error and crash the status bar app...
Thank you a lot lot lot
cicciomerenda said:
Thank you, Fergie!!!
Only carrier name, no graphics logo...
This patch (see attachment) working only on Android 2.3.5
When I install on new Android version, cause me a USB error and crash the status bar app...
Thank you a lot lot lot
Click to expand...
Click to collapse
Ok I attached a zip you can flash in recovery. Everything decompiled/recompiled fine with no errors.
I also attached the SystemUI.apk by itself in case the zip doesn't work, try moving the SystemUI.apk to /system/app/ and change permissions to rw-r--r--
@melvinchng
Attached is the modded SystemUI in a flashable zip and standalone apk
Just a quick reminder, don't forget to follow the instructions in the OP especially when it comes to the eri.xml to get rid of the double logo
Thank you very much, Fergie, but the mod don't work...
The ZIP file give me an error on flash in recovery and the sistem-ui make disappear the status bar...
Where is the error???
Sorry sorry
cicciomerenda said:
Thank you very much, Fergie, but the mod don't work...
The ZIP file give me an error on flash in recovery and the sistem-ui make disappear the status bar...
Where is the error???
Sorry sorry
Click to expand...
Click to collapse
It should work
Try toggling zip verification in recovery when flashing the zip
if copy/pasting the apk by itself, you have to change permissions of the new SystemUI.apk to rw-r--r--
Or you can use adb to push it to /system/app/ then go into adb shell and run
Code:
su
fix_permissions
fergie716 said:
@melvinchng
Attached is the modded SystemUI in a flashable zip and standalone apk
Click to expand...
Click to collapse
I flash that... I work well.. but the problem is I have my carrier name stack on the icon... I do copy the xml to my data...
Any idea?
Thanks!
Accidentally sent from my Google Nexus S using XDA Premium
melvinchng said:
I flash that... I work well.. but the problem is I have my carrier name stack on the icon... I do copy the xml to my data...
Any idea?
Thanks!
Accidentally sent from my Google Nexus S using XDA Premium
Click to expand...
Click to collapse
yea you need to change the permissions of that xml to "everything" then toggle airplane mode or reboot
Its in the OP
fergie716 said:
yea you need to change the permissions of that xml to "everything" then toggle airplane mode or reboot
Its in the OP
Click to expand...
Click to collapse
Thank you once again... do you know can I use it as background than logo?
Accidentally sent from my Google Nexus S using XDA Premium
melvinchng said:
Thank you once again... do you know can I use it as background than logo?
Accidentally sent from my Google Nexus S using XDA Premium
Click to expand...
Click to collapse
I'm glad it's working for you!! Awesome stuff. Does it look cramped in there? I resized it for you to try and make it look ok
You want to use the logo as your statusbar background?
fergie716 said:
I'm glad it's working for you!! Awesome stuff. Does it look cramped in there? I resized it for you to try and make it look ok
You want to use the logo as your statusbar background?
Click to expand...
Click to collapse
I don't work well actually. Changed the permission, reboot. My carrier name is still there...
Ya, use it as status bar background. So notification icon can float on it...
Accidentally sent from my Google Nexus S using XDA Premium
melvinchng said:
I don't work well actually. Changed the permission, reboot. My carrier name is still there...
Ya, use it as status bar background. So notification icon can float on it...
Accidentally sent from my Google Nexus S using XDA Premium
Click to expand...
Click to collapse
Can you post a pic? It should be working ok
And IDK if that can be done.. I'll take a look tho and see if it can
fergie716 said:
Can you post a pic? It should be working ok
And IDK if that can be done.. I'll take a look tho and see if it can
Click to expand...
Click to collapse
Accidentally sent from my Google Nexus S using XDA Premium
Presenting a full guide on theming and understanding conceps of Settings.apk
Theming it white with changeable background
Check 2nd Post
Note.
I am not responsible if you make any damage to your phone
Click to expand...
Click to collapse
This simple editing requires.
# STEP 1
Patience
[For that use my method of spreading cold water over your head.}
# STEP 2
Notepad ++
{A very handy tool}
google it if you dont have for editing xml files.
# STEP 3
My provided files for changing backgrounds.
Click to expand...
Click to collapse
Lets start our work.
# STEP 4
Decompile your Settings.apk
# STEP 5
Open Androidmanifest.xml
# STEP 6
In
Code:
<application android:label="@string/settings_label"
# STEP 7
Add this
Code:
android:theme="@*android:style/Theme.Light"
# STEP 8
So it will look like thisafter editing
Code:
<application android:theme="@*android:style/Theme.Holo" android:label="@string/settings_label"
# STEP 9
Now find
Code:
Theme.NoTitleBar
And replace each with
Code:
Theme.Light.NoTitleBar
# STEP 10
Now open ManageApplications$ApplicationsAdapter.smali in
Code:
smali/com/android/settings/applications/ManageApplications$ApplicationsAdapter.smali
# STEP 11
Find
Code:
getColorStateList
# STEP 12
Above it you will see public id linked to framework
i.e.
Code:
0x1060001
# STEP 15
Change it to
Code:
0x1060004
This is to fix white colour problem in manage aplications tab items.
# STEP 14
Recompile your apk back.
Click to expand...
Click to collapse
{
"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"
}
EXTRA TIPS.
#
Changing the backgroung from white to grey or set your image
# STEP 15
Download Zip Package from here and merge with your settings.
# STEP 16
Open styles.xml
Paste this in the last above
Code:
</resources>
Code:
<style name="Settings" parent="@*android:style/Theme.Light">
<item name="android:windowBackground">@drawable/background</item>
</style>
# STEP 17
Open Androidmanifest.xml
# STEP 18
In
Code:
<application android:label="@string/settings_label"
# STEP 19
Add this
Code:
android:theme="@style/Settings"
# STEP 20
So it will look like this after editing
Code:
<application android:theme="@style/Settings" android:label="@string/settings_label"
# STEP 21
And background will be changed.
Click to expand...
Click to collapse
#
To change separators
# STEP 22
Open styles.xml
Paste this in the last above
Code:
</resources>
Code:
<style name="Widget.TextView.ListSeparator.White" parent="@*android:style/Widget.TextView.ListSeparator">
<item name="android:textColor">#ff000000</item>
<item name="android:background">@drawable/light_header</item>
</style>
# STEP 23
Change
Code:
<style name="Settings" parent="@*android:style/Theme.Light">
<item name="android:windowBackground">@drawable/background</item>
</style>
to
Code:
<style name="Settings" parent="@*android:style/Theme.Light">
<item name="android:windowBackground">@drawable/background</item>
<item name="android:listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
</style>
# STEP 24
Recompile back your apk file.
# STEP 25
Sign it.
# STEP 26
Push to system/app with permissions rw-r-r
# YOUR STEP
And Work Completed.
Click to expand...
Click to collapse
Liked Diz.....:thumbup:
via Tapatalk
awesome:good:
san122 said:
Click to expand...
Click to collapse
hy @san122 if you can help me to add wifi & Bluetooth switch on / of on settings?
I should make a guide like this for 4.3..
Didn't know people where still using GB lol
Sent from my lightning fast Note II running MeanBean 2.0 SuperCharged
eZdubzitmk4 said:
I should make a guide like this for 4.3..
Didn't know people where still using GB lol
Sent from my lightning fast Note II running MeanBean 2.0 SuperCharged
Click to expand...
Click to collapse
Why fear when iam here .I will make a guide on jb
Sent from my GT-S5360 using Tapatalk 2
Dekill93 said:
hy @san122 if you can help me to add wifi & Bluetooth switch on / of on settings?
Click to expand...
Click to collapse
There is a guide by sniper killer for that google it
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Why fear when iam here .I will make a guide on jb
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
I was going to make one for 4.3 touch wiz. Unless you want to
Sent from my lightning fast Note II running MeanBean 2.0 SuperCharged
eZdubzitmk4 said:
I was going to make one for 4.3 touch wiz. Unless you want to
Sent from my lightning fast Note II running MeanBean 2.0 SuperCharged
Click to expand...
Click to collapse
Your choice add source here.
Sent from my GT-S5360 using Tapatalk 2
san122 said:
There is a guide by sniper killer for that google it
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
I've tried the tutorial ... but this is what I get ... try to check my picture...
can you help me ?
'SAN122' I have a small query.
How edit the background color of the header of the Settings application?
vk2r said:
'SAN122' I have a small query.
How edit the background color of the header of the Settings application?
Click to expand...
Click to collapse
You need to add titlebar attributes to styles for that and it is a png not a colour
Sent from my GT-S5360 using Tapatalk 2
san122 said:
You need to add titlebar attributes to styles for that and it is a png not a colour
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Could you give me some help with that?
I am somewhat newbie to all this ...
vk2r said:
Could you give me some help with that?
I am somewhat newbie to all this ...
Click to expand...
Click to collapse
not possible today but surely tomorrow
Sent from my GT-S5360 using Tapatalk 2
san122 said:
not possible today but surely tomorrow
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Thank you so much.
I'm really grateful.
can you tell me how to move customization option from here to a new title QUICKLINKS below WIRELESS AND NETWORKS ?
Sent from my Nexus 4
rush25 said:
can you tell me how to move customization option from here to a new title QUICKLINKS below WIRELESS AND NETWORKS ?
Sent from my Nexus 4
Click to expand...
Click to collapse
Under settings.xml make preferencecategories and preferencescreens below wireless and networks .
Sent from my GT-S5360 using Tapatalk 2
you xml/settings_preference.xml ? i tried it in there and also added new line in strings xml but still error
Sent from my Nexus 4
{
"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"
}
- Section One -
Hey guys! I'm back again with another contribution to the community, this time I'm posting a guide on behalf of my theme, Svelte UI.
I have noticed there is a very few amount of theme's available for the new CyanogenMod Theme Chooser out there. And hopefully I can change this.
This guide will cover everything needed to create a Theme, from creating the initial project to theming itself. And some tips on how I theme.
And to make all you lovely people even happier. I will provide all code and even a sample .apk
And also I don't want to add screenshots of my desktop to this thread, because the resolution will be way to big. Instead I'll have links. So let's get started shall we?
VIDEO TUTORIALS
[x] One - Create Project
[x] Two - Initial Setup
More coming.
- Section One -
This section is vital for you to accomplish your theme, so please do not skim through it.
For the requirements, you need an IDE. Yes I will be showing you how build the theme from scratch and not a template.
Use an IDE that you're comfortable with, I wont be showing yo how to use it. I will be using Eclipse for this tutorial.
You will need an image editing program, I am going to use Paint.NET. It's free, advanced, and does the job as good as Photoshop.
We are also going to need patience. Yeap. Theming takes allot of time and patience, it is frustrating especially if you're doing precise editing but it's worth it at the end.
One more thing we are going to need is, an APK decompiler. So download one you like, install the required .apk's for it to work properly.
Then get hold of the SystemUI.apk and Framework-res.apk, we're going to use this later.
- Section One -
Okay, now go ahead and open up your IDE, and create a new Project, give it a name and an appropriate package name.
For example mine is "Svelte UI" and "com.ascendapps.sui". [View Screenshot]
Now click next till you end the project setup. Once your project has been created.
- Section Two -
Go ahead and delete the following folders.
[src, layout, menu, values-sw600dp, and values-sw720dp-land also delete drawable-ldpi if you want] [View Screenshot]
Now in the values folder, create a new xml and call it "public.xml" and make sure to delete the "dimens.xml" file.
Inside the xml file (public.xml) add the following code - [View Screenshot]
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="ic_launcher" id="0x7f020000" />
<public type="string" name="app_name" id="0x7f030000" />
<public type="style" name="AppBaseTheme" id="0x7f040000" />
<public type="style" name="AppTheme" id="0x7f040001" />
</resources>
- Section Three -
Now go ahead and save it. Make you save things when working throughout your project, better be safe than sorry.
Open up AndroidManifest.xml, and add the following code and do what it tells you - [View Screenshot]
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="7" android:versionName="1.0" package="com.ascendapps.sui" <!-- Enter the package name of your project that you had done in the setup earlier -->
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:name="org.cyanogenmod.theme" android:required="true" />
<application android:label="Svelte" android:icon="@drawable/ic_launcher" android:hasCode="false" /> <!-- Change label to theme name -->
<meta-data android:name="org.cyanogenmod.theme.name" android:value="Svelte" /> <!-- Name of Theme -->
<meta-data android:name="org.cyanogenmod.theme.author" android:value="Krish Gounder" /> <!-- Your Name -->
</manifest>
.
Please make sure to delete the Info statements once you've finished editing the xml.
For example delete the lines in green. Which is the following -
Code:
<!-- Your Name -->
<!-- Name of Theme -->
<!-- Change label to theme name -->
<!-- Enter the package name of your project that you had done in the setup earlier -->
- Section Four -
Now save your project, and close everything. Once closed, navigate to your project workspace. In there you should see your projects name.
Like this . [View Screenshot]
Open the the project then inside the work folder open the "Assets" folder. This is where everything comes to life.
Go ahead, and create the things you want to be included in your theme.
- fonts - If you wish to use different fonts in your theme.
- images - The images that are displayed when applying the theme.
- overlays - You must create this folder, this is where all the theming images are kept.
- wallpapers - If you want to add a wallpaper to your theme. Use .jpg
- bootanimation- Add a .zip file of your bootanimation in here.
- alarms - If you want to add alarm sounds to your theme.
- lockscreen - Add a lockscreen wallpaper. Use .jpg
- notifications - If you want notification sounds.
- ringtones - If you want to have ringtone sounds.
I will be using images, overlays and wallpapers.
So inside the images folder you will need -
lockscreen_preview.jpg if you are having a lockscreen wallpaper.
styles_preview.jpg just add your wallpaper.
wallpaper_preview.jpg Just use the wallpaper and add an icon in the middle of the image.
Add your wallpaper in the wallpapers folder and name it - wallpaper1.jpg
[Screenshot One] - [Screenshot Two] Now we've completed this section.
- Section One -
For theming you'll need a reasonable image editing software, Paint.NET works quite well.
So you want to know how to theme apps and components? Let's start with the framework-res.apk.
Earlier, I had stated that you'll need an APK Decompiler. So using the decompiler, decompile the framework-res.apk.
Open up to decompiled project and navigate to the folder you wish to work on. for example, drawable-xxhdpi.
Now in your theme work folder, go into "overlays" and create a folder called "android"
Inside there, create a folder called "res" and inside "res" create drawable-xxhdpi or the folder you chose.
Now go back to the project you decompiled earlier, and copy in all the .png files that you know you'll theme.
- Section Two -
How to them other apps and get it to work. the way the theme chooser knows what to them is by package names.
So if you want to theme an app you''l need to find out it's package name. For example Instagram is - com.android.instagram
If you make a folder with that name, and inside you have to create the res folder, it's basically the same layout but the initial name is the package name.
- Section Three -
It's often weird to work with .9.png's when you come face to face with it the first time. The best way to edit them is by working with the image inside the borders.
By this I mean, when you open the image in an editor it has these black lines around the edges, using a selecting tool. select everything inside the border, and do not select the border.
These borders help the Android system with stretching the image.
CREDITS -
[x] Me for preparing this guide.
[x] CyanogenMod Team for the Theme Chooser.
[x] Imgur
[x] XDA
[x] Eclipse
[x] QuickMod Dev
[x] And curiosity.
RESERVED
This section is user based, so if you need help with theming something.
Let me know and I'll update this thread post and I'll directly link you to the info.
When theming a specific application, whether it's a system app or a normal app.
You will need to give the folder the package name so the system knows what to theme.
So if you want to theme the settings app you'll have to name the folder "com.android.settings".
Thanks to @Vincentmrl He requested me to add these so people have a better idea and don't get confused.
The names on the left correspond to the app to right.
android (framework-res.apk)
com.android.dialer (Dialer.apk)
com.android.email (Email.apk)
com.android.keyguard (Keyguard.apk , lockscreen theming)
com.android.settings (Settings.apk)
com.android.systemui (SystemUI.apk)
I will be adding more to these. And easy way of finding the apps package name is by looking at its PlayStore url.
Or by checking in android app manager.
- Section One - Add your own custom background
First of all, you'll need to create or find your own image.
Make sure it's a reasonable size, this is basically a common sense statement.
Don't use a really small image. Okay once you've gotten your image.
Change the name of the image to the following - background_holo_dark.png
Place this image in the following folder - /overlays/android/res/drawable-nodpi
Once done, you need a way for the system to find the image, you can do this by creating a new styles.xml in the values folder.
So go ahead and create a file named styles.xml in the values folder.
The next thing you have to do is add this code inside your xml file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Black" parent="@*android:style/Theme">
<item name="android:colorBackground">@color/transparent</item>
<item name="android:windowBackground">@drawable/background_holo_dark</item>
</style>
</resources>
Save the file and you're done.
Thank you guy, I love it, maybe I'll do one
GæxD said:
Thank you guy, I love it, maybe I'll do one
Click to expand...
Click to collapse
Goodluck! let me know when you make it. I'll be glad to check it out. :]
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
Goodluck! let me know when you make it. I'll be glad to check it out. :]
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks again
I have one question, how to change this colors? Example, I marked the colors in red:
The switch button can be change in the framework-res.apk.
And the text can be changed in colors.xml. it should be displayed as "primary_text" and "secondary_text".
Edit - You may need to look in Settings.apk for the text colors. If they don't work, then look for it in framework-res.apk.
It will be a trial and error thing, so you'll have to test many times.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
The switch button can be change in the framework-res.apk.
And the text can be changed in colors.xml. it should be displayed as "primary_text" and "secondary_text".
Edit - You may need to look in Settings.apk for the text colors. If they don't work, then look for it in framework-res.apk.
It will be a trial and error thing, so you'll have to test many times.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Okay
You can make a tutorial explaining better this part of colors and others things to put in OP. Other peoples may also have the same doubt =)
GæxD said:
Okay
You can make a tutorial explaining better this part of colors and others things to put in OP. Other peoples may also have the same doubt =)
Click to expand...
Click to collapse
Thanks, I will be sure to add more info about this when I prepare it later.
I look forward
I have a theme in the works. ?
HI thank you for the guide but i keep getting 'Errorublic symbol style/AppBaseTheme declared here is not defined.' while using android studio. how do i solve this? it wont let me compile my apk.
RealiableCandy4 said:
HI thank you for the guide but i keep getting 'Errorublic symbol style/AppBaseTheme declared here is not defined.' while using android studio. how do i solve this? it wont let me compile my apk.
Click to expand...
Click to collapse
Use eclipse dude, with one click you install your apk on device and test the theme
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting an error whenever I try to create the public.xml file. Any ideas?
torresfelipe said:
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting a error whenever I try to create the public.xml file. Any ideas?
Click to expand...
Click to collapse
Eclipse Kepler, is the current one. I don't think you need a specific version.
Sent from my Nexus 5 using Tapatalk
torresfelipe said:
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting an error whenever I try to create the public.xml file. Any ideas?
Click to expand...
Click to collapse
Eclipse Standard/SDK
Version: Kepler Service Release 2
Build id: 20140224-0627
Thanks guys. I might have done something wrong, but it's working now. I'm using the latest release, 4.4 Luna.
GæxD said:
Use eclipse dude, with one click you install your apk on device and test the theme
Click to expand...
Click to collapse
Thanks for the reply i fixed it by adding
Code:
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"></style>
in the styles.xml file
I used Generator to generate png/9.png files of my theme. Problem is that all of files look like this themename_background.png, themename_tab.png etc. (you know what i mean). How to make theme work with that named images? I need to edit some code to audo add this or how? Its not so easy to rename all pngs (takes alot of time)
I just cant do it.Downloaded eclipse with android SDK and aplication wizzard isnt that easy: next, next, next. Also i dont have folders what you said to delete... For me (newbie) its useless guide.. Just trying and still cant do anything because dont know how...
And finally when i will make any project how to build it to be ready to install?
@baciany Check your Pm
@TheArc;
Which APK Decompiler do you use? Do you think that something simple as http://www.decompileandroid.com/ would work?
How to change your Quick Settings Background Color from Default Black to Translucent or Other (EMUI 5)
Several people have asked how to change the color or transparency of the default black quick settings background in EMUI 5 for the P9 Lite. I was going to make an app to do this, but it is going to be quite time consuming and I am not sure enough people will use it. So instead, here is a tutorial. I hope it is noob friendly enough. Don't hesitate to ask questions in this thread!
First and foremost, you need to be rooted and to edit your local prop to lite_enabled = false (you will find that in /system/emui/lite/prop/local.prop)
Here are a couple of pictures to show what the mod does:
{
"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"
}
TUTORIAL
1. Get hold of a theme you like. If you want to use one of the stock themes, you will find them here: https://forum.xda-developers.com/huawei-p9lite/themes/huawei-p9-lite-themes-fix-icons-ota-t3409185
There are also good EMUI 5 themes here: http://emui.huawei.com/en/plugin/hwtheme/theme
2. Download and install this file archiver if you don't already have it: http://www.7-zip.org/
3. Right click on your theme, navigate to 7zip and choose "Open Archive" (first option)
4. If you see a file called com.android.systemui go straight to step 11. If not, got to 5.
5. Download and install Notepad++ if you don't already have it: https://notepad-plus-plus.org/
6. Open Notepad++
7. Add this to the blank file choosing your own hex color:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="qs_panel_background">#FFCE93D8</color>
</resources>
8. If you also want to change the color of your quick settings icons, add this, choosing your own hex colors:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="qs_panel_background">#FFCE93D8</color>
<color name="qs_tile_tint_on">#FFFFFFFF</color>
<color name="qs_tile_tint_off">#5b5555</color>
</resources>
9. Save your file as theme.xml
10. Create a folder called com.android.systemui and put theme.xml in it. Zip the file and rename to com.android.systemui (without .zip)
11. If you already had a com.android.systemui file, select and click on Extract. Extract to your desktop. Then right click on the file, navigate to 7zip and choose "Open Archive" (first option). Then select theme.xml and Extract to your desktop. Then open with Notepad++. Then add the required lines:
Code:
<color name="qs_panel_background">#FFCE93D8</color>
<color name="qs_tile_tint_on">#FFFFFFFF</color>
<color name="qs_tile_tint_off">#5b5555</color>
12. In your open Theme archive, drag and drop com.android.systemui
13. Close archive. Put in your HWThemes folder. Go to your Themes app. Apply. Voilà!
Note: You may need to clear to clear Themes cache and reboot.
CREDITS: @Coolyou for pointing out that this needs root.
@StrangerWeather
The problem is we have by default in /system/emui/lite/local.prop lite_enabled it need to be changed to false in order to have transparent notifications. But I want to achieve that without root, hence your tutorial works only for devices which have lite_enabled to false.
Is it possible to change lite_enabled with ADB SHELL command?
Coolyou said:
@StrangerWeather
The problem is we have by default in /system/emui/lite/local.prop lite_enabled it need to be changed to false in order to have transparent notifications. But I want to achieve that without root, hence your tutorial works only for devices which have lite_enabled to false.
Is it possible to change lite_enabled with ADB SHELL command?
Click to expand...
Click to collapse
No, this tutorial works with unrooted devices. It's got nothing to do with the local.prop. It's just plain theming.
Edit: @Coolyou is actually right, you need to be rooted and to edit your local.prop.
StrangerWeather said:
No, this tutorial works with unrooted devices. It's got nothing to do with the local.prop. It's just plain theming.
Click to expand...
Click to collapse
I tried with this theme https://forum.xda-developers.com/p9/themes/theme-simplyn-nougat-style-theme-emui-5-t3590068
it already has custom color for notifications, yet it changes icons on notifications but not the color or adding a transparent option, it's still black.
Please I need one ready to use
I dony have time to adit theme
radwan020 said:
Please I need one ready to use
I dony have time to adit theme
Click to expand...
Click to collapse
It doesn't works if you don't have lite_enabled to false
I tried with many themes but no chance
---------- Post added at 11:54 AM ---------- Previous post was at 11:52 AM ----------
Coolyou said:
It doesn't works if you don't have lite_enabled to false
Click to expand...
Click to collapse
Any plans to edit
---------- Post added at 11:58 AM ---------- Previous post was at 11:54 AM ----------
I don't like to root my phone
I tried with adb shell settings put system hw_emui_lite false via cmd but it doesn't work :/ If someone has experience with ADB write here
EDIT 1: adb shell settings put system hw_emui_lite.enable false - doesn't work as well.
Coolyou said:
@StrangerWeather
The problem is we have by default in /system/emui/lite/local.prop lite_enabled it need to be changed to false in order to have transparent notifications. But I want to achieve that without root, hence your tutorial works only for devices which have lite_enabled to false.
Is it possible to change lite_enabled with ADB SHELL command?
Click to expand...
Click to collapse
Ok, my mistake, you are absolutely right!
Unfortunately, you can't change a system file without root, even using adb shell.
radwan020 said:
Please I need one ready to use
I dony have time to adit theme
Click to expand...
Click to collapse
Are you rooted? If so I can make it for you.
No am not rooted
I search for without root
Thanks for replying
StrangerWeather said:
Ok, my mistake, you are absolutely right!
Unfortunately, you can't change a system file without root, even using adb shell.
Click to expand...
Click to collapse
Poof :< If that's not available with adb shell we will never have it without root. Even p10 lite have that lite enabled. FFS
Huawei sucks so much seriously.
Coolyou said:
Poof :< If that's not available with adb shell we will never have it without root. Even p10 lite have that lite enabled. FFS
Huawei sucks so much seriously.
Click to expand...
Click to collapse
To be precise, you can do it if you have TWRP, you don't need root. The only problem is finding a way of installing TWRP without unlocking your bootloader. It has been done before for various other devices...
But if your bootloader is unlocked, you can do it with TWRP. No need for root.
StrangerWeather said:
To be precise, you can do it if you have TWRP, you don't need root. The only problem is finding a way of installing TWRP without unlocking your bootloader. It has been done before for various other devices...
But if your bootloader is unlocked, you can do it with TWRP. No need for root.
Click to expand...
Click to collapse
And I guess it's impossible on huawei to do that without bootloader.
@StrangerWeather, can you tell me where to edit in EMUI 4?
does only the transparency/blur need the prop edit? or does changing the color also need it
Germano1980 said:
@StrangerWeather, can you tell me where to edit in EMUI 4?
Click to expand...
Click to collapse
It's quite different and I can't test because I don't have it. But here is a comprehensive guide which should work: http://emui.altervista.org/system-apps/com-android-systemui.html
mjz2cool said:
does only the transparency/blur need the prop edit? or does changing the color also need it
Click to expand...
Click to collapse
Unfortunately, changing color needs it too.
Thanks, work perfect on my P9 Lite. Greetings.
PD: In the same local.prop file, you can activate the App Clone function.
StrangerWeather said:
It's quite different and I can't test because I don't have it. But here is a comprehensive guide which should work: http://emui.altervista.org/system-apps/com-android-systemui.html
Unfortunately, changing color needs it too.
Click to expand...
Click to collapse
that explains why all those themes that show screenshots of the notificationpanel don't change it
Which setting or settings specifically control the transparency? I'm already on a custom theme.