Closed - EVO 4G General

I decompiled made all my changes,! Tried several times to get it recompiled.finally got it and the apk won't install parse package. Two days of code changing to make this,so if you can help me please advise on fix.Edit got it windows sucks...Linux rules.

blaz1nr said:
I decompiled made all my changes,! Tried several times to get it recompiled.finally got it and the apk won't install parse package. Two days of code changing to make this,so if you can help me please advise on fix.
Click to expand...
Click to collapse
You might want to try signing the apk,but then again,if you havent edited the manifest you wont need to sign it.Also make sure you drop the com.htc.resources.apk in the main CMD window before decompiling the apk. or it wont work.

Correct me if I'm wrong but...I didn't think you installed systemui like a normal app...if it recompiled without errors try pushing it to /system/app
Sent from my PC36100 using XDA

I was pushing it to system app. I think as it turns out it was my PC causing the problem. I'm fixing that right now. So I should be good to go.

Related

(Dev) Here goes nothing

This is my attempt to get some more creativity, innovation, and roms here on xda. alot of people here have incredible skills but they cant be harnessed because they dont know what to do. if you are an artist we need you make icon packs. you have made 30 roms but you cant sign them. blah blah.
so no one abuse this but i attached a toolkit to do anything and everything with android on windows. im pushing this to be used for creating themes. hopefully it can help. but i thought it would be nice if everyone had this and the opensource community could start to grow even more.
i like this idea because it can help fellow Devs and even the watchers. everyone can get involved and give something to the community.
And now i present the Avabox
Any questions post them up.
OUTLINE------------------------------------------------------------
unyaffs-you have the ability to take system.img and data.img from you nandroids and get specific items from them.
Autosign- sign anything and everything. name your zip update.zip and follow the readme. roms themes, apps, anything.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Perlscripts- this opens the boot.img for you.
Read the readme on all of these programs.
So this is going to be a quick tutorial Im gonna put up a video soon on how i got this to work on my computer
First things first download Avabox and unzip it in your C folder (same place you put androidsdk).
then get the java runtime from here not to be confused with the java development kit but since your there might as well grab it as well.
Install the java runtime then reboot
then open up avabox and click on autosign and place the zip you want signed in that folder and name it update.zip (dont add the .zip part it should already be a zip file).
then open up command prompt and type:cd\
cd Avabox/auto-sign
java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip
After that last enter give it a second and look in your avabox/update file and you'll notice a new file called update_signed.zip
I know that this is almost word for word from the read me but a few differences can go along way expect a video shortly..... well around wednesday or whenever i can get someone to help with this
porting
im interested in learning how to port and combine different aspects of themes and other mods. will this do it or is there other software i need. I can do the work if shown the way. I read all the post everday with peopl;e asking for this and that and i do it myself. If shown I would help with requests as much as possible. HELP PLEASE
Thank you Avalaunch!!
so with this software, can i take a signed theme mod (like launcher or taskbar) and it will grab the images for me to edit, and then repack and sign to a flashable zip?
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Avalaunchmods said:
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Click to expand...
Click to collapse
It changes the classes.dex and resigns it it looks like, but doesn't copy the mods of the pngs to the apk.
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
You need to update the baksmali and smali .jar's. You have older versions and that will cause issues with certain .jar and .apk's when decompiling. baksmali-1.2.1.jar and smali-1.2.1.jar are the latest versions and will not require the BOOTCLASS PATH to be included...
Does the autosign work windows 7 (64 bit)? I've heard issues with other autosigns on 7. If it doesn't, no biggie I got xp in a VM... lol
obannvi said:
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
Click to expand...
Click to collapse
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Click to expand...
Click to collapse
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
obannvi said:
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
Click to expand...
Click to collapse
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
regaw_leinad said:
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
Click to expand...
Click to collapse
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
obannvi said:
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
Click to expand...
Click to collapse
yeah, not working too well atm, but working on it.
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
i guess i need to explain more. i use baksmali to make apks easier to search through. for me at least. instead of changing the type and everything i just put it in the folder and baksmali then do changes and create a new archive. sign and change .apk. if you smali it back to apk then it wont save edits. sorry about that anyways has this helped people so far? i love showing that windows can be a dev platform
&RoidRage said:
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
Click to expand...
Click to collapse
yes just google active perl i use win 7 64bit and when this toolbox was made, it was only made for certain people who had 64bit.
Sorry for the n00b question, but I have searched and haven't had much luck. Hopefully, this is the best place for this question. I just started editing .png's and updating some apk's files to customize some things on my phone for looks. However, I am really interested in modifying the taskbar and notification screen, but I have no clue where to start. Is there a guide somewhere I could follow to learn how to change them? What programs, if any additional ones will I need etc..?
Thanks for your help!
Figured it out on my own. framework.apk and resources.apk

