Replacing SystemUI.apk in ADB - HTC Rezound

So I flashed the wrong .zip and now SystemUI.apk is force-closing. Rather than reflash the ROM I'm just going to replace SystemUI.apk using adb (I happen to have the ROM unzipped on my laptop), but want to make sure I have the procedure right.
Reboot to recovery
Then
adb shell
su
rm system/app/SystemUI.apk
exit
And then to push the SystemUI.apk
just
adb push SystemUI.apk system/app/SystemUI.apk
reboot
Do I need to mount system as writable before all of this?

Yes I believe you do
You could put the system.apk into a flashable zip by itself and flash that tho
Less room for error
Sent from my ADR6425LVW using Tapatalk 2

superchilpil said:
Yes I believe you do
You could put the system.apk into a flashable zip by itself and flash that tho
Less room for error
Sent from my ADR6425LVW using Tapatalk 2
Click to expand...
Click to collapse
Thanks.
Now I'm wondering if the permissions will be all mucked up if I just push the file. Is there a way to set permissions in adb?

never mind, got it, chmod 644 system/app/SystemUI.apk
Worked too!

tekhna said:
Thanks.
Now I'm wondering if the permissions will be all mucked up if I just push the file. Is there a way to set permissions in adb?
Click to expand...
Click to collapse
There is, I can't remember the command off the top of my head
Sent from my ADR6425LVW using Tapatalk 2

Adb remount will mount as rrw and you don't have to set permissions the folder already has it. You can also just use a root file explorer app to place it in their
Sent from my ADR6425LVW using XDA

tekhna said:
So I flashed the wrong .zip and now SystemUI.apk is force-closing. Rather than reflash the ROM I'm just going to replace SystemUI.apk using adb (I happen to have the ROM unzipped on my laptop), but want to make sure I have the procedure right.
Reboot to recovery
Then
adb shell
su
rm system/app/SystemUI.apk
exit
And then to push the SystemUI.apk
just
adb push SystemUI.apk system/app/SystemUI.apk
reboot
Do I need to mount system as writable before all of this?
Click to expand...
Click to collapse
hi, i have the same problem. i flashed the wrong zip from here http://forum.xda-developers.com/showthread.php?t=2526039&page=2 and now when i put the usb cable into the pc to backup from nexus root toolkit, it says that driver are not installed, and when i make the test for the drivers systemui crash. so i cant go back to stock rom or restore backup. any ideas? please help me

Related

Adb help please

Trying to pull all of my system/app directory to my pc what's the proper command to.get all at once.
Sent from my PG86100 using Tapatalk
Code:
adb pull /system/app/
That will pull all of the apk files from /system/app and place them in your current directory. If you want to direct them somewhere else, here's an example:
Code:
#Windows
adb pull /system/app/ c:\android\apps\
#Linux & Mac
adb pull /system/app ~/Downloads/apps/
Thank u I'm on tapatalk or I would hit the button.
Sent from my PG86100 using Tapatalk
MongooseHelix said:
Code:
adb pull /system/app/
That will pull all of the apk files from /system/app and place them in your current directory. If you want to direct them somewhere else, here's an example:
Code:
#Windows
adb pull /system/app/ c:\android\apps\
#Linux & Mac
adb pull /system/app ~/Downloads/apps/
Click to expand...
Click to collapse
Does moving installed apps require root???
ri123 said:
Does moving installed apps require root???
Click to expand...
Click to collapse
Ofcourse you need rooted phone..
Only rooted phone can mount system and data partition as READ-WRITE
#Windows
This is for full system folder
adb pull /system c:\android\system (blue colour to create folder on desktop)
This is for full data folder (which include all installed apps and your personal data too)
adb pull /data c:\android\data (blue colour to create folder on desktop)
Etc....

[Q] Trying to replace a system apk

