in my opinion ,music control is useless ,so i want to remove it
i know that we can disable it by setting ,but someone want to remove it (like me ),so i found a way to "remove" it from LG P990 forum ,link :http://forum.xda-developers.com/showthread.php?t=1010733
it will also work for frozen/uninstalled music app
then i'll show you more details
steps:
1.decompile framework-res.apk
2.find status_bar_expanded.xml in \res\layout
3.open status_bar_expanded.xml,find android:id="@id/music_status_bar"
4.after android:id="@id/music_status_bar" you can see those code:
Code:
android:background="@drawable/noti_control_bar_bg" android:paddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="77.25598dip">
then use those code below to replace them
Code:
android:background="@drawable/noti_control_bar_bg" android:paddingLeft="3.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="0.0dip">
ok ,save and compile framework-res.apk ,then it has been removed
in fact ,you read the code ,music control bar is hidden
Thanks for the info. I just tried that, but the resulting framework-res.apk is only 4,19mbyte in size, where as the orginial file is 6,86mbytes. Will it work?
Here's what I did:
Code:
apktool -d framework-res.apk
Makes changes to xml file, save.
Code:
apktool b framework-res framework-new.apk
this works.. or you could just load the music player and goto settings.. and untick show notification lol
digitalfrost said:
Thanks for the info. I just tried that, but the resulting framework-res.apk is only 4,19mbyte in size, where as the orginial file is 6,86mbytes.
[/code]
Click to expand...
Click to collapse
Same here.
Is there a some tutorial how to do this stuff?
From my understanding:
1) pull framework-res.apk with adb
2) decompile with apktool
3) edit with editor like notepad++
4) recompile with apktool (somewhere read that system files don't need to sign, is that true?)
5) here I don't know what to do, push or make update.zip, what works? and how?
6) ...
7) Profit
Nice job.
I also think I found out how to remove LG lockscreen but I haven't tested it properly yet.
In android.policy.java there's a file called LockscreenViewGuard or something. Open it, search for Andy (LG lockscreen is called Andy_LockScreen2).
Replace the 2 entries for "LockScreen" instead.
Altermind said:
this works.. or you could just load the music player and goto settings.. and untick show notification lol
Click to expand...
Click to collapse
I think the difference is the setting option only disable the player control (back, pause, forward buttons), it still show the song you are playing in notification bar.
fjsw said:
I think the difference is the setting option only disable the player control (back, pause, forward buttons), it still show the song you are playing in notification bar.
Click to expand...
Click to collapse
EDIT: NOW I get what you mean. You talk about the notification of playing song, not the controls.
OK, nice job. I had to modify that file to get full sized notification toggles (Gingerbread or WP7 theme in nova v3.1 instead of stock toggles).
Enviado desde mi LG-P970 usando Tapatalk
But by the code I think it's for the control bar. Or is it fof the Now Playing notification?
If it's just for control bar, it makes no sense.
If it's for the Now Playing notification, nice done.
Can you clarify this?
Enviado desde mi LG-P970 usando Tapatalk
Noejn said:
Nice job.
I also think I found out how to remove LG lockscreen but I haven't tested it properly yet.
In android.policy.java there's a file called LockscreenViewGuard or something. Open it, search for Andy (LG lockscreen is called Andy_LockScreen2).
Replace the 2 entries for "LockScreen" instead.
Click to expand...
Click to collapse
nice...i tried to find where can we change lockscreen into tap lock,but failed
so this way will work?
antonio1475 said:
But by the code I think it's for the control bar. Or is it fof the Now Playing notification?
If it's just for control bar, it makes no sense.
If it's for the Now Playing notification, nice done.
Can you clarify this?
Enviado desde mi LG-P970 usando Tapatalk
Click to expand...
Click to collapse
my fault
it's just for control bar
agread.. if its for the now playing.. yes.. it needs to be removed... it's just a duplication...
dxdiag32 said:
my fault
it's just for control bar
Click to expand...
Click to collapse
I didn't understand because you knew you can do it by Settings :S .
--
Enviado desde mi LG-P970 usando Tapatalk
antonio1475 said:
I didn't understand because you knew you can do it by Settings
Click to expand...
Click to collapse
just deinstall the music app and see what happens!
for me,this has to be removed like all these other LG sh*t
aeros0ul said:
just deinstall the music app and see what happens!
for me,this has to be removed like all these other LG sh*t
Click to expand...
Click to collapse
Yeah sure, if you freeze/uninstall Music app, controls show up.
So, @dxdiag32, add "for frozen/uninstalled music app" to the title and you have a useful tutorial!!
Enviado desde mi LG-P970 usando Tapatalk
Altermind said:
this works.. or you could just load the music player and goto settings.. and untick show notification lol
Click to expand...
Click to collapse
Man I feel stupid now. I've never opened the stock music app until today . Much better, thank you.
Very thanks but I don't know how to decompile and recompile. This guide is not for begginer users
Greetings
MauricioAedo said:
Very thanks but I don't know how to decompile and recompile. This guide is not for begginer users
Greetings
Click to expand...
Click to collapse
That's because you can easily search how to decompile and recompile apk's.
Start with "apk manager 4.9 xda" in Google
Enviado desde mi LG-P970 usando Tapatalk
Umm yeah...Just bricked my phone . Gonna have to reflash .
e: So...when i recompile the file without changing anything it is working fine. However when I make the mod and recompile, file size is significantly smaller than original. Here's the log output:
Code:
--------------------------------------------------------------------------
|15.08.2011 -- 3:00:31,06|
--------------------------------------------------------------------------
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'permdesc_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
aapt: warning: string 'permlab_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
I: Building apk file...
The system cannot find the file specified.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'permdesc_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
aapt: warning: string 'permlab_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
I: Building apk file...
The system cannot find the file specified.
digitalfrost said:
Umm yeah...Just bricked my phone . Gonna have to reflash .
e: So...when i recompile the file without changing anything it is working fine. However when I make the mod and recompile, file size is significantly smaller than original. Here's the log output:
Code:
--------------------------------------------------------------------------
|15.08.2011 -- 3:00:31,06|
--------------------------------------------------------------------------
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'permdesc_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
aapt: warning: string 'permlab_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
I: Building apk file...
The system cannot find the file specified.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'permdesc_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
aapt: warning: string 'permlab_cache_filesystem' has no default translation in C:\Android\apk_manager_4.9\other\..\projects\framework-res.apk\res; found: pt_PT
I: Building apk file...
The system cannot find the file specified.
Click to expand...
Click to collapse
it's fine,just warning,no errors
compression changed so you get a smaller apk
you'd better pick xml from your new apk and put it into original apk,that will work
antonio1475 said:
Yeah sure, if you freeze/uninstall Music app, controls show up.
So, @dxdiag32, add "for frozen/uninstalled music app" to the title and you have a useful tutorial!!
Enviado desde mi LG-P970 usando Tapatalk
Click to expand...
Click to collapse
i didn't get what you exactly mean(sorry my bad english)
i delete my music app,and music control bar never showed up
and i share this tutoria because i'm making a rom and i don't want to see this when i boot up
Related
Trying to create Circle Batt (no other changes) through UOT Kitchen for the Assonance 5.0 ROM.
When it finishes with the loaded Framework-res.apk file, the finished screen shows SHTF, and has an error log as follows:
+ WORKING_DIR=UOT-DW-12-15-19-37-1
+ java -Xmx64m -jar ./tools/apktool.jar d data/working_dir/UOT-DW-12-15-19-37-1/framework/framework-res.apk data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
+ WORKING_DIR=UOT-DW-12-15-19-37-1
+ java -Xmx64m -jar ./tools/apktool.jar b data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/ data/working_dir/UOT-DW-12-15-19-37-1/framework-unsigned.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'keyguard_password_attempt_count_pin_code_1' has no default translation in /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/res; found: he_IL
aapt: warning: string 'permdesc_restartPackages' has no default translation in /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/res; found: he_IL
aapt: warning: string 'permlab_restartPackages' has no default translation in /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/res; found: he_IL
/home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/res/values-hdpi-v4/drawables.xml:3: error: Resource entry stat_sys_battery_6 is already defined.
res/drawable-hdpi-v4/stat_sys_battery_6.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL9068952899748163720.tmp, -x, -0, arsc, -S, /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/res, -M, /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL9068952899748163720.tmp, -x, -0, arsc, -S, /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/res, -M, /home/circle/ver2b/data/working_dir/UOT-DW-12-15-19-37-1/temp/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Click to expand...
Click to collapse
Anyone know if this file can be used? I am presuming not. But there really is no documentation on that site about this type of thing.
Is that ROM already themed? It has to be with a stock framework for that kitchen to work.
I'd say so. It says "Modified version of Gingerbread Theme".
I wonder what I need to do to get Circle Batt then. I'll ask in that thread, in the meantime if you have any thoughts, it is appreciated.
ewingr said:
I'd say so. It says "Modified version of Gingerbread Theme".
I wonder what I need to do to get Circle Batt then. I'll ask in that thread, in the meantime if you have any thoughts, it is appreciated.
Click to expand...
Click to collapse
I say use a stock framework, get the pngs for the battery from the kitchen. Open up the kitchen apk with winrar/7zip (doesnt matter if you unzip to extract them) pull all the batt icons out and drop them into the ROM framework that you want to use (do not unzip the framework, explore apk contents using winrar/7zip).
Thanks for the suggestion.
I'd say if I had the stock framework, the UOT Kitchen would have worked. Problem is, I don't have the stock framework.
I have posted a query on the thread. One person there said the UOT worked for him. I don't know if he got that same error I did or not. I'm tempted to ask for his file...but then I want to be sure. I think I'll have to reload completely again if it borks my load (at least that's all I know to do when that happens).
Getting tired of flashing lately. Hoping to settle for a while
Reefermattness said:
I say use a stock framework, get the pngs for the battery from the kitchen. Open up the kitchen apk with winrar/7zip (doesnt matter if you unzip to extract them) pull all the batt icons out and drop them into the ROM framework that you want to use (do not unzip the framework, explore apk contents using winrar/7zip).
Click to expand...
Click to collapse
+1
When making my battery mod for the Gingerbread theme, this is what I did, and it worked perfectly.
Any suggestions on where I can get the stock file?
Oh, and did you apply that to the Assonance 5.0 ROM? I see from your SIG that you are on Perception Build 3, which was not Gingerbread.
ewingr said:
Any suggestions on where I can get the stock file?
Oh, and did you apply that to the Assonance 5.0 ROM? I see from your SIG that you are on Perception Build 3, which was not Gingerbread.
Click to expand...
Click to collapse
ANY stock framework.... All you need is the pngs inside.
Sent from my SGH-T959D using Tapatalk
Reefermattness said:
ANY stock framework.... All you need is the pngs inside.
Sent from my SGH-T959D using Tapatalk
Click to expand...
Click to collapse
To be more precise, you are saying to 'replace the pngs inside', right?
My comfort zone is to use UOT Kitchen. I tried the replace once, and somehow screwed things up.
So it sounds like I can take any 2.2 framework-res.apk, and run it through the kitchen and use it.
But, then I've tried using one that worked, for example, from a Cognition 3, and use on a 4 (Maybe not those specific builds), and it didn't work.
Having been burned on this from a couple different angles, I'm just a bit skittish.
Couldn't you just get the *.png's from FightSpit's original thread for his Circle Batt Mod?
Then just put them into your framework-res.apk and re-apply using your favorite tool (ADB Push or Root File Manager).
Maybe. I was told I need the 'original' framework file. but maybe that's only if i want to use UOT, which was in fact my question. That is my preference, but I'm coming to see that it is impossible if you have a modified theme.
ewingr said:
So it sounds like I can take any 2.2 framework-res.apk, and run it through the kitchen and use it.
Click to expand...
Click to collapse
Never, ever, use a framework-res.apk that was not part of the original rom in question.
PNG files are easily replaced using any zip file editor.
Sent from my Captivate.
So just so I'm understanding correctly, if I want to customize the battery pngs manually (or any png for that matter?) I can:
Upload a stock 2.2 framework to UOT Kitchen, pull out the pngs, place them in say Perception 9's or Assonance 5's framework-res.apk? Can I also just create pngs using an image editor and drop those in?
How would I reapply using adb or Root File Manager? Do I need to use a tool of some sort to sign the apk after I change the pngs?
I'm trying to get into doing my own theming... so still learning! I'm using this guide to get started: http://forum.xda-developers.com/showthread.php?t=817998.
the kitchen seems to be having issues for me as well. no matter what framework-res i use i get errors. even stock ones.
I'm looking for a way to remove the brightness bar because it takes up too much room. I always use my tab in landscape, so that extra room would help with viewing notifications. Anyone have an idea if this is possible or how its done? Thanks!
Its not possible....at least nothing easily done.
From the Tab.
www.twitter.com/ayman07
TheChampJT said:
I'm looking for a way to remove the brightness bar because it takes up too much room. I always use my tab in landscape, so that extra room would help with viewing notifications. Anyone have an idea if this is possible or how its done? Thanks!
Click to expand...
Click to collapse
Hi TheChampJT, Hi Ayman07
Just Decompile framework-res.apk with :-
java -jar apktool.jar d framework-res.apk framework-res
then edit file
framework-res\res\layout\zzzz_quickpanel_brightness_settings.xml
do what you want to do....
recompile with
java -jar apktool.jar b framework-res out\framework-res.apk
You have to install Java and apktool first....
Good Luck...
Sounds simple. Maybe an entire saturday.
Galaxyer you know lot about android, please can you tell me how to install windows 7 on GT
and osx too please!!
framework-res\res\layout\zzzz_quickpanel_brightness_settings.xml
do what you want to do....
Click to expand...
Click to collapse
So if im playing risky and delete it, any other xml files i need to edit other then ..\framework-res\res\values\public.xml ?
Removing lines in public.xml and deleting zzzz_quickpanel_brightness_settings.xml results in many errors when rebuilding apk
bad idea.. way to brut.
biopsin said:
So if im playing risky and delete it, any other xml files i need to edit other then ..\framework-res\res\values\public.xml ?
Removing lines in public.xml and deleting zzzz_quickpanel_brightness_settings.xml results in many errors when rebuilding apk
bad idea.. way to brut.
Click to expand...
Click to collapse
Do not delete file...just edit..resize the bar height to 0
and do not edit public.xml
errors in recompilation may be due to .9.png. to proof, just decompile, recompile without editing
TheChampJT said:
I'm looking for a way to remove the brightness bar because it takes up too much room. I always use my tab in landscape, so that extra room would help with viewing notifications. Anyone have an idea if this is possible or how its done? Thanks!
Click to expand...
Click to collapse
It's not easy because of deep integration. If you remove it you'll get many FCs.
But you can make it smaller like me (see screenshot).
tabing said:
Galaxyer you know lot about android, please can you tell me how to install windows 7 on GT
Click to expand...
Click to collapse
fdisk .
errors in recompilation may be due to .9.png. to proof, just decompile, recompile without editing
Click to expand...
Click to collapse
Yes did the test and only warning is
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'permlab_accessLocationExtraCommands' has no default trans
lation in C:\Users\Administrator\Desktop\APKTool\framework-res\res; found: bg cs
da de el es es_US et et_EE fi fr ga ga_IE hr hu is is_IS it kk kk_KZ ko lt lv m
k mk_MK nl no no_NO pl pt pt_PT ro ru sk sl sl_SI sr sv tr uk
I: Building apk file...
Unfortunely any rebuild i do jams on boot..
@ silver-alx : thats a nice solutution!
thank u both..
No errors, no FC, no boot jam:-
Thanks
tabing said:
Galaxyer you know lot about android, please can you tell me how to install windows 7 on GT
Click to expand...
Click to collapse
spirit32 said:
and osx too please!!
Click to expand...
Click to collapse
Do you mean:- ?????
http://forum.xda-developers.com/showthread.php?t=942561
What strikes me is by decoding and building only the original i still loose 87883 bytes in the prosess. Is the compiler compressing better?
tested this version and still jam..geez this is suppose to be easy
The recompiled apk is without signature, so that is the diff.
and you cannot use the recompiled apk as it is.
You have to manually drag and drop:-
-resources.arsc file
-res folder
from unsigned recompiled apk to the original signed apk
The generated apk may diff in size according to the changes made
regards.
tnx for your reply..
did what u pointed out, but still it jams..I use 7zip soft, do you recommend something other? The prosess of moving asset+res works fine between signed<-build, but when i overwrite my current running framework, the icon changes to a unreconized icon and everything chrashes..
I know my editing is good, it must be the damn signing thingy..I think 7zip is repacking and therefore brakes the signing in some way..
Hi biopsin,
use winrar and open both signed and unsigned apks, select both res folder and resources file and drag them together from unsigned and drop them onto signed apk...wait for extracting, then winrar will ask you for the method; you have to choose zip, store:-
Finally solved.. Problem is when decompile, it creates in res-folder "...-en-hdpi-v4, ...-hdpi-v4," so on why does it add -v4 to these folders? did not noticed this at first..
I'm unfortunely failing removing the brightness panel..manage to move it and shrink it but not setting it =0
followed the example here
im suppose to override hight and width..but i cant quite figure it out..
would someone maybe supply a suggestion?
spirit32 said:
and osx too please!!
Click to expand...
Click to collapse
Just get the source and cross-compile it against the Android SDK. You'll need to recode the kernel to run on a non-intel CPU though.
Not a big deal....
update: found all the right tools, needed patch apktool and updated aapt.exe from sdk13 ( HC3.2)
attached at bottom of post.
has anyone managed to decompile any Honeycomb systemui.apk without any errors? I have tried a few, many diff. ways and keep getting error: mulitple resources in dimens.xml and a bunch of java code. looks like it may not have been compiled properly?? Is there a way to force decompile? or maybe someone with linux and apktool latest version 1.4.2?
anyone made a UOT Kitchen theme with honeycomb and systemui.apk yet?
thanks for the help guys.
seeing if UOT kitchen could manage.. this is the saem error I get.
Decompiling framework-res.apk UOT-11-22-22-09-2
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-11-22-22-09-2
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f090009 dimen/status_bar_icon_padding, config=-port-v13at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Compiling framework-res.apk UOT-11-22-22-09-2
W: Could not find sources
I: Building resources...
I: Building apk file...
Compiling SystemUI.apk UOT-11-22-22-09-2
I: Framework installed to: /home/uot/apktool/framework/1.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
unzipped .apk and tried axmlprinter2:
It sounds a lot like the systemui.apk resources have malformed or invalid xmls, what rom source are you using exactly?
Try decompiling 506/507 to see if any of those work first, i'm guessing you're using the ones from r6.
yes r6, I though I have tried others even from a stock ROM. I wasnt able to extract system.img as I have in the past (Im on windowze) because I restored my laptop and all my tools are gone.
If you could check when you have time to try to decompile any honeycomb systemui.apk I would be grateful as I have been researching a lot, and Im sure its just a waste, as you say this is malformed or "hack" compiled Im sure.. not saying it was DJ's doing..
and rather that try to extract system .img with windows.. ( ive tried yaffs expert.apk.. no help) and cygwin.dll, with unyaffs.exe, and wunyaffs, both end up with stack trace dump. which tells me this .apk is bad news. I think it said something about a permissions error with unyaffs; My next step was going to fastboot 507/508 system.img and then pull systemui.apk, likely could screw up my ROM. I like R6 though works best for me.
thanks for the help TheManii
would you be able to unpack 506/507 system.img and just send me the .apk I will try to decompile if you are busy or just let me know if youre able to decompile one.. that would be a tremendous help.
this is definetly something we should not be seeing on an official ROM correct??
the system.img inside the 50x pkgs are ext4, not yaffs2, you'll need something that can read ext3/4 partitions to open it.
but i'm getting the same error in decompiling the systemui.apk in 506-wifi, you might want to ask brut about this, afaik the latest apktool can decompile normal HC level apks.
As an aside, I wouldnt expect r6 themes to be compatable with r7+ as r7+ are based on 507, same reason cwm isnt compatable with r6
at the least I think it should just decompile with errors and just display the multiple resources. so you're getting this on an official ROM, thats not good coding is it?
coding is serious business though. I will have to post on bruts google project page.
found this, a few people have same issue.
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
huh, was it really part of api13? i figured it would have been 11/12
but one of the hc releases (i guess it was 3.2/api13) introduced dpxnn support, if you look at systemui.apk\res\layout-sw600dp or drawable-sw600dp-mdpi they overlap with the normal versions because it provides a more granular approach.
Didnt know apktool still doesnt support it. Regardless all api13+ apps should be doing it this way preferably.
more research finds this..
The "multiple resources" problem occurs when the same resource appears in two configurations in the apk (e.g. two screen sizes), which are not detected by apktool in ResConfigFlags.java. In the two cases above, the problematic resource appears in both the default config and the XLARGE config which apktool does not detect. Therefore, apktool tried to add the same resource to the default config twice rather than creating an XLARGE config space.
Ferenc Boldog's fix in https://github.com/fboldog/brut.apktool/commit/1b6d63cb355d4a36274f5edf0383a2c4e6e0f868 solves that particular problem by adding XLARGE support. Thanks Ferenc!
know how this boldog's file might work on windows?? I emailed brut.all to see if I could get a beta..
If it works without any further mods you can recompile it or wait for the next ver of apktool, i'm guessing that part/fix will be in it.
You'd need at least the jdk to compile it, and depending on file structure, linux
it seems I have found an apktool for sdk13 posted by brut on his page.. I need to get my own SDK13v aapt.exe though, updating my android sdk manager now... installing 4.0 too , this could be a while..
here is the .zip I found for sdkr13 (3.2), give it a shot if you have the latest sdk and aapt, curious if it works.
got it... woo hoo stoked! needed sdk r13 aapt.exe , didnt work with apktool 1.4.1 but did with another apktool for for 3.2
That's good news, as I'll also need to eventually recompile 3.2 apks if i ever get around to adding full langs into chimeradroid
and I got status bar clock themed for my ICS theme... cool..
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
chrisrotolo said:
got it... woo hoo stoked! needed sdk r13 aapt.exe , didnt work with apktool 1.4.1 but did with another apktool for for 3.2
Click to expand...
Click to collapse
I'm still having a ton of issues with this, could one of you walk me through it? I'm working with the Asus Transformer, but having the same issue. I can now decompile properly with apktool, but compiling just fails miserably...
I have apktool 1.4.2, but apparently the new aapt.exe is needed? Would you be able to give me a link to that?
updated first post. attached .zip of apktool and files that worked for me.
@JDV28, are you decompiling a stock .apk? or themed .apk? and what kind of changes are you making? .xml edits? .9.png's? and what a re the errors? so we can try to help.
chrisrotolo said:
updated first post. attached .zip of apktool and files that worked for me.
@JDV28, are you decompiling a stock .apk? or themed .apk? and what kind of changes are you making? .xml edits? .9.png's? and what a re the errors? so we can try to help.
Click to expand...
Click to collapse
I think I figured out my own issue, I was decompiling and recompiling a themed SystemUI.apk, and if I remember correctly, that doesnt work.
Am I right? If so, why??
Also, I am getting a 9patch error like you said in the pm, any fix for that? that's the only issue now.
Personally I would suggest making any.xml edits , recompiling then dragging .9's and any other .png's and dropping them into the new .apk arhive. You could try xultimate search for it I think its on Droid forums.
Link: http://forum.xda-developers.com/showthread.php?t=700904
There are many guides on how to patch .9 's
I know that there are already several thousand threads on forums spanning the internet involving recompiled framework-res.apk's causing bootloops, but the ones that are actually useful pretty much all say the same thing, that is to replace the meta-inf folder and AndroidManifest.xml from the newly built apk with the ones from the original file. Needless to say, that hasn't worked in my case, and neither has changing from apk-manager (wanam's latest version) to using command line apktool or from using flashable zips to adb pushing the file to /system/framework. Primary and secondary frameworks are both installed. The apk decompiles and recompiles without errors. SystemUI.apk, the only other apk I've worked on thus far, flashes without issues. I don't have a lot of experience with adb, and right now I can't remember the exact error it gave me, "protocol error" perhaps? Firmware is deodexed 9.0.1.D.0.10 / Nordic "SuperSport".
Quite probably I'm doing or not doing something really basic that will make me look and feel foolish once this is resolved, but I'm out of ideas and I just want to start modding some 9.png's. Does anyone have any suggestions?
Sv: [Q] V - Bootloops with modded framework-res.apk usual fixes not helping
Try the framework-res from here and let me know
http://forum.xda-developers.com/showthread.php?p=36503238
NuriJ said:
Try the framework-res from here and let me know
http://forum.xda-developers.com/showthread.php?p=36503238
Click to expand...
Click to collapse
Thanks, but that didn't work either. Here's exactly what I did, maybe there's something obvious I'm doing wrong:
1. Dragged the framework-res.apk from your zip to my apktool folder.
2. Decompiled with the command "apktool d framework-res.apk". Without the quotes, of course.
3. In this case I didn't modify anything, I simply recompiled with the command "apktool b framework-res". It gave me this:
C:\apktoolv3>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'BaMmi' has no default translation in C:\apktoolv3\framewo
rk-res\res; found: ar bg ca cs da de el en_GB es es_US et fa fi fr hi hr hu in i
t iw ko lt lv ms nb nl pl pt pt_PT ro ru sk sl sr sv th tl tr uk vi zh_CN zh_TW
I: Building apk file...
4. Deleted assets, res and resources.arsc from the original framework-res.apk inside your zip. Dragged those folders/files from within the rebuilt apk in my framework-res/dist folder to the original apk.
5. Dragged the framework-res.apk from your zip to a flashable zip. I've used this zip successfully to flash modded versions of SystemUI.apk, so I don't see a reason it wouldn't work for this.
6. Booted into TWRP recovery.
7. Wiped cache and dalvik cache.
8. Flashed the zip.
9. Bootlooped.
Am I missing something? I've gotten so used to using apk-manager that I wouldn't be surprised if it's just something I'm doing wrong in apktool.
shockwaverider said:
Thanks, but that didn't work either. Here's exactly what I did, maybe there's something obvious I'm doing wrong:
1. Dragged the framework-res.apk from your zip to my apktool folder.
2. Decompiled with the command "apktool d framework-res.apk". Without the quotes, of course.
3. In this case I didn't modify anything, I simply recompiled with the command "apktool b framework-res". It gave me this:
C:\apktoolv3>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'BaMmi' has no default translation in C:\apktoolv3\framewo
rk-res\res; found: ar bg ca cs da de el en_GB es es_US et fa fi fr hi hr hu in i
t iw ko lt lv ms nb nl pl pt pt_PT ro ru sk sl sr sv th tl tr uk vi zh_CN zh_TW
I: Building apk file...
4. Deleted assets, res and resources.arsc from the original framework-res.apk inside your zip. Dragged those folders/files from within the rebuilt apk in my framework-res/dist folder to the original apk.
5. Dragged the framework-res.apk from your zip to a flashable zip. I've used this zip successfully to flash modded versions of SystemUI.apk, so I don't see a reason it wouldn't work for this.
6. Booted into TWRP recovery.
7. Wiped cache and dalvik cache.
8. Flashed the zip.
9. Bootlooped.
Am I missing something? I've gotten so used to using apk-manager that I wouldn't be surprised if it's just something I'm doing wrong in apktool.
Click to expand...
Click to collapse
you need to install the semcgenericUPS file as well....I cant think of the exact commands now, but I will try and dig them out and post them tomorrow...
gregbradley said:
you need to install the semcgenericUPS file as well....I cant think of the exact commands now, but I will try and dig them out and post them tomorrow...
Click to expand...
Click to collapse
If you mean install it as a secondary framework in apktool, I've done that.
Sent from my LT25i using xda premium
shockwaverider said:
If you mean install it as a secondary framework in apktool, I've done that.
Sent from my LT25i using xda premium
Click to expand...
Click to collapse
ok, I think you may need to ask in the apktool thread in android hacking and develpment section
Before I go asking there I was thinking it might be worth starting over from scratch, using a completely stock firmware instead of spida_singh's modded version and flashing Nuri's deodexing package. Not that I really expect it to help, but it's worth a shot.
Sent from my LT25i using xda premium
You were right man.. I just changed the framework-res for the first time today and it didn't boot. Then i've tried without even touching anything.. Just with a clean recompile but still, it bootloops
NuriJ said:
You were right man.. I just changed the framework-res for the first time today and it didn't boot. Then i've tried without even touching anything.. Just with a clean recompile but still, it bootloops
Click to expand...
Click to collapse
Frustrating, isn't it? I haven't had much time these past few days to really follow up any more on this, like gregbradley said, we might need to ask in the apktool thread, but I've wanted to make sure I've tried absolutely everything else before I ask there. I think I'm pretty much at that point now.
shockwaverider said:
Frustrating, isn't it? I haven't had much time these past few days to really follow up any more on this, like gregbradley said, we might need to ask in the apktool thread, but I've wanted to make sure I've tried absolutely everything else before I ask there. I think I'm pretty much at that point now.
Click to expand...
Click to collapse
Yes, I think the apk tool is not compatable with ICS framework without some modifications. There are work arounds but asking the people who use it most will get you the best answers
gregbradley said:
Yes, I think the apk tool is not compatable with ICS framework without some modifications. There are work arounds but asking the people who use it most will get you the best answers
Click to expand...
Click to collapse
True. The jump from GB to ICS was a huge PITA for me, and I'm somewhat dreading upgrading to JB, as far as theming goes.
I finally just found this version of APK Manager in my DropBox, it's the one I used for months without problems but couldn't find it before because I stuck it in the wrong folder when I changed computers recently. Nuri, if you want to try it go ahead, I'm at work now and won't be able to do anything with it for at least another 12 hours, and possibly not until this weekend. I know it's a long shot, but it can't hurt to try.
EDIT: I also found this in the Xperia T/V/whatever Apps & Themes forum in the "[MOD] Reduced size onscreen buttons" thread, basically that another user (with a different device?) solved his bootloops by replacing the resources.arsc in his rebuilt apk with the original. I haven't followed that up because to be honest, that's only mildly useful for me as I tend to do a lot of modifications in /values/styles.xml as well as in other values files, so of course I need to be able to use the rebuilt resources.arsc. But for anyone not doing any edits in values, this may be enough of a workaround to get a working framework-res.
shockwaverider said:
True. The jump from GB to ICS was a huge PITA for me, and I'm somewhat dreading upgrading to JB, as far as theming goes.
I finally just found this version of APK Manager in my DropBox, it's the one I used for months without problems but couldn't find it before because I stuck it in the wrong folder when I changed computers recently. Nuri, if you want to try it go ahead, I'm at work now and won't be able to do anything with it for at least another 12 hours, and possibly not until this weekend. I know it's a long shot, but it can't hurt to try.
EDIT: I also found this in the Xperia T/V/whatever Apps & Themes forum in the "[MOD] Reduced size onscreen buttons" thread, basically that another user (with a different device?) solved his bootloops by replacing the resources.arsc in his rebuilt apk with the original. I haven't followed that up because to be honest, that's only mildly useful for me as I tend to do a lot of modifications in /values/styles.xml as well as in other values files, so of course I need to be able to use the rebuilt resources.arsc. But for anyone not doing any edits in values, this may be enough of a workaround to get a working framework-res.
Click to expand...
Click to collapse
I'll try :good:
..about that post.. He wrote that nothing changed, if he replaced the resources.arsc with stock one. Of course nothing would change then..
Hmm atleast i got the point, it's the resources.arsc file which apktool builds that's unable to boot with.
So yea maybe it's something with apktool
I'm afraid I didn't have any better luck with that version of apk-manager, either with or without replacing resources.arsc.
i find this Tutorial http://forum.xda-developers.com/showthread.php?t=1823223
ideeseng said:
i find this Tutorial http://forum.xda-developers.com/showthread.php?t=1823223
Click to expand...
Click to collapse
Good find, I'll try this out over the weekend, although I definitely hope to get an actual fix at some point.
Sent from my LT25i using xda premium
shockwaverider said:
I know that there are already several thousand threads on forums spanning the internet involving recompiled framework-res.apk's causing bootloops, but the ones that are actually useful pretty much all say the same thing, that is to replace the meta-inf folder and AndroidManifest.xml from the newly built apk with the ones from the original file. Needless to say, that hasn't worked in my case, and neither has changing from apk-manager (wanam's latest version) to using command line apktool or from using flashable zips to adb pushing the file to /system/framework. Primary and secondary frameworks are both installed. The apk decompiles and recompiles without errors. SystemUI.apk, the only other apk I've worked on thus far, flashes without issues. I don't have a lot of experience with adb, and right now I can't remember the exact error it gave me, "protocol error" perhaps? Firmware is deodexed 9.0.1.D.0.10 / Nordic "SuperSport".
Quite probably I'm doing or not doing something really basic that will make me look and feel foolish once this is resolved, but I'm out of ideas and I just want to start modding some 9.png's. Does anyone have any suggestions?
Click to expand...
Click to collapse
I suspect I know where you're going wrong..
Try Tickle My Android. Install SemcGenericUxpRes.apk before decompiling framework-res.apk. Then make your changes, recompile and use Tickle My Android's Prepare System Files For Flashing option.
If you get no luck, let me know and I can try a few things..
Sent from my SK17i using xda premium
Ticklefish said:
I suspect I know where you're going wrong..
Try Tickle My Android. Install SemcGenericUxpRes.apk before decompiling framework-res.apk. Then make your changes, recompile and use Tickle My Android's Prepare System Files For Flashing option.
If you get no luck, let me know and I can try a few things..
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Thank you, helpful stranger!
I had a quick go of it when I got home (from a 16-hour workday no less), and so far it's been more of the same. I'll post details in your thread when I'm feeling a bit more functional, but basically I did what you said. Your tool failed on creating a flashable zip, and I once again had bootloops when I used my own zip. Regardless, I'm really impressed with TMA, and I hope with your help I can get some real use out of it!
Sv: [Q] V - Bootloops with modded framework-res.apk usual fixes not helping
Anyone tried with the new jelly bean framework?
NuriJ said:
Anyone tried with the new jelly bean framework?
Click to expand...
Click to collapse
Haven't tried yet, and tbh I haven't even had the time lately to upgrade to JB. Taking a quick look around the threads, it looks like we now have working cwm, is this right? After the bootloop problems I had with ICS, there's no way I'll try modding framework-res without recovery, lol.
btw NuriJ, is there a version of your modded shutdown menu for JB?
shockwaverider said:
Haven't tried yet, and tbh I haven't even had the time lately to upgrade to JB. Taking a quick look around the threads, it looks like we now have working cwm, is this right? After the bootloop problems I had with ICS, there's no way I'll try modding framework-res without recovery, lol.
btw NuriJ, is there a version of your modded shutdown menu for JB?
Click to expand...
Click to collapse
Yes working on that.
.. I just had time and tried to today. It doesnt boot.. just like ics, it stops at bootanimation and bootloops
btw yes see dev section vdsirotkin managed to include cwm into the stock jb kernel
So guys as many OEMs are adding their own sh***y things on their stock ROMs and spoiling our pure AOSP taste.I own a samsung device and i hate its Touchwiz look.I also hate to spend a lot of time in theming/fixing layouts for AOSP look.So i found one method to do so without modifying much files.I don't know whether someone has already shared this method or not.After applying this method, most part of your UI will look like AOSP UI.
The idea came to my mind when i was designing my app.When i launched it on my device, it was in Touchwiz look which was horrible for me.So i changed its theme to Holo Dark.Thats where my idea is.When you define Holo Dark/Holo Light theme in you app, you don't need addition image/widget resources.They're already present in framework.
So, Let's start
Decompile framework-res.apk
Navigate to /res/values and open Styles.xml
There you'll see many themes defined between <style name="Theme"></style>
Now search for
Code:
<style name="Theme.Holo"
Copy contents between <style name="Theme.Holo"....> and </style>
Now search for
Code:
<style name="Theme.DeviceDefault"
Paste the contents which you copied before between <style name="Theme.DeviceDefault"...> and </style>
Now in the header of the DeviceDefault theme its parent is mentioned.Here DeviceDefault theme is overriding attributes of its parent.Holo theme is inherited from Theme so change
Code:
<style name="Theme.DeviceDefault" parent="[COLOR="Red"]@style/Theme.Holo[/COLOR]">
with
Code:
<style name="Theme.DeviceDefault" parent="[COLOR="Red"]@style/Theme[/COLOR]">
OK.That's all.Compile framework-res.apk, cross the fingers and push it back to device.
Click to expand...
Click to collapse
How to get Holo Light theme as default theme instead of Dark Layout:
CAUTION:Light theme consumes more battery then Dark theme
Method is same as above you just need to search for <style name="Theme.Holo.Light" and copy and paste its contents as mentioned above.
Now change parent of Theme.DeviceDefault to @style/Theme.Light as mentioned above
Yeah i know method is short and simple.What we are doing here is replacing OEM's default theme with Holo theme.As mentioned before, we already have resources for it.
Keep in mind that this way you won't get a totally functioning AOSP themed ROM.Some of the apps (only stock apps) will have misplaced layouts after applying this (specially samsung roms because of bad programming).But now you just need to fix them.You dialogue boxes,menus and eveything else will be displayed in Dark Holo theme.
Tested with Samsung JB firwmware.
So GooD Luck :highfive:
It is also possible to change theme of individual app.The method is same as stated above with some modification.
Decompile the app for which you want to change the theme
Now open AndroidManifest.xml
Search for <application tag
if android:theme field is already defined there then just put the name of the theme you want there like
Code:
android:theme="@*android:style/Theme.Holo"
Code:
android:theme="@*android:style/Theme.Holo.Light"
if that field is not present then simply add that field as above.
Compile apk. As we have modified AndroidManifest.xml, now we need to sign it
Click to expand...
Click to collapse
Nice guide bro,,
I've followed the tutor, but always force close in settings (eg: if I go into the application manager, and input languages​​, and etc :crying how to solve it?
Sorry for bad english
H! GUYS
TNX FOR NICE TUT
:good:
hi mate, i change the secsettings to Theme.Holo but the setting icons dosent apear in the app drawe :/, and when i try to enter via status bar i got fc can you help me please ?
Javho said:
hi mate, i change the secsettings to Theme.Holo but the setting icons dosent apear in the app drawe :/, and when i try to enter via status bar i got fc can you help me please ?
Click to expand...
Click to collapse
Decompile secsettings and in AndroidManifest.xml change
Code:
<application android:theme="@*android:style/Theme.Holo"
to
Code:
<application android:theme="@*android:style/Theme.Holo.Light"
As you've modified AndroidManifest you'll need to sign it again and your ROM must have disabled security verification.
BOOTMGR said:
Decompile secsettings and in AndroidManifest.xml change
Code:
<application android:theme="@*android:style/Theme.Holo"
to
Code:
<application android:theme="@*android:style/Theme.Holo.Light"
As you've modified AndroidManifest you'll need to sign it again and your ROM must have disabled security verification.
Click to expand...
Click to collapse
Okok... for signing i use apk multitool ... and for disabled security verification how can i do ? Thanks for the reply
PS: Now its appear but anyway when i try to enter in the application manager i got fc :/ its the same in the keyboard and input
Enviado desde mi GT-I9070 mediante Tapatalk
Javho said:
Okok... for signing i use apk multitool ... and for disabled security verification how can i do ? Thanks for the reply
PS: Now its appear but anyway when i try to enter in the application manager i got fc :/ its the same in the keyboard and input
Enviado desde mi GT-I9070 mediante Tapatalk
Click to expand...
Click to collapse
Ok i got fc not only application manager and i dont know for what.... i hot fc with 5 or more option when i pressed in settings app ... i follow the tut without errors and i disabled the verification, could you help me ? Please. thank in Advanced
Enviado desde mi GT-I9070 mediante Tapatalk
FC
great guide @BOOTMGR but, some options on settings FC: aplication manager, language and input, add account and blocking mode. i'm attach my logcat and please help me to fix it
ocoot said:
great guide @BOOTMGR but, some options on settings FC: aplication manager, language and input, add account and blocking mode. i'm attach my logcat and please help me to fix it
Click to expand...
Click to collapse
anyone have a idea how we can solved the FC's? please :c
Javho said:
anyone have a idea how we can solved the FC's? please :c
Click to expand...
Click to collapse
see this bro http://forum.xda-developers.com/showthread.php?t=2685748
Text getting cutoff
Any idea how this can be fixed
http://www.4shared.com/photo/oKZor-PCba/Screenshot_2014-05-12-08-59-04.html