[REQ] [Help] APKtool recompiling - HTC Wildfire S

i have edited settings.apk to have a new layout, i followed this tutorial
http://forum.xda-developers.com/showthread.php?t=2105652&page=2
i am getting this error
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at java.util.zip.ZipFile.<init>(ZipFile.java:148)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
i have uploaded a zipped vesion of the decompiled files the original settings.apk and the framework files im using
thanks in advance
https://docs.google.com/file/d/0BzZrZh53GBM7QjBXY3hONnZ3TVU/edit?usp=sharing
https://docs.google.com/file/d/0BzZrZh53GBM7TWRmOXZ3T0h5M0E/edit?usp=sharing
https://docs.google.com/file/d/0BzZrZh53GBM7QXViX3IyVUR5U0E/edit?usp=sharing
(had troubles with xda attachments)
Matyhew

Me and thehacka1 are facing this errors too..
Does someone know a better tool or program for de- and recompiling APKs? I've Windows 8 and Linux Ubuntu...
Gesendet von meinem HTC Wildfire S mit Tapatalk 2

djolivier said:
Me and thehacka1 are facing this errors too..
Does someone know a better tool or program for de- and recompiling APKs? I've Windows 8 and Linux Ubuntu...
Gesendet von meinem HTC Wildfire S mit Tapatalk 2
Click to expand...
Click to collapse
ScardracS suggested gedit but I use Windows and gedit is for Linux.
Sent from my HTC Wildfire S A510e using xda app-developers app

thehacka1 said:
ScardracS suggested gedit but I use Windows and gedit is for Linux.
Sent from my HTC Wildfire S A510e using xda app-developers app
Click to expand...
Click to collapse
Gedit is Ubuntu's default text editor nothin to do with APKs to be fair....
Matyhew

matyhew said:
Gedit is Ubuntu's default text editor nothin to do with APKs to be fair....
Matyhew
Click to expand...
Click to collapse
Gedit to edit arrays.XML without decompiling apk.
Sent from my HTC Wildfire S A510e using xda app-developers app

Is that possible?
Gesendet von meinem HTC Wildfire S mit Tapatalk 2

djolivier said:
Is that possible?
Gesendet von meinem HTC Wildfire S mit Tapatalk 2
Click to expand...
Click to collapse
no i just tried it...
Matyhew

I had some similar errors thrown when I started playing with APKTool on Win7. To fix, I made sure that apktool.jar and aapte.exe were current and I made sure that paths to Java were set correctly as described here:
How do you stop the error 'java' is not recognized as an internal or external command operable program or batch file