Hi,
I'm attempting to replace Email.apk on my miui rom. This is the method I am using:
Code:
adb push Email.apk /sdcard/
adb shell
su
rm /system/app/Email.apk
rm /system/app/Email.odex
mount -o rw,remount /dev/block/mmcblk0p9 /system
cp /sdcard/Email.apk /system/app
reboot
When the phone has rebooted, my changes do not take affect. To check, I pulled the /system/app/Email.apk back, and found it to be the original version.
Can anyone tell me what I'm doing wrong here?
Thanks,
Have figured this out...
adb appears to send some kind of cached version over. Renaming the file before transferring forced adb to use the correct file, and all is well.
jimhaddon said:
Have figured this out...
adb appears to send some kind of cached version over. Renaming the file before transferring forced adb to use the correct file, and all is well.
Click to expand...
Click to collapse
How? I like to know too, guide step by step....thanks
You mean renaming the original file first to any name then copy the moded file with the original name ?
If that what u mean , so I better to delete the original one first then but enstead my moded file . Is that right ?
Sent from my GT-I9100 using XDA App
Just use something like root explorer, no need for adb...
Joey2o11 said:
Just use something like root explorer, no need for adb...
Click to expand...
Click to collapse
I tried to use root explorer to change phone.apk, it didnt work.. i changed the file but it kept on crashing all the time ...
Sent from my GT-I9100 using XDA App
hielo_te said:
I tried to use root explorer to change phone.apk, it didnt work.. i changed the file but it kept on crashing all the time ...
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
You'll get lots of FCs until you reboot the phone then it should be fine.

[Q] [q]about rebooting my phone

I delete framework-res apk in system/framework with root explorer,and cannot turn on my phone (s5830)How can I turn on my phone again?(I have a backup up off the apk)
Hei123 said:
I delete framework-res apk in system/framework with root explorer,and cannot turn on my phone (s5830)How can I turn on my phone again?(I have a backup up off the apk)
Click to expand...
Click to collapse
you need is adb and command prompt
adb remount
adb push framework-res.apk /system/framework
optional ones
adb shell chmod 644 /system/framework/framework-res.apk
adb shell chown 0 /system/framework/framework-res.apk
adb shell chgrp 0 /system/framework/framework-res.apk
Just reflash the rom from recovery!
Without wiping data!
Sent from my GT-S5830 using xda premium
well I'm with Amit here. You must have the original ROM's flashable zip file you were currently using?
Simply extract it. Get to PATH_TO_CURRENT_LOCATION\system\framework\framework-res.apk after extracting it. Get the file and push it via adb. Easy as 123.
Reflashing again restores all the system files...? Happened with me... N I use to flash again! Lol Never tried Amits Method
Sent from my GT-S5830 using xda premium
Rushyang said:
well I'm with Amit here. You must have the original ROM's flashable zip file you were currently using?
Simply extract it. Get to PATH_TO_CURRENT_LOCATION\system\framework\framework-res.apk after extracting it. Get the file and push it via adb. Easy as 123.
Click to expand...
Click to collapse
I have only the apk ,and what is adb,and how to push it
Hei123 said:
I have only the apk ,and what is adb,and how to push it
Click to expand...
Click to collapse
!!!! if that the case, just reflash ur rom as stated by pvrx. SOLVED!

Deodexing help

