[Q]changing dim level and lowest brightness in auto mode - Nexus S Q&A, Help & Troubleshooting

Hello
I am Using KANGYS ICS rom
1. i would like to increase the display DIM level or disable it
2. i would like to rise the lowest level of the brightness in the Auto mode
i found out that the voodoo color go crazy in low brightness
so i want the auto min level will be 10%+ instead of 0%
the option exit in CM7 so there is probably a file that can be edit to the new values
Thanks for any help

anyone ?
still waiting for someone to response

Try looking in framework-res.apk/res/values/arrays.xml There should be an array called autoBrightnessLcdBacklightValues or something like that.

thanks but this path or file does not exists in this APK file

Zivonche said:
thanks but this path or file does not exists in this APK file
Click to expand...
Click to collapse
Did you use apktool to decompile the file?

hey sorry i didnt update
yes as soon as i decompile i found it
now for some reason i get an error compiling it back with APK manager
is there other manager to compile APK easily?

You can try following this thread, but I don't guarantee that it will work

Related

Theming problems, anyone lend a hand?

Im running into some problems while trying to to theme the framework-res.
Im using apk manger to decompile the apk, so far ive only tried changing the zzz_buttons that go in the drop down bar.
I recompile the apk ect...
But i keep getting force closes "'tw_quick_panel" and then everything else, when i apply the apk via root explorer.
Also, which values in the xml do i edit so all the fonts are white, and the menus are black.
Does anyone want to team up with me and help me make a theme, i can do all the graphics, but im not really sure what to edit in the XMLs and im obviously doing something wrong when compiling
Thanks.
Hi natious
I think my posts in this thread will help:-
http://forum.xda-developers.com/showthread.php?t=942618
its not on color but its a general guide on how to modify framework-res.apk
To change font color; you have to specify which text? ; there are several categories of text in the framework; title bar, notification bar, menus , sub menus system app, etc....
also, you have the same with background colors, its not a single value and its cannot be changed with changing single value; some apps have their own background pngs
xml deals with colors located in colors, drawable, layout and values directories
res\values\styles.xml is the main layout styling and theming xml
i can apply any changes you want, if help
good luck with theming....
Hi there as far as i understand, you are supposed to push the frame-res.apk by using command:
adb push framework-res.apk DESTINATION_FOLDER.
Copying might not work, plus this has to do from the recovery.
Hope this helps.
Galaxyer said:
Hi natious
I think my posts in this thread will help:-
http://forum.xda-developers.com/showthread.php?t=942618
its not on color but its a general guide on how to modify framework-res.apk
To change font color; you have to specify which text? ; there are several categories of text in the framework; title bar, notification bar, menus , sub menus system app, etc....
also, you have the same with background colors, its not a single value and its cannot be changed with changing single value; some apps have their own background pngs
xml deals with colors located in colors, drawable, layout and values directories
res\values\styles.xml is the main layout styling and theming xml
i can apply any changes you want, if help
good luck with theming....
Click to expand...
Click to collapse
Thanks for the reply, i will give that stuff a try later tonight.
Do i have to push the framework back to the phone via adb, or is just replaceing it with root explorer fine.
Is it possible to see the changes on a virtual device rather than having to send it to the phone.
Thanks for your help, if i run into anymore problems do you mind if i pm you questions lol
Thanks.
Do i have to push the framework back to the phone via adb, or is just replaceing it with root explorer fine.
Click to expand...
Click to collapse
If u manage to push via adb in recovery mode, then thats the best method of reverting stuff if it fails..If u copy/replace via root explorer you better be sure you have done all correct, else ull be flashing factoryfs.rfs unlimited times..
If u have root permissions in recovery mode, ill would use that method..
biopsin said:
If u manage to push via adb in recovery mode, then thats the best method of reverting stuff if it fails..If u copy/replace via root explorer you better be sure you have done all correct, else ull be flashing factoryfs.rfs unlimited times..
If u have root permissions in recovery mode, ill would use that method..
Click to expand...
Click to collapse
Well I've just being restoring a system back I have via cwm, for some reason adb isn't working on my computer it was no server found, I have the sdk installed
Sent from my Galaxy Tab of awsomeness
I see, haven't looked at CWM yet so i dont know how it operates, but what i've red is u can make update.zip files and push it with cmw if im not misstaken.
Im still fumbling with the framework and hopefully the dialer can be corrected when running with low density setup..