Decompiling/compiling SystemUI.apk

I have been trying all night to compile SystemUI.apk
Does anyone have a quick link to a guide that they used to de/compile SystemUI.apk so i can change some smali and some .xmls??
all the guides ive found have not solved my compiling issues.
Download apktool and set it up correctly make sure the latest java is installed along with the most recent jdk. You have to load the framework usually before you edit a system apk, and remember system.apk's don't need to be signed. Sometimes it is necessary to load a secondary framework-res most likely for tw roms/firmware
apktool if framework-res.apk
apktool d SystemUI.apk
Leave window open
apktool b SystemUI blahblahblah.apk
After it's done
Drag meta-inf and androidmanifest.xml from old apk to new one, zip align and rename blahblahblah.apk to specific apk and voila push to system/app set permissions rw-r-r or chmod 644 reboot wipe cache and dalkvik fix permissions and you're ready to rock and roll
There is a thread on xda by ibotpeaches concerning apktool I would take a long hard look at it before you get into this stuff. Wouldn't want you messing anything up getting your phone stuck in a boot loop.
USMC0341 said:
Download apktool and set it up correctly make sure the latest java is installed along with the most recent jdk. You have to load the framework usually before you edit a system apk, and remember system.apk's don't need to be signed. Sometimes it is necessary to load a secondary framework-res most likely for tw roms/firmware
apktool if framework-res.apk
apktool d SystemUI.apk
Leave window open
apktool b SystemUI blahblahblah.apk
After it's done
Drag meta-inf and androidmanifest.xml from old apk to new one, zip align and rename blahblahblah.apk to specific apk and voila push to system/app set permissions rw-r-r or chmod 644 reboot wipe cache and dalkvik fix permissions and you're ready to rock and roll
There is a thread on xda by ibotpeaches concerning apktool I would take a long hard look at it before you get into this stuff. Wouldn't want you messing anything up getting your phone stuck in a boot loop.
Click to expand...
Click to collapse
I already know about installing the framework, and i installed both twframework-res.apk and framework-res.apk. i also installed SystemUI.apk as per several posts. I already read through ibotpeaches' post, that is where i got apktool afterall = ). in still running into compiling errors however.
Any ideas?
As implied, I have decompiled no problem, its compiling im running into issues with.
Nv1dia said:
I have been trying all night to compile SystemUI.apk
Does anyone have a quick link to a guide that they used to de/compile SystemUI.apk so i can change some smali and some .xmls??
all the guides ive found have not solved my compiling issues.
Click to expand...
Click to collapse
Here you go man he tells you exactly how to do it its not that hardhttp://forum.xda-developers.com/showthread.php?t=2279024
Sent from my GT-I9505 using xda premium
jthrasher47 said:
Here you go man he tells you exactly how to do it its not that hardhttp://forum.xda-developers.com/showthread.php?t=2279024
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
I am afraid this is not the answer as my errors look nothing like that. I remember reading a while back when i themed for the GS3 that i needed to move files out of apk before decompiling, i can't seem to find this page again however..... in any case thank you both for the help, i will just have to continue looking.
Nv1dia said:
I am afraid this is not the answer as my errors look nothing like that. I remember reading a while back when i themed for the GS3 that i needed to move files out of apk before decompiling, i can't seem to find this page again however..... in any case thank you both for the help, i will just have to continue looking.
Click to expand...
Click to collapse
Why haven't you posted the log so the compile error can be seen. How can you expect help without giving all the vital information?
Sent from my SAMSUNG-SGH-I337 using Tapatalk 4 Beta
Nv1dia said:
I am afraid this is not the answer as my errors look nothing like that. I remember reading a while back when i themed for the GS3 that i needed to move files out of apk before decompiling, i can't seem to find this page again however..... in any case thank you both for the help, i will just have to continue looking.
Click to expand...
Click to collapse
That link is showing the framework-res.apk error. Your getting "style" errors correct? You need to modify 2 XMLs from the res/layout folder. And cause I'm a nice guy I'll link you to my DB that has the modified ones and originals. PM me and I'll share my DB folder with you. Its very easy. The aapt for apktool needs updating but we Ave to resort to workarounds for the time being. Same thing for framework-res.apk and others. We'll get ya straightened out!
Sent from my SPH-L720 using Tapatalk 2
reverepats said:
That link is showing the framework-res.apk error. Your getting "style" errors correct? You need to modify 2 XMLs from the res/layout folder. And cause I'm a nice guy I'll link you to my DB that has the modified ones and originals. PM me and I'll share my DB folder with you. Its very easy. The aapt for apktool needs updating but we Ave to resort to workarounds for the time being. Same thing for framework-res.apk and others. We'll get ya straightened out!
Sent from my SPH-L720 using Tapatalk 2
Click to expand...
Click to collapse
I have resolved the issue.. Thanks for the help though! Turns out a simple reboot of my computer was all i needed. I wasnt getting a styel error. It was a simple Java error is all. Thank you everyone for all your help!

