[Q] Brightness range; adjust minimum brightness [solved] - Galaxy S I9000 Q&A, Help & Troubleshooting

Is there some way to adjust the minimum brightness?
Right now, the minimum setting is 10 for both manual and auto adjustment. The phone does a brightness of 0 just fine without the screen going black (set via "echo 0 > /sys/class/backlight/s5p_bl/brightness"). Unfortunately, that setting doesn't stick and gets reset by the lock screen to 10.
(I'm running the current 4.2.2 Slim Bean ROM.)

Since there are a lot of threads of people unsuccessfully trying to change the minimum brightness, I'll post my solution.
At least for Jelly Bean, the minimum brightness is set in framework-res.apk.
Inside is the resource file res/values/integers.xml with the relevant keys config_screenBrightnessSettingMinimum and config_screenBrightnessDim.
framework-res.apk can be updated with apktool. With the latest ROMs that have the dark UI stuff (e.g. Slim Bean 4.2.2 v6), the standard version of apktool doesn't work, a working one is at the github SlimRoms repository:
https://github.com/SlimRoms/apktool
Update steps:
- decompile framework-res: apktool d framework-res.apk (e.g. for Slim Bean, get framework-res.apk from Slim-galaxysmtd-4.2.2.build.6-OFFICIAL.zip:/system/framework/)
- edit framework-res/res/values/integers.xml
- build new framework-res.apk: apktool.bat b framework-res
- copy META-INF and AndroidManifest.xml from original framework-res.apk to new framework-res.apk (7zip works fine)
- replace /system/framework/framework-res.apk on the device, the CWM file manager worked fine (wiping cache/dalvik-cache may be required)

pls add this info to FAQ
if someone could please add the info above to a faq list somewhere?
I have been searching for weeks for this.
a big thankyou to tni.andro.

Hi,
Isn't minimum brightness should be configured also in lower level ?
Why does the device "ignore command" when doing "echo 0" to brightness ?
Is there anywhere this apk already builded so I can use the apk binary ?
Thank you,
Ranchu

Related

[HOWTO]: 1% steps on gingerbread

at first, it would be nice if any mod can modify the title to: [HOWTO] 1% battery mod on gingerbread and delete all following posts.
further i'm sorry for my poor english - hopefully everyone here can follow my steps!
the hard thing on changing battery icons on gingerbread is, that there are only 7 steps: 0, 10, 20, 40, 60, 80 and 100... that means you have to edit or replace two xml files (more later).
IMPORTANT: please make a backup of your rom! i'm not responsible if your device won't boot after modding! also it is possible that your google/facebook etc. accounts are deleted after flashing back your modded framework. but you can easily readd them again!
WHAT YOU NEED:
apk manager from here: http://www.multiupload.com/GXW01G6URJ
battery icons or a framework-res.apk with your desired icons
a rooted gingerbread rom
your original framework-res.apk (guide to extract later on)
WHAT YOU GET (IN ATTACHMENT):
stat_sys_xml_dateien.zip (stat_sys_battery.xml and stat_sys_battery_charge.xml with 100 steps)
framework-res.apk (modified by me with circlemod battery (i hope it's okay to use them in here! btw. many thx to devs (was it mdj?) for this icons). THIS FRAMEWORK WAS ONLY TESTED BY ME ON MDJ GINGERBREAD 2.2!!!
screenshot of the circle battery mod on gingerbread
FIRST STEPS:
extract apk manager to a a desired folder and conenct your phone to debug mode
start script.bat and change kompression level to 0 (type 19, afterwards 0)
type in 0 to download framework-res.apk from your phone. it asks for the path, type: /system/framework/framework-res.apk and hit enter
if asked for a name, type framework-res.apk and hit enter and confirm with Y to be your current project
type 9 and hit enter to decompile your framework and wait until it's finished
have a look in the folder "projects" - there will be a folder "framework-res.apk" now.
navigate to the subfolder: res/drawable-hdpi and delete ALL png files with the name stat_sys_battery_X.png and stat_sys_battery_charge_animX.png (while X stands for the according number). do this also with stat_sys_battery_unknown.png and stat_sys_battery_charge_animfull.png (IMPORTANT: delete last two ones only if you have a replacement icon or you will get errors on compiling!!!)
also delete following two xml files in subfolder projects/framework-res.apk/res/drawable: stat_sys_battery_charge.xml and stat_sys_battery.xml
now it gets tricky:
depending on the amount of your custom icons you have on charging, you may have to edit your stat_sys_battery_charge.xml file and delete or add the percentual steps! if you have 100 custom png's for charging animation, you can use the stat_sys_battery_charge.xml i attached (it also includes a stat_sys_battery.xml with 100 steps if you need)
now it's time to paste your modified/downloaded stat_sys_battery_charge.xml and stat_sys_battery.xml into subfolder /res/drawable/ (where you deleted the original of gingerbread before!)
go back to apk manager and type 11 to compile your framework
when it asks "is this a system apk?", type Y for yes. confirm again with Y and let apk manager create a new folder, called "keep". a list of files appears, and after that DON'T CONFIRM!!!
first you have to navigate into this "keep" folder and delete again exactly what you deleted above (stat_sys_battery_X.png, stat_sys_battery_charge_animX.png, stat_sys_battery_unknown.png, stat_sys_battery_charge_animfull.png, stat_sys_battery.xml, stat_sys_battery_charge.xml) and ADDITIONALLY the file resources.arsc
now you can confirm in apk manager to complete the compiling process. as far as i know, these steps with keep folders are needed to include the right id's automatically in public.xml! if any errors occur, feel free to post your log in this thread (see log by typing 21 in apk manager)
flash your new created framework-res.apk by entering 8.
if you didn't anything wrong, you should have your new % battery icons after reboot! as mentioned before, your desktop background maybe messed up and/or your accounts are deleted. you can solve this by just readd accounts and change background again.
Those ID's are hexadecimal numbers (dictated by the 0x prefix), and are sequential:
0 - 17302168
10 - 17302169
100 - 17302170
20 - 17302171
40 - 17302172
60 - 17302173
80 - 17302174
RJackson said:
Those ID's are hexadecimal numbers (dictated by the 0x prefix), and are sequential:
0 - 17302168
10 - 17302169
100 - 17302170
20 - 17302171
40 - 17302172
60 - 17302173
80 - 17302174
Click to expand...
Click to collapse
thx for your explanation! but i found out that it isn't necessary to edit public.xml. on decompiling, it adds automatically the missing lines when png's are listed in stat_sys_battery.xml...
finally i got it working if someone else wants the 1% increments, i can write a little tutorial.
Yea very interested. I can't stand the stock one. I knew how to do all the theming stuff on sd builds using the theme porters. Nand is different though. So please write that up, also will you post your battery mod for gingerbread
HOWTO added in 1st post!
fruchtfliege said:
HOWTO added in 1st post!
Click to expand...
Click to collapse
Thanks for the tutorial. Question though, is this for sd builds or for nand? Or does it not matter?
it is only for nand-builds. on sd-builds it should be similar, but afaik you don't have to adb the framework-res.apk. you should find here a lot of threads about modifying sd-build statusbars, because it is not that hard like on nand builds.
Cool, I'm using nand. Yea through sd builds thing stuff was easy. I couldn't change the compression in the emulator. How were you able to change it? Also is that framework at the bottom the one we use to achieve what the picture looks like?
Background changed and accounts gone as mentioned, but it worked perfectly - well worth it!
How did you change the compression when running the batch file?
Edit: Nevemind im retarded.
When i press the 9 to decompile it it gives me some B.S error Saying could not find C:\place-apk-here-for-modding.... The directory name is invalid. Could someone make this work on JDMS nand build?
Alos when i pull the framework res file from my phone it doesnt show up in "projects" Theres nothing in there. However it does show up in "place-apk-here-for-modding" folder..
Alos when i pull the framework res file from my phone it doesnt show up in "projects" Theres nothing in there. However it does show up in "place-apk-here-for-modding" folder..
Click to expand...
Click to collapse
the adb pulled apk files are stored in "place-apk-here-for-modding" folder, not in projects! a project in this folder will only be created after decompiling an apk!!!
Also is that framework at the bottom the one we use to achieve what the picture looks like?
Click to expand...
Click to collapse
you just get the statusbar at top (in fact only + battery icon). the bottom icons and background are custom with using launcher pro.
Can you think of a certain reason why i keep getting an error when i try to decompile it?
This is the error i get
--------------------------------------------------------------------------
|Wed 01/19/2011 -- 20:11:24.04|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.
1631 KB/s (4121004 bytes in 2.466s)
Could Not Find C:\Users\Matt\Desktop\New folder\place-apk-here-for-modding\../pl
ace-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\Matt\Desktop\New folder\place-apk-here-for-modding\../pl
ace-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
i think you have to install java sdk. without it, the compiling tools are not included, like on jde (i think it's called jde...)
but i'm going to make flashable zips of these files for clockwork mod. only problem is, that i don't know much about linux commands i couldn't get it working. i should start a new thread asking about this.
If you jump on irc you would get your answer in like 5secs. Room is #htc-linux-chat on freenode. Thanks for the suggestion about sdk. That does make sense now that I think about it;p
thank you for the hint. i will ask for help at chat tomorrow. i'm also working on different statusbar colours of gingerbread with original icons. before release i have to get this cwm zip flash thing working!
fruchtfliege said:
at first, it would be nice if any mod can modify the title to: [HOWTO] 1% battery mod on gingerbread and delete all following posts.
Click to expand...
Click to collapse
Just a heads-up mate - you obviously can't delete any posts, but you can change the title. Edit the first post and go into advanced mode to change it.
Good luck with your project
thank you! i have changed the title now.
Hey Fruit Fly, any progress on that cwm zip?
not really. i forgot my hd2 at home (i do theme works at work) and couldn't test the cwm zip files. on sunday evening i can test everything and tell you whats working and what not!
rafpigna from #htc-linux-chat gave me another choice of flashing easy with an adb script (thank you for that). but some users on german android forum told me it's not working. have to bugfix the files first
Yea let me know the outcome;p

Make On Screen Buttons smaller

Hi,
I got here a rooted Xperia Z, and I asked myself it its possible to easily make the navigation bar (back,home,window manager) smaller than original.
Just to save some screen
I read something like you have to modify apk´s and change system files, can anyone maybe explain it in detail?
Or maybe there is already an app for it, which can change the size on the fly?
Thank you!
I cant give you a tutorial since I dont have the phone yet,but you should look into /System/build.prop, usually that is where the dpi is changed so you should look into code that has dpi or navbar in it. Other than that,you could look into Framework.jar but I used to soft brick my phone when I fiddled with stuff I don't understand so be careful. Anyway,you'll need root and I think build.prop gets rebuilt to default every time you reboot so you need some kind of mod to keep it changed. In a month or so we are gonna have Paranoid android ported so you will be able to change everything from the settings
On my Xperia T JB, you must change some files in /system/framework/framework-res.apk, you must also make some changes to /system/app/SystemUI.apk
I'm no expert (yet) so I can't help much after that..
xanthos84 said:
Hi,
I got here a rooted Xperia Z, and I asked myself it its possible to easily make the navigation bar (back,home,window manager) smaller than original.
Just to save some screen
I read something like you have to modify apk´s and change system files, can anyone maybe explain it in detail?
Or maybe there is already an app for it, which can change the size on the fly?
Thank you!
Click to expand...
Click to collapse
Yeah u can change the size!
you need to use apktool to edit framework-res.apk! Just tell me, do u know how to use apktool?
If yes then I will post the full tutorial step by step!
If No then I will post a few links along with the tut!
Btw u just need to edit framework-res.apk! No systemUI editing is required!
As for the dpi - if u change the dpi in the build.prop then its changed for the whole system, not only for the navigation bar! I had tried it once! My neo v 's default dpi is 240 and I decreased it to 140 - result- xperia home went crazy! Lolz!
Sent from my »Neo V«
Dev Jaskirat said:
Yeah u can change the size!
you need to use apktool to edit framework-res.apk! Just tell me, do u know how to use apktool?
If yes then I will post the full tutorial step by step!
If No then I will post a few links along with the tut!
Btw u just need to edit framework-res.apk! No systemUI editing is required!
As for the dpi - if u change the dpi in the build.prop then its changed for the whole system, not only for the navigation bar! I had tried it once! My neo v 's default dpi is 240 and I decreased it to 140 - result- xperia home went crazy! Lolz!
Sent from my »Neo V«
Click to expand...
Click to collapse
Hi Neo and thanks for your reply!
I am quite new to Android, so I have no experience into apktool.
Looking forward for your tutorial!
Thanks!
How TO Get Smaller Soft Keys
Bro You can call me DJ!
Neo V is the name of my device !! Sony Xperia Neo V!
By the way tell me if it works for you i will post it in the XZ dev section too for others!
Already did !- http://forum.xda-developers.com/showthread.php?p=38503045
Let's Begin:
First of all make a backup of your rom by going into the recovery ! Its good to have one incase something goes wrong!
To DO on your XZ-
1) Install root explorer
2) Navigate to system/framework/
3) Copy 'framework-res.apk' and 'SemcGenericUxpRes.apk' from that location to your SDcard.
4) Now connect your XZ to your PC.
To DO on your PC-
1) Install apktool v3 [you can find it easily on google! ]
2) After you are done with installing apktool open a cmd window in that location [ you can do that by right clicking in that window while keeping the shift key pressed, then click on the open command window here option from the drop down menu which appers].
3) Copy framework-res.apk and SemcGenericUxpRes.apk from your SDcard to your PC to the location where your apktool files are present.
4) Now in the cmd window which you opened earlier you need to type some commands -
apktool if framework-res.apk
now press 'enter key'
then
apktool if SemcGenericUxpRes.apk
press enter
The above 2 lines have installed the framework-res.apk and SemcGenericUxpRes.apk to your system which the apktool will later use as resources to decompile the framework-res.apk
now we need to decompile the framework-res.apk, for this type
apktool d framework-res.apk framework-res
it will perform a series of functions just wait for it till its finished!
when its done you will see that there is a new folder 'framework-res' in the window[location] where you have installed the apktool!
navigate to framework-res/res/values/
open dimens.xml using noteped++[yeah forgot to say that you need to install this too! ]
look for the lines 'navigationbar height' and navigationbar width'
the default size would be 48! just reduce it to what ever you want! 28 is recommended by me ! height = 28 and width= 24
Save the changes.
Now switch to the cmd window again
We are going to re-compile the framework-res.apk-
type-
apktool b framework-res framework-res-new.apk
when its done then you will have the new framework-res-new.apk with smaller softkeys!
5) Now copy it to your SDcard
6) Disconnect your XZ
7) Open root explorer in your XZ.
8) Copy the 'framework-res-new.apk' to your system/
9) Long press it and click on permissions
10) set it to rw-r--r--[1st row + + - ; 2nd row + - - ; 3rd row + - -][+ means ticked and - means unticked]
11) once done , rename the 'framework-res-new.apk' to 'framework-res.apk'.
12) Copy it to system/framework/
13) Press Yes when it asks to replace the original.
14) Then reboot your XZ [it might force reboot itself].
15) Done! now you have smaller softkeys!
Press the thanks button below if you found this helpful! It was quite difficult to type!
Dev Jaskirat said:
Bro You can call me DJ!
Neo V is the name of my device !! Sony Xperia Neo V!
By the way tell me if it works for you i will post it in the XZ dev section too for others!
Already did !- http://forum.xda-developers.com/showthread.php?p=38503045
Let's Begin:
First of all make a backup of your rom by going into the recovery ! Its good to have one incase something goes wrong!
To DO on your XZ-
1) Install root explorer
2) Navigate to system/framework/
3) Copy 'framework-res.apk' and 'SemcGenericUxpRes.apk' from that location to your SDcard.
4) Now connect your XZ to your PC.
To DO on your PC-
1) Install apktool v3 [you can find it easily on google! ]
2) After you are done with installing apktool open a cmd window in that location [ you can do that by right clicking in that window while keeping the shift key pressed, then click on the open command window here option from the drop down menu which appers].
3) Copy framework-res.apk and SemcGenericUxpRes.apk from your SDcard to your PC to the location where your apktool files are present.
4) Now in the cmd window which you opened earlier you need to type some commands -
apktool if framework-res.apk
now press 'enter key'
then
apktool if SemcGenericUxpRes.apk
press enter
The above 2 lines have installed the framework-res.apk and SemcGenericUxpRes.apk to your system which the apktool will later use as resources to decompile the framework-res.apk
now we need to decompile the framework-res.apk, for this type
apktool d framework-res.apk framework-res
it will perform a series of functions just wait for it till its finished!
when its done you will see that there is a new folder 'framework-res' in the window[location] where you have installed the apktool!
navigate to framework-res/res/values/
open dimens.xml using noteped++[yeah forgot to say that you need to install this too! ]
look for the lines 'navigationbar height' and navigationbar width'
the default size would be 48! just reduce it to what ever you want! 28 is recommended by me ! height = 28 and width= 24
Save the changes.
Now switch to the cmd window again
We are going to re-compile the framework-res.apk-
type-
apktool b framework-res framework-res-new.apk
when its done then you will have the new framework-res-new.apk with smaller softkeys!
5) Now copy it to your SDcard
6) Disconnect your XZ
7) Open root explorer in your XZ.
8) Copy the 'framework-res-new.apk' to your system/
9) Long press it and click on permissions
10) set it to rw-r--r--[1st row + + - ; 2nd row + - - ; 3rd row + - -][+ means ticked and - means unticked]
11) once done , rename the 'framework-res-new.apk' to 'framework-res.apk'.
12) Copy it to system/framework/
13) Press Yes when it asks to replace the original.
14) Then reboot your XZ [it might force reboot itself].
15) Done! now you have smaller softkeys!
Press the thanks button below if you found this helpful! It was quite difficult to type!
Click to expand...
Click to collapse
Thank you for posting!
I will try this later!!

