[Q] Updating a /system/app/ via .zip !! Need help - Xperia Z Q&A, Help & Troubleshooting

Hey XDA forums. I have been reading a lots of tutorials about Cooking Roms and etc. I decided that I wanted to learn and try to Edit and add stuff to my Xperia Z device. So I flashed a Stock 4.4.2 Build .230 in my device , Then Rooted it with Towelroot, And deodexed it.
Then I Followed some tutorials about editing the Settings.apk , So I got apktool , edited what I wanted to edit. Now The part where im stuck and dont know how. I would like to know how to Make one of those update.zip that will update and replace my new Settings.apk (I tried pushing it with adb , but adb is acting up)
So If I could get some help about updating the settings.apk via zip it would be apreciated. (I also didnt find any threads saying if it goes in /system/app or /system/priv-app/ )
Thank you

Related

framework-res.apk problem when using metamorph

hi guys. im new to this forum and would like some help on how to change the status bar on my milestone(droid).. my phone is rooted and i have metamorph installed and am running android 2.1 stock.
When i apply a theme to other apks from metamorph everything is fine but when i try to apply it to the framework-res.apk my phone reboots and nothing is changed i also tried to use AndoidCommander to pull the framework-res.apk manually, change the images and put it back in but it doesnt change any help pls? Thanks
Wrong section, and try using the search function.
sorry which forum is it supposed to be in?
also i tried to search but nothing seemed to work
ok guys i managed to at least push the apk using the terminal app.. but everytime it reboots everything starts to force close and i have to reinstall the sbf using rsd lite... do you know what im doing wrong please?
Um well I don't bother with theming myself, but in the absence of any more helpful responses, if you're running a stock ROM I imagine it's odex'ed & you can't theme an odex'ed ROM. You could look into deodexing the ROM but aiui it's quite a bit of work. Probably easier to find a custom ROM you like, which isn't odex'ed & start from that. E&OE.
thanks for replying mate the problem is that the milestone cannot run custom ROMs due to a locked bootloader... the problem is that i can mod all the apks except the framework-res.apk, which when modified using the terminal app, makes all the applications force close..
EDIT: ok i tried to deodex the modified framework-res.apk and push it on the phone but still didn't work any help guys?

Searching a few apk from the stock fw...

Hi,
I need following apk files from 2.1 and 2.2, could anyone put them up here?
My Nexus One isnt rooted therefor Im not able to copy them out of "system\app\"
DeskClock
Browser
Phone
EMail
Thanks a lot

[Q] 2.1 update.zip

Can someone please help me find or get me the update zip from the 2.1ruu i would prefer it be from 2.27.651.6.
i have searched but cant seem to find it...i need it completely stock and not messed with.. thanks in advance
The blanking mods apparently don't like existing users since I can't post links for you, but goto HTC or Sprint since they have the official 2.27.651.6 downloads.
htc.com/us/support/hero-sprint/downloads/
shop.sprint.com/en/software_downloads/pda_smartphone/htc_hero.shtml
http://www.htc.com/us/support/hero-sprint/downloads/
i got that but im needing files out of that..i need to make an update.zip from that using whats in it..i cant use the exe file in fastboot

[Q] Update.zip doesn't apply when attempting to mod battery

