Status Bar Force Closes - AT&T Samsung Galaxy S II SGH-I777

I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.

Update apktool.jar also in Android sdk copy aapt.exe to your apk multi tool. If that doesn't work can you tell me the steps you're taking too recompile?
Sent from my SGH-I777 using Tapatalk

Related

[Q] APK Manager Help (Noob apk modifying)

I'm making an attempt at modifying my DialerTabActivity.apk to change the colors of a few things. I've been able to decompile the apk in apkmanager, but upon recompiling after I've made the changes the Dialer won't open at all. No force closes, just no response and the Phone apk is no longer visible in the app drawer.
Can anyone assist me in recompiling the apk so that I can use my modified dialer? Thank you.

Compiling SystemUI.apk?

I've looked around dozens of threads, but nothing has helped me fix my problem.
I have a Droid Incredible and there is a Quick Settings mod for the dropdown notification bar. My goal is to remove the Hotspot option from that list. When I try decompiling SystemUI.apk with Apktool OR Apkmultitool, I think it works fine. Apktool said there were errors decompiling two images, but I think i fixed those. I have tried installing framework-res.apk and com.htc.resources.apk to decomile it. After making the needed changes and going to compile it, it just spits out errors. No matter what I try I always get an error. What an I doing wrong? What do I need to do to get it to compile without errors?
TeeRom said:
I've looked around dozens of threads, but nothing has helped me fix my problem.
I have a Droid Incredible and there is a Quick Settings mod for the dropdown notification bar. My goal is to remove the Hotspot option from that list. When I try decompiling SystemUI.apk with Apktool OR Apkmultitool, I think it works fine. Apktool said there were errors decompiling two images, but I think i fixed those. I have tried installing framework-res.apk and com.htc.resources.apk to decomile it. After making the needed changes and going to compile it, it just spits out errors. No matter what I try I always get an error. What an I doing wrong? What do I need to do to get it to compile without errors?
Click to expand...
Click to collapse
Might need a bit more info.
What os you running? What commands you running? Have you installed your framework with a tag?
Sent from my Galaxy Nexus using Tapatalk
Evostance said:
Might need a bit more info.
What os you running? What commands you running? Have you installed your framework with a tag?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
2.3.4 my own version of stock. In APKtool I was running d and b with SystemUI. Don't know if I installed it with a tag.
pull your framework-res.apk
You can then install a tag by installing it as:
apktool if framework-res.apk droid
Decompile it like you have done, but with the tag:
apktool d -f -t droid SystemUI.apk
Made your changes and then recompile it:
apktool b <Path/To/Decompiled/APK>

Status Bar Force Closes