Hi, i have problem deodexing miro sdsl v1.1. I use xUltimate-v2 3.3 app but every time pull proces stop and never finish to end. I try to putt phone to airplane mode, mount system from recovery... Anybody know what i doing wrong?
bataya said:
Hi, i have problem deodexing miro sdsl v1.1. I use xUltimate-v2 3.3 app but every time pull proces stop and never finish to end. I try to putt phone to airplane mode, mount system from recovery... Anybody know what i doing wrong?
Click to expand...
Click to collapse
You can try to not pull apps from phone but unpack files from flashable zip (/app and /framework folders).
tnx, i forgat that i can do that. Rom deodexed...
bataya said:
tnx, i forgat that i can do that. Rom deodexed...
Click to expand...
Click to collapse
That's why I love Android so much. You can do lots of things in so many ways.
Glad I could help.
Anybody try this mod http://forum.xda-developers.com/showthread.php?t=1174202 ?
I always stay without status bar after repacing SystemUI.apk.
bataya said:
Anybody try this mod http://forum.xda-developers.com/showthread.php?t=1174202 ?
I always stay without status bar after repacing SystemUI.apk.
Click to expand...
Click to collapse
I tried that with Zdune's patcher and it worked.
http://forum.xda-developers.com/showthread.php?t=1202866
hm... i dont see option in zune patcher to move notification widget down?
bataya said:
hm... i dont see option in zune patcher to move notification widget down?
Click to expand...
Click to collapse
Its miui isnt it?
Sent from my LG GT540 using xda premium
Noup, CM7 with notification widget moved down. I manage to deodex rom, decompile apk, edit xtml, compile apk, but i doing something wrong... dont know what.
bataya said:
hm... i dont see option in zune patcher to move notification widget down?
Click to expand...
Click to collapse
Sorry, I thought you were talking about center clock. Well try again, it is a tricky job, and is easy to make mistake in the process. In CM settings there is option bottom statusbar so the notification icons are down . I will also try to apply the tweak, if it works will share.
Well, seeing a thread with this name I thought to just join in rather than openning a new one well, I downloaded xUltimate, pulled and deodexed the apks and....now what ? I assume I have to switch the original system files with these new ones, but how ? Sorry for the nooby question
create 2 folder on sdcard, in first copy deodexed file from /system/app, in second from /system/framework then boot in recovery, mount system and sdcard run adb and replace file in /system/app and /system/framework. After that use adb to remove .odex files form /syste/app and /system/framework.
Code:
adb shell
su
cp /sdcard/(noame of the folder)/*.* /system/app/
cp /sdcard/name of the folder)/*.* /system/framework
rm /system/app/*.odex
rm /system/framework/*.odex
reboot
If i miss some command make somebody corect me.
bataya said:
create 2 folder on sdcard, in first copy deodexed file from /system/app, in second from /system/framework then boot in recovery, mount system and sdcard run adb and replace file in /system/app and /system/framework. After that use adb to remove .odex files form /syste/app and /system/framework.
Code:
adb shell
su
cp /sdcard/(noame of the folder)/*.* /system/app/
cp /sdcard/name of the folder)/*.* /system/framework
rm /system/app/*.odex
rm /system/framework/*.odex
reboot
If i miss some command make somebody corect me.
Click to expand...
Click to collapse
Thank you everything works, and my rom is finally fast AND themed Oh, and for anyone reading this: because I have a 150MB system partition I had errors while first trying the cp lines, so I had to first remove the odex files (rm lines) and then use the cp ones to transfer the deodexed files
np ;-)
Sent by tT!
hi guys
im a newbie at deodexing and i have no idea what to do
could some give me step by step instructions and a link to the xultimate.zip
i would really be grateful
thx in advance
mohnim said:
hi guys
im a newbie at deodexing and i have no idea what to do
could some give me step by step instructions and a link to the xultimate.zip
i would really be grateful
thx in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=765270
google is helping always
When I type adb shell it says device not found, do I need to go to fastboot or should I enable USB debugging
Sent from my GT540 using XDA
mohnim said:
When I type adb shell it says device not found, do I need to go to fastboot or should I enable USB debugging
Sent from my GT540 using XDA
Click to expand...
Click to collapse
either USB debugging or recovery mode
i got another method dsixda's kitchen gimme the rom and il do it in no time
hi guys
i have now deodexed the rom i think
i want to apply ics statusbar layout by zdunex25 but his video tutorial and xda tutorial is confusing, so can anyone who has applied the ics statusbar help me out.
thx in advance

[Q] Install zip via adb shell instead of cwm

Is there any method to install a modding zip, like SystemUI mod, via adb shell instead of CWM?
You can use tickle my android to push systemui.apk etc ...
Press the thanks button
Sent from my Nexus⁴
"To use Tickle My Android, you will need:
- a rooted Android phone or tablet with USB Debugging enabled and ClockworkMod Recovery installed"
I haven't got CWM, and I don't want to install it to my company phone.
But my phone is rooted. May I install systemui.apk into /system/app and set permissions?
Does it work?
What is the update-binary file in modding zip /META-INF/com/google/android folder?
I can recognize the updater-script in the same directory which is describes the method of the install under CWM. But I don't know what update-binary does.
Update-binary is what provides the functions that updater-script calls. And yeah, you can adb push SystemUI.apk to sdcard, then mount system in adb shell, copy SystemUI.apk to /system and set permissions, then exit adb shell and do adb reboot. I'm not going to into more detail on this because it'll be redundant, as there are many guides on using adb.
Sent from my Desire HD using xda premium

Categories

Resources