[Q] About the framework of Xoom mz607 - Xoom Q&A, Help & Troubleshooting

Where I can find the navigation button?
In system/framework there are 3 possibility apk to contain the navigation bar..framework-res, moto, blur-res ..so I decompiled all..but there aren't!! I want modify only graphics..
Someone can help me?
Thanks!

RokiRoki1997 said:
Where I can find the navigation button?
In system/framework there are 3 possibility apk to contain the navigation bar..framework-res, moto, blur-res ..so I decompiled all..but there aren't!! I want modify only graphics..
Someone can help me?
Thanks!
Click to expand...
Click to collapse
Hi,
I'm assuming you are talking about the soft keys. The navigation button images that you want to change are not located in the "system/framework" folder or the framework.apk at all. I would advise you to search google on Android Theming, to better understand the actual process/image locations before attempting blind system file modification.
If you modify the wrong file or make a tiny mistake and recompile, your system may not boot or dependent files may crash/force close.

Mjamocha said:
Hi,
I'm assuming you are talking about the soft keys. The navigation button images that you want to change are not located in the "system/framework" folder or the framework.apk at all. I would advise you to search google on Android Theming, to better understand the actual process/image locations before attempting blind system file modification.
If you modify the wrong file or make a tiny mistake and recompile, your system may not boot or dependent files may crash/force close.
Click to expand...
Click to collapse
Yes, the soft keys!:good:
Thanks for your answer, so you can link me some guides or websites?
Thanks again!

Related

[Q] (Q) OTA Battery Full notification

Has anyone found a way to remove the battery full notification from the 2.3.3 OTA Rom? I know this has been asked before, but I can't tell if the answer is still no, or I simply haven't found the correct thread.
Vorkosiganm said:
Has anyone found a way to remove the battery full notification from the 2.3.3 OTA Rom? I know this has been asked before, but I can't tell if the answer is still no, or I simply haven't found the correct thread.
Click to expand...
Click to collapse
It has been removed in most custom OTA ROMs
Assuming that I don't want to switch to another ROM, is it possible for me to remove the notification from the stock ROM (by modifying framework-res.apk or such), or can the removal only be done when compiling from LG's source?
Vorkosiganm said:
Assuming that I don't want to switch to another ROM, is it possible for me to remove the notification from the stock ROM (by modifying framework-res.apk or such), or can the removal only be done when compiling from LG's source?
Click to expand...
Click to collapse
It can removed from the stock rom, but you need to know exactly what you're doing, as far as modding smali in apks.
Can you give me any help to point me in the right direction for what I need to do? I think I know how to edit the apk's, and I am guessing that I would need to edit one of the xml files, but the naming conventions are not always logical. For example, config_animateScreenLights is related to the crt screen off animation for some reason.
Vorkosiganm said:
Can you give me any help to point me in the right direction for what I need to do? I think I know how to edit the apk's, and I am guessing that I would need to edit one of the xml files, but the naming conventions are not always logical. For example, config_animateScreenLights is related to the crt screen off animation for some reason.
Click to expand...
Click to collapse
This is not an xml edit, its a small smali edit, but here goes:
adb pull SystemUI.apk from /system/app and decompile SystemUI.apk, navigate to
\smali\com\android\systemui\statusbar\policy\StatusBarPolicy.smali
Find & remove the ENTIRE "showChargingComplete" method
then find and remove this line
Code:
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showChargingComplete()V
Recompile SystemUI.apk and push to /system/app, then reboot.
If this sounds too hard or tricky, let me know.
Thanks! That worked perfectly.
I don't suppose you could post a link to that modified SystemUI.apk file? I'd love to get rid of the battery full popup, but I've never compiled/decompiled an .apk, so it sure would be a time saver.
Thanks in advance!
I certainly can. A couple of things first. I found that using the OTA, you cannot just push the SystemUI.apk to your phone using adb (it has to do with the permissions baked into the ROM), I had to make a flashable zip. This means that you will need clockworkMOD to flash the zip. Also, the SystemUI.apk that I have includes xboarder56's green signal fix (from this thread: http://forum.xda-developers.com/showthread.php?t=1179748&highlight=ota+gingerbread). I can apply the battery popup fix to a stock SystemUI.apk if you want, just let me know. In any case, I have to recreate the flashable zip, so it will take a few days.
I'm rooted, running the rooted but stock ROM "P999_2.3.3_Stock_OTA" by xboarder.
The only mod I've added is the battery icon mod from this thread installed: http://forum.xda-developers.com/showthread.php?t=1190283&highlight=battery+mod
So I assume you can't just pull the SystemUI.apk and post, then copy in place using ES Explorer? If you can post a flashable .zip that works for me, whatever is easiest. Many, many thanks....