[Q] Theming for Sense 5

I am very very new to theming, I have never tried to create a theme myself but it is something that I would like to get started in. I did some searching and found basic Android theming how-tos and other threads, I want to theme for the HTC One however, and have been unable to find any how-tos specific to Sense (5).
I want to start basic, with status bar modifications (Signal bars, data, time, etc.) and notification theming. If anyone has any threads that would be helpful or any advice, I would very much appreciate it.
Thank you in advance for any help
-Kyle
There isn't a thread for this (i mean sense 5), but there is for the prism.apk (sense).
Notification bar is SystemUI.apk, and some file and png are in framework-res.apk too
Ah, i advice you to use VTS (virtuous ten studio)!
So, I have been trying to edit/modify the Signal Icons...... Starting small to get used to everything.
These are the steps I performed
-decompiled the SystemUI.apk using APK Multi-Tool
-edited the .png files for the signal bars (the only ones i could find, located in drawable-hdpi inside of the res folder)
-zipped the apk
-pushed the new SystemUI.apk in recovery using adb:
-"adb reboot recovery"
-mounted /system in recovery
-"adb push SystemUI.apk /system/app/"
-"adb shell"
-"chmod 0644 /system/app/SystemUI.apk"
-"exit"
-"adb reboot"
Nothing was changed! I even did a second reboot just to be sure, low and behold NOTHING!
If someone could let me know what i did wrong or layout a step by step for what I should have done I would appreciate it.
I advice to use VTS.
So:
1) Icon are in
Code:
drawable-xxhdpi
2) Recompile de apk with apktool or vts and singning this.
3) Push it in android and reboot, is more fast, don't reboot into recovery