I wanted to apply one of the battery mods to my captivate i896 (running the stock rogers rom), specifically version E.
I tried using the UOT Kitchen website at first but that failed. So then I tried to do it myself, but that also fails. Something seems to be going wrong when I try to apply the update.zip I have and I see no error output to help me trace it. Here's what I've been doing (when I tried it from scratch):
So I downloaded the related zip file from the second post, "scbm_E_grey_number.zip".
I then used "Android Theming and Tweaking" to get the framework file from my phone, and decompile it. I replaced the corresponding .png and .xml files from "scbm_E_grey_number.zip" to the appropriate folders in the decompiled folder from the ATT software. Then using the same software, I compile the framework apk again.
I then use the update.zip creator. I create a "framework" folder in the "placehere" folder for the update creator. Inside the framework folder I placed my new APK. I then ran the update creator to generate a new script, which copies from "framework" to "framework" on SYSTEM. Finally, I have it create the update.zip for me.
Everything is fine up to this point. I place the update.zip on my SD card, boot my phone into recovery, try to flash it...I get the following:
Code:
-- Install from sdcard...
Finding update package...
Opening update package...
Installing update...
Installation aborted.
I've tried this a few times with no luck
I'd like to figure this out in the hopes that I can do some mods of my own in the future, so any help would be great Thanks!
If you ever figuered this out please let me know too, i am having the same issue. I am using a Captive that I just restored with Odin. I unroot it and remove the applock on it. I get the same installation aborted issue. I then tried to install it with ClockWork recovery... that just crashed my phone and I had to reinstall again. So if anyone know what the problem is please chime in.
Can't theme the stock rom. It has to be a deodexed rom, which is essentially all of the custom ones. Also, don't flash mods through the stock 2e recovery, you want to do it through CWM.
TheEscapist said:
Can't theme the stock rom. It has to be a deodexed rom, which is essentially all of the custom ones. Also, don't flash mods through the stock 2e recovery, you want to do it through CWM.
Click to expand...
Click to collapse
Hmm I see, thanks for the info... there was no odex file for that particular file, so I thought I'd be lucky and it was possible :/
And, why should you use CWM to flash instead of the stock recovery?
ootz0rz said:
Hmm I see, thanks for the info... there was no odex file for that particular file, so I thought I'd be lucky and it was possible :/
And, why should you use CWM to flash instead of the stock recovery?
Click to expand...
Click to collapse
No problem. While on the topic, is that thanks button new, or am i just blind, and missed it all this time?
It's something about signatures, if I remember correctly, though, that may be 3e. I think part of it is that it's just typically done with CWM.
ootz0rz said:
I wanted to apply one of the battery mods to my captivate i896 (running the stock rogers rom), specifically version E.
I tried using the UOT Kitchen website at first but that failed. So then I tried to do it myself, but that also fails. Something seems to be going wrong when I try to apply the update.zip I have and I see no error output to help me trace it. Here's what I've been doing (when I tried it from scratch):
So I downloaded the related zip file from the second post, "scbm_E_grey_number.zip".
I then used "Android Theming and Tweaking" to get the framework file from my phone, and decompile it. I replaced the corresponding .png and .xml files from "scbm_E_grey_number.zip" to the appropriate folders in the decompiled folder from the ATT software. Then using the same software, I compile the framework apk again.
I then use the update.zip creator. I create a "framework" folder in the "placehere" folder for the update creator. Inside the framework folder I placed my new APK. I then ran the update creator to generate a new script, which copies from "framework" to "framework" on SYSTEM. Finally, I have it create the update.zip for me.
Everything is fine up to this point. I place the update.zip on my SD card, boot my phone into recovery, try to flash it...I get the following:
Code:
-- Install from sdcard...
Finding update package...
Opening update package...
Installing update...
Installation aborted.
I've tried this a few times with no luck
I'd like to figure this out in the hopes that I can do some mods of my own in the future, so any help would be great Thanks![/QUO
Flash perception
Click to expand...
Click to collapse
dfuse06 said:
Flash perception
Click to expand...
Click to collapse
Eh, I'm hesitant to flash a custom rom. I have a rogers captivate and don't want to be stuck with an at&t boot screen (in case I need for repair or whatever) and I don't want to be stuck with poor GPS performance (as mine works VERY VERY well right now).
ootz0rz said:
Eh, I'm hesitant to flash a custom rom. I have a rogers captivate and don't want to be stuck with an at&t boot screen (in case I need for repair or whatever) and I don't want to be stuck with poor GPS performance (as mine works VERY VERY well right now).
Click to expand...
Click to collapse
AT&T boot screen can be replaced, but you have to do a whole bunch of Odin stuff to get there. Also, that's because we(I'm on rogers as well) have a tweaked modem.bin. You can flash that, or one of the jupiter/JM9 fixes to get similar gps performance. But obviously, it's your choice. You are messing with a quite expensive piece of hardware. However, if you want to apply mods, you need to get a custom rom.
TheEscapist said:
AT&T boot screen can be replaced, but you have to do a whole bunch of Odin stuff to get there. Also, that's because we(I'm on rogers as well) have a tweaked modem.bin. You can flash that, or one of the jupiter/JM9 fixes to get similar gps performance. But obviously, it's your choice. You are messing with a quite expensive piece of hardware. However, if you want to apply mods, you need to get a custom rom.
Click to expand...
Click to collapse
I'd love to have a set of concise instructions detailing all that...but everything is all over the place and difficult to find :/ Right now I'm just mostly reading up on things and trying to learn
There's instructions in the dev forum. If I wasn't on my phone, I'd grab the link for you. As far as learning, you just have to spend hours and hours on here.
TheEscapist said:
There's instructions in the dev forum. If I wasn't on my phone, I'd grab the link for you. As far as learning, you just have to spend hours and hours on here.
Click to expand...
Click to collapse
Heh I've been trying. It's certainly a bit of a learning curve

[Q] Help needed on upgrading firmware on Xperia TX after downgraded & rooted