[Mod] Remove NFC Icon from Statusbar (Without XML edit)

If you find this icon as ugly as I do you probably researched and figured out that you could remove this by changing the OTHERS.XML in /system/csc/
If you have no problem editing the XML that is probably the easiest solution, however if you are like me and need to have a solution that works as a flashable zip that is indepenedent of the random carrier settings in others.xml this solution might help you.
This is the NFC apk from LL1 samsung release and should in theory be backwards and forwards compatible.
Tested on LL1 / TWRP.
If this works for you please give me thanks / rate the thread. If it doesn't let me know so i can figure out a more universal solution.
http://www.mediafire.com/?ycsa44am50rrfdi
I kinda like the NFC icon but I changed it to something else. Just swap out the icon with another icon.
just_visiting said:
I kinda like the NFC icon but I changed it to something else. Just swap out the icon with another icon.
Click to expand...
Click to collapse
Hi
Can You explain how did u done it? pls!
Where is the icon located?
Greets! Nick
etecdailey said:
Hi
Can You explain how did u done it? pls!
Where is the icon located?
Greets! Nick
Click to expand...
Click to collapse
Should be found in the NFC.apk in res/drawable-xhdpi
andybones said:
Should be found in the NFC.apk in res/drawable-xhdpi
Click to expand...
Click to collapse
Thank You!
andybones said:
Should be found in the NFC.apk in res/drawable-xhdpi
Click to expand...
Click to collapse
Hmm.. What kind of "apk tool" did u use to decompile & compile back?
I've tried APK Tool and it's not working.
etecdailey said:
Hmm.. What kind of "apk tool" did u use to decompile & compile back?
I've tried APK Tool and it's not working.
Click to expand...
Click to collapse
Winrar or 7zip will do. Drag the 'res/drawable-hdpi' folder out to and make the changes. Then drag the folder 'res/drawable-hdpi'' back into the apk. Depending on your Windows configuration, make sure there are no 'thumbs.db' files in ANY of the folder in the apk file before you replace the file in your phone or else you're gonna get some force-close upon reboot. Good luck.
PS: After you're comfortable with replacing icons then you go ahead and start replacing icon in all your other programs. systemui.apk, phone.apk, contacts.apk, email.apk, maps.apk, etc...
just_visiting said:
Winrar or 7zip will do. Drag the 'res/drawable-hdpi' folder out to and make the changes. Then drag the folder 'res/drawable-hdpi'' back into the apk. Depending on your Windows configuration, make sure there are no 'thumbs.db' files in ANY of the folder in the apk file before you replace the file in your phone or else you're gonna get some force-close upon reboot. Good luck.
PS: After you're comfortable with replacing icons then you go ahead and start replacing icon in all your other programs. systemui.apk, phone.apk, contacts.apk, email.apk, maps.apk, etc...
Click to expand...
Click to collapse
Nice! Actually it worked
I've made it useful with two icons - dont know why it didn't work with apk tool's...
Thanks one more time! (my work attached)

change toggle icon?

