Replacing .apk files? - G1 Q&A, Help & Troubleshooting

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.)

Related

How to get the original camera.apk back?

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.

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

Battery icon request for KH3

Is it possible to make this battery icon http://forum.xda-developers.com/showthread.php?t=977983 work with KH3?! Thanks..
chasesavestheday said:
Is it possible to make this battery icon http://forum.xda-developers.com/showthread.php?t=977983 work with KH3?! Thanks..
Click to expand...
Click to collapse
You can do a bunch of battery icons in the UOT kitchen
There are a couple for KH3 in this thread
http://forum.xda-developers.com/showthread.php?t=1248826
Yes I just created one at uot. I really liked the one on the OP though. Thanks for your efforts!
I have pulled all of the battery.png files from the package in the OP. Can someone put these into something that will work with KH3. I have it a shot and could not resign the apk. Then ran into other issues.
Shall I upload the icons?
chasesavestheday said:
I have pulled all of the battery.png files from the package in the OP. Can someone put these into something that will work with KH3. I have it a shot and could not resign the apk. Then ran into other issues.
Shall I upload the icons?
Click to expand...
Click to collapse
There's an easier way, assuming you have the android SDK and ADB.
First, reboot into CWM recovery (it'll save you any troubles of root permissions).
Type this command into adb:
adb pull /system/framework/framework-res.apk
Then go into your SDK folder where adb is stored (usually platform-tools) and make a copy of that apk file to somewhere else. That will be your safe backup.
Then get 7zip and right-click on the apk sitting in the directory with adb, and select "open archive". Navigate to /res/drawable-hdpi and copy all the files you extracted into this directory (overwriting where necessary).
Once you've done that, close the archive. Assuming it's still in the same directory as adb, type:
adb push /system/framework/framework-res.apk framework-res.apk
(Yes, it's typed twice on purpose.)
Then just reboot. If all goes well, your battery should show up. If it messes up, just move your backup to the adb folder, reboot to recovery, and reissue the adb push command above.
chasesavestheday said:
I have pulled all of the battery.png files from the package in the OP. Can someone put these into something that will work with KH3. I have it a shot and could not resign the apk. Then ran into other issues.
Shall I upload the icons?
Click to expand...
Click to collapse
you dont need to sign system apks

[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.

need (my files) app on captivate

does anyone know if there is a .tar file or something so i could flash the my files app on my cappy that usually comes on the cappy with the official firmwares? i just need some kind of file to do that because i dont like astro and es file manager, etc. even a link to somewere where this has been done before would help, thanks.
Why use that when the others have a **** ton more functionality? Like root file exploration.
Do you have any .tar stock firmware package? Open that archive with 7zip and go to /system/app and drag it out...then use a root file explorer (lolz oh the irony) to drop it in /system/app
Or use adb to push it there
Or get a theme cwm zip package and delete all the files out of the folders (not touching the meta-inf folder) and drop it in /system/app and flash that.
studacris said:
then use a root file explorer (lolz oh the irony)...
Click to expand...
Click to collapse
I did indeed LOL
hmm...i think im gonna get the cwm package and just do that, do you have any link on one of those, if not then how can i get or look one of those up?
any theme zip will do, just not a ROM zip that has a kernel and modem in it you don't need top flash the theme zips ate just system apk files you can delete out and add your apk in. Make sure only that apk is in it though.
Hold on...I'll hey you a link where i posted a test zip you can use.
Edit: http://forum.xda-developers.com/showpost.php?p=22271929&postcount=1403
In that post is a cwm zip, open that archive with 7zip go to /system/app delete what's there and drop that apk in. Then flash that in recovery.
ya well it didnt work..
Ya well you give more detail we can help.... "It didn't work" isn't very helpful for trouble shooting...
it said that the installation was aborted
What version of cwm do you have?
Or are you on an aosp ROM?
Just use a root explorer, go in and unzip any file that has it in it, then go to the extracted folder, long press on it and hit COPY, then back out until your at SYSTEM and paste it, then look for the file in SYSTEM and long press on it and choose permissions, then change it so it matches the SAME PERMISSIONS in SYSTEM/APP, then once you have the permissions correct long press on it and move it into SYSTEM/APP and hit PASTE. them REBOOT the phone and it will be in there and working. NO NEED to try flashing it in cwm. This MAY sound like a lot of work but it is VERY EASY AND FOOL PROOF.
Sent from MY SPH-P100 running ICS
OI File Manager. Looks almost exactly like my files.
Ok rockratt...first of all...when i tried putting the file in system...
It said failed, and also what do you mean to fix the permisions?
Sent from my SGH-I897 using XDA App
It failed because you need to mount that partition r/w instead of the default r/o...should be an option for that on the root file explorer you used.
juggalo4life760 said:
Ok rockratt...first of all...when i tried putting the file in system...
It said failed, and also what do you mean to fix the permisions?
Sent from my SGH-I897 using XDA App
Click to expand...
Click to collapse
As studacris said make sure to set it to read/write. When using ROOT EXPLORER you will see a button towards the top the probably says MOUNT R/W click on it and then paste it to SYSTEM( the reason I say to paste it to SYSTEM first so you can change the apparently permissions before moving it into SYSTEM/APP since it will ask to overwrite a version of itself if it is already there. To change the permissions just long press, choose permissions, then click the appropriate boxes to make it have the correct permissions before placing it in.
Sent from My KickAss CM7 Captivate
Pasting to /system and Changing permissions shouldn't be needed.
And if it is..boot into recovery, go to advanced, and fix permissions

Categories

Resources