How to get the original camera.apk back? - G1 Q&A, Help & Troubleshooting

I'm modifiying my own rom, and tring to find a way to recover the HTC camera to the stock one.
I did the following step but failed:
1. delete the /system/app/camera.apk and HTCAlbum.apk
2. paste the original camera.apk to /system/app
3. repack the rom and flash
But nothing happened, even there is no camera icon in the menu.
How should I get the stock one back? There is some bug with the HTC camera...

You can just push it. If you change it within the ROM and flash you must resign it.

alritewhadeva said:
You can just push it. If you change it within the ROM and flash you must resign it.
Click to expand...
Click to collapse
Is there any way to resign it? I want to cook my own rom instead of pushing it every time.

zhouzian said:
Is there any way to resign it? I want to cook my own rom instead of pushing it every time.
Click to expand...
Click to collapse
What OS are you using? Windows or Linux

alritewhadeva said:
What OS are you using? Windows or Linux
Click to expand...
Click to collapse
I'm on Windows...
Now I have find the way to resign the package. But I find there is a odex file following the same name apk file. Should I copy the odex file along with the apk file into the app directory?
My rom does not contain any odex file while another rom have many of them. Could any one tell me why?

zhouzian said:
I'm on Windows...
Now I have find the way to resign the package. But I find there is a odex file following the same name apk file. Should I copy the odex file along with the apk file into the app directory?
My rom does not contain any odex file while another rom have many of them. Could any one tell me why?
Click to expand...
Click to collapse
Odex optimization is just optimization. Copy the .odex file along with the .apk if its available.

The HTC camera has a bug that if you half-push the camera button, it will not only focus but also take a photo, not like the original one does.
I have done the following and both of them failed,
1. copy the camera.apk from JF 1.5, resigned the rom, and flash... There is no icon appearing in the menu
2. copy the camera.apk and odex file from ION build, resign and flash... The phone can not start up at all. It freeze at ANDROID logo.
I'm wondering if I have done in the wrong way... Could you offer some help?
Thanks in advance.

try to get the camera from the crc1 build

The problem is where to get...
All the other builds from CRC1 contain the odex file, which will broke the startup process.

could anyone send me the camera.apk and libcamera.so from CRC1?
just mail me: [email protected]

get it here http://forum.xda-developers.com/showthread.php?t=538456 donwload one of those ROMS

NO...it doesn't work. There is an odex file coming alone with the apk file. If I copy the apk and odex files into the CM rom, it will fail to startup. Seems CM rom can only accept standalone apk file.

Related

Replacing .apk files?

I would like to use this Phone.apk file in this ROM.
Do I just unzip the ROM, replace the .apk, rezip the ROM, sign the .zip, and flash?
Is there only one Phone.apk file to replace?
Last thing I want is a paper-weight
Thanks!
I just thought of this: could I just install the .apk via a file manager (as long as unknown sources are checked)?
NViouz said:
I would like to use this Phone.apk file in this ROM.
Do I just unzip the ROM, replace the .apk, rezip the ROM, sign the .zip, and flash?
Is there only one Phone.apk file to replace?
Last thing I want is a paper-weight
Thanks!
Click to expand...
Click to collapse
First, you're not going to brick your phone.
Second, I don't know how CSDI works. Try it and find out.
NViouz said:
I just thought of this: could I just install the .apk via a file manager (as long as unknown sources are checked)?
Click to expand...
Click to collapse
No. Maybe if you remount /system in read-write, even then it's probably easier to try it by just replacing and resigning.
I know in donut, you can just replace it without any problems (like other system apps depending on it). Don't know about anything else.
Edit:
1. unzip and copy Phone.apk to /sdcard
2. remount system rw
3. cat /sdcard/Phone.apk > /system/app/Phone.apk
4. rm /system/app/Phone.odex (only do this if there is a Phone.odex file)
Click to expand...
Click to collapse
There's what the thread says about installing it, have you tried? (Nandroid in case that ROM doesn't like it.)

Cook Battery Circle Mod in custom rom -> Boot Loop

