Please connoisseurs who can remove the screen from dimming blinds? I will be very grateful. sorry for my english
Goretss said:
Please connoisseurs who can remove the screen from dimming blinds? I will be very grateful. sorry for my english
Click to expand...
Click to collapse
To get rid of the Brightness slider do the following:
- Decompile SystemUI.apk
- SystemUI > res > values folder
- Open bools.xml (with Notepad++)
- Search for:
PHP:
<bool name="config_useBrightController">true</bool>
- Set the value from "true" to "false"
- Recompile your SystemUI.apk
PS: Is your ROM/firmware deodexed? Because the size of your attached SystemUI.apk is only 1.97 MB... Usually it should be around 2.3 MB or above... If you have "SystemUI.odex" in your System > app folder then you need to Deodex your ROM/firmware first, then do all the modifications on your desired apk file..
Sami Kabir said:
To get rid of the Brightness slider do the following:
- Decompile SystemUI.apk
- SystemUI > res > values folder
- Open bools.xml (with Notepad++)
- Search for:
PHP:
<bool name="config_useBrightController">true</bool>
- Set the value from "true" to "false"
- Recompile your SystemUI.apk
PS: Is your ROM/firmware deodexed? Because the size of your attached SystemUI.apk is only 1.97 MB... Usually it should be around 2.3 MB or above... If you have "SystemUI.odex" in your System > app folder then you need to Deodex your ROM/firmware first, then do all the modifications on your desired apk file..
Click to expand...
Click to collapse
No, I odexed. SystemUI.apk works for me now odexed. will remove the brightness adjustment on odexed? you can remake it? at the moment my computer is not working properly, he can not do.
Goretss said:
No, I odexed. SystemUI.apk works for me now odexed. will remove the brightness adjustment on odexed? you can remake it? at the moment my computer is not working properly, he can not do.
Click to expand...
Click to collapse
Its always better to Deodex System apps and Framework - in order to avoid errors, etc.
I can do it for you but I will need your entire SystemUI.apk - so send me your SystemUI.odex also then
Sami Kabir said:
Its always better to Deodex System apps and Framework - in order to avoid errors, etc.
I can do it for you but I will need your entire SystemUI.apk - so send me your SystemUI.odex also then
Click to expand...
Click to collapse
I'm the SystemUI.apk replaced without touching SystemUI.odex. in principle, does not have any errors. you need the original SystemUI.apk?
Hey.. While decompiling your SystemUI.apk I got some errors (I've attached the picture of it below).. Anyways I've removed the Brightness controller but the size of your SystemUI.apk after doing the modification has decreased
I have no idea why this happened but I've still attached your new modified SystemUI.apk
It MAY or MAY NOT work.. so backup your System partition (just to be safe) and Replace your current SystemUI.apk with my modified one.. Then delete SystemUI.odex and then Reboot your phone... Keep your fingers crossed and hope that it works
Sami Kabir said:
Hey.. While decompiling your SystemUI.apk I got some errors (I've attached the picture of it below).. Anyways I've removed the Brightness controller but the size of your SystemUI.apk after doing the modification has decreased
I have no idea why this happened but I've still attached your new modified SystemUI.apk
It MAY or MAY NOT work.. so backup your System partition (just to be safe) and Replace your current SystemUI.apk with my modified one.. Then delete SystemUI.odex and then Reboot your phone... Kepp your fingers crossed and hope that it works
Click to expand...
Click to collapse
thanks. everything works, until no errors
Related
Hi,
i'am searching for a guide how to manipulate correctly the framework-res.apk.
All ways i have tested fails.
I would modify some symbols in Notification bar (battery 1%) but all Time the my Phone run into bootloop or all Application Crashes after Startup.
I've tryed Apk Manager 4.9 / and Manualy with apktool.
Help plz .....
what i did :
1-extract apk (i use 7zip/WinRAR)
2-edit/replace image file(s)
3-repack with zero compression level ('store' level)
4-sign the apk
5-replace file using apk or create flashable recovery zip.
regards.
signing the framework-res.apk will not work.. will make the device go into bootloop
what you need is extract the framework-res.apk using apktool and edit the things you want and then compile it again using apktool .... now open the original framework-res.apk and replace the file resources.arsc with the edited compiled one..
this way you will retain the signature of the original framework-res.apk
PapaDocta said:
signing the framework-res.apk will not work.. will make the device go into bootloop
what you need is extract the framework-res.apk using apktool and edit the things you want and then compile it again using apktool .... now open the original framework-res.apk and replace the file resources.arsc with the edited compiled one..
this way you will retain the signature of the original framework-res.apk
Click to expand...
Click to collapse
But when i add some new Files and Edit some XML the Sign will be Corrupted ?
no it won't...
You need to do two copies.. the original file and the moded one...
1. make a backup of the original file
2. extract the original file using apktool
3. edit and modify anything you like
4. compile the edited file
5. rename the compiled file to framework-res.zip and take the modified resources.arsc
6. using winrar or 7zip open (to view not extract) the backed up framework-res.apk
7. place the moded resources.arsc into the backed up framework-res.apk
by doing this you retain the original signature of the backed up file and not breaking it..
Thx, will test it ;-)
kowalski99 said:
But when i add some new Files and Edit some XML the Sign will be Corrupted ?
Click to expand...
Click to collapse
Android system, signs system apk's on boot, you shouldnt sign them
Sent from my Desire HD using Tapatalk
My signed apk just work well.
AFAIK, we only cant re-sign htc's apk.
PapaDocta said:
signing the framework-res.apk will not work.. will make the device go into bootloop
what you need is extract the framework-res.apk using apktool and edit the things you want and then compile it again using apktool .... now open the original framework-res.apk and replace the file resources.arsc with the edited compiled one..
this way you will retain the signature of the original framework-res.apk
Click to expand...
Click to collapse
The right approach always depends, what you want to change. There is no need to decompile, if you only change a few standard png. If you change xml in values folder like color, styles or arrays, you can certainly not delete resources.arsc - resources have nothing to do with the signature anyway. So if you want to play safe, you should insert the original Meta-Inf (signature) and Android Manifest after compile. It is also recommended to zipalign the final apk in order to reduce RAM usage.
thanks he_stheone64 for the clarification.. i reached that conclusion based on my own research on the net and yeah i used to change the XML files to add language support and that the only way that worked with me..
And be sure to have a working and up-to-date sdk before trying to use apktool...
First, using a old sdk release i got a partially working result (few graphics bugs and strange reboots), then with a badly updated sdk on top off the old i got apktool making many errors. Finally, re-installing the last sdk from start i got apktool and my resulting apk working correctly.
Hey can someone give me some quick tips on how to edit it?
I edited SystemUI.apk just fine but no matter what I do to framework-res, it won't let me replace the files (I'm only replacing pngs in drawable-mdpi folder)
What error are you getting? Also, install framework with apktool
POTATO!!!!
I think he's talking about drag and drop png file ) If it's true, the solution for him is learning how to decompile apk. Becoz most of png in systemUI is png, not too many 9.png files so it's easy to replace without decompiling
devilsking said:
I think he's talking about drag and drop png file ) If it's true, the solution for him is learning how to decompile apk. Becoz most of png in systemUI is png, not too many 9.png files so it's easy to replace without decompiling
Click to expand...
Click to collapse
Yup...
Decompile the framework-res.apk with Apktool and then replace the pngs..
I can't recompile because apktool always crashes when trying to recompile XML files. I'm using the AceCream framework apk instead of the stock rom one...
I'll try this on another PC to see if it's some weird software glitch
ZakooZ said:
I can't recompile because apktool always crashes when trying to recompile XML files. I'm using the AceCream framework apk instead of the stock rom one...
I'll try this on another PC to see if it's some weird software glitch
Click to expand...
Click to collapse
Try APK manager...much easier...
ZakooZ said:
I can't recompile because apktool always crashes when trying to recompile XML files. I'm using the AceCream framework apk instead of the stock rom one...
I'll try this on another PC to see if it's some weird software glitch
Click to expand...
Click to collapse
Tell me the definition of your "crashes"
it will show errors if u did smth wrong, even u use apkmanager )
For me apktool is more easier
devilsking said:
Tell me the definition of your "crashes"
it will show errors if u did smth wrong, even u use apkmanager )
For me apktool is more easier
Click to expand...
Click to collapse
Well, apktool dumps a stack trace where the error seems to occur in a public.xml file, apk manager says there is a error but the log shows nothing for me
https://www.dropbox.com/s/hbgqlo8pkfff10p/framework-res.apk
Can you test if you can modify this file without errors?
ZakooZ said:
Well, apktool dumps a stack trace where the error seems to occur in a public.xml file, apk manager says there is a error but the log shows nothing for me
https://www.dropbox.com/s/hbgqlo8pkfff10p/framework-res.apk
Can you test if you can modify this file without errors?
Click to expand...
Click to collapse
Oh...The infamous apktool bug...Use another version of apk tool and compile,will work
POTATO!!!!
hi. i want to change quick panel @ toggle from gb green to blue like cm.. how i want to do it? is that uot kitchen can do it?? im using. i'm new here.. i don't know how to do it.. i'm using firmware S5830IDXLF1, S5830IOLBLD1 .. anyone can help me..
Decompile SystemUI.apk or framework-res.apk (not sure which), edit the PNGs, recompile, push using adb.
for simpler steps (no need for decompiling/recompiling)
use Ninjamorph (free on play store)
it allows you to change the PNG files in your apks.
if you do not have 15 toggle mod:
Open Ninjamorph, go to system/app/ then choose SystemUI.apk. Then go to res/drawable-mdpi and then modify the pngs you want to modify (quickpanel_icons)
then after you're done, just go back to main menu of ninjamorph and choose finish then choose systemui.
but if you have 15 toggle mod:
Open ninjamorph, go to system/framework then choose lidroid-res.apk. Then do the same steps.
Ninjamorph is useful for beginners, no need to compile.
EDIT: after you finish you need to reboot (because you edited something in the statusbar, and it also applies if you edited a framework apk.)
jraquino said:
for simpler steps (no need for decompiling/recompiling)
use Ninjamorph (free on play store)
it allows you to change the PNG files in your apks.
if you do not have 15 toggle mod:
Open Ninjamorph, go to system/app/ then choose SystemUI.apk. Then go to res/drawable-mdpi and then modify the pngs you want to modify (quickpanel_icons)
then after you're done, just go back to main menu of ninjamorph and choose finish then choose systemui.
but if you have 15 toggle mod:
Open ninjamorph, go to system/framework then choose lidroid-res.apk. Then do the same steps.
Ninjamorph is useful for beginners, no need to compile.
EDIT: after you finish you need to reboot (because you edited something in the statusbar, and it also applies if you edited a framework apk.)
Click to expand...
Click to collapse
what u mean?? ninjamorph is that app?
SemBoyHehe said:
what u mean?? ninjamorph is that app?
Click to expand...
Click to collapse
Yes its an app
It can be used to edit png
But if you want to edit xml
Then compiling and decompiling is the only choice
iamareebjamal said:
Yes its an app
It can be used to edit png
But if you want to edit xml
Then compiling and decompiling is the only choice
Click to expand...
Click to collapse
can u help me? i didnt know ho to do..
Need help..
Sent from my GT-N7000
========================
Rom:
Leaked JB 4.1.2
Kernel:
Philz 2.7
========================
look for a theme in the theme section and flash it.
easy peasy.
extract systemUI.apk from your phone to PC
extract the apk using 7z
go to res/drawable-xhdpi folder.
look for the Icon of that BAR.
edit the picture to your liking (whatever color or make a new one of the same dimension with no background)
now
open the systemUI.apk using 7z (just open donot extract this time)
navigate to res/drawable-xhdpi folder.
drag and drop the modified picture to replace the old one. (names should be same)
push back to the /system/app folder and restart system UI or reboot.
**** make sure you need to have backup of the stock systemUI on the phone incase you have FCs
azzledazzle said:
look for a theme in the theme section and flash it.
easy peasy.
Click to expand...
Click to collapse
I'm not that lazy..I'm trying to make mw own theme
Sent from my GT-N7000
========================
Rom:
Leaked JB 4.1.2
Kernel:
Philz 2.7
========================
nokiamodeln91 said:
extract systemUI.apk from your phone to PC
extract the apk using 7z
go to res/drawable-xhdpi folder.
look for the Icon of that BAR.
edit the picture to your liking (whatever color or make a new one of the same dimension with no background)
now
open the systemUI.apk using 7z (just open donot extract this time)
navigate to res/drawable-xhdpi folder.
drag and drop the modified picture to replace the old one. (names should be same)
push back to the /system/app folder and restart system UI or reboot.
**** make sure you need to have backup of the stock systemUI on the phone incase you have FCs
Click to expand...
Click to collapse
What name of the icon? I cant fine it
Sent from my GT-N7000
========================
Rom:
Leaked JB 4.1.2
Kernel:
Philz 2.7
========================
check in framework-res.apk.. not sure. it used to be in lidroid-res.apk for themed ones.
found a few in framework like
button_onoff_indicator_on
btn_toggle_on.9
the shape is a bit diff so not sure
Doesn't a png that set the color.
It's just a .xml file that it need to edit
If I remember correct you can find it at systemUI/res/layout/tw_quick_setting_button.xml
Just edit textcolor value as your choice
Ciao
that only has the background color not the color when its active like in this case its green. can that be changed to blue by editing xml? png definitely changes it
Are you sure?
Hmmm will try it out
hey , i have extracted the systemui.apk using 7zip , then when i tried opening xml files using notepad++ it showed those stuff , can you help me ? : ) even oriflax modifications , opening his xml files showed me that too
You can't edit xml file like this. You need to decompile it using apk tool then edit the xml and recomplile
nokiamodeln91 said:
You can't edit xml file like this. You need to decompile it using apk tool then edit the xml and recomplile
Click to expand...
Click to collapse
thank you , i decompiled it , edited it and then while recompiling it it gave me hundreds of invalid resource directory errors ... i had to pull out classes.dex earlier but put back in after editing ... any ideas ?
Don't get. Dex file when using apk tool. Don't mod the apk using 7z . starts fresh
Decided to start a new thread as this one was getting a bit messy (and I couldn't change the title anymore)
http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-multi-dpi-samsung-apps-camera-t3141148
----------------------------------------------------------
Hi all, after changing the dpi to 480 the camera was the main thing bugging me. Looking for a solution I found this thread:
http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-fix-samsung-camera-app-device-dpi-t3131995
But that did not work for me, so I decided to try it myself and I finally managed to create multi-dpi versions of the Camera and Samsung Keyboard apps. They are based on the apks from the XtreStoLite Universal Deo-Mod Edition 1.5 as I'm currently running that. So just give it a try (backup the original apks first! I usually just rename them to "filename.org") and let me know if it works for you. I tested on 480 and 520 dpi and that works here...
Installation:
1. Backup original apk (in system\app\SamsungCamera4 and/or systemm\app\SamsungIMEv2 )
2. Extract modded apk to the corresponding folder
3. Wipe data for the app
4. Reboot
I basically modified the dimens.xml file to hardcoded pixel sizes instead of dip value, modifying dip value caused other issues for me (camcorder not working, pro mode messing up). Hopefully it's of use to some.
I have not been able to fix the Contacts/Dialer (SecContacts_L.apk in the priv-app folder)! I either get a corrupt apk (parsing error) or it just won't show up in my apps. Corrupted apk gives a parsing error when trying to install manually, otherwise it just says 'install failed'.
I am guessing this is somethiong with the priv-app folder and other restrictions there. I also tried copying the apk to the system\app folder instead but that didn't work either...
If anyone has ANY idea how to fix this? (I tried with both apktool as apk multitool).
*SCRIPTS ADDED*
Added the scripts and all I've written for this to this post for those wanting to try themselves (dpi_mod.zip). They are not completely polished so need some manual editing every now and then...
Basically, doubleclicking apk_process.bat in the root will go through the apk's in the apk subfolder and
1. Decompile them to the decompiled subfolder
2. Edit the dimens.xml file in the res\values subfolder of the decompiled folder replacing all the <n>dip values with <4*n>px (So 640 dip becomes 2560px for example...)
3. Rebuild the apk to the dpimod_apk subfolder (using the -c option to keep original manifest and signature files)
The files folder contains the files used (apktool, the subscripts for each step, signature files, (g)awk and an awk script to process the xml file replacing the values, etc)
There is also a script for signing the apk manually, but somehow the apk then also doesn;t work in my case it seems...
ALl scripts are windows batch files (and an awk file) as I mainly use windows at home. Shouldn't be too hard for the linux users to convert them to bash files if desired...
*EDIT2*
Added patched services.jar (and original services.jar for restoration in case of issues). Flash through twrp recovery... This allows you to use the modded SecContacts_L.apk supplied, the services.jar needs to be patched to disable the signature verification for the (system) apk files. Note that this might cause issues (an invalid services.jar caused my phone to get stuck in boot... had to restore the original to be able to continue) so use at your own risk!
Great job !
I have not been able to decompile the contacts.apk either.. I am a bit rusty tho.. will have to look into that a little more.
fOmey said:
Great job !
I have not been able to decompile the contacts.apk either.. I am a bit rusty tho.. will have to look into that a little more.
Click to expand...
Click to collapse
Thanks! And yeah, weird stuff.
I actually was only really bothered by the camera, not using the samsung keyboard at all myself and don't mind the contacts as much (perfectly usable for me) but it's now a matter of principle If you find anything out, I would love to hear.
dagrim1 said:
Thanks! And yeah, weird stuff.
I actually was only really bothered by the camera, not using the samsung keyboard at all myself and don't mind the contacts as much (perfectly usable for me) but it's now a matter of principle If you find anything out, I would love to hear.
Click to expand...
Click to collapse
But In Call screen looks weird with 480 DPI right? Would you know any fix for that? Thanks.
Sent from my SM-G925F using XDA Free mobile app
ksekhar said:
But In Call screen looks weird with 480 DPI right? Would you know any fix for that? Thanks.
Sent from my SM-G925F using XDA Free mobile app
Click to expand...
Click to collapse
Yup, it does. (But again, doesn't bother me as much as I don't look at it long because I usually hold my phone to my ear anyway ).
But yeah, I think I know where to fix it... It's the Contacts apk I mentioned above but there is an issue with decompiling/rebuilding it so can't fix it yet. Looking into it.
Did notice when decompiling and recompiling including resources it fails, when keeping resources intact it does work.
To successfully mod seccontacts you have to do these steps :
- Decompile apk
- Edit xml files in res folder
- Recompile apk
- Extract xml edited files in res folder from recompiled apk
- Paste these xml files in the original apk in the res folder with compression tool like Winrar
It works I made this with my S5.
Meh, been looking into it some more and also found this:
http://forum.xda-developers.com/android/software-hacking/how-to-recompile-tw-contacts-phone-t3066350
and
http://www.ez-pg.com/guide-how-to-decompilerecompile-lollipop-seccontacts.html
I tried modifying the manifest as instructed, but the apk still didn't work. Perhaps because signature verfication is not properly disabled on my rom. BUt if it isn't it is also not for the majority of the users in which case siumply supplying the apk wouldn't work anyway.
I also tried resigning the apk, no luck. Copying the original manifast is also not going to work afaik with a changed manifest file...
More info about signature verficiation:
http://forum.xda-developers.com/showthread.php?t=2725233
http://forum.xda-developers.com/showthread.php?t=2342262
Perhaps I will try this soon as well, but for now I think I'll leave it be...
sebdigital said:
To successfully mod seccontacts you have to do these steps :
- Decompile apk
- Edit xml files in res folder
- Recompile apk
- Extract xml edited files in res folder from recompiled apk
- Paste these xml files in the original apk in the res folder with compression tool like Winrar
It works I made this with my S5.
Click to expand...
Click to collapse
Thanks for the tip, had looked into that as well but this xml file is in the values folder which is not simply found in the res folder of the apk but compiled into the resources.arsc file in the apk so this is not working unfortunately.
dagrim1 said:
Thanks for the tip, had looked into that as well but this xml file is in the values folder which is not simply found in the res folder of the apk but compiled into the resources.arsc file in the apk so this is not working unfortunately.
Click to expand...
Click to collapse
I'm on 5.1.1 today and noticed that contacts/dialer is (almost) multi DPI already without having to do anything. And your camera mod works on 5.1.1 too!
Sent from my SM-G920F using XDA Free mobile app
can u change this Camera 480 dpi camera s6 to 420 dpi?
https://mega.nz/#!M4Ui0KoR!TKsPKkMl-XQHyiJ_DNf53eQCGZTrYWhuHaAnhAYXeSM
thanks you very much
can be used for other than s6 for SamsungCamera4. ??
my android device A8 6
dagrim1 said:
Decided to start a new thread as this one was getting a bit messy (and I couldn't change the title anymore)
http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-multi-dpi-samsung-apps-camera-t3141148
----------------------------------------------------------
Hi all, after changing the dpi to 480 the camera was the main thing bugging me. Looking for a solution I found this thread:
http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-fix-samsung-camera-app-device-dpi-t3131995
But that did not work for me, so I decided to try it myself and I finally managed to create multi-dpi versions of the Camera and Samsung Keyboard apps. They are based on the apks from the XtreStoLite Universal Deo-Mod Edition 1.5 as I'm currently running that. So just give it a try (backup the original apks first! I usually just rename them to "filename.org") and let me know if it works for you. I tested on 480 and 520 dpi and that works here...
Installation:
1. Backup original apk (in system\app\SamsungCamera4 and/or systemm\app\SamsungIMEv2 )
2. Extract modded apk to the corresponding folder
3. Wipe data for the app
4. Reboot
I basically modified the dimens.xml file to hardcoded pixel sizes instead of dip value, modifying dip value caused other issues for me (camcorder not working, pro mode messing up). Hopefully it's of use to some.
I have not been able to fix the Contacts/Dialer (SecContacts_L.apk in the priv-app folder)! I either get a corrupt apk (parsing error) or it just won't show up in my apps. Corrupted apk gives a parsing error when trying to install manually, otherwise it just says 'install failed'.
I am guessing this is somethiong with the priv-app folder and other restrictions there. I also tried copying the apk to the system\app folder instead but that didn't work either...
If anyone has ANY idea how to fix this? (I tried with both apktool as apk multitool).
*SCRIPTS ADDED*
Added the scripts and all I've written for this to this post for those wanting to try themselves (dpi_mod.zip). They are not completely polished so need some manual editing every now and then...
Basically, doubleclicking apk_process.bat in the root will go through the apk's in the apk subfolder and
1. Decompile them to the decompiled subfolder
2. Edit the dimens.xml file in the res\values subfolder of the decompiled folder replacing all the <n>dip values with <4*n>px (So 640 dip becomes 2560px for example...)
3. Rebuild the apk to the dpimod_apk subfolder (using the -c option to keep original manifest and signature files)
The files folder contains the files used (apktool, the subscripts for each step, signature files, (g)awk and an awk script to process the xml file replacing the values, etc)
There is also a script for signing the apk manually, but somehow the apk then also doesn;t work in my case it seems...
ALl scripts are windows batch files (and an awk file) as I mainly use windows at home. Shouldn't be too hard for the linux users to convert them to bash files if desired...
*EDIT2*
Added patched services.jar (and original services.jar for restoration in case of issues). Flash through twrp recovery... This allows you to use the modded SecContacts_L.apk supplied, the services.jar needs to be patched to disable the signature verification for the (system) apk files. Note that this might cause issues (an invalid services.jar caused my phone to get stuck in boot... had to restore the original to be able to continue) so use at your own risk!
Click to expand...
Click to collapse
how to fix on parse error, after recompile SamsungCamera4.apk with apktool
with or without edit error on parse...
My device Galaxy-A8