hi guys! I'm running uxuma on sgh727, vincom deodex Rom, 23 toggle mod, I'm trying to change the
toggle icons. I replaced the icons in lidroid with apktool, decompile, recompile...
what else do I have to edit to make it work?
when I changed the toggle icons I get systemUI fc and my status bar is gone.
any help, ideas, anything at all...
thank you
nbnion said:
hi guys! I'm running uxuma on sgh727, vincom deodex Rom, 23 toggle mod, I'm trying to change the
toggle icons. I replaced the icons in lidroid with apktool, decompile, recompile...
what else do I have to edit to make it work?
when I changed the toggle icons I get systemUI fc and my status bar is gone.
any help, ideas, anything at all...
thank you
Click to expand...
Click to collapse
Did you run the Signing Tool? Been using that program a lot the past few days and that made it work for me.
mrfeuss said:
Did you run the Signing Tool? Been using that program a lot the past few days and that made it work for me.
Click to expand...
Click to collapse
no, it's that the name "Signing Tool"? did you use it with lidroid-res?
nbnion said:
no, it's that the name "Signing Tool"? did you use it with lidroid-res?
Click to expand...
Click to collapse
See attached. I haven't used lidroid, but I tried recompiling apps without hitting the Signing Tool button and they all failed.
mrfeuss said:
See attached. I haven't used lidroid, but I tried recompiling apps without hitting the Signing Tool button and they all failed.
Click to expand...
Click to collapse
i tried it now, still same issue..
im missing some steps in the whole process and im sure its something stupid but...
thank you for your time
nbnion said:
i tried it now, still same issue..
im missing some steps in the whole process and im sure its something stupid but...
thank you for your time
Click to expand...
Click to collapse
Wish I could have been more helpful, but I'm pretty new to this whole thing, too.
Unless you're replacing .9.png, you don't have to decompile the framework - just open it with ZIP, navigate to the right drawable folder and drop the new .png-s there.
After you recompile, make sure you take out the AndroidManifest.xml and META-INF folder from the original framework ZIP and push to the new one, overwriting whatever is there.
Jack_R1 said:
Unless you're replacing .9.png, you don't have to decompile the framework - just open it with ZIP, navigate to the right drawable folder and drop the new .png-s there.
After you recompile, make sure you take out the AndroidManifest.xml and META-INF folder from the original framework ZIP and push to the new one, overwriting whatever is there.
Click to expand...
Click to collapse
thank you!
yes it was a bit confusing, with compiling/decompiling the framework but I got it to work.
do the png have to have the same size? the ones that I want to replace?

Can I override CM 11 theme with Xstana navigation bar mod

I like my custom Xstana module nav bar but my android L theme replaces it and I can't overwrite it.
Also I don't particularly like the keyboard of the android L theme and I can't seem to customise it back to normal?
You can replace the keys within the .apk manually through a computer.
For the keyboard, same thing. You can also download an alternative keyboard, if you're using the Google Keyboard, there are many that look like it, and so on.
Curiousn00b said:
You can replace the keys within the .apk manually through a computer.
For the keyboard, same thing. You can also download an alternative keyboard, if you're using the Google Keyboard, there are many that look like it, and so on.
Click to expand...
Click to collapse
Oh alright I'll give it a ****, how do I browse them on my computer? Android SDK?
lopuandroid said:
Oh alright I'll give it a ****, how do I browse them on my computer? Android SDK?
Click to expand...
Click to collapse
If you pull the theme.apk from your phone, you can explore the APK with Win-RAR/7-zip, and whatever else.
But since you plan on reinstalling, I recommend checking APKTool. You need to decompile, edit, then recompile the APK.
Curiousn00b said:
If you pull the theme.apk from your phone, you can explore the APK with Win-RAR/7-zip, and whatever else.
But since you plan on reinstalling, I recommend checking APKTool. You need to decompile, edit, then recompile the APK.
Click to expand...
Click to collapse
Thanks a bunch
Please do not post non development related threads in the development section
Questions belong in the Q&A section
Thread moved
Curiousn00b said:
If you pull the theme.apk from your phone, you can explore the APK with Win-RAR/7-zip, and whatever else.
But since you plan on reinstalling, I recommend checking APKTool. You need to decompile, edit, then recompile the APK.
Click to expand...
Click to collapse
You don't need to decompile / recompile to swap images. You can do this in winrar and 7zip, as long as you delete the old images first and add the new images with no compression (store)
You only need to decompile if you're adding new images (not swapping) and editing XML
Sent from my Nexus 5 using Tapatalk

Modifying system apks / resigning

