ok, i must be missing something here. can anyone one help? everytime i decompile an apk, i'll open the xml i want to make changes to and make the necessary changes. i then recompile the apk. i flash the file to my phone and no changes have been made. because of this i have pulled the same apk back from the phone that i modified, decompiled it and none of the xml changes i made are incorporated.
i've tried removing the resources.arsc as the instructions say and i just get bootloops after flashing. when leaving the resources.arsc the phone boots and functions properly but no xml changes are made.
can someone give me their opinions on this?
Related
I have been trying to edit the systemUI.apk I have got as far as adb pushing the edited apk but after reboot and all the wipes it just stops the status bar from ever loading. I have tried the apktool apkmanager and droid explorer. I' think im doing the decompiling and compiling correct. I just cant seem to find what im doing wrong. Can this apk be edited? I just cant seem to find whats causing a issue or whats missing.
PLease HELP!!!!
michael
emjaycee30 said:
I have been trying to edit the systemUI.apk I have got as far as adb pushing the edited apk but after reboot and all the wipes it just stops the status bar from ever loading. I have tried the apktool apkmanager and droid explorer. I' think im doing the decompiling and compiling correct. I just cant seem to find what im doing wrong. Can this apk be edited? I just cant seem to find whats causing a issue or whats missing.
PLease HELP!!!!
michael
Click to expand...
Click to collapse
is it a 9.png ? are you resizing? are you changing the color mode?
its in a smali file. The whole thing i'm trying to do is hide the am/pm on the clock, hide the gps icon, hide the HAC icon, and the alarm clock. They all show 24/7 and i dont need to see them.
emjaycee30 said:
its in a smali file. The whole thing i'm trying to do is hide the am/pm on the clock, hide the gps icon, hide the HAC icon, and the alarm clock. They all show 24/7 and i dont need to see them.
Click to expand...
Click to collapse
What ROM are you using? If you can compare the mods by steelh on stock roms should give you an idea if the edit was bad. I know this might not be the answer you are looking for, but that's the best I could come up with without looking at your edits.
Lets say i decompile it with apktool, make no edits, recompile and then still it will not load
---------- Post added at 05:55 PM ---------- Previous post was at 05:44 PM ----------
when the apk is decompiled the smali files are from the classes.dex file right?
so if i compile the apk and then change to a zip and take the new edited dex file out and put it in the original apk over the dex file it should be a adb push then clear cache and dalvik cache and reboot and if it takes the edits it will work?
i have tried that and it just gets a force close on status bar and then never loads or gives anymore messages. just no status bar at all.
my edits im sure are right, but even if they were the problem if i make no edits and try to decompile and recompile, still no worky..... its sad really, once i get this done i will be complete with my phone and we can have babys....... come on some one help me i need phone babies!!!
---------- Post added at 06:10 PM ---------- Previous post was at 05:55 PM ----------
the rom is 2.3.3 4.24.651.1 cl61076 release-keys its the stock sprint rom from rom manager that was rooted zipaligned blah blah.......
What version of apkmanager r u using. In some versions the apktool is messed up
free the dirk
no resolution?
I pulled my systemui.apk, decompiled it, edited to show 1x vs 3g, compiled it, repackaged it, and pushed it and now my notification its gone.
I also need to know where i made the mistake
I just did that this morning. Just the alarm hiding for me. I use apk manager 4.9. I noticed that I got an error sometimes when I decompile, so I use option 10 to decompile with the framework-res as a dependency. The other difference is I put it in a zipped theme instead of adb pushing, but I don't think that would make a difference. Finally, I have been slowly making mods over a few weeks, so I am not sure if I started with a stock SystemUI or someone elses.
When you decode systemui you need com.htc.resources.apk for the additional resources. You won't need framework-res as apktool has those resources built in (for decoding systemui).
From all your posts I see you're missing one crucial step....you need to transfer the signature. With system/apps you don't resign, but rather transfer the signature. In 7zip or betterzip, open the original apk. Take out the directory called META-INF. That is the Sig. Place that in your new recompiled apk. Then push.
And when pushing apks that deal with the basic framework, here is what you need to do.
adb remount
adb shell stop
adb push SystemUI.apk /system/app/
adb sync (optional)
adb shell start
Technically SystemUI is system/app not a framework file....but it controls things related to the framework (ie the statusbar).
tapatalk signature here. lovely.
hello all. I've been reading threads about pulling, pushing, editing, unpacking, signing, and all that for days now, but I still can't get my edited framework-res.apk to actually take effect .
I'm just trying to change some of the system notification icons, but when I replace the .apk, and reboot, the changes never take place. what am I doing wrong?
also apk tool CANNOT recompile my framework-res.apk, and since I'm only doing .png changes (not a 9.png mind you) I just open the original framework apk and overide the pngs that I want... at that point, I dont resign or anything...
I am rinning Swagged out Stock based on 2.3.5
kernel: 2.6.35.10-g4b48446
build: SOS N
software: 2.0.9\4.67\ODEX
and using clockworkMod 5.0.2.2
-I've tried just using root explorer to overide the original and permissions, and after I reboot no changes took place.
-I've tried adb pushing to the framework folder (but with not fancy permission commands, could that be the issue?) and then wiping dalvik(sp?) cache but no changes took place.
-I've also tried using an update.zip file but i can't figure out the actual code that needs to go into the "update-script" file.
Anyway, is there an obvious reason why I'm failing? I had success with editing and updating other .apk files (my music.apk for example works fine when I decompile ... compile.... and sign)
thanx for any help!
I have questions...
I've got a UK T-mobile N7105, running the stock ALIJ build, and it is, of course, rooted.
I followed this guide: http://www.blindndumb.com/2012/04/android-tutorial-how-to.html but I had to use apktool 1.5.0 instead of the versions quoted.
Using apktool 1.5.0 I have been able to decompile framework-res.apk, add items to the arrays.xml file, then recompile the .apk file.
I verified that my changes had taken place by again decompiling the apk file and checking the arrays.xml file. All was good.
I then renamed the original framework-res.apk on the phone and copied my customised one into its place.
Nothing at all changed on the side bar, even after a reboot.
I haven't attempted using the tool that's linked from this thread: http://forum.xda-developers.com/showthread.php?t=1939780 because it states it's for the N7100
What have I done wrong?
And now for the second question...
I'm not a programmer, nor do I have any real understanding of how Android is "put together" so keep this in mind before flaming me. LOL
Some builds of the Note II have an edit button on the multi window side bar. Some don't.
Since Android is open source, how easy would it be to simply copy the appropriate bit of code from one build (say, ALJ3) to ALIJ?
How to configure notepad++ for editing XML files.
While trying to open XML file i got the way show in attached image
Please help...............
Thanks in advance.
chiragvagh said:
How to configure notepad++ for editing XML files.
While trying to open XML file i got the way show in attached image
Please help...............
Thanks in advance.
Click to expand...
Click to collapse
I suspect this xml is from an apk. I also had this problem, and it turns out that notepad++ only opens xml that are in NORMAL zips, and not from APKs
Press the thans button if I helped
Isnt there a way to edit xml files using Notepad++.
I had even tried xml from normal zips, I get the same screen
You need to decompile the apk first.
Dear,
I am not trying to edit APK, this file is AndroidManifest.xml from framework-res.apk.
I have decomplied framework-res.apk using winrar and than opened AndroidManifest.xml in Notepad++.
but as you can see attached image above i got.
Please help.......
chiragvagh said:
Dear,
I am not trying to edit APK, this file is AndroidManifest.xml from framework-res.apk.
Click to expand...
Click to collapse
So you are trying to edit an apk then, which has to be decompiled first, and doesn't look like you have. This is what my AndroidManifest looks like in NP+...
EDIT: Choose the second option under Encoding on the menu bar and see if that changes anything if you have decompiled.
I wanted to increase number of volume step following this (http://forum.xda-developers.com/showthread.php?t=1411317&page=20)
I pulled the framework.odex and baksmali it but it didn't work because of dependency or something like that. Then I pulled all the odex file in there and succesfully baksmali framework.odex
I edited the smali file needed and then smali it to framework.dex. This is where I'm stuck.
The original framework use odex file, not dex file. So I guess I need to reodex the framework.dex to odex. But all the guides I found about reodex seem to be used for cooked rom, the jar files all have classes.dex in it and there 's no odex file.
Then I tried to put framework.dex into original framework.jar file (after change its name to classes.dex), use command "dexopt-wrapper framework.jar framework.odex", and overwrite the original framework.odex. The device coudn't start, it stuck at "nokia" text (is it called bootloop?)
So what is the proper way to do it ? Thanks
PS: I did it. There is a very similar example here, I missed a few thing: http://www.jordanhotmann.com/2011/08/how-to-change-default-orientation-of.html
MarryJ said:
I wanted to increase number of volume step following this (http://forum.xda-developers.com/showthread.php?t=1411317&page=20)
I pulled the framework.odex and baksmali it but it didn't work because of dependency or something like that. Then I pulled all the odex file in there and succesfully baksmali framework.odex
I edited the smali file needed and then smali it to framework.dex. This is where I'm stuck.
The original framework use odex file, not dex file. So I guess I need to reodex the framework.dex to odex. But all the guides I found about reodex seem to be used for cooked rom, the jar files all have classes.dex in it and there 's no odex file.
Then I tried to put framework.dex into original framework.jar file (after change its name to classes.dex), use command "dexopt-wrapper framework.jar framework.odex", and overwrite the original framework.odex. The device coudn't start, it stuck at "nokia" text (is it called bootloop?)
So what is the proper way to do it ? Thanks
PS: I did it. There is a very similar example here, I missed a few thing: http://www.jordanhotmann.com/2011/08/how-to-change-default-orientation-of.html
Click to expand...
Click to collapse
It's really great that you created something for yourself. But what will be even more greater, if you shared it withe community. So I advise that when you finish with this project and if successful, upload it so that we can also admire your work.