Automatic light adjustment

Dear developers,
The automatic light adjustment drives me crazy. It's too bright if it levels completely down...can anybody tell me in which file I can change the value for this problem? I've read that it should be possible in the arrays.xml, which is placed in the framework-res.apk...but it doesn't exist ....I'm using android revolution hd 3.1.0....please help
Sent from my HTC Sensation Z710e using XDA ApP
I've got the same problem! A way to modify the offset would be nice!
Thx
Sent from my HTC Sensation Z710e using XDA App
In order to edit the arrays.xml you have to decompile the apk using apk manager.
If you want, upload your framework-res.apk and ill edit it for you
Sent from my Desire HD using XDA App
APK Manager 4.8 error on compiling framework-res.apk
Hello and thanks for your quick reply!
Ive downloaded 4.8 and I put the framework-res.apk in "place-apk-here-for-modding" ...
Then I started Script.bat ... "Java was not found, you will not be able to sign apks or use apktool"...
I set the current project (option 22) where i found my framework-res.apk.
Then I wanted to decompile ... option 9 and 10 failed!
Would you please give me a little tutorial on modding my apk?
Its just because I like doing things my self ...
Thanks!!!!!!!!!
mcstieg said:
Hello and thanks for your quick reply!
Ive downloaded 4.8 and I put the framework-res.apk in "place-apk-here-for-modding" ...
Then I started Script.bat ... "Java was not found, you will not be able to sign apks or use apktool"...
I set the current project (option 22) where i found my framework-res.apk.
Then I wanted to decompile ... option 9 and 10 failed!
Would you please give me a little tutorial on modding my apk?
Its just because I like doing things my self ...
Thanks!!!!!!!!!
Click to expand...
Click to collapse
Sure!
Download APK Manager 5.0.1 from http://forum.xda-developers.com/showthread.php?t=1227179
Place your framework-res.apk in the "place-apk-here-for-modding" folder
Start Script.bat
Choose option 22 and choose your apk file
Choose option 9 and decompile.
Then in the projects folder, go inside your framework-res/res/values/ folder and you will see the arrays.xml
Open in notepad (or any other text editor) and edit it to fulfill your needs.
Then choose option 11 in the script.bat and wait for it to compile.
Then zipalign the apk.
Then you can adb push this apk to your phone and Enjoy
If you get any errors, please copy the log.txt file and paste/upload it here so i can help you out with it
Java not found
Thats what i see when starting Script.bat... (attached)
Java is installed ... and its the latest version.
Heres the log.txt
--------------------------------------------------------------------------
|11.09.2011 -- 19:51:18,26|
--------------------------------------------------------------------------
'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.
Could Not Find C:\Documents and Settings\Administrator\Desktop\HTC Sensation S-Off\APK-Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Documents and Settings\Administrator\Desktop\HTC Sensation S-Off\APK-Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
I hope you can help me out ...
(I also tried to change the lockring but even the examples didn't work ... is that because of the Android Revolution HD 3.1.0?)
THANKS!!!
1st, thanks to "mohit1234" as he pointed out how to do this. I then found a more detailed thread here.
So, I am now running Android Revolution HD 3.1.1 & made the two attached files with modded auto light setting. The changes I made were reducing the 2 lowest brightness levels (so in the dark the screen is dimmer) and made the buttons light up under lesser light conditions.
The files are flashable through CWM (made using UOT Kitchen), one is modded for the auto light only, the other includes the stock percent battery with green overscroll glow.
I agree that the lowest setting is too bright.
I miss the ability on cm7 to manually adjust the settings. Since i'm not rooting until cm7 comes out, I suggest brightness toggle widget. Its what I currently use, it works well.
fixed
Thanks for all your answers!!!
I just found out why apk-manager didn't work ...
On windows xp - right click my computer - properties - advanced - environmental variables (bottom) - in "system variables" (bottom) scroll till you see "Path" - change path to the "bin" folder of your java...
...on my computer it was: ...\Program Files\Java\jre6\bin
Then close apk manager and restart ... worked on my computer.
Display is much dimmer now! THANKS AGAIN
It would be really nice if u guys can make a new thread about it (prob in the dev section) and put up a small tutorial on how to use it for those who are interested like me
alireza_simkesh said:
It would be really nice if u guys can make a new thread about it (prob in the dev section) and put up a small tutorial on how to use it for those who are interested like me
Click to expand...
Click to collapse
+1
10char
alireza_simkesh said:
It would be really nice if u guys can make a new thread about it (prob in the dev section) and put up a small tutorial on how to use it for those who are interested like me
Click to expand...
Click to collapse
The guide made by sloppy in this thread is as detailed as can be. Even though its for the Desire HD, it works for the Sensation as well.

modding .xml in framework-res.apk with apktool?

i know there are hunderds of threads about this, but none of them helped me and niether of them describes my situation.
i had to change some values in bools.xml in framework-res.apk of a deodexed cm7.2 rom. so, i decompiled and recompiled using apktool and tried the folowing things (in all cases i remembered to chmod to 664):
- pushed the compiled file without signing. Boot loops.
- wiped dalvik cache. still boot loops.
- signed the compiled file. IT BOOTED! but all system apps fc. And i see a blank status bar. clearing dalvik cache doesnt help.
- copied the compiled resources.asec to original apk with winrar. NO FCs this time. still a blank status bar. Rotating the phone freezes the system instantly. but even if you dont rotate, system soon freezes, within 30 secs. logcat shows repeating messages of "cpu may be pegged. trying again". (no i havent overclocked).
how do u guys mod the frameworkres successfully?
Well, I don't know exactly what the problem you're having is since it may depend on the type of mod you're doing but..
I decompile framework-res.apk with apktool, make my changes and recompile. Then I use 7zip to copy the res folder from the new apk to the old one (just open both and drag across). Next, I extract resources.arsc from the new apk and add it to the old one, making sure to use 'store' compression. If resources.arsc is compressed at all, it causes problems.
So the original framework-res.apk now has a new res folder and resources.arsc at the right compression ratios. If you sign the new apk file, you have to make sure all the other system apps are signed the same way and it's just more trouble than it's worth.
Then I reboot into recovery, mount the system and push straight to the framework folder. I used to do this while the phone was running normally but I'd get all kinds of odd bugs if I made any change to anything other than a drawable. I'd get strange FC's, I'd lose wifi connection, all kinds of things.
And that's about it. As long as the changes I'm making don't stop the phone from working properly anyway, the above works perfectly every time.
Sent from my U20i using xda premium
arnab321 said:
(in all cases i remembered to chmod to 664):
Click to expand...
Click to collapse
Did you made a typo, or did you really have set the permissions to 664?
Its 644.
brainmaster said:
Did you made a typo, or did you really have set the permissions to 664?
Its 644.
Click to expand...
Click to collapse
that was actually a typo, and once i also accidentally made a typo on adb, but it still boots fine. i dont think giving extra permissions will screw things up.
the problem "cpu may be pegged" is rom/kernel related, because it is still there after a fresh install... sometimes it happens, sometimes not.
but i dunno anything about the blank status bar... i was trying to set "has_soft_keys" to true, to use tablet tweaks on my phone, does that cause a blank statusbar? anyone else got the same problem?
Wait, why are you using framework-res.apk for that? I think you need to change local.prop in /data to do this.
Have you actually got the line "has_soft_keys" already in the bools.xml?
Ticklefish said:
Wait, why are you using framework-res.apk for that? I think you need to change local.prop in /data to do this.
Have you actually got the line "has_soft_keys" already in the bools.xml?
Click to expand...
Click to collapse
yes it had that line, and setting it to true does bring the softkeys stuff in tablet tweaks menu. But the status bar always stays empty, nothing on it.
what needs to be changed in local.prop? There's nothing related to softkeys there on my phone.
umm, my ROM had the center clock mod on status bar, is that an issue?
Sent from my LG-P500
edit:
yes it was due to the center clock. tried anoher rom and i got the softkeys just by modding the bools.xml
First of all never sign system apps.
try using apk manager(I know it uses apk tool to do these operations) so try to set compression level to zero and heap size to 512.
I think above solutions should solve your problem but revert if u face any problem.
Sent from my Micromax_A70 using Tapatalk

[TUTORIAL] Speed up notification pullup and dropdown (SystemUI.apk) all devices :)