[Q] translating a chinese opera...

I was trying to translate a chinese opera browser. So I decompiled the apk with apktool. To test if it works, I edited app_name_title in /res/values/strings.xml. Then recompiled and signed it. After installing, it worked because it's app name was changed according to the translation but when i launch the app it force close after showing the Opera logo. What can i do now ?
madboy777 said:
I was trying to translate a chinese opera browser. So I decompiled the apk, edited /res/values/strings.xml. Then recompiled and signed it. After installing, when i launch the app it force close after showing the Opera logo. What can i do now ?
Click to expand...
Click to collapse
logcat it then you read the logs and find out what is causing the force close
marcussmith2626 said:
logcat it then you read the logs and find out what is causing the force close
Click to expand...
Click to collapse
Yes, I tried "logcat -v long" and "logcat /E" but can't figure out the problem. Actually I don't understand it fully. What i saw is that when i launch the app two shared lib files are loaded and nothing else.
madboy777 said:
Yes, I tried "logcat -v long" and "logcat /E" but can't figure out the problem. Actually I don't understand it fully. What i saw is that when i launch the app two shared lib files are loaded and nothing else.
Click to expand...
Click to collapse
did the app work before you edited it?
it may be that the name you changed is referenced in different locations
other than that cant really help you
marcussmith2626 said:
did the app work before you edited it?
it may be that the name you changed is referenced in different locations
other than that cant really help you
Click to expand...
Click to collapse
No i changed the chinese name that appeared on the launcher. OK I will edit something other than this tomorrow. Thank you very much.
marcussmith2626 said:
did the app work before you edited it?
it may be that the name you changed is referenced in different locations
other than that cant really help you
Click to expand...
Click to collapse
I just decompiled and compiled without editing. The app doesn't work. So apktool is the real problem. That app worked before i decompiled and recompiled.
What can i do now ???
madboy777 said:
I just decompiled and compiled without editing. The app doesn't work. So apktool is the real problem. That app worked before i decompiled and recompiled.
What can i do now ???
Click to expand...
Click to collapse
make sure you are using the correct framework-res to decompile and recompile
most 3rd party apps use jb framework
you may also need to resign the apk
marcussmith2626 said:
make sure you are using the correct framework-res to decompile and recompile
most 3rd party apps use jb framework
you may also need to resign the apk
Click to expand...
Click to collapse
Where can i download jb framework ? I signed the apk and it installed so signing might not be any problem.
madboy777 said:
Where can i download jb framework ? I signed the apk and it installed so signing might not be any problem.
Click to expand...
Click to collapse
here you go
http://d-h.st/zAg
marcussmith2626 said:
here you go
http://d-h.st/zAg
Click to expand...
Click to collapse
Thank you very much... Gonna try ASAP...
marcussmith2626 said:
here you go
http://d-h.st/zAg
Click to expand...
Click to collapse
apktool shows this error while installing framework-res.apk ...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:611)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:253)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:219)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:179)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:167
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
8)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
Press any key to continue . . .
madboy777 said:
apktool shows this error while installing framework-res.apk ...
Click to expand...
Click to collapse
either the file didnt upload properly or it didnt download properly or theres a problem with your apktool cause it works fine on mine using apktool if framework-res.apk
i'll download my upload and check
edit
iv checked my uploaded and that framework installs fine on my apktool
either it didnt download properly on your computer or theres a propblem with your apktool
I suggest downloading the file again and make sure you have the java developent tools JDK installed
marcussmith2626 said:
either the file didnt upload properly or it didnt download properly or theres a problem with your apktool cause it works fine on mine using apktool if framework-res.apk
i'll download my upload and check
edit
iv checked my uploaded and that framework installs fine on my apktool
either it didnt download properly on your computer or theres a propblem with your apktool
I suggest downloading the file again and make sure you have the java developent tools JDK installed
Click to expand...
Click to collapse
ok, md5 cheaksum of framework-res.apk matches with dev host. I have java(JDK) installed. downloading apktool_2.jar...
marcussmith2626 said:
either the file didnt upload properly or it didnt download properly or theres a problem with your apktool cause it works fine on mine using apktool if framework-res.apk
i'll download my upload and check
edit
iv checked my uploaded and that framework installs fine on my apktool
either it didnt download properly on your computer or theres a propblem with your apktool
I suggest downloading the file again and make sure you have the java developent tools JDK installed
Click to expand...
Click to collapse
downloaded apktool 2 beta 9 and it accepts your framework-res.apk but still no luck. That app still force closes. Is it possible that a 3rd party app can not be modified with apktool and if you do it will not work ?
madboy777 said:
downloaded apktool 2 beta 9 and it accepts your framework-res.apk but still no luck. That app still force closes. Is it possible that a 3rd party app can not be modified with apktool and if you do it will not work ?
Click to expand...
Click to collapse
cant really answer that as im not doing the modding but you should be able to mod anything
im guessing your apktool was out of date and couldnt accept jb firmware