thehacka1 said:
ScardracS suggested gedit but I use Windows and gedit is for Linux.
Sent from my HTC Wildfire S A510e using xda app-developers app
Click to expand...
Click to collapse
If you like you can use notepad++ for windows but you mustn't decompile and recompile the apk... it take lots of time to open it (about 15/30 mins, it depend from your computer), but tou don't need to decompile
Powered by my Thunderbolt V1.2! (this isn't spam, this is my signature)

But there are some files that must be decompiled in order to be editable ...
Gesendet von meinem HTC Wildfire S mit Tapatalk 2

In the Android dev and hacking section there are other programs like apktool. Try one of those.
Sent from my Wildfire S A510e using xda app-developers app

HemRoyd said:
I had some similar errors thrown when I started playing with APKTool on Win7. To fix, I made sure that apktool.jar and aapte.exe were current and I made sure that paths to Java were set correctly as described here:
How do you stop the error 'java' is not recognized as an internal or external command operable program or batch file
Click to expand...
Click to collapse
thanks i dont use windows so its not for me I fixed the problem as aapt wasnt set to the right permissons found 5-7 different bug reports on the APKtool GCode and they all pointed to AAPT
thanks hope u fix the problem
Matyhew

Related

Having problems in recompiling systemui.apk

Hey guys as the title says I have been having some problems while recompilling systemui.apk .
Well the decompiling and everything else goes well but when I try to recompile it it just gives some errors and says 11 more errors.
Please can someone help me .
For the note I didn't change even a single letter in any file just decompiled and tried to recompile.
Sent from my HTC Wildfire S A510e using XDA
I used to have this problem but fixed it easily, can you confirm what OS you are using? (Linux, windows, Mac OS X)
Sent from my Wildfire S using XDA
rohil surana said:
Hey guys as the title says I have been having some problems while recompilling systemui.apk .
Well the decompiling and everything else goes well but when I try to recompile it it just gives some errors and says 11 more errors.
Please can someone help me .
For the note I didn't change even a single letter in any file just decompiled and tried to recompile.
Sent from my HTC Wildfire S A510e using XDA
Click to expand...
Click to collapse
plz tell the code you used to compile
mostly it is becuz you wrote it in wrong syntax..
see this .. it will help
http://forum.xda-developers.com/showpost.php?p=27340150&postcount=2
if you are editing ics apk, try to decompile with apktool 1.4.2 and recompile with apktool 1.4.3 or vice versa, i read somewhere apktool has issues
with ics apks and that is the trick to make it work
Sent from my HTC Wildfire S
VigiDroid said:
I used to have this problem but fixed it easily, can you confirm what OS you are using? (Linux, windows, Mac OS X)
Sent from my Wildfire S using XDA
Click to expand...
Click to collapse
my OS is Windows 7
mhrsolanki2020 said:
plz tell the code you used to compile
mostly it is becuz you wrote it in wrong syntax..
see this .. it will help
http://forum.xda-developers.com/showpost.php?p=27340150&postcount=2
Click to expand...
Click to collapse
as I told I didn't even edit any code, then also its giving the errors
mstfkaratas said:
if you are editing ics apk, try to decompile with apktool 1.4.2 and recompile with apktool 1.4.3 or vice versa, i read somewhere apktool has issues
with ics apks and that is the trick to make it work
Sent from my HTC Wildfire S
Click to expand...
Click to collapse
Nope systemui.apk from stock DEODEXED ROM
Sent from my HTC Wildfire S A510e using XDA
Please see this post.
http://forum.xda-developers.com/showthread.php?p=27610101
It's just that I created a theme with transparent background and black colour notifications.
So the text is not visible on the notifications.I tried to change with the option in uot but it just doesn't change.
So I decided to recompile the apk gold the xml responsible and then edit and recompile it.
This is the story hope anyone can help.
Sent from my HTC Wildfire S A510e using XDA
You have to set the path, I'm not sure about windows if you can set the path in cmd. I will have a look when I get to my PC
Sent from my Wildfire S using xda app-developers app
What are you talking about I started command prompt in apk tool directory then
gave APk tool both the dependency files
Then decompiled then didn't edit anything just recompiled and got errors if any one could try please take the system UI apk from uot pack from the link in my last post.
Sent from my HTC Wildfire S A510e using XDA

Request for cm10 clock on cm9

Is there anybody who can port cm10 clock to ICS? I don't know how many people feel the same but personally cm10 is still buggy for me to use but I love the clock as it has more options than cm9 clock..if anyone can port it I will be very grateful
Sent from my GT-I9100 using Tapatalk 2
Just pull ClockPackage.apk from CM10 nightly zip and replace apk in CM9.
Don't forget about right permissions (chmod 644 / rw-r--r--).
przemcio510 said:
Just pull ClockPackage.apk from CM10 nightly zip and replace apk in CM9.
Don't forget about right permissions (chmod 644 / rw-r--r--).
Click to expand...
Click to collapse
I tried that but its not installing...if I try to open apk on cm9 it saying problem parsing package ...its not recognising apk
Sent from my GT-I9100 using Tapatalk 2
By replacing I mean copy operation, not installing.
przemcio510 said:
By replacing I mean copy operation, not installing.
Click to expand...
Click to collapse
Yes I understand pushing it into system apps and setting the appropriate permissions... but I mentioned I'm unable to open open apk to point out that ICS isn't even recognizing it as a valid apk...the app should at least open but instead I get a parsing package error...so neither does it open nor does it install when I push it into system and set permissions and do a reboot
Sent from my GT-I9100 using Tapatalk 2
If your getting parsing error then most likely its not compatible with ICS.
Sent from my GT-I9000 using xda premium
NIMBAH said:
If your getting parsing error then most likely its not compatible with ICS.
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
Yes I know its not compatible with cm9 hence the request for port
Sent from my GT-I9100 using Tapatalk 2

[Q] Same app twice

There is a way to have the same app twice, like in online game, instead of logging out everytime, i want to have two apps for two users,
Is it possible ?
Sent from my R800i using Tapatalk 2
kingston951 said:
There is a way to have the same app twice, like in online game, instead of logging out everytime, i want to have two apps for two users,
Is it possible ?
Sent from my R800i using Tapatalk 2
Click to expand...
Click to collapse
Yes, by renaming the app through the Manifest.xml
ATTACK said:
Yes, by renaming the app through the Manifest.xml
Click to expand...
Click to collapse
How i can access that file ?
Sent from my R800i using Tapatalk 2
Decompile with Apktool
Navigate to:
Code:
.apk/AndroidManifest.xml
Open with Notepad++
Look for:
Code:
package="com.android. ---- "
And just add a letter to the end and recompile
ATTACK said:
Decompile with Apktool
Navigate to:
Code:
.apk/AndroidManifest.xml
Open with Notepad++
Look for:
Code:
package="com.android. ---- "
And just add a letter to the end and recompile
Click to expand...
Click to collapse
It's can't be done from the mobile ?
Sent from my R800i using Tapatalk 2
kingston951 said:
It's can't be done from the mobile ?
Sent from my R800i using Tapatalk 2
Click to expand...
Click to collapse
Nope
I forgot to mention that after you recompile you need to resign the apk with " sign apk"
Sent from my Galaxy Nexus using xda premium
help
ATTACK said:
I forgot to mention that after you recompile you need to resign the apk with " sign apk"
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
i dont really know how to use this program.
can you give the steps just for editing the manifest.xml ?
kingston951 said:
i dont really know how to use this program.
can you give the steps just for editing the manifest.xml ?
Click to expand...
Click to collapse
Sent PM...

[Q] Aroma installer

Could someone explain my how I need make to add aroma installer in my rom?
Powered by my HellFire!
yes
ScardracS said:
Could someone explain my how I need make to add aroma installer in my rom?
Powered by my HellFire!
Click to expand...
Click to collapse
1. Extract it anywhere
2. Replace aroma-config (attachment) with the old one in "ROM.zip/META-INF/com/google/android/"
aroma-config.zip - [Click for QR Code] (4.2 KB, 2 views)
ScardracS said:
Could someone explain my how I need make to add aroma installer in my rom?
Powered by my HellFire!
Click to expand...
Click to collapse
Download latest AROMA 2.56 zip from amarrulz thread and read through his guide.
Sent from my HTC Wildfire S A510e using xda app-developers app
AW: [Q] Aroma installer
iPlopp4D said:
1. Extract it anywhere
2. Replace aroma-config (attachment) with the old one in "ROM.zip/META-INF/com/google/android/"
aroma-config.zip - [Click for QR Code] (4.2 KB, 2 views)
Click to expand...
Click to collapse
Nono, that's just a fix for MY ROM where aroma's already included
Gesendet von meinem Wildfire S A510e mit Tapatalk 2
R: [Q] Aroma installer
djolivier said:
Nono, that's just a fix for MY ROM where aroma's already included
Gesendet von meinem Wildfire S A510e mit Tapatalk 2
Click to expand...
Click to collapse
I know
Sent from my Wildfire S A510e using xda app-developers app

Drop Down Mod

Is your Drop Down Notification panel boring here are few good one
First of all all these images are not my work but is being borrowed from xperia z forum from original creator @Linexis
http://forum.xda-developers.com/showthread.php?t=2259460
So i found these good looking dropdown images and i wanted to share with you guys. it works with every rom
Instructions for VIPER ONE USERS
1) Goto Venom Tweaks
2)Wait 5sec or donate
3)Swipe to status bar
4)scroll down to notification pulldown tweaks
5)select use backrond image and select any of these or you can create yors also
Instruction for all other roms
goto system/app/systemui.apk
copy it using root explorer
decompile it and goto res folder
then drawable-xhdpi folder
rename the downloaded file to notification_panel_bg.9
and paste these and relace the existing file with same name.
compile systemui.apk and paste it back using root explorer
https://docs.google.com/file/d/0BxzJlxl7MESUOVc0UDJzbWNuc0E/edit?usp=sharing
Nice, ty
Gesendet von meinem HTC One mit Tapatalk 4
pixelschupsa said:
Nice, ty
Gesendet von meinem HTC One mit Tapatalk 4
Click to expand...
Click to collapse
Welcome
Sent from my HTC One using xda premium
Great pics there..
Sent from my HTC One using XDA Premium 4 mobile app

Categories

Resources