..and i dont think there will be a modded shutdown menu for jb. Sony seems to have removed the reboot "activity" in framework.jar.
Just a stupid question... How does adb trigger a reboot? If we can still use the reboot command in terminal emulator, would some kind of workaround be possible using whatever activity that command uses? Sorry if this is a completely ridiculous suggestion, I admit I have no idea what I'm talking about, but this is the only thing that comes to mind for me.
Sent from my LT25i using xda premium
That would be possible but.. I think its a "crude" way to do it :/ because intsead you could just add a script shortcut to your homescreen and press it everytime you want to reboot
The shutdown files were moved to services.jar in the jb update :banghead:
I will update it asap Still, too bad we cant edit main framework yet..
Hmm. Bad zip. What did you use to add your changes to the original zip? Winrar or something else?
---------- Post added at 08:24 PM ---------- Previous post was at 08:13 PM ----------
Maybe the same problem? Duplicate entry? Somewhere, something.
https://groups.google.com/forum/m/?fromgroups#!topic/android-developers/nrl9mKjZCrs
If it is any consolation, I am working on a CM10 ROM port and have run into similar problems after making a simple change to /system/framework/framework-res.apk: Phone hangs at boot animation. I haven't tried recompiling without changes, but I imagine the outcome would be the same.
I am using Virtuous Ten Studio, 7-zip and CSigner.
CSigner yields no errors except it doesn't zipalign because it claims that it can't find ADB --- even with ADB in PATH and/or inside the CSigner directory.
Anyway, I wonder if it is necessary to build framework-res.apk from scratch...?
[UPDATE]: A potential option is to use overlays to modify the framework-res.apk configuration: http://xdaforums.com/showthread.php?t=2017043.
Here's a quote: "It is in the source code tree, and is a much cleaner method for altering framework resources at runtime than the procedure others have been using of decompiling, editing and re-building, imo. "
Yes, this is really helpful, now we at least know why.
Because of this 1 to 3 change, all resources are unavailable.
Apktool or aapt ignores package id, thus the IDs of the package (the first few bytes) are wrong. I've been trying to figure it out.
Yeah, that has been a common issue that Ibot has commented on the past that he's trying to fix. It plagues many if us trying to mod the manufacturer's proprietary frameworks. The only work arounds are to hex edit it or go through every jar and system apk and redirect those IDs to the android framework-res, which you can edit. Pita
The first is a good idea. But we would need to know what to hex edit.
So I don't know if anyone has done any follow-up with this, but we have a situation with the Xperia V (and T, more or less the same device in many respects) that makes it impossible to flash or push a modified framework-res.apk. Specifically, the resource-id's inside resources.arsc (public.xml) are getting mangled during recompile and while apktool doesn't show any errors (this is a known, reported issue), the apk is unusable and causes bootloops.
What you've presented here seems like a light at the end of the tunnel. But while I'm confident in my ability to follow directions, I'm afraid I'm too much of a noob to foresee possible reasons for this not working, which is basically what I'm requesting feedback on. Here's what I have in mind, please feel free to point out the holes in my plan...
1. Create the overlay, with the config.xml containing the proper resource-id's as found in public-xml.
2. Push the overlay. It seems to me that with an unmodified framework-res.apk in place, the overlay will simply replace the values from resources.arsc with identical values, thereby having no effect on the system. Any problems at this stage, then, would be from errors on my part, and naturally I would rather weed them out before the next step...
3. Push a modded framework-res.apk and hope that with the overlay in place and doing its business, the corrupted resource-id's will be quarantined and unable to wreak havoc on the system.
It sounds easy, so I'm sure I've missed something. I appreciate any feedback, scathing or otherwise.
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
Yes, this is really helpful, now we at least know why.
Because of this 1 to 3 change, all resources are unavailable.
Apktool or aapt ignores package id, thus the IDs of the package (the first few bytes) are wrong. I've been trying to figure it out.
Yeah, that has been a common issue that Ibot has commented on the past that he's trying to fix. It plagues many if us trying to mod the manufacturer's proprietary frameworks. The only work arounds are to hex edit it or go through every jar and system apk and redirect those IDs to the android framework-res, which you can edit. Pita