Hello,
I a quite new to Android development/hacking and need some clarification regarding signing system apps.
I did not find any answer yet that fully helped me solve my problem...yes, I did use search on the forum and even Google :laugh:
Scenario:
Let's assume I wanted to modify some system apks (in /priv-app or /app doesn't matter).
All those apks I want to modify do rely on the same framework.apk.
As far as I know, if I modify a system apk all other system apks that rely on the same framework.apk have to be resigned using the same certificate.
1) Is this correct (any pitfalls there)?
2) Do I have to resign the used framework.apk with the same certificate also?
3) Do I have to take other files/things into consideration that would have to be changed / resigned / etc.?
Thanks in advance! :good:
Regards
Markus
deomaki said:
Hello,
I a quite new to Android development/hacking and need some clarification regarding signing system apps.
I did not find any answer yet that fully helped me solve my problem...yes, I did use search on the forum and even Google :laugh:
Scenario:
Let's assume I wanted to modify some system apks (in /priv-app or /app doesn't matter).
All those apks I want to modify do rely on the same framework.apk.
As far as I know, if I modify a system apk all other system apks that rely on the same framework.apk have to be resigned using the same certificate.
1) Is this correct (any pitfalls there)?
2) Do I have to resign the used framework.apk with the same certificate also?
3) Do I have to take other files/things into consideration that would have to be changed / resigned / etc.?
Thanks in advance! :good:
Regards
Markus
Click to expand...
Click to collapse
All system apps have to be signed the same way, yes. You can sometimes mod your services.jar to turn off signature verification but that can leave you a bit more open to malware.
When you mod a system app, you just have to make sure you use the original signature in the new version. The only exception to this is if you change anything in the manifest. Then you will need a new signature, which means either signing everything else with that signature or doing the services.jar I mentioned earlier.
Hello Ticklefish,
first of all: Thanks a lot!
To summarize your answer:
1) Modding services.jar is out of the question! Would never have done this anyway...(risky from a malware point of view)
2) In case I modify a system apk WITHOUT altering the manifest.xml I can reuse the old apk signature for my new apk (the whole META-INF folder has to be copied over to the new apk?)
Nothing else has to be adjusted?
I suppose I still can do a zipalign afterwards in that case?
3) In case of modifying the manifest.xml I would have to resign ALL system apks.
All of them or only those that rely on the same framework as the modded apk?
Do I have to resign the framework apk as well?
I am asking, because I will have to mod several apks relying on different frameworks: At least one where I have to alter manifest.xml...
Thanks in advance
Markus
deomaki said:
Hello Ticklefish,
first of all: Thanks a lot!
To summarize your answer:
1) Modding services.jar is out of the question! Would never have done this anyway...(risky from a malware point of view)
2) In case I modify a system apk WITHOUT altering the manifest.xml I can reuse the old apk signature for my new apk (the whole META-INF folder has to be copied over to the new apk?)
Nothing else has to be adjusted?
I suppose I still can do a zipalign afterwards in that case?
3) In case of modifying the manifest.xml I would have to resign ALL system apks.
All of them or only those that rely on the same framework as the modded apk?
Do I have to resign the framework apk as well?
I am asking, because I will have to mod several apks relying on different frameworks: At least one where I have to alter manifest.xml...
Thanks in advance
Markus
Click to expand...
Click to collapse
If you're modifying an APK without changing the manifest, the best method is to use 7zip or similar to open the new APK and drag the modded files over to the original APK. That way you're still using the same META-INF at the same compression ratio.
Or use Tickle My Android (https://forum.xda-developers.com/showthread.php?t=1633333) to do it for you....cough...cough...
You can zipalign afterwards, just remember that any further changes will affect that zipaligning so you'll have to do it again.
As far as resigning the APK goes, all I know is that you have to change every file that uses the same key/signature as the app you resigned so that they all match.
I have to confess that I've never actually done this. I rarely change the manifest myself and, when I do, I disable signature verification. Yes, it makes you more prone to malware but as long as you're careful about what you install you should be okay.
deomaki said:
Hello,
I a quite new to Android development/hacking and need some clarification regarding signing system apps.
I did not find any answer yet that fully helped me solve my problem...yes, I did use search on the forum and even Google :laugh:
Scenario:
Let's assume I wanted to modify some system apks (in /priv-app or /app doesn't matter).
All those apks I want to modify do rely on the same framework.apk.
As far as I know, if I modify a system apk all other system apks that rely on the same framework.apk have to be resigned using the same certificate.
1) Is this correct (any pitfalls there)?
2) Do I have to resign the used framework.apk with the same certificate also?
3) Do I have to take other files/things into consideration that would have to be changed / resigned / etc.?
Thanks in advance! :good:
Regards
Markus
Click to expand...
Click to collapse
I usually use Mixplorer, (if you use your phone to de/re-compile). Click on compiled apk, select 'explore' and a new tab opens with the contents of the apk. Delete the manifest that was created in recompile, then go to folder with decompiled apk, /original, and long-press to select android manifest xml, and META-INF folder. Choose copy, and paste them into new apk.

Categories

Resources