framkework - EVO 4G Q&A, Help & Troubleshooting

Hey guys, I wanted to modify the framework in cyanogenmod 7. What I did was se this command in terminal:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
rm /system/app/SystemUI.apk
so as you can see, i deleted the framework and after that i couldnt do anything in terminal. I turn off the phone and then i usb mounted the phone to adb push the moddified systemui.apk, i was able to push the apk, but when i restarted the phone, there was no framework.. any ideas as to why that is.. maybe the apk file is corrupted?

Its named signedsystemui.apk! Did you push it with the right name?
Sent from my......ummm...let me get back at'chya!

I don't usually delete things before pushing new file and I don't normally recommend signing system/apps.
This is what I would do. Keep in mind, your mod (whatever you may have done with it) could simply be a little goofed up.
Code:
adb remount
adb shell
stop
cp system/app/SystemUI.apk /system/app/SystemUI.bak
adb push <path to>/signedSystemUI.apk /system/app/SystemUi.apk
start
exit
In the above, <path to> refers to the location of your modified aoj. For me, it would normally be "Users/tommytomatoe/Mod/app.apk". What I do is drag and drop the apk into the terminal after typing "adb push".
If it boots up after issuing adb shell start, then you're golden! If not, then do this. Keep in mind, if you're in splash screen you will want to reboot into recovery first and mount system using the options in the menu. If you're in boot loop with bootanimation, go ahead and issue these commands:
Code:
adb remount
adb shell
stop
mv system/app/SystemUI.bak /system/app/SystemUI.apk
start
exit
Now, you will have original apk and it should boot up. Go back to ground zero and remodify your apk and make sure you've taken correct steps.

All i did was change some pngs. I did sign the apk... maybe thats why it didnt work..When changing pngs to the systemui.apk, do i also have to modify the framework-res.apk?

~CR7~ said:
All i did was change some pngs. I did sign the apk... maybe thats why it didnt work..When changing pngs to the systemui.apk, do i also have to modify the framework-res.apk?
Click to expand...
Click to collapse
It appears the newer gb stuff has elements in framework res as well as system ui. It wont hurt to change both if same files exist in both. Tjats what I think.
And also, don't sign system apk. All the system apk prefer to have same signature. Signing one would result in having to sign all in most cases...
Sent from my PC36100 using XDA Premium App

Related

Drizzy's Blur some changes NOW WITH BLUE!