[APK] [MOD] [7.1.1] SystemUI + framework-res | New Material Design Visuals

Hey guys,
This is a mod to the SystemUI on a ROOTED Nexus 6P running ONLY build NPF10C, under Android 7.1.1 for new material design visuals and all the original shades of teal replaced with that of blue.
WARNING
Make sure you take a nandroid backup (TWRP backup) before you jump into it, just in case. Also, I'm not to be held responsible if you screw up.
BUGS
None. Let me know if you find any.
REQUIREMENTS
1. A Nexus 6P
2. Running Android N 7.1.1.
3. Build - NPF10C
4. ROOT (make sure SuperSu is installed)
5. 10 minutes of your time
6. Patience
- This modded apk is only for new visuals - doesn't bring in any performance tweaks - is only for the ROOTED Nexus 6Ps.
- Screenshots have been attached below.
- It's quite simple despite the length of the guide. Just start doing it and you'll be done sooner than you think.
GUIDE TO INSTALL
1. Download all the 3 files (the last one being the wallpaper - ain't mandatory) from the following link:
https://drive.google.com/folderview?id=0B9r0v05JMxjAX253WWJ3Mk1Pb2s
2. Download Root Explorer from the Play Store (recommended)
3. Copy both the APKs onto the internal storage of your Nexus 6P
4. Open Root Explorer and grant it SuperSu (root) access
5. PART - A for SystemUI.apk
A. Copy SystemUI.apk from your internal storage into /system/priv-app/ (allow mount system as R/W)
B. Press and hold on it - tap the three dots on the top right corner of the screen - tap on Permissions
C. Tap Enter Octal and key in 0644 which signifies rw-r--r--
D. Copy and replace SystemUI.apk from /system/priv-app/ into /system/priv-app/SystemUI
E. Your device may reboot automatically; if not, perform a reboot
6. PART-B for framework-res.apk (replaces teal with blue everywhere)
A. Copy framework-res.apk from your internal storage into /system/
B. Press and hold on it - tap the three dots on the top right corner of the screen - tap on Permissions
C. Tap Enter Octal and key in 0644 which signifies rw-r--r--
D. Copy and replace framework-res.apk from /system/ into /system/framework/
F. By now you'd get an ANR message saying your Play Services Framework crashed - overlook it and simply reboot to view the changes
Cheers and all comments and suggestions are welcome. Let me know if you want me to make any changes / include some new features.
theGeekyLad said:
Hey guys,
This is a mod to the SystemUI on a ROOTED Nexus 6P running ONLY build NPF10C, under Android 7.1.1 for new material design visuals and all the original shades of teal replaced with that of blue.
WARNING
Make sure you take a nandroid backup (TWRP backup) before you jump into it, just in case. Also, I'm not to be held responsible if you screw up.
BUGS
None. Let me know if you find any.
REQUIREMENTS
1. A Nexus 6P
2. Running Android N 7.1.1.
3. Build - NPF10C
4. ROOT (make sure SuperSu is installed)
5. 10 minutes of your time
6. Patience
- This modded apk is only for new visuals - doesn't bring in any performance tweaks - is only for the ROOTED Nexus 6Ps.
- Screenshots have been attached below.
- It's quite simple despite the length of the guide. Just start doing it and you'll be done sooner than you think.
GUIDE TO INSTALL
1. Download all the 3 files (the last one being the wallpaper - ain't mandatory) from the following link:
https://drive.google.com/folderview?id=0B9r0v05JMxjAX253WWJ3Mk1Pb2s
2. Download Root Explorer from the Play Store (recommended)
3. Copy both the APKs onto the internal storage of your Nexus 6P
4. Open Root Explorer and grant it SuperSu (root) access
5. PART - A for SystemUI.apk
A. Copy SystemUI.apk from your internal storage into /system/priv-app/ (allow mount system as R/W)
B. Press and hold on it - tap the three dots on the top right corner of the screen - tap on Permissions
C. Tap Enter Octal and key in 0644 which signifies rw-r--r--
D. Copy and replace SystemUI.apk from /system/priv-app/ into /system/priv-app/SystemUI
E. Your device may reboot automatically; if not, perform a reboot
6. PART-B for framework-res.apk (replaces teal with blue everywhere)
A. Copy framework-res.apk from your internal storage into /system/
B. Press and hold on it - tap the three dots on the top right corner of the screen - tap on Permissions
C. Tap Enter Octal and key in 0644 which signifies rw-r--r--
D. Copy and replace framework-res.apk from /system/ into /system/framework/
F. By now you'd get an ANR message saying your Play Services Framework crashed - overlook it and simply reboot to view the changes
Cheers and all comments and suggestions are welcome. Let me know if you want me to make any changes / include some new features.
Click to expand...
Click to collapse
Any possiblity of doing this inverted???
suzook said:
Any possiblity of doing this inverted???
Click to expand...
Click to collapse
Could you give me a wee more detail of what exactly you mean??
theGeekyLad said:
Could you give me a wee more detail of what exactly you mean??
Click to expand...
Click to collapse
Black backgounds, and white lettering.
Hi, first off, thank you so much for your effort and contribution.
Second, hope you dont take this the wrong way, how does your mod differs from this one in terms of adding "blue accent"? Is that all your mod does so to speak?
http://forum.xda-developers.com/nexus-6p/general/flashable-zip-night-light-round-icons-t3486794
Let me know, just to know if it will change anything as I use that one (I love the blue accent, it should have been like that from Lollipop or Marshmallow first releases).
Many thanks!
MidnightDevil said:
Hi, first off, thank you so much for your effort and contribution.
Second, hope you dont take this the wrong way, how does your mod differs from this one in terms of adding "blue accent"? Is that all your mod does so to speak?
http://forum.xda-developers.com/nexus-6p/general/flashable-zip-night-light-round-icons-t3486794
Let me know, just to know if it will change anything as I use that one (I love the blue accent, it should have been like that from Lollipop or Marshmallow first releases).
Many thanks!
Click to expand...
Click to collapse
Hello MidnightDevil!
This post is
I. Different on grounds that,
1. The Nav bars are blue
2. Not yet tested with the Pixel Launcher
3. The status bar has a graphic when you pull it down
II. Similar on grounds that,
1. The theme is blue
2. The status bar has the same dark grey theme
Thanks for letting me know! Yet there are a few areas this one's different.
suzook said:
Black backgounds, and white lettering.
Click to expand...
Click to collapse
Quite possible. Will get back to you if any luck!
Thanks suzook!
theGeekyLad said:
Hello MidnightDevil!
This post is
I. Different on grounds that,
1. The Nav bars are blue
2. Not yet tested with the Pixel Launcher
3. The status bar has a graphic when you pull it down
II. Similar on grounds that,
1. The theme is blue
2. The status bar has the same dark grey theme
Thanks for letting me know! Yet there are a few areas this one's different.
Click to expand...
Click to collapse
Thank you so much, sounds like it sort of compliments besides adding the blue accent.
I'll back up and give it a go, hopefully the mods won't conflict .
Many thanks!
Does not conflict with mods, but it does overnight what you have. I had night mode, 4 tiles shade and nav bar tuner. It's gone now. Trade off.
Sent from my Pixel XL using Tapatalk
Part A successful but when i try to part B my system cannot to RW,click mount RW in root explorer but it not changed. Weird
Edit : fixed it by manual replacing via TWRP
Request : can you change top of quick setting with default one and deleted it "nougat" in lockscreen.?
Btw Thanks for your hard work, i feel iam running pixel right now.
ariefabuzaky said:
Part A successful but when i try to part B my system cannot to RW,click mount RW in root explorer but it not changed. Weird
Edit : fixed it by manual replacing via TWRP
Request : can you change top of quick setting with default one and deleted it "nougat" in lockscreen.?
Btw Thanks for your hard work, i feel iam running pixel right now.
Click to expand...
Click to collapse
Thanks a lot for your input! And yes I'll make those changes for you, will let you know as soon as it's done!
can someone send me stock systemui apk?
OGWAUN said:
can someone send me stock systemui apk?
Click to expand...
Click to collapse
Check SyCreed's SystemUI tweaks. There's a flashable stock SystemUI in his list of downloads
ariefabuzaky said:
Part A successful but when i try to part B my system cannot to RW,click mount RW in root explorer but it not changed. Weird
Edit : fixed it by manual replacing via TWRP
Request : can you change top of quick setting with default one and deleted it "nougat" in lockscreen.?
Btw Thanks for your hard work, i feel iam running pixel right now.
Click to expand...
Click to collapse
Hey ariefabuzaky,
I've made the changes that you wanted and uploaded the new SystemUI.apk, link of which is given below. Also, I've got some screenshots up for your reference!
Cheers!
Download: https://drive.google.com/open?id=0B9r0v05JMxjAN1JJMk5MQndCX2M
theGeekyLad said:
Hey ariefabuzaky,
I've made the changes that you wanted and uploaded the new SystemUI.apk, link of which is given below. Also, I've got some screenshots up for your reference!
Cheers!
Download: https://drive.google.com/open?id=0B9r0v05JMxjAN1JJMk5MQndCX2M
Click to expand...
Click to collapse
Thanks you very much dev
Cool wallpaper
bckrupps said:
Cool wallpaper
Click to expand...
Click to collapse
Thanks bckrupps! :good:
theGeekyLad said:
Thanks a lot for your input! And yes I'll make those changes for you, will let you know as soon as it's done!
Click to expand...
Click to collapse
Could you implement the navbar animation as on Pixel?
Pixel Navbar Animation
You may refer: integrate pixel system ui
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := SystemUIGoogle
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_OVERRIDES_PACKAGES := SystemUI
LOCAL_CERTIFICATE := platform
LOCAL_MODULE_OWNER := google
LOCAL_DEX_PREOPT := false
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_PRIVILEGED_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := SettingsGoogle
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_OVERRIDES_PACKAGES := Settings
LOCAL_CERTIFICATE := platform
LOCAL_MODULE_OWNER := google
LOCAL_DEX_PREOPT := false
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_PRIVILEGED_MODULE := true
include $(BUILD_PREBUILT)
Is it possible to use this mod with stock colored pixel nav button? I like it but wouldn't want blue buttons.
alifmohammadmagdy said:
Is it possible to use this mod with stock colored pixel nav button? I like it but wouldn't want blue buttons.
Click to expand...
Click to collapse
Yes it's possible, working on an update. Will be up soon!
I'll keep you posted. [emoji4]
Sent from my Pixel XL using Tapatalk

Building Your Own LG Themes

Introduction
This is going to be a long post! A few weeks ago I started thinking about making my own themes for my LG G5. I had installed some custom roms previously and used substratum a bit but I have always ended up going back to xpirt's Fulmics rom, which doesn't allow this. I started to think how I could do this and have today got to the first stage of being able to change the colours of my phone to precisely what I want, not only for the settings but in some of the stock apps. I thought I would share this with the community and provide some step by step instructions so you can try it yourself. This should work on LG G6, V10, V20 & V30 if you use an app made for these phones but I have no way of testing this so don't hold me to it. This has taken me about 5 full days to work this out and there is still more that I need to do.
I am not in anyway a developer or coder and have very little knowledge of Java so if anything goes wrong here it is likely that I will not be able to help you. I absolutely am a noob at this and do this only for a hobby, using just my common sense and our friend Google to overcome the problems I have come across. Saying that, I will try to offer assistance if I can.
I managed to make my theme from reverse engineering a free LG theme app that was readily available. If you do this method though please consider getting approval from the app developer first. There is a template on here posted by Raafat here. While this was helpful it was only basic and I could not work out exactly what to do. Reverse engineering an app was much easier. Here is how I did it with step by step instructions:
******DISCLAIMER******
I am in not responsible for what you do to your phone. If you decide to try and theme your phone make a backup first or be prepared to do a full reset if anything goes wrong. You do this at your own risk.
1. Programmes
The programmes/software needed for theming are:
• Notepad++
• Apktool
• Android Studio (I used version 2.3 as I was getting an error on re-signing with 3.0)
2. Installing Frameworks Using Apktool:
• Firstly, delete the files in your local temp directory. To do this open ‘Search’ and type in %temp% and delete all files in this folder. You may not be able to delete some of the files. This does not matter
• Next, extract the framework files from your rom/custom rom. For Fulmics 5.5 this was:
Frameworks-res.apk
lge-res.apk
• At a guess I would say that any rom will have these files named exactly as they are above, but I am not sure if these have been altered by xpirt for his rom so you may not be able to use them across other roms.
• Open a command prompt and navigate to the folder where the framework files are kept. This is easiest in a folder called C:/apktool so create a folder in your C:/ drive and place them there. You can of course name the folder or locate it where you want though.
• Use apktool to install the frameworks using this command in the command prompt in C:\apktool
apktool if framework-res.apk
apktool if lge-res.apk
• Once this is done you should find the following files Installed here: C:\Users\[your username]\AppData\Local\apktool\Framework
1.apk
2.apk
• If, like me, you get an error with apktool that says it cannot write to C:\Users\[your username]\AppData\Local\apktool\Framework and instead has placed them in the temp folder then go into the Local folder using the pathway above and create a folder called 'apktool' and then a subfolder called 'framework'. Try the commands again and it should then work.
• You should also find the following files in the C:\apktool folder (if that is the folder you are using). If they are not here you may have to copy and paste them from the apktool github download.
apktool.jar
apktool.bat
• If you have found these files then you are set to go with decoding the theme/app you have chosen as a basis to amend.
3. Decoding APKs Using Apktool
• Download the apk/app you want to use. I used Backup and Restore app from Play to get the app I wanted to use onto my PC. Once you have this on your PC place the main APK/app in the same folder as the apktool.bat and the apktool.jar (for me this this was C:\apktool)
• Point the command prompt at this place and type the following:
apktool d [app name]
• A folder with the name of the app you just decoded will appear in the directory that you use (in this case C:\apktool)
• In this folder you should find another folder called assets. There may be more sub APKs here in subfolders. This subfolder will likely be assets>overlays
• All the sub APKs in here will have to be decoded otherwise you will have different signing keys and the app, once compiled again, will not work. Decode all the sub APKs in this same folder. You will have to copy the following files to the folder you are decoding the sub APKs in. These are:
apktool.jar
apktool.bat
• Decode every sub apk using the command apktool d [sub_apkname]
• You should now have the same number of folders in the drive as the number of sub APKs, if you decoded them all.
4. Changing the Colours and other Themes from the Decoded APKs Using Notepad++
• Many theme APKs will have internal APKs, such as common, settings, phone, systemui, calendar etc, etc. This is what I have worked out so far:
Common: Changes the switches, brightness bar and the text headings in settings, changes swipe left panels in apps such as gallery, changes background, message icon & phone icon colour in contact/phone app, statusbar background, separating lines in settings (some themes do not have these), background bar of setting title (i.e. wireless network, device etc), settings text colour, secondary text (i.e. the text you see under Wifi and Bluetooth which shows you what you are connected to), the headings in apps such as clock where it shows 'Alarm' 'World Clock' 'Timer' etc
System UI: Changes the quick settings tiles & text and the non-heading text in settings
• To change the colour of these you have to amend the colors.xml located in one of the folders in the assets>overlays and then the folder of the overlay you want to change. I used Notepad++ to do this. Navigate to 'res' folder and then usually something like 'values-xxxhdpi-v4'. There is sometimes more than one color.xml file so you may need to look in more than one folder and amend all the color.xml files. The colours are at the end of the lines of text and will be standard Android colour coding, such as ffffffff (white) or 00000000 (black) or any other colours.
5. Building APKs & Signing with Android Studio
• If you are building the sub APKs from an app (these are the ones inside an APK such as common, systemui, phone etc) I found it best to use a different folder. For this I used C:\apktool builder
• Copy and paste the folder from the decoded APK (e.g. the [appname].LGE.common folder) that is in the asset>overlays folder to the apktool builder folder above
• Once you have made the colour amendments it is time to build the amended themes. To do this you will need Android Studio
• Open the splash screen of Android Studio and instead of the 'Open' command use the 'Import Project' command and navigate to the folder you want to import
• When opening Android Studio you have to configure the frameworks otherwise you will not be able to sign the app. This warning should come up automatically. THIS MUST BE DONE FOR IT TO WORK
• Navigate and find your APK in apktool builder and import it. If you do this more than once you will be prompted to overwrite the settings a few times.
• Go to ‘Build’ along the top and choose ‘Generate Signed APK’. If this is the first time it will ask for the Key Store Path. You will need to choose ‘Create New’. Select a place to store this key (I chose C:\apktool Builder) and input the passwords and the other data in the boxes. You must put a two-digit country code in the last box, for example US, UK etc). For ease I kept most of these very simple. For example, password was 'asdfgh'
• Once this has been completed and if there are no errors (warnings are ok) then it will generate a signed sub APK and save it to the location you are in (in this case C:\apktool builder). Copy and paste that sub APK over the one in the C:\apktool folder where the original sub APK was kept.
• Once you have done this then you need to sign the main app APK. Do the same as above and build in Android Studio. If there are no errors it will save it to your directory (in my case C:\apktool\[app name].
• Copy and paste this APK into your phone, apply the theme and it should work.
Everytime you amend a sub apk you will have to re-sign it through Android studio and then re-sign the main app apk. Once you get the hang of it though it is fairly straight forward.
6. Other Things
Nothing else in the app will change at this point. The name, wallpaper jpegs, screenshots and icons will all be the same. I am working on this at the moment but they don't actually need changing that much. The difficult thing for me is how to change the 9.png icon files and still get them to work. Once I have worked this out I will be able to finish it off.
7. Screenshots
Attached are some screenshots of how my phone now looks. I have made a few different apk's with different colours so I can now change this daily if I want a change (see post 2 for updated screenshots).
8. Thanks/Credits
@xpirt - Made it easy to get the framework files I needed for apktool and for a great custom rom!
@Raafat - for giving me the idea and the initial information
@iBotPeaches - for developing apktool.
.
Building Your Own LG Theme
I've been able to fine tune the themes over the past few weeks and have been able to colour the settings icons on the main settings page as well as putting a background behind it. I've also been able to theme the switches initially getting over a problem of the 'off' switch not showing. Here is some updated screenshots of a green/grey&blue theme.
I've also attached the updated blue & red theme from the initial post. I've not fully completed this yet though as I started to concentrate on the green/grey&blue theme as I preferred that.
Could someone make a stock theme just dark? I found one on play store but is not the best thing (it changes system sounds and other things that i don't like) I'd like a full stock theme but dark. Thanks in advance
Help
Can you help me? I tried changing package names in .json file and added new icons in the theme. I don't understand why it is failing on apply. It was running properly with only color change before doing this.
[email protected] said:
Can you help me? I tried changing package names in .json file and added new icons in the theme. I don't understand why it is failing on apply. It was running properly with only color change before doing this.
Click to expand...
Click to collapse
Here is the apk.
I probably won't be able to get round to this until the weekend due to work commitments but will have a look and let you know.
strikerman10 said:
I probably won't be able to get round to this until the weekend due to work commitments but will have a look and let you know.
Click to expand...
Click to collapse
Take your time, and thanks. ?
[email protected] said:
Take your time, and thanks. ?
Click to expand...
Click to collapse
In case you haven't checked the apk I provided earlier, I have found and fixed some package name errors but the result is still same. It get stuck at 90% and then fails. I have changed icons too, is there anything needed to do in public.xml ? New apk is attached below.
strikerman10 said:
I probably won't be able to get round to this until the weekend due to work commitments but will have a look and let you know.
Click to expand...
Click to collapse
Did you took a look at it?

Categories

Resources