Auto brightness - Thunderbolt Q&A, Help & Troubleshooting

Does anyone know what files in the framework (I'm guessing) need to be edited to adjust the auto brightness settings?
Sent from my ADR6400L using XDA Premium App

values/arrays.xml in framework-res.apk. you'll see the brightness levels towards the bottom of the xml

Thanks, but I don't see a values folder. Or even an arrays.xml in any folder.
Sent from my ADR6400L using XDA Premium App

cmo220 said:
Thanks, but I don't see a values folder. Or even an arrays.xml in any folder.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
you have to decompile the apk first. You have to use apktool to decompile it. It is a process. http://code.google.com/p/android-apktool/
Once you decompile the apk.. you'll see the Values folder with the xml files.
follow the instructions from the above link. After installing the required tool files, install the framework file (there is instructions on how to do that in the link).. and then decompile the framework-res.apk file.

or use apk manager

Ok, I'll try that, I can pretty much only use my computer at work for internet so I'll have to do that when I get home. I have both of those on my computer already. Thanks.

More info here, but for a different phone.

Alright, so I've found and edited the file. But when I try to put back on the framework my phone won't boot. I've never really had good luck with these apk programs. I've tried it with and without signing. I've tried it with and without deleting the resources.arsc file. And I've tried adb pushing and trying it in a zip file. Anyone have any ideas what I might be doing wrong? Should I maybe use a different compression level? I'm out of ideas. Thanks.

BAMF roms have auto brightness tweaked.
Keep in mind though, it does have some side effects, such as slow to resume to correct brightness if you tap the screen when it dims, just before shutting off.

adrynalyne said:
BAMF roms have auto brightness tweaked.
Keep in mind though, it does have some side effects, such as slow to resume to correct brightness if you tap the screen when it dims, just before shutting off.
Click to expand...
Click to collapse
Yeah, your ROMs and and Perfect Storm ROMs is where I got the idea. I'm trying to learn about these things. I have my framework set up in a way that I really like it for now, on your Stripped ROM. I've been trying to get this thing set up exactly how I like it. For now I just want to adjust that and then figure out 1 or 2 other things, then I think I'm set. The only other thing I can think of right now is the text color in the pulldown menu.

Hey adrynalyne. I'm sorry for being an ass over on the GPS thread. Will you please come back.
I just have the stomach flue and I was wrong to be so dismissive. If you can help us, please come back. I'll answer all the questions you want to ask without being a smartass.
It looks like the app you recommended worked for some already, and if you know how to sort though a logcat for android, you are much better suited to help than anyone so far (including myself by far..)

cmo220 said:
Alright, so I've found and edited the file. But when I try to put back on the framework my phone won't boot. I've never really had good luck with these apk programs. I've tried it with and without signing. I've tried it with and without deleting the resources.arsc file. And I've tried adb pushing and trying it in a zip file. Anyone have any ideas what I might be doing wrong? Should I maybe use a different compression level? I'm out of ideas. Thanks.
Click to expand...
Click to collapse
Do not resign the apk. Instead copy the android manifest and META-INF folder from the original apk. Then push in adb.
That should work.
Sent from my ADR6400L using XDA App

kriskmk said:
Do not resign the apk. Instead copy the android manifest and META-INF folder from the original apk. Then push in adb.
That should work.
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
Sweet! It finally worked. Now I just need to find the settings I like.

Related

[Q] XML Recompile to binary after editing.

Ok, so I spent all day researching this and didn't get a clear answer so I figured I just bring it to you guys. What I'm trying to do is edit some of the battery xml files in the framework-res.apk. I tried using apktool to decompile the apk, edit the file and then recompile the apk, but I always get an error. Read some stuff on that sdk might do it, but I could never get it to run (wore out when I tried lol). So now I'm stuck. Spent all day writting the exstensive xml file but can't do anything with it. This is my new hurrdle in theming and would really appreciate some help from you great people
Thanks in advance.
Sent from my SGH-T959 using XDA Premium App
Won't recompile if you don't add the images too - did you do that?
TXLunchbox said:
Ok, so I spent all day researching this and didn't get a clear answer so I figured I just bring it to you guys. What I'm trying to do is edit some of the battery xml files in the framework-res.apk. I tried using apktool to decompile the apk, edit the file and then recompile the apk, but I always get an error. Read some stuff on that sdk might do it, but I could never get it to run (wore out when I tried lol). So now I'm stuck. Spent all day writting the exstensive xml file but can't do anything with it. This is my new hurrdle in theming and would really appreciate some help from you great people
Thanks in advance.
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
A lot of themes/rom frameworks won't recompile after decompiling them due to funky .9 pngs.
What I do is just take Stock KB1 (for instance) frameworks, and decompile/compile them with changes I made and just take the changes from the compiled one and add them to my working one. Did that make sense?
So. Decompile KB1, make changes, compile it back. Open it up, take your new files & put them in your framework you're working on.
The above method is a little trickier when dealing with things in the values folder, but you can still apply it with some logic
Let me know if you need me to clear anything up
Yeah, when I recompile I leave it all in the project folder in apktool. Select the xml I'm editing from there as well and save it there too.
Sent from my SGH-T959 using XDA Premium App
birgertime said:
A lot of themes/rom frameworks won't recompile after decompiling them due to funky .9 pngs.
What I do is just take Stock KB1 (for instance) frameworks, and decompile/compile them with changes I made and just take the changes from the compiled one and add them to my working one. Did that make sense?
So. Decompile KB1, make changes, compile it back. Open it up, take your new files & put them in your framework you're working on.
The above method is a little trickier when dealing with things in the values folder, but you can still apply it with some logic
Let me know if you need me to clear anything up
Click to expand...
Click to collapse
No I get it. Use stock to let recompile the xml to binary. Pull it from there and then add it to the framework I actually want to change correct?
Sent from my SGH-T959 using XDA Premium App
TXLunchbox said:
No I get it. Use stock to let recompile the xml to binary. Pull it from there and then add it to the framework I actually want to change correct?
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
yep!
also see if apk manager is easier for you. seems to help me keep a little organized, sometimes at least
birgertime said:
yep!
also see if apk manager is easier for you. seems to help me keep a little organized, sometimes at least
Click to expand...
Click to collapse
Haha I just realized that's what I've been using lol
Thanks guys. Really appreciate the help. Let you know how it goes.
Just to drop a hint of what I'm working on is a vanilla theme for trigger...kind of like what you did birger, but a little deeper...
Sent from my SGH-T959 using XDA Premium App
Still getting the same issue! Tried a deodexed KB5 framework and a stock from another phone I'm working on. Both won't recompile without an error! Grr!
See If you can de compile and re compile without making any changes at all to it.
Slow50 said:
See If you can de compile and re compile without making any changes at all to it.
Click to expand...
Click to collapse
yeah that worked
EDIT: tried again and still get error!! I'm gettin mad
Ok, so this is there error I'm getting:
\projects\framework-res.apk\res\drawable\stat_sys_battery.xml:5662: error: Error parsing XML: mismatched tag
Click to expand...
Click to collapse
Any thoughts?
EDIT: Fixed that. Got it to recompile but didn't change what I want it to.
Ok, got it to finally work, but I don't think my XML code is right now, or I'm missing something Anyone want to take a look at it. It's a battery thing.
TXLunchbox said:
Ok, got it to finally work, but I don't think my XML code is right now, or I'm missing something Anyone want to take a look at it. It's a battery thing.
Click to expand...
Click to collapse
Did you add extra images you're adding to public XML?
Sent from my SGH-T959 using Tapatalk
birgertime said:
Did you add extra images you're adding to public XML?
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
No. That I did not. I'll take a look at that. Basically what happens is when I plug my phone in to charge the battery icon disappears.
Sent from my SGH-T959 using XDA Premium App
TXLunchbox said:
No. That I did not. I'll take a look at that. Basically what happens is when I plug my phone in to charge the battery icon disappears.
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
yep. if you have 100 battery charing images there's a good chance you'll need to add them in
birgertime said:
yep. if you have 100 battery charing images there's a good chance you'll need to add them in
Click to expand...
Click to collapse
Haha! That's how many I've got! How'd you know? Lol! Thanks for your help man, I really appreciate it. Your willing to help is what makes you a great dev!
Sent from my SGH-T959 using XDA Premium App
TXLunchbox said:
Haha! That's how many I've got! How'd you know? Lol! Thanks for your help man, I really appreciate it. Your willing to help is what makes you a great dev!
Sent from my SGH-T959 using XDA Premium App
Click to expand...
Click to collapse
I'm no dev, just a really good blender.
Also, it's because that's the only other logical choice anyone would do. Bionix has like 26 or something and I only use 20 in Trigger
birgertime said:
I'm no dev, just a really good blender.
Also, it's because that's the only other logical choice anyone would do. Bionix has like 26 or something and I only use 20 in Trigger
Click to expand...
Click to collapse
I really like the smooth effect of it and how it looks when its charging. Just becoming a pain in my rear getting the xml code right. Lol
Sent from my SGH-T959 using XDA Premium App
So is there any easy way to modify the public.xml to include them all? lol! Boy did I take on a big job

Ok im gettin pissed

Now i made like 6 themes already and now every theme i try to make, the settings and any app that tries to modify settings or browse the folders just force closes on any image i change, even a freakin statusbar images!!!
HELP
try rebuilding from a fresh settings apk and framework files.. I had the same issue a while back and the only thing i could come up with was the files some how got corrupted as a result of me unzipping and rezipping the file a bunch. Except i didnt get FC's i just got bootloops.
Cheers
shreddintyres said:
try rebuilding from a fresh settings apk and framework files.. I had the same issue a while back and the only thing i could come up with was the files some how got corrupted as a result of me unzipping and rezipping the file a bunch. Except i didnt get FC's i just got bootloops.
Cheers
Click to expand...
Click to collapse
You know what it was.
Everytime I colored the activity bar, thats when it would happen....Weird I swear!!!!
Same here when using ninja morph get force close on almost all apps after changing activity bar color.Anyone got any ideas
Sent from my SGH-T959V using XDA Premium App
That's a .9 file. U shouldn't use nm for that. the image was prolly getting corrupted that's what was giving u issues.
Sent from my SGH-T959 using XDA App
Thanks guess gotta go at it the long way.Sure would be alot easier if nm worked on it though.Again thanks for the info
Sent from my SGH-T959V using XDA Premium App

[REQ] Transparent MMS.APK -- 2.2

I have searched high and low .... no luck. Can anyone point me in the direction of a theme that I could grab this from?? Or maybe make one
trainriderben said:
I have searched high and low .... no luck. Can anyone point me in the direction of a theme that I could grab this from?? Or maybe make one
Click to expand...
Click to collapse
my question is like yours
Bumpity Bump
Yet another bump
Sent from my SGH-T959 using XDA App
Look for glasstopia. It has the transparent mms I believe.
Sent from my SGH-T959 using XDA App
rel500 said:
Look for glasstopia. It has the transparent mms I believe.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Thanks, I have tries this one before. I push to system/app and fix permissions, but it won't change. I have deleted the old mms.apk and it never changes. Any help is greatly appreciated.
Sent from my SGH-T959 using XDA App
Try this guys
http://dl.dropbox.com/u/27219566/Mms.apk
Trainrider try putting a COPY in data\app as well as system\app
Not working for me, I put in both places and fixed permissions. Anyone else have differant results>?
so whats the problem? is it giving you a force close or error when you open it? Or it's not showing up in apps at all?
Jay2487 said:
so whats the problem? is it giving you a force close or error when you open it? Or it's not showing up in apps at all?
Click to expand...
Click to collapse
Shows up and opens... not transparent
Sent from my SGH-T959 using XDA App
hmm, when you copied to folders did it ask to replace existing? I pulled that out of Gassadena I think, standby I'll post Glasstopia, see if that works
I tried ones from both Glassadena and Glasstopia. I am overwriting the old and have tried both of these twice. Last shot - I wiped Dalvik to see if that would make a differance. I also used root explorer and searched for all instances of MMS on my phone and didnt find anything hiding anywhere else Damn this MMS it is hard to work with!
Yeah i don't know what to tell you, never had that much trouble. This might eork might not, go into glassadena or glasstopia zip and see if there is a copy in data and one in system, if so maybe move both to your corresponding folder? long shot but at least then you'll know if you need a copy in both, because if it has one in both then you know you do too

Disable Battery Full Notification with Root on Stock ROM?

Hi all,
did some searching but couldn't find any info on this pertaining specifically to the att version of the gs2.
i've tried nearly all the ROMs in the android development section and found that there's always one or two things in each of them that drive me nuts. i've been running unnamed for the past month or so and that's been by far the best of them but there's a couple things that drive me crazy about it.
so i'm planning on returning to stock 2.3.4 using entropy's 1/2 experimental kernel because i think that is what works best for me.
however, i really like how all of the custom ROMs disable the battery full notification which used to wake me up every night. is there any way to disable this notification without turning off vibrate or running a custom ROM? again, just to re-iterate i plan on using a rooted version of the stock 2.3.4 with entropy's dd. thanks!
Yup decompile systemui.apk and edit statusbarpolicy.smali just delete the line that reads:
invoke-direct*{p0},*Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->addFullChargeNotification()V
Recompile the apk. Push the file to system/app, reboot and you'll be good to go
Sent from my SAMSUNG-SGH-I777 using xda premium
yoderk said:
Yup decompile systemui.apk and edit statusbarpolicy.smali just delete the line that reads:
invoke-direct*{p0},*Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->addFullChargeNotification()V
Recompile the apk. Push the file to system/app, reboot and you'll be good to go
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
Thanks for that - is there one there I could delete to get rid of the sound when docked? I know it's docked, thanks (and it keeps waking up the GF).

Unknown Symbol

Can someone let me know what the "circled" symbol means?
I have tried disabling wifi, mobile networks, gps, everything I can think of and it is still there. I'm just curious. Thanks!
911 gps
Thanks!!!
Tell us the truth.... You just wanted to use your s-pen to circle something...
Sent from my SCH-I605 using Tapatalk 2
toprunner2786 said:
Can someone let me know what the "circled" symbol means?
I have tried disabling wifi, mobile networks, gps, everything I can think of and it is still there. I'm just curious. Thanks!
Click to expand...
Click to collapse
You can extract the systemui.apk and delete two pictires and itll get rid of it. See
mrlaigle said:
Tell us the truth.... You just wanted to use your s-pen to circle something...
Sent from my SCH-I605 using Tapatalk 2
Click to expand...
Click to collapse
Lol yes he did. And so did I!
Tap'n
techgov8 said:
You can extract the systemui.apk and delete two pictires and itll get rid of it. See
Lol yes he did. And so did I!
Tap'n
Click to expand...
Click to collapse
So how do you go about doing this?
UTbone04 said:
So how do you go about doing this?
Click to expand...
Click to collapse
I did too
Sent from my galaxy note 2
UTbone04 said:
So how do you go about doing this?
Click to expand...
Click to collapse
You have to be rooted. Use root explorer and go to system/app/SystemUI.apk and extract it. After you do that go to where you extracted it and go into the folder then go to res/drawable-hdpi and find the two icons with the gps icon ( stat_sys_location_e911_2.png and stat_sys_location_on_2.png). Rename both of those to .bak and then back out of those folders back to SytemUI and rezip it. Then copy it to system/app and change the permissions to the screenshot I have. Change the permissions quickly because systemui.apk will crash. If it does just do a battery pull and restart your phone. You'll be good to go then. If you get lost anywhere let me know of any questions.
Tap'n
techgov8 said:
You have to be rooted. Use root explorer and go to system/app/SystemUI.apk and extract it. After you do that go to where you extracted it and go into the folder then go to res/drawable-hdpi and find the two icons with the gps icon ( stat_sys_location_e911_2.png and stat_sys_location_on_2.png). Rename both of those to .bak and then back out of those folders back to SytemUI and rezip it. Then copy it to system/app and change the permissions to the screenshot I have. Change the permissions quickly because systemui.apk will crash. If it does just do a battery pull and restart your phone. You'll be good to go then. If you get lost anywhere let me know of any questions.
Tap'n
Click to expand...
Click to collapse
I got all the way until the end, and when I paste the zip file in system/app, I changed permissions, but it just shows up as a zip file, not an apk. I see both SystemUI.apk and SystemUI.zip in the same file. Both permissions are the same. Rebooted and the icon is still there. Where did I go wrong?
Edit: It looks as though it's recreating the .png's in addition to the .bak files I made. Not sure if it's because of the odex'd SystemUI file that's also in there?
I'd post a screenshot but for some reason I can't post them. It's saying "image upload is no longer working" and to update the app, even though I already have xda premium.
Sent from my SCH-I605 using xda premium
sleevasteve said:
I got all the way until the end, and when I paste the zip file in system/app, I changed permissions, but it just shows up as a zip file, not an apk. I see both SystemUI.apk and SystemUI.zip in the same file. Both permissions are the same. Rebooted and the icon is still there. Where did I go wrong?
Sent from my SCH-I605 using xda premium
Click to expand...
Click to collapse
The file you edited is a zip. The instructions he made were a little confusing for people that don't know about apks. You need to change the file extension from .zip to .apk and then push it. This will replace the current apk.
Sent from my SCH-I605 using xda app-developers app
Its TwiX said:
The file you edited is a zip. The instructions he made were a little confusing for people that don't know about apks. You need to change the file extension from .zip to .apk and then push it. This will replace the current apk.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
You rock, that did it! Thanks!!
I got rid of that alarm icon as well...nice! There's a spot missing where it was, but it's only noticeable if the phone is on vibrate or silent. Cleanin up shop! Thanks again!
Sent from my SCH-I605 using xda premium
sleevasteve said:
You rock, that did it! Thanks!!
I got rid of that alarm icon as well...nice! There's a spot missing where it was, but it's only noticeable if the phone is on vibrate or silent. Cleanin up shop! Thanks again!
Sent from my SCH-I605 using xda premium
Click to expand...
Click to collapse
I did forget to put that in I apologize. Glad you got it working though :thumbup:
Tap'n
So basically we can do basic themeing on our phone by opening systemui.apk playing with images and then rezip and rename push/permissions then reboot? I always thought it had to be done on a computer with like apktool and such... Oh im gonna be busy for a while lol, themes are my favorite thing about android, it can look exactly how i want.
Sent from my SCH-I605 using xda app-developers app
Kinda weird...I tried this unzipping> renaming the images>rezip>change .zip to .apk>replace SystemUI.apk
After a reboot, I got no wallpaper and no notification shade at all...I must have messed something up. I tried using ES File Manager with root enabled. Is the unzipping and zipping different between ES and "Root File Explorer"?
I am just familiar with ES and like the way it handles most things, it would be good to know in the future. Thanks!
There's always been problems with ES. Root Explorer is kind of the standard.
wall paper change
toprunner2786 said:
Kinda weird...I tried this unzipping> renaming the images>rezip>change .zip to .apk>replace SystemUI.apk
After a reboot, I got no wallpaper and no notification shade at all...I must have messed something up. I tried using ES File Manager with root enabled. Is the unzipping and zipping different between ES and "Root File Explorer"?
I am just familiar with ES and like the way it handles most things, it would be good to know in the future. Thanks!
Click to expand...
Click to collapse
I did the whole process using root explorer, and I also had my wall paper reset back to the default. My notifications seem to be fine.
Also worth mentioning, I first copied the file as a .ZIP into the proper location, then changed the permissions, then renamed the original as a .Bak, then renamed the new one from .ZIP to .APK, then rebooted. I'm not sure if doing it that way made a difference or not.
-Tm
Its TwiX said:
The file you edited is a zip. The instructions he made were a little confusing for people that don't know about apks. You need to change the file extension from .zip to .apk and then push it. This will replace the current apk.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Push meaning replace it with the original file, right?
I never made a backup of my original systemUI apk, although i got one from another thread where the wifi toggle icon is added to the notification shade screen. Are all the systemUI's teh same, or is there something in there unique to the device?
I will be doing this later today, too. That icon annoys me, but I need the alarm one.

Categories

Resources