Big ups to Drizzy for making such an awesome ROm.
Here are 3 modified apk's; framework-res, Rosie, and HtcClockWidget.
I didn't change all the pictures just the status bar, Rosie Bar and WeatherClock Background. If people like my work I might just start posting more visuals on the demand of what people would like changed. Font color is going to stay because I can't edit the xml files.
To Install:
adb remount
adb push framework-res.apk /system/framework/framework-res.apk
adb push Rosie.apk /data/app_s/Rosie.apk
adb push HtcClockWidget.apk /data/app_s/HtcClockWidget.apk
adb shell reboot
http://www.mediafire.com/download.php?jzrykjnv2oy
Now with BlUE accents/highlights! (I think, I'm color blind so blue and purple look the almost the same, either way I think it looks nice.)
Blue Blur http://www.mediafire.com/download.php?y4y4gzjcyvn
push com.htc.resources.apk to /system/framework/com.htc.resources.apk
looks good
ok when i unzip the file where do i put them so they cn be push to my phone
jacsonmoore3 said:
ok when i unzip the file where do i put them so they cn be push to my phone
Click to expand...
Click to collapse
on your computer put them in your working path so that you can do adb push whatever.apk /data/app_s/whatever.apk
or if you don't have adb do this with them on the root of your sdcard
Code:
mount /system
mount /data
mount /sdcard
cp /sdcard/framework-res.apk /system/framework-res.apk
cp /sdcard/Rosie.apk /data/app_s/Rosie.apk
cp /sdcard/HtcClockWidget.apk /data/app_s/HtcClockWidget.apk
(use the mv command it cp doesn't work)
reboot
david1171 said:
on your computer put them in your working path so that you can do adb push whatever.apk /data/app_s/whatever.apk
or if you don't have adb do this with them on the root of your sdcard
Code:
mount /system
mount /data
mount /sdcard
cp /sdcard/framework-res.apk /system/framework-res.apk
cp /sdcard/Rosie.apk /data/app_s/Rosie.apk
cp /sdcard/HtcClockWidget.apk /data/app_s/HtcClockWidget.apk
(use the mv command it cp doesn't work)
reboot
Click to expand...
Click to collapse
well i dont know what u mean by [working path] but i think i can do it from my phone..do i do it in recovery or can i use the terminal..i have adb but im not getting what u talking bout cuz im still learning
jacsonmoore3 said:
well i dont know what u mean by [working path] but i think i can do it from my phone..do i do it in recovery or can i use the terminal..i have adb but im not getting what u talking bout cuz im still learning
Click to expand...
Click to collapse
If you have adb then put the apks in you're sdk/tools folder or where ever you're adb is located
Use the commands David gave you in the terminal or recovery, doesn't matter.
AdrianK said:
Use the commands David gave you in the terminal or recovery, doesn't matter.
Click to expand...
Click to collapse
actually it would be the recovery console because i do not believe that you can type "mount data" or "mount system" in the terminal and have it work, it will tell you the device or resource is busy.
also i use windows and i have adb.exe and AdbWinApi.dll in my system32 folder so i can use adb from any directory on my computer.
the working path is what appears by default when you open up command prompt (which for me is C:\users\david\ i use for adb commands do adb push desktop/what.ever [dir on phone] or adb push downloads/what.ever [dir on phone])
but as stated before drop the files into your tools folder and cd to your tools folder then adb push from there.
Rosie for some reason isn't working for me... adb or console, going to try root explorer and see if it works, good work regardless
Will this work for other Hero roms?
bigchi2000 said:
Rosie for some reason isn't working for me... adb or console, going to try root explorer and see if it works, good work regardless
Click to expand...
Click to collapse
that was me, I had zipped the original Rosie.apk instead of the one I modified I updated the zip so everyone download and tell me what you think.
kabluey said:
that was me, I had zipped the original Rosie.apk instead of the one I modified I updated the zip so everyone download and tell me what you think.
Click to expand...
Click to collapse
cool loks great. do you think you can change the selection highlights from red to green or blue
w0rd said:
Will this work for other Hero roms?
Click to expand...
Click to collapse
i pushed this on to mligns hero and it worked fine. im in the process of flashing the new jachero so i will try it on that one and post my results.
great work i like this!! +5
learningmore said:
i pushed this on to mligns hero and it worked fine. im in the process of flashing the new jachero so i will try it on that one and post my results.
Click to expand...
Click to collapse
Thanks appreciate it!
cp: cannot create /data/app_s/Rosie.apk (or any other file) : Path does not exist.
i also made sure those files were there
have any idea on how to get Plurk onto blur?
full lockscreen? Thanks.
Now has blue selection highlights!
I think if you wanted plurk you would need to find a non-odex plurk apk and push it to you data/app_s/ folder. I don't know if drizzy put out a build with plurk so look at some of the other hero roms.
kabluey said:
Big ups to Drizzy for making such an awesome ROm.
Here are 3 modified apk's; framework-res, Rosie, and HtcClockWidget.
I didn't change all the pictures just the status bar, Rosie Bar and WeatherClock Background. If people like my work I might just start posting more visuals on the demand of what people would like changed. Font color is going to stay because I can't edit the xml files.
To Install:
adb remount
adb push framework-res.apk /system/framework/framework-res.apk
adb push Rosie.apk /data/app_s/Rosie.apk
adb push HtcClockWidget.apk /data/app_s/HtcClockWidget.apk
adb shell reboot
http://www.mediafire.com/download.php?jzrykjnv2oy
Now with BlUE accents/highlights! (I think, I'm color blind so blue and purple look the almost the same, either way I think it looks nice.)
Blue Blur http://www.mediafire.com/download.php?y4y4gzjcyvn
push com.htc.resources.apk to /system/framework/com.htc.resources.apk
Click to expand...
Click to collapse
Thanks for the blue it right on time. I'm running it on the new jac.

[OOPS!] bootloop due to adb push /data/app/<file>.apk, can not delete :(

Hello guys,
I probably did a stupid thing. I could'nt install an apk and figured that I could just push it to my android and see what happens. I didn;t think I would get in a bootloop though .
I had astrid.apk, it's modified so it is transparant. I could not install it in Android.
What i did:
Reboot in recovery
Did the fake flash to start Clockwork mod
Connect the Android to my pc with an USB cable
adb push astrid.apk /data/app
I read that about 1.2MB was written so I guess that went right.
Did I forget a / ?
Is the map app overwritten?
Well, next thing I did was a reboot and now I'm stuck in a bootloop.
I tried to delete the file (rm /data/app/astrid.apk, rm -r /data/app/astrid.apk). But it could not find file or directory.
I did this from the shell i starten with adb shell. And I tried it with adb shell rm ...
Did I screw up that /data/app map? What to do now?
edit:
I can do cd data. But when I do cd app (when in /data) then it says "you can't cd to app"...
it's adb shell, and while you are in there, press cd /data/app. while in the data folder, press 'ls' to list all entries. usually apk's have different names and stuff. look for the app and then press rm /data/app/... .apk
Make sure you are in recovery and have system mounted.
djind said:
it's adb shell, and while you are in there, press cd /data/app. while in the data folder, press 'ls' to list all entries. usually apk's have different names and stuff. look for the app and then press rm /data/app/... .apk
Make sure you are in recovery and have system mounted.
Click to expand...
Click to collapse
"can't cd to /data/app"
img824.imageshack <remove> .us/img824/5049/shellz.jpg
edit:
I think I have overwritten the whole app map with the file astrid.apk, d*mn.
"adb push astrid.apk /data/app"
I would say, just wipe and start over..
This is how I usually do the stuff:
adb remount
adb shell
cd /data/app
ls
look for app to remove
rm ....apk
I am no pro, wipe is easy!
I made a complete nandroid backup this afternoon, I just did a partial restore, "data" and everything works fine again!
Thanks for helping. Lesson learned:
Linux != Windows (a whole map is easily overwritten with a file).
I doubt that you have overwritten a folder with a file. But good that everything is ok now.
djind said:
I doubt that you have overwritten a folder with a file. But good that everything is ok now.
Click to expand...
Click to collapse
I did a cat /data/app and i saw a lot of strange things, also strings and it was clear i saw the contents of astrid.apk. SO I really think I did.

[Q] ADB Push/Install Cyanogenmod 6 settings.apk

Would this work? Would it give us the ability to change the clock and notification text to white so that we can use black metamorph themes?
SuperDave81 said:
Would this work? Would it give us the ability to change the clock and notification text to white so that we can use black metamorph themes?
Click to expand...
Click to collapse
try it. i know the CMwallpaper app works.
if some1 posts the apk, i'll try it. feeling lazy at 2am. can ya blame me?
This is from 6.0.0 for N1
SuperDave81 said:
This is from 6.0.0 for N1
Click to expand...
Click to collapse
cant install via app manager. i dunno if it would work thru a adb push.
adb install fails: file already exists. Do I need to chmod the existing file in a shell first?
SuperDave81 said:
adb install fails: file already exists. Do I need to chmod the existing file in a shell first?
Click to expand...
Click to collapse
could work.
okay, I've mounted system as rw and chmodded Settings.apk as 04775, but I keep getting permission denied. How do I kill running apps in adb shell?
doubt you'll be able to do the customizations but you can use the stop and start commands in adb shell.
Tried it, nothing worked after issuing the stop command in adb shell. Had to battery pull.
Sent from my T-Mobile G2 using XDA App
adb shell
$ su
# stop
# mount -o remount,rw /dev/block/mmcblk0p25 /system
# mv /system/app/settings.apk /system/app/settings.bak
# cp /sdcard/settings.apk /system/app
# start
assuming you've put the new settings.apk in your /sdcard folder.
That worked, it did push the new settings.apk. It even changed the icon when I click menu from the home screen. But when I click on settings, nothing happened . Oh well, Enomthr updated his rom so I'm happy again!
I'm not positive but I'm pretty sure the cyan settings are involved with the custom framework on cyan roms. Because the xml in order to edit things such as clock color are located in the framework-res.apk. if some of you guys are new to android or have never reallly messed areoud with apks or ne thing here's something fun to try while waiting for root. Take the framework res apk from a rom and put it on ur computer and rename it to .zip instead of .apk. and you can see you things work visually wise on your phone. This will help you a ton if you ever want to get into themeing to make custom themes when we have root.
I have actually the same question. Does it work if a push a Setting.apk into my ROM, or there are something related in framework?

[Q] replace framework-res.apk?

Was just wondering if there is a way to replace the framework with just using root without a custom recovery for the stock Rom?
On my s3 I couldn't do it with just root don't know if that would work on this or if I might have missed something.
Sent using xda premium.
re: install apks
TheArtiszan said:
Was just wondering if there is a way to replace the framework with just using root without a custom recovery for the stock Rom?
On my s3 I couldn't do it with just root don't know if that would work on this or if I might have missed something.
Sent using xda premium.
Click to expand...
Click to collapse
All you need is to be rooted, it does not matter if you have custom recovery or not.
You can install any apk's since you do not need to go into recovery to install apks.
When I tried with root only before on a different phone I used root explorer to replace.
But when I went to paste it in the folder the phone locked up and rebooted.
Was that not the right way to do it?
Maybe using adb terminal would be better and not cause it to lock and reboot when I paste over the existing framework-res.apk.
Being in the system directory causes some issue with being that is also a constant used file.
Sent using xda premium.
re: install apk
TheArtiszan said:
When I tried with root only before on a different phone I used root explorer to replace.
But when I went to paste it in the folder the phone locked up and rebooted.
Was that not the right way to do it?
Maybe using adb terminal would be better and not cause it to lock and reboot when I paste over the existing framework-res.apk.
Being in the system directory causes some issue with being that is also a constant used file.
Sent using xda premium.
Click to expand...
Click to collapse
The framework-res.apk should be installed like any other app
unless the OP of wherever you got it from gives instructions
to "copy" it to the /system/app folder.
Why not do it the default normal way? just double click on it
when you are in root explorer and it should install like any
other app. If it gives an error, then you can copy it.
If you "copy" it you have to fix permissions and you have to
change the attributes of the /system/app folder so it's "read and write".
NOTE: if there is an existing framework-res-apk in /system/app
delete it with root explorer before doing any of the above.
Framework-Res.apk must reside in system directory. /system/framework to be exact.
Easiest way to do it without locking up is with adb.
You were right OP that it locks up because it's consistently being used. When I make my mods and such to the framework, this is how I quickly get it to the device.
adb remount (if the kernel supports it in other words, anything but stock)
Turn phone screen on
Adb shell stop (your phone should now have a black screen. This command stops all running threads except the one for adb)
Adb push framework-Res.apk /system/framework
Adb shell chmod 644 /system/framework/framework-Res.apk
Adb shell start
You should now see the boot animation then the prompt "android is upgrading"
If you do not have adb remount option (it returns with permission denied)
Copy new framework Res apk to root of internal sd card.
Adb shell stop
Adb shell mount -o remount,rw /system
Adb shell cp /sdcard/framework-Res.apk /system/framework/framework-Res.apk
Adb shell chmod 644 /system/framework/framework-Res.apk
Adb shell start
Just a pointer, disregard my capitalization. Only capitalize when needed.
This method should get everything copied successfully. Any issues just post back!
Sent from my SGH-M919 using Tapatalk 2
Oh thank you very much.
I will give that a try and sounds exactly like what I was looking for.
Sent using xda premium.
Not sure if this is really relevant but...
When I had the samsung vibrant, I used root explorer to make a copy of my framework-res.apk. I extracted the entire thing, found my battery icon files, replaced them with different images given the same name, then repacked the file. Then I copied it back to the original folder to replace the original apk and my phone immediately shut off and rebooted. When it came back I had my new battery icon working just as I had hoped. I was rooted running stock.
Wait... Are you saying that I can simply copy the framework-res.apk from SlimKat and use it on a Google Play Edition ROM?
I'm going to try it!

[Q] Changed SystemUI.apk, want to sideload via TWRP, possible?

Hey guys quick question if I will run into trouble doing this.
I wanted to change some .png files in the SystemUI.apk file in /system/app so I extracted it with Root Explorer.
Pulled it over to my PC, made it a zip, changed the files.
Now I want to sideload it on with TWRP back where it goes, I know it can overwrite it.
Will I have to change permissions somehow, I see "Fix Permissions" button in TWRP, will that do it?
Thanks so much for the help!
boot into TWRP
mount /system
adb push SystemUI.apk /system/app/
adb shell
chmod 0644 /system/app/SystemUI.apk
exit
adb reboot
this assumes that you are in the same folder as your SystemUI.apk and I would double check the permissions, it has been a while.

Categories

Resources