Hi everyone, I need help over here as I'm stuck in the process of rooting & upgrading my Xperia TX (LT29i).
I have successfully downgraded the firmware & rooted it. However, I can't seem to find a stock ROM for Xperia TX (LT29i) 7.0.A.3.197 firmware. I just gone through all the hard ways to create a stock ROM myself & successfully flashed it. Perhaps bcuz of the improper build, my WiFi can't be turned on & there might be other problems coming up later.
Now I am also worrying that would it cause any prob to my phone. I followed this guide to create the ROM.
http://forum.xda-developers.com/show....php?t=1931189
& I took the META-INF folder from this custom ROM.
http://forum.xda-developers.com/show....php?t=2040989
Plz kindly help that if there's any resource to the stock ROM or any way to fix this, as well as have a look if there is any side effect from flashing that ROM. Many thanks! ><
You could try the repair phone option in SUS, with will reflash the stock firmware on your phone
One way to fix your problem is to copy /system/lib/modules/prima/prima_wlan.ko to /system/lib/modules/wlan.ko. An issue that I found with this solution, though, is the MAC address I got after copying the .ko file is different from what it was in stock. I can't figure out why. But regardless, your wireless LAN should work after you copy the file.
Montoyatok said:
You could try the repair phone option in SUS, with will reflash the stock firmware on your phone
Click to expand...
Click to collapse
Thx, I'm aware of this option. It's just that I want to know if what I did would create any prob to my phone in future, as well as if there's any stock ROM available on the forum. =)
chibikit said:
One way to fix your problem is to copy /system/lib/modules/prima/prima_wlan.ko to /system/lib/modules/wlan.ko. An issue that I found with this solution, though, is the MAC address I got after copying the .ko file is different from what it was in stock. I can't figure out why. But regardless, your wireless LAN should work after you copy the file.
Click to expand...
Click to collapse
Alright, will try. Thx. =) Do I've to keep the original file at the original location? Btw, is the way I'm building a ROM a proper way to do it? Do u know is there any ready-built stock ROM available?
Look in the very first thread of this section to find an index of every ROM and ftf
Sent from my LT30p xda premium app.
How do I customise the signature on xda premium app?
SCC2002 said:
Thx, I'm aware of this option. It's just that I want to know if what I did would create any prob to my phone in future, as well as if there's any stock ROM available on the forum. =)
Click to expand...
Click to collapse
Links to stock ROM FTFs are available in gregbradley's FAQ here under FTFs. You will need Flashtool to flash these to your phone.
Available stock-based TX ROMs are gregbradley's Assaye and travis82's 240 DPI stock ROM. I haven't tried either since I'm just fiddling about on my own, so I can't tell you how well those work, but Assaye is a good reference if you're trying to build your own stock-based ROM.
Alright, will try. Thx. =) Do I've to keep the original file at the original location?
Click to expand...
Click to collapse
I didn't do anything else except copy the file, so the original prima_wlan.ko is where I found it on my ROM.
Also, I've been watching this thread on similar problems with the Xperia V and a solution has been found. I'm planning on trying it out on my TX some time this week to see if it will solve my MAC address woes.
Btw, is the way I'm building a ROM a proper way to do it?
Click to expand...
Click to collapse
The thread you linked to are instructions on building ROMs for older Xperia phones. Steps 1 - 4 don't need to change for our phones, but the TX uses a different partition scheme (or something), and this means step 5 needs to be different since our system.sin's contents are actually in ext4 format, not YAFFS. A typical Windows installation will not be able to handle the file contents. You can use mounting utilities to read the file and copy them over to your Windows hard drive, but all symbolic file links will basically be destroyed.
Currently, I'm using dsixda's Android Kitchen to build my own stock-based ROM. It's really just a collection of utilities that allows me to make all the necessary file changes and edits that I want before generating a ROM .zip file that can be flashed in CWM. This really needs Linux to work, which is a plus because the file system used by Linux is usually ext4 by default, making it easy to work with the contents of the decrypted system.sin.
If you're planning to build a simple custom ROM, I suggest you read up on how to use dsixda's Kitchen, but keep the following in mind:
- the Kitchen works with a system.img file, which is really just the system.ext4 you get from decrypting system.sin
- the Kitchen will complain about not having a boot.img to work with. Ignore it; I don't think you're building a ROM with a custom kernel, so you don't have to worry about it.
- the default contents of META-INF that the Kitchen generates does not work with CWM for locked bootloaders on the TX. I don't think it works with unlocked bootloaders either. The solution is to stea-... err, borrow the update binary and updater-script from a working ROM zip and edit it for use on yours.
Also, read gregbradley's Assaye ROM thread and TiMiN8R's stock and deodexed ROM thread. They are using dsixda's Kitchen as well, and you can learn a lot about fiddling with stock ROMs from reading about the problems they encountered and how they fixed them.

Categories

Resources