Tutorial about speeding up notification center drop down/pull up
1.First of all you need to get SystemUI.apk of yur actual rom
The ne im using is open root explorer and copy SystemUI.apk to your sdcard
2.Connect the phone to the computer and copy the SystemUI.apk to the extracted APKTOOL directory (download apktoolApktool.zip)
3.There is a guide on how to use apktool here :Guide apktool
4.Decompile SystemUI.apk
5.Navigate \SystemUI\res\values and open dimens.xml (use notepad ++)
6. Find self_expand_velocity, self collapse velocity. and change the values from the defalut +2000 per each.
7.You can change other values too, they are pretty much selfexplanatory.
8.After the necessary changes save the file and recompile systemui.apk
9.After recmpiling you can push it to system using ADB or i made a .zip to flash it in recovery.(Just put SystemUI.apk in system/app and you are ok) Just whatch out for the name as it should be exactly the ssame as it was before.
10.Flash the zip wipe cache/dalvik and enjoy your new fast dropdown and pullup
DONT FORGET THANX BUTTON
EDIT: It was pointed out that in newer versions of android (dip=dp) its the same thing so don't change it.
Mr.Nigma... said:
Tutorial about speeding up notification center drop down/pull up
1.First of all you need to get SystemUI.apk of yur actual rom
The ne im using is open root explorer and copy SystemUI.apk to your sdcard
2.Connect the phone to the computer and copy the SystemUI.apk to the extracted APKTOOL directory (download apktoolApktool.zip)
3.There is a guide on how to use apktool here :Guide apktool
4.Decompile SystemUI.apk
5.Navigate \SystemUI\res\values and open dimens.xml (use notepad ++)
6. Find self_expand_velocity, self collapse velocity. and change the values from the defalut +2000 per each.
7.You can change other values too, they are pretty much selfexplanatory.
8.After the necessary changes save the file and recompile systemui.apk
9.After recmpiling you can push it to system using ADB or i made a .zip to flash it in recovery.(Just put SystemUI.apk in system/app and you are ok) Just whatch out for the name as it should be exactly the ssame as it was before.
10.Flash the zip wipe cache/dalvik and enjoy your new fast dropdown and pullup
DONT FORGET THANX BUTTON
Click to expand...
Click to collapse
I decompiled systemui.apk but i can/t find \SystemUI\res\values
I have the same question. maybe your decompilation have some problems.
Sent from my lenovo A789 using xda app-developers app
Got it working... FINALLY
OK first of all thanks for this, makes a huge difference on the notification pullup and dropdown speed.
I couldn't apply the path with just the regular apktool, tried different revisions and none worked until I found apktoolsjb on this forum
http://forum.xda-developers.com/showthread.php?t=1809649
Thanks again
yonutz said:
I decompiled systemui.apk but i can/t find \SystemUI\res\values
Click to expand...
Click to collapse
it is in that folder for sure. have followed the guide step by step? maybe u havent decompiled just extracted the apk.
On Note 2 (and probably other Samsung devices) there is no layout.xml, but values are inside smali file (SystemUI\smali\com\android\systemui\R$layout.smali). However those are in hex format which I cannot decode.
.field public static final self_collapse_velocity:I = 0x7f0c001c
.field public static final self_expand_velocity:I = 0x7f0c001b
Click to expand...
Click to collapse
Above value translates to 2131492892 as integer, which makes zero sense. Probably some kind of float value?
matejdro said:
On Note 2 (and probably other Samsung devices) there is no layout.xml, but values are inside smali file (SystemUI\smali\com\android\systemui\R$layout.smali). However those are in hex format which I cannot decode.
Above value translates to 2131492892 as integer, which makes zero sense. Probably some kind of float value?
Click to expand...
Click to collapse
Looks more like a reference to resources to me.
matejdro said:
On Note 2 (and probably other Samsung devices) there is no layout.xml, but values are inside smali file (SystemUI\smali\com\android\systemui\R$layout.smali). However those are in hex format which I cannot decode.
Above value translates to 2131492892 as integer, which makes zero sense. Probably some kind of float value?
Click to expand...
Click to collapse
Try to check for that id (0x7f0c001c and/or 0x7f0c001b) in res/values/ids.xml. It could point to any value in any of the xml inside res/ folder.
No xml file contains those values (I ran search over whole folder). Only before mentioned R$layout.smali and com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Linux
Any way I con do this in Linux, ubuntu to be specific.
I figured it out, Ijust hope I can put back into .apk format.
Be careful:
"dp" was actually called "dip" in early versions of the SDK. They changed it to "dp" shortly after.
Click to expand...
Click to collapse
That screenshot isn't from a 4.1/4.2 rom - So anyone who wants to try this and has 4.2 (I'm having 4.2.2), change only the values. leave the "dp" as is, don't change it into "dip".
OP - you might as well write this down!
Great, some developer with Xposed skills to do that through an Xposed module .... (You know that would be great)
I used your MOD as an Add On for my ROM. I hope thats ok credit was given (see bottom of OP). Thanks for the Info..
http://forum.xda-developers.com/showpost.php?p=37148754&postcount=1
Thanks. I already hitted it.
Sent from my C6603 using xda app-developers app
Great tut, I would suggest turning off animations entierly in developers options for the best UI smoothness.
self_expand_velocity, self collapse velocity NOT FOUND
I dint find anything like that in \SystemUI\res\values\dimens.xml
Samsung galaxy ace GT-S5830i
I can't find a values folder in my SystemUI
riteshpanjwani said:
I dint find anything like that in \SystemUI\res\values\dimens.xml
Samsung galaxy ace GT-S5830i
Click to expand...
Click to collapse
As some people replied these values are in another file. But i'll look again and edit the op with SAMSUNG specific files
Hmmm
JDogg1329 said:
I can't find a values folder in my SystemUI
Click to expand...
Click to collapse
Check your ROM if it is odex, check /system/app/ if there is SystemUI.odex. You need to deodexed if first so you can edit. However you can also di it using baksmali you just need the SystemUI.odex.
I have this, dont have this what you say.What do now?.Custom ROM - CM7