I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Muffunz said:
I'm trying to do some editing to the status_bar.xml, but anything I do causes force closes and no status bar.
I'm pulling SystemUI.apk via ADB, decompiling with APK Multi-Tool, making a change in the status_bar.xml as small as changing the background color of it, compiling with APK Multi-Tools, and pushing with ADB. Every time, it just disappears and starts spam force closing.
Any ideas?
EDIT: Changing ANYTHING from SystemUI.apk seems to cause force closes.
Click to expand...
Click to collapse
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
10tonhammr said:
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
Click to expand...
Click to collapse
I'm on UnNamed, and I'm pushing the APKs via ADB in command prompt. I'm trying to change the color of the status bar right now, but I'd also like to change the icons. I did what you suggested, but it didn't change anything. Bar is still there and no force closes, but it's still the same color even though the 9.png file is a different color.
Muffunz said:
I'm on UnNamed, and I'm pushing the APKs via ADB in command prompt. I'm trying to change the color of the status bar right now, but I'd also like to change the icons. I did what you suggested, but it didn't change anything. Bar is still there and no force closes, but it's still the same color even though the 9.png file is a different color.
Click to expand...
Click to collapse
Do this, the compiled systemui that's giving you fc open it and the unmodified version. Drag nine patch image you edited to the unedited systemui
Sent from my SGH-I777 using Tapatalk
10tonhammr said:
What rom are you running? How are you installing the modded apk? What exactly are you trying to change? Are you making multiple mods at once? If you're modding any xml within the apk and it fc's when you install it, it's either not compiling properly or the changes you made aren't kosher. Try using apk manager with the latest apk tool to decompile and compile and see if that helps.
Also, if all you wanna do is change the status bar background color, just decompile the systemui.apk, edit statusbar_background.9.png (without breaking the pixel guides) recompile the apk, and instead of flashing the recompiled apk, extract that .png and drop it into the stock apk and flash that.
Click to expand...
Click to collapse
jivy26 said:
Do this, the compiled systemui that's giving you fc open it and the unmodified version. Drag nine patch image you edited to the unedited systemui
Sent from my SGH-I777 using Tapatalk
Click to expand...
Click to collapse
I tried that. Nothing happened, the status bar didn't change.
Muffunz said:
I tried that. Nothing happened, the status bar didn't change.
Click to expand...
Click to collapse
Don't adb push it. Just flash it. Download winrar (google it). Download one of my themes (or any theme) for unnamed, delete all the the folders except "system" and "Meta". Open system folder and delete eveything except "apps" folder. Open apps folder and delete everything. Add your modded systemui.apk to the apps folder and flash in cwm.
Its MUCH MUCH easier to use APK Manager and have it push it as an unsigned system app. After you push it, run an "adb shell killall system_server" <-- does a quick system reset, and you can test it out.
I'm not sure what changed but I finally got APK Manager set up to be able to push things itself, and I finally got a change to go through! Thanks for the help guys.

[Q] Help recompiling Rosie---SOLVED

I am trying to decompile and recompile Rosie, but I can not figure out why the new Rosie keeps force closing. Even if I don’t make any changes, it will still force close.
I am using ApkTool 1.4.9. I do not get any errors when decompiling or recompiling.
When I decompile, I choose option 10 in Apk Manager to decompile with dependencies (using com.htc.resources.apk). Then I delete the public.xml before recompiling.
Anyone have any suggestions? Thanks.
Edit: Trying to edit Rosie from Sense 3.6
Also I am not signing after recompiling since it is a system app.
EDIT: SOLVED, shouldn't have been deleting the public.xml in the res/values folder...got 4x5 Rosie working now

[HELP] Android keyboard force closing

I've searched the internet/XDA far and wide for an answer but can't seem to find a solution that fits my exact issue. I'm trying to mod my android keyboard to have red text color instead of white. I decompiled LatinIME.apk and edited styles.xml found in the Values folder. I only changed TWO lines which contain the hex color code for white- "#ffffffff". I changed them to the corresponding hex code for red which looks like #fff44444. I recompiled using ApkMultiTool. I deleted the resources file using the keep folder method and everything compiles fine. I then pushed the app to system/app making the correct adjustments to the permissions. I reboot the phone and keep getting the error message of, "unfortunately, Android Keyboard has stopped." When I go into my sms app and try to open the keyboard to send a text the message pops up again, however in the background my keyboard pops up and it DOES have the red text color I was looking for. So my modifications worked but I can't get the apk to run correctly. The ONLY file I made any modifications to was styles.xml.
I tried to wipe data for the android keyboard as well as my user dictionary but to no avail. I'm using a t-mobile G2X running Eaglesblood 4.0.4 AOSP.
Edit- LogCats In post 3!
bump...
Anyone? After more research I figured it might a signature issue. I swapped out the META-INF and AndroidManifest.XML from the original un-modded apk to my modded APK....Still not luck. I went ahead and also just tried signing the apk (I know you're not supposed to sign system apps but I ran out of ideas!) with SignApk for windows and STILL nothing. I have no idea what is making this app force close =(
These are 3 LogCats that I took immediately after I pushed the modified LatinIME.apk to system/app and did a reboot. After rebooting is when I start getting the errors. After the error message came up I opened Alogcat (application) and took these three. All of them were taken after the error message came up.

Categories

Resources