Hi,
When I flash the battery circle mod (http://forum.xda-developers.com/showthread.php?t=730673) through recovery as an update on my phone, everything goes well.
I even made one myself with Apk manager (http://forum.xda-developers.com/showthread.php?t=695701) using the stock framework-res.apk file and it works just fine.
I have cooked my own rom based on 2.03.405.3 with the kitchen (http://forum.xda-developers.com/showthread.php?t=633246) (rooted, disabled the bootsound and deodexed the whole rom).
Now I putted the battery circle mod (tried with both of them) into my rom using winrar and replaced the framework-res.apk and signed the rom.
But when I flash this rom on my phone, my phone gets stuck in a bootloop. I already searched with google to find similar problems but didn't find any. No mather what I try, it always ends with a boot loop
Anyone who can help me out???
Did you tried flashing other rom?
jup, i already flashed some roms from other members + some that i made myself and no problems at all
Open your original framework-res.apk with 7zip (not extract, just open) replace the file (use drag and drop), except for meta file and sign file, and afrer finish just close the 7zip, now you have modified framework-res.apk and cook it. It's very easy yeah.......
Sent from my HTC Legend using Tapatalk
BesFen said:
Open your original framework-res.apk with 7zip (not extract, just open) replace the file (use drag and drop), except for meta file and sign file, and afrer finish just close the 7zip, now you have modified framework-res.apk and cook it. It's very easy yeah.......
Click to expand...
Click to collapse
Guess it ain't that easy. Tried it exactly the way you said and again bootloop
I have made my rom.zip with dsixda's HTC Android Kitchen.
I open this rom with 7-zip and extract the framework-res.apk file and I leave my rom open.
Then I open the framework-res.apk with 7-zip, I drag and drop the files that need to be replaced and I close the file.
I then sign framework-res.apk with stericson's autosigner and drag and drop the signend file into my still open rom.zip which I then close.
I sign the rom.zip an put it on my sd-card.
I go into recovery, wipe data/factory reset and wipe the dalvik cache and then flash the zip and reboot.
And again I have a bootloop
But when I make an update.zip of the edited framework-res.apk and I flash then I have no problems at all.
Attached: logcat file with my bootloop error. (Other error than the one I my first post)
nobody who can help me ???
Did you deodex or get already deodexed framework?
Do you wipe data partition every time you flash this ROM of yours?
BlaY0 said:
Did you deodex or get already deodexed framework?
Do you wipe data partition every time you flash this ROM of yours?
Click to expand...
Click to collapse
My whole rom is deodexed with the kitchen. There are no .odex file in my rom.
And yes i always wipe before I flash
OK, let's get this straight... you wipe data, then flash your rom (without updated framework-res.apk), then boot and just after that (in second recovery session) you push new framework-res.apk, reboot again and it works? Or... you wipe your data, flash rom, push new framework-res.apk (via update), reboot and it works?
Did you make some logcat of failed attempt?
matn013 said:
Guess it ain't that easy. Tried it exactly the way you said and again bootloop
I have made my rom.zip with dsixda's HTC Android Kitchen.
I open this rom with 7-zip and extract the framework-res.apk file and I leave my rom open.
Then I open the framework-res.apk with 7-zip, I drag and drop the files that need to be replaced and I close the file.
I then sign framework-res.apk with stericson's autosigner and drag and drop the signend file into my still open rom.zip which I then close.
I sign the rom.zip an put it on my sd-card.
I go into recovery, wipe data/factory reset and wipe the dalvik cache and then flash the zip and reboot.
And again I have a bootloop
But when I make an update.zip of the edited framework-res.apk and I flash then I have no problems at all.
Attached: logcat file with my bootloop error. (Other error than the one I my first post)
Click to expand...
Click to collapse
I said open framework-res.apk with 7zip before you cook it, replace the file and close it, no need to sign it, and cook your rom. It's working well on mine.
Sent from my HTC Legend using Tapatalk
matn013 said:
But when I make an update.zip of the edited framework-res.apk and I flash then I have no problems at all.
Click to expand...
Click to collapse
...so I guess problem is somewhere else?
BesFen said:
I said open framework-res.apk with 7zip before you cook it, replace the file and close it, no need to sign it, and cook your rom. It's working well on mine.
Sent from my HTC Legend using Tapatalk
Click to expand...
Click to collapse
So what do you mean by "and cook your rom"? Replace the changed framework-res.apk file in my rom.zip and run my rom through the kitchen again?
Because I just did that and it doesn't work either
matn013 said:
So what do you mean by "and cook your rom"? Replace the changed framework-res.apk file in my rom.zip and run my rom through the kitchen again?
Because I just did that and it doesn't work either
Click to expand...
Click to collapse
Don't replace the framework-res.apk, extract your modified framework-res.apk, you can use winrar/winzip/7zip to extract it, take your custom .png file from it.
If it finish, then open OEM framework-res.apk with 7zip (not extract, just open), then drag and drop your custom .png file that you already take from custom framewoekees into it in same folder in 7zip, then build your rom.
Sent from my HTC Legend using Tapatalk
Did you mess with other files?
wrong permisions?
maby need to update you updater-script with file owner etc

Modifing Rom

If I down load a rom and open the zip file can i just goto system/apps and delete and install .apks and then flash that rom? I was wondering so i don't have to delete them after install.
Neo31697 said:
If I down load a rom and open the zip file can i just goto system/apps and delete and install .apks and then flash that rom? I was wondering so i don't have to delete them after install.
Click to expand...
Click to collapse
Depends on what your deleting and adding, if your just deleting and adding apks to the system/app dir you should be ok (normally) . If you want it to stay as an update type zip it'll need to be resigned.
Neo31697 said:
If I down load a rom and open the zip file can i just goto system/apps and delete and install .apks and then flash that rom? I was wondering so i don't have to delete them after install.
Click to expand...
Click to collapse
U can Add and delete what u like but if u do u have to resign the rom before u can flash it.
If u download avabox2 (can be found on xda via a search...its free) it has a folder in there called autosign. Put the rom in there rename it update the click on the sign file. It will sign it for u automatically. Then u can rename the signed rom whatever u like. Just no spaces in the name. Then it can be reflashed.
sweet thanks. Just thinking about starting to make my own roms and this seemed like a good place to start
Neo31697 said:
sweet thanks. Just thinking about starting to make my own roms and this seemed like a good place to start
Click to expand...
Click to collapse
Some tools for you to get started:
For People Willing To Learn
Everything Android

trouble re-installing system apps.

im currently on phoenix 4.5 and was missing the unified inbox and program monitor widget from rogers 2.2 so i opened up my stock flash and took out the files for:
seven.apk, unifiedInbox.apk +.odex and SamsungWidget_ProgramMonitor.apk +.odex
I tried mounting as R/W and dropped them in System/apps then tried installing...
only the first program installed
"Application not installed"
I dont think its a coinsidence that the ones with .odex files didnt install.
Looked up odex... then Deodexing....
Custom roms are DEODEXED...
deodexing isnt as easy as dropping the odex file into the zip and renaming apk.. is it? because that didnt work either...
ok how can i intall these? what am i missing?
really? no suggestions yet?
deodex the programs, drop into system/app, reboot. No need to install system apps.
Sent from my Craptivate with the leaky rom
what is the proper way to deodex the apps?
i tried rename .apk as .zip
drop in the odex files with windows explorer
rename back to .apk
is there something i missed? anytime i try to repackage an app it wont install.
I tried replaceing the default icons in LauncherPro once before. didnt work either.
am i supposed to zip with a certain program? no compression?
i cant seem to find any instructions on how to do this without digging through hours of app programming first.
Trusselo said:
what is the proper way to deodex the apps?
i tried rename .apk as .zip
drop in the odex files with windows explorer
rename back to .apk
is there something i missed? anytime i try to repackage an app it wont install.
I tried replaceing the default icons in LauncherPro once before. didnt work either.
am i supposed to zip with a certain program? no compression?
i cant seem to find any instructions on how to do this without digging through hours of app programming first.
Click to expand...
Click to collapse
http://code.google.com/p/smali/wiki/DeodexInstructions
cappysw10 said:
http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
thanks for the link, but i was looking for information "without learning programming first"
the link you posted assumes the reader has a working knowlege of programming. I think i can work most of it out but it explains "what to tell it to do" but rather unclear "what it will do" or what you need.
it mentions pointing the script to the .odex file, but it never mentions needing an apk or outputting a deodexed apk. Or is that not what it does?? the help is written as though you know what you are doing but dont know how to use his script..
i think it wants me to...
so to use it i need the baksmali and its script.
run them and point them to the apk and odex with the proper command.
then i will output a deodexed apk?
i dont want to ask but..
can someone do it for me?
files attaced.....
UnifiedInbox deodexed, installed on Cognition 3.04 working.

[Q]I9001 Battery mod

Hello everyone,
Can someone please inform and post a thread link of a battery mod that works on the i9001? By battery mod I mean small zip file that is installed from recovery and changes the stock battery meter
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
quest221 said:
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
Click to expand...
Click to collapse
If you use manveru0's kernal and recovery you can now flash the update files as they come from the kitchen
quest221 said:
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
Click to expand...
Click to collapse
Hmm... yes, nice, but I'm not in to designing things. I was looking for something that has been already created
what's the version of your Rom?
quest221 said:
what's the version of your Rom?
Click to expand...
Click to collapse
Firmware version : 2.3.4
baseband version I9001XXKP4
Kernel Version : [email protected] #7
Build Number : GINGERBREAD.XXKP4
I use Go launcher (from my opinion it's the best), if you think otherwise please post the better launcher, I am opened to experiment others.
Many thanks,
Ciprian
I don't have a I9001XXKP4 Rom in my hard drive. If you can send your your framework-res.apk, I can make one for you.
quest221 said:
I don't have a I9001XXKP4 Rom in my hard drive. If you can send your your framework-res.apk, I can make one for you.
Click to expand...
Click to collapse
I would like something like http://img225.imageshack.us/img225/9943/smoothbatt.png if it is possible.
I have attached framework-res.apk
opps a
hey guys!
just used this. twice great kitchen, really revamped some of the more boring icons on stock roms. thanks for the tip!!
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
quest221 said:
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
Click to expand...
Click to collapse
Thanks, exactly what I needed. I flashed it and all is ok
quest221 said:
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
Click to expand...
Click to collapse
can i use it on 2.3.6 rom?
nope because you will end up in a bootloop by flashing this
its only for XXKP4
urm, Ive tried to do as you told in post number 2(by cooking it according to my own preference)
but my problem starts from step number 5
5. Update the updater-script file, resign the zip file.
Click to expand...
Click to collapse
I already received the cooked file
but I dont know how to change the update script and end up failing to update using the zip file.
can you please help me?
or link me to a place that really can help me to learn better on changing the update script.
try this one, I updated the updater-script, you can compare it with the one from kitchen.
PS: Forgot to update the update-binary file, now try the new one. It should work.
Thanks!!!! But I got an error that states
E:error in /tmp/sideload/package.zip
(status 2)
I wonder whats wrong.
looked in a thread
http://forum.xda-developers.com/showthread.php?t=1194245&page=3
and from what I understand it seems to be a problem with the update binary. But Im just an end user and this is too much for me.
anyway maybe Ill try to flash the cranium ROM and try to cook again a new one and use your update script.
cheers!!
Hi,
Is there any posibility to change framework-res.apk file without CWM? I don't want to instal CWM becouse of it has a problem with front side cam and I need this cam. It's can't be overwritten when the phone works. Maybe some adb and push command is possible.
Could you help me by describing the whole procedure? Sorry for my English.
@quest221
Can you maybe make one for Android 2.3.5 like the screenshot @ page 1?
I have baseband I9001XXKPF, Build XXKPG
I update the zip file with the new update-binary file.
Is there any posibility to change framework-res.apk file without CWM?
Click to expand...
Click to collapse
Yes, I just use the recovery from Samsung, not the third-party.
Check the post #2, that's the steps. Also replace the update-binary file with the one in my zip file.
Can you maybe make one for Android 2.3.5 like the screenshot @ page 1?
Click to expand...
Click to collapse
Upload your framework-res.apk file.

Categories

Resources