[Q] How Create Modified Apk File From My Apps with My Setting

hi .. i every time after instalation an app , go to setting and change them to my favorite thing!! for Example i always change My File MAnager them to light (defult is dark) !! so how can i Create Modified apk from this app with my changes ??? that when i install it , defult them be light !!!
i know that i can create flashable zip file , but im looking for a way to create APK file From an Changed app !! for example theme change, show hidden file change, paid change and ...........
is there any way ? i want something that make an apk file with my app with app setting!! not a flashable zip file
xperia_sp_2014 said:
hi .. i every time after instalation an app , go to setting and change them to my favorite thing!! for Example i always change My File MAnager them to light (defult is dark) !! so how can i Create Modified apk from this app with my changes ??? that when i install it , defult them be light !!!
i know that i can create flashable zip file , but im looking for a way to create APK file From an Changed app !! for example theme change, show hidden file change, paid change and ...........
is there any way ?
Click to expand...
Click to collapse
You can use Android Studio or use something like APKTOOL (you need to know java and XML)
Or else check if the Xposed module "Resflux" helps you.
GokulNC said:
You can use Android Studio or use something like APKTOOL (you need to know java and XML)
Or else check if the Xposed module "Resflux" helps you.
Click to expand...
Click to collapse
Android Studio or APKTOOL is for pc !! but i want do it in my phone !! in lucky patcher there is an option "Create Modified Apk from this app" but i donwt understand what is this do !! i test it and it never save my setting to apk (change or paid) so i dont know whats the point of this option !!! anyway i want something like this!! that make an apk file with my app with app setting!!
xperia_sp_2014 said:
Android Studio or APKTOOL is for pc !! but i want do it in my phone !! in lucky patcher there is an option "Create Modified Apk from this app" but i donwt understand what is this do !! i test it and it never save my setting to apk (change or paid) so i dont know whats the point of this option !!! anyway i want something like this!! that make an apk file with my app with app setting!!
Click to expand...
Click to collapse
First off Dont mention lucky patcher. IT is a warez app and banned from the site. You will have to use the tools mentioned above on a PC to get what you want. There is no way to do it from your device.
There are a set of settings coded into the app which then gets converted to a DB file upon install. Your changes are done to the DB file which is seperate from the apk. You will have to change the default settings in the base code it itself.

Categories

Resources