Can't decompile SecSettings ApkTool

Hi
I try to decompile SecSettings by apktool and i get this:
Code:
C:\apktool>apktool d secsettings.apk SecSettings23
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f020052 drawable/avatar_default_6, config=-hdpi
at 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:10
5)
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(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a: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:128)
at brut.apktool.Main.main(Main.java:65)
What to do ??
Thanks
Please any help?
Same issue here
osherdadon said:
Please any help?
Click to expand...
Click to collapse
Using a Note 3 from T-Mobile, I pulled the file with the adb command, with root explorer, and extracted it from the stock ROM file all giving me the same error. For some reason I also don't get any smali files out of my SystemUI.apk which has been driving me crazy. I can't seem to find any working answers yet... Fail...
Basically bumping this thread a half a year later...
SOMEONE HELP US
You have the relevant frameworks installed and java in your path?
Learned a lot in 24 hours
DSA said:
You have the relevant frameworks installed and java in your path?
Click to expand...
Click to collapse
Summary/Lessons Learned in the last 24 hours:
I must have been too tired, went to sleep got up again and went at it. I realized a few things, main thing was deodexing, I learned all about that. Converting the .odex file to a class.dex file inside the SystemUI.apk and SecSettings.apk so decompiling would work properly (I was originally missing the smali folder without deodexing my app). Second I needed to pull all the framework files from my device instead of just the two I had, then I used "apktool if framework-res.apk" then "apktool if twframework-res.apk" then "apktool d SystemUI.apk" then "apktool d SecSettings.apk". This time it actually worked, I proceeded to try and re-compile them just to test. The SystemUI.apk worked flawlessly but the the SecSettings.apk had errors then I realized I needed to copy the AndroidManifest.xml and resources.arsc from the original app to the decompiled folder and the SecSettings.apk compiled with no issues. I had to get the original file out of the stock ROM, it had gotten damaged somehow with zipping/raring/7zipping so quicktip no one should be zipping the files you're about to work on get it fresh from the ROM.
Current Issue:
Now that all that's done I'm onto what I was trying to get at when I started this whole project. I need to modify both of these apps which are now perfectly deodexed and on my stock device. Every time I try to modify these files I lose my status bar and my settings stop working, I'm obviously breaking it, this is the XDA guide I was following.
Any help or redirection on where to post would be greatly appreciated, thanks
Easiest thing - put your mod back in and get the status bar to disappear/fc whatever
Then, pull a log (catalog from appstore works fine)
Post that log at pastebin and link it here
We won't be able to solve your issue without knowing what it is, in the first place
Like this?
This was before I restarted: Log 1
Then I recorded for a little after I restarted probably pointless but that's where the error would have been: Log 2
DSA said:
Easiest thing - put your mod back in and get the status bar to disappear/fc whatever
Then, pull a log (catalog from appstore works fine)
Post that log at pastebin and link it here
We won't be able to solve your issue without knowing what it is, in the first place
Click to expand...
Click to collapse
Not sure exactly how to record it and send it to you, I pressed record but when the phone finished rebooting CatLog was closed so I reopened it and it keeps scrolling endlessly.
Research progressed a little
I came across a post here in the Flashlight Mod development thread which made me realize I'm not getting the ID's correct. They suggest compiling the modded SystemUI.apk to get the ID's into the apk file under the /res/values/public.xml file, then decompiling it to read the ID values. I'm missing a step or doing something wrong, I can't replicate it to find the ID values I need so I can add them to the .smali file and recompile a final time. I'm sure this is the only reason for the missing status bar and the force closes. I guess I need help understanding, a different set of instructions or just more detailed?
I can't post in that thread yet so I'm getting my posts up over here, I already posted in the Q&A thread but no one has responded yet, any help is greatly appreciated!
I get this when decompiling the modded apk: Modded SystemUI ApkTool Decompile
All these errors look like the file is broken now or something, I'm just lost at this point. I tried ApkTool 1.5.2 and 2.0 as well.
EDIT:
Additional info below for troubleshooting purposes since it seems my issue recompiling at the end to get the values for my public.xml
STEPS:
1. deodex (universal deodexer v5)
2. decompile (apktool 1.5.2 & 2.0 separate tests)
3. modify (add flashlight .png's and .smali file from 4.4kk flashlight mod files)
4. recompile (apktool)
5. decompile (apktool)
=
Errors <<<<< These errors solved in edit below
EDIT:
I forgot to use "apktool if SystemUI.apk" when loading "framework-res.apk" & "twframework-res.apk" now I get through decompiling and recompiling like I thought I should be and I even located the values int he public.xml, replaced them in the .smali and everything went peachy. Only problem is I never get the status bar after I reboot, not really getting any FC's but the status bar, if my goal were to get it to be invisible I would be so happy omg lol If you're curious I've also tested by signing and even another test with zipalign, nothing zip/zero/zilch...
EDIT... Again I know still no sleep, durp durp:
So my main issue was not using apktool v1.5.2 to decompile and v2.0 to compile EVERY SINGLE TIME, NO EXCEPTIONS. When I followed that simple rule I get it onto my device and she has no status bar... Hmmmmm..... And a logcat for anyone smart enough to help me
EDIT:
Maybe I'm in the right direction with an error I saw in the log at this post? I thought it was so I installed the DisableSignatureVerification Mod from the Xposed Modules and still nothing.
Calling All Developers
It's been like 2 weeks just curious if anyone has even looked at this, I haven't been able to make any progress so I started learning how to develop apps. I made two small apps basic flashlight and a counter app but I really want to know why I'm totally unable to mod a file on my phone. I can't get the ink effect to work with finger input either I've been really trying to get this flashlight mod and the ink effect for months. If I could get pointed in the direction of a developer that can actually help me I don't see why I couldn't donate like $10 or $20 to the one who helps me. I'm on android 4.4.2 (NK3) on my Note 3 from T-Mobile.

Help needed - modding stock 5.0.2 LGSystemUI

Hello! I'm trying to make something relatively simple, but i'm doing something wrong. What i want to achieve is to change the stock battery icon with a circle with % inside. I managed to decompile LGSystemUI.apk using the latest apktool. I changed the pngs and edited the battery stats and chatging animation xmls. I'm not touching the .odex file since i don't have anything to change there. I recompiled the apk again using the apktool and zipaligned it. And here comes the issue - once i push it to the phone and reboot i get only desktop without navbar, status bar and lock screen. I don't get a FC but the Systemui is not loading properly. I also tryed to sign the zipaligned apk which resulted in constant FC from LGSystemUI, something which i don't get is the apk is not signed. I lost a significant amount of time recompiling and trying different combinations but the result is always the same - either fc or no fc but ststemui is not loaded. Can you do please help me with some ideas what i might be doing wrong?
Sent from my LG-D802 using XDA Free mobile app
I use Advanced APK Tool , and have changed apktool.jar to 2.0.0 RC4.
DonĀ“t sign the file, that is wrong.
Have u tried only replace the new (recompiled) files in the original LGSystemUI.apk (the xml & png , ressources if u need)
i tried several tools and many combinations today - they're all either FC-ing or just giving the desktop without status bar, navbar and lock screen. i tried both odexed and deodexed version. i tried taking files from the original lgsystemui.apk, i also tried injecting already compiled xml and png-s to the original - nothing. i have the feeling i'm missing something. i'm installing both the framework-res.apk and the lge-res.apk to the tools i tried to work with. everything decompiles and recompiles without a single error. no matter what i try i get the same 2 types of errors, which i mentioned above. i also tried not signing, signing with the original signature and signing with a new signature. everything should be relatively simple, but the output never works. do i need to decompile/recompile (or deodex) the framework too?
show me your changed files, i will try for myself
I tried to do some changes too, I tried deodexing systemUI and odex and same result as you
Hi i see you have manged to make it work in your other thread. May i know which files and code i need to edit in order to make this work. I know how to compile and decompile ,sign, zipalign......etc. i have checked other tutorials to do this in the net but to no avail. Ty in advance.
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
d_ave said:
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
Cool ty, but which exact files and code i need to edit?. i know i am asking alot here but if you can answer me or refer me to a tutorial that helped you that will be great. i have already tried TickleMyAndroid to change the battery icon but it doesn't seem to work. So i prefer doing it the old way more easier to know what is going on. Thx
d_ave said:
Hello, yes I managed to make it work using the latest ApkTool 2.0.0 rc4. Also it's a good idea to use something like TickleMyAndroid tool or similar automated de/recompile script. You need to sign with the original signature in order to make it work. Also please keep an eye on the exact version of the ApkTool included in the tool, only rc4 is working fine with our stock Rom.
There's no need to deodex if you only want to make some cosmetic changes.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
@d_ave
I wanted to only change color of the LGContacts but now on lolipop its shows FC,so i am using the latest apk tool.jar with Advanced apk tool,so how should i sign and is there need for zipaligning the apk?

Categories

Resources