How To: Restore 4.1 Camera on 4.2 ROM - Samsung Galaxy Nexus

I'm sure there is a very small group of you who are like I am, I want to be up to date, but the 4.2 camera is killing me with it's lag, something that not even the 4.0 camera had. So I figured I'd go ahead and try the reverse of the mod of getting the 4.2 camera on 4.1.
1. Use a file explorer with root access (I use ES File Manager) and navigate to the System/Apps folder.
2. Rename GalleryGoogle.apk so the system does not see it. (I renamed it to GalleryGoogle.apk2)
3. Copy the GalleryGoogle.apk on here and paste it into the System/Apps folder.
4. Once copied, set permissions on the app.
5. Reboot
Once the phone comes back up, you should have a full functional 4.1 camera running, the lock screen still works, it just boots to the new (or old?) camera instead. I hope this helps in case it was bugging others like it was me, I plan on keeping the old camera until they work those bugs out.

Related

[Q] Trying to take messaging apk and htc keyboard from virtuous fusion rom

I tried to take the messaging apk and the htc.ime apks from the virtuous fusion rom because i want to use them on Insertcoin_vision rom running 2.1 sense+ 3.0.Is there anyway that i can do this ??
Put the rom.zip on you computer and unzip it. Then look in system/app for the apk's.
Now there is a good chance that these apk's won't actually work on the insertcoin rom. For a lot of sense apps to work they are dependent an the sense framework and this varys from version to version.
Easiest way to then install is adb if you know who to use adb, cool. If not I'm not going to explain here and you will need to follow the instructions bellow
you won't be able to install like a normal app you would have to place then in the /system/app folder and make sure the permissions were set correctly. The best way to do this is using root explorer or something similar. Place the apk on your sd card and copy them to the folder. If your using root explorer once you have copied them th the correct folder press and hold on the app to bring up them menu and select permissions. The permissions need to be the same as the other apps in the /system/app folder. You will need to move the original apk before copy the new ones in make sure you put these on your sdcard.
Then reboot, but be prepared for the apps not to work.
UNLOCK OUR BOOTLOADERS
Noob's Watch This
Did you ever extract the keyboard from Virtuous Fusion? I am interested in it as well.
I have never used Virtuous ROMs but I am curious, what is special about the keyboard? Is it not just the stock HTC keyboard?
cjward23 said:
Put the rom.zip on you computer and unzip it. Then look in system/app for the apk's.
Now there is a good chance that these apk's won't actually work on the insertcoin rom. For a lot of sense apps to work they are dependent an the sense framework and this varys from version to version.
Easiest way to then install is adb if you know who to use adb, cool. If not I'm not going to explain here and you will need to follow the instructions bellow
you won't be able to install like a normal app you would have to place then in the /system/app folder and make sure the permissions were set correctly. The best way to do this is using root explorer or something similar. Place the apk on your sd card and copy them to the folder. If your using root explorer once you have copied them th the correct folder press and hold on the app to bring up them menu and select permissions. The permissions need to be the same as the other apps in the /system/app folder. You will need to move the original apk before copy the new ones in make sure you put these on your sdcard.
Then reboot, but be prepared for the apps not to work.
UNLOCK OUR BOOTLOADERS
Noob's Watch This
Click to expand...
Click to collapse
Thanks mate....it helped me too big time...

[APP] Silent Samsung Camera App [EK02] [12/10/2011]

For some reason, the autofocus beep on the Samsung camera really bugs me.
The audio files for this are inside Camera.apk:
/res/raw/autofocus_ok.ogg
/res/raw/autofocus_error.ogg
/res/raw/cameratimer.ogg
I tried 7zip, MetaMorph, and a few other things to replace these with silent ogg files, but Camera.apk would Force Close.
I ended up just decompiling Camera.apk using apktool version 1.4.1, replacing the ogg files with silent ogg files, recompiling, signing, and then replacing the stock Camera.apk/odex files.
The attached Camera.apk worked for me, with no autofocus beep, and no Force Crashes.
REQUIRES ROOT
MAKE SURE YOU BACK UP YOUR EXISTING /system/app/Camera.apk and Camera.odex
IN CASE THIS DOESN'T WORK FOR YOU
Edit: To clear up some of the confusion, I'm going to explain the steps a little more clearly.
First, unzip the attached file as Camera.apk to the root of the sdcard ( /sdcard ).
Using ADB (original files will be backed up to /system/bak) :
Code:
adb remount
adb shell
# mkdir /system/bak
# mv /system/app/Camera.* /system/app/bak/
# cp /sdcard/Camera.apk /system/app/
exit
Or Using Root Explorer (original files will be backed up to /system/bak) :
Code:
Go to /system
- Mount R/W
- Menu - New Folder - Name: bak
Go to /system/app
- Move Camera.apk and Camera.odex to /system/bak
Go to /sdcard
- Copy Camera.apk to /system/app
If you want to change the other camera sounds, they are in:
\system\media\audio\ui
You can just rename, move, or delete (after backing up) them.
The files are:
Cam_Start.ogg
Cam_Stop.ogg
camera_click.ogg
camera_click_short.ogg
Shutter_01.ogg
VideoRecord.ogg
EDIT 2 (12/10/2011): I've added the Camera.apk from EK02 with silent focus sounds. The newer camera version seems to have a few more options in the settings than my first upload.
Awesome, why couldn't you make it an install by .apk save some of us that are waiting to root.
natelw said:
Awesome, why couldn't you make it an install by .apk save some of us that are waiting to root.
Click to expand...
Click to collapse
The only way to make it installable to update the existing Camera.apk is to sign this with the Samsung signature. I don't have that.
can I just flash this through cwm?
imacomputa said:
can I just flash this through cwm?
Click to expand...
Click to collapse
I'm not quite sure how to make it flashable. I just used ADB in the Android SDK:
adb remount
adb pull /system/app/Camera.apk ./Camera.apk.backup
adb push Camera.apk /system/app
will this install along side the original or replace it?
BLOWNCO said:
will this install along side the original or replace it?
Click to expand...
Click to collapse
It replaces the original Camera.apk. That's why you should make a backup of the original first. The only difference is that there is no focus sound. You will still have the shutter sounds in the \system\media\audio\ui directory, but those are easy to change if you need to.
If you really wanted to, I suppose you could recompile it under a different app name, so that you could have both versions.
I just used root explorer instead and replaced the camera app, however its constantly force-closing whenever I go into settings or try to take a video. The focus square in the middle of the camera is all crazy too. It takes photos just fine though. Should I try again using adb instead?
kcbedo said:
For some reason, the autofocus beep on the Samsung camera really bugs me.
The audio files for this are inside Camera.apk:
/res/raw/autofocus_ok.ogg
/res/raw/autofocus_error.ogg
/res/raw/cameratimer.ogg
I tried 7zip, MetaMorph, and a few other things to replace these with silent ogg files, but Camera.apk would Force Close.
I ended up just decompiling Camera.apk using apktool version 1.4.1:
apktool if framework-res.apk
apktool if twframework-res.apk
apktool d Camera.apk
Replacing the ogg files with silent ogg files,
...and then recompiling:
apktool b Camera
Finally, I signed the Camera.apk and pushed it to /system/app.
The attached Camera.apk worked for me, with no autofocus beep, and no Force Crashes.
REQUIRES ROOT
MAKE SURE YOU BACK UP YOUR EXISTING /system/app/Camera.apk
IN CASE THIS DOESN'T WORK FOR YOU
Click to expand...
Click to collapse
Just tried it and it is working good. Any way to remove the shutter sound also?
crawrj said:
Just tried it and it is working good. Any way to remove the shutter sound also?
Click to expand...
Click to collapse
The other camera sounds are in \system\media\audio\ui
You can just rename, move, or delete them.
The files are:
Cam_Start.ogg
Cam_Stop.ogg
camera_click.ogg
camera_click_short.ogg
Shutter_01.ogg
VideoRecord.ogg
imacomputa said:
I just used root explorer instead and replaced the camera app, however its constantly force-closing whenever I go into settings or try to take a video. The focus square in the middle of the camera is all crazy too. It takes photos just fine though. Should I try again using adb instead?
Click to expand...
Click to collapse
I'm not quite sure why it would do that. You could try rebooting and clearing Dalvik cache. You are using it on an SPH-D710 with Samsung firmware, right?
I forgot to check video recording, but I went back and it didn't Force Close on me. I'm able to get to Settings okay also.
kcbedo said:
I'm not quite sure why it would do that. You could try rebooting and clearing Dalvik cache. You are using it on an SPH-D710 with Samsung firmware, right?
I forgot to check video recording, but I went back and it didn't Force Close on me. I'm able to get to Settings okay also.
Click to expand...
Click to collapse
Yep I am. I'll try it again wiping the dalvik cache and report back. thanks.
---------- Post added at 11:43 PM ---------- Previous post was at 11:25 PM ----------
Nope, still not working.
---------- Post added at 11:53 PM ---------- Previous post was at 11:43 PM ----------
Okaaaay... so I made a few mistakes here and there, SOMEHOW it's working now. Went into recovery (did the stock kernel + root trick, so I am on stock) but for some reason the stock recovery immediately scanned my sdcard root for apks and started installing them by itself(where the camera.apk of yours was stored). I forgot I needed Clockworkmod, so I went ahead and reflashed cwm and cleared dalvik cache but it didn't work. So next thing I tried was just installing the camera.apk like a normal apk. It didn't work and actually made my phone reboot. I then reinstalled the stock apk like a normal apk, then went back and cleared the dalvik cache again. Finally, I went back into root explorer again and copied over the camera.apk file (yours) and replaced the old one, AND installed it like a normal app. It now works totally flawless with the exception of the video recording still making shutter noises, but still pictures is completely silent. Thanks for all your help!
I tried installing this but didn't have any luck. First when I would browse to your .apk and download it, I'd tap it and get the warning about replacing an existing app. I would say OK, but kept getting "application not installed". So I manually removed /system/app/Camera.apk and retried. This time it let me, but when I would open the app it would force close - i.imgur.com/INl0Z.jpg . I would up restoring the stock Camera.apk and it's ok now. Any idea what I'm doing wrong?
OK to get this to work with Root Explorer and have everything working perfectly (No weird autofocus crosshairs) I moved BOTH orginal Camera.apk and Camera.ODEX out of the system/apps folder and onto my memory card for backup purposes.
Then extracted the camera.apk from OPs zip file and moved it into System/Apps and DID NOT install. Just placed it in there and then went and ran the program. I am running perfectly fine. No FCs, and it is completely silent.
I did also go into the sounds folder like OP says and changed the name of all the sounds that you will have to do. But other than that I hope that clears up any confusion on how to get this working by using root explorer.
you cannot install it you have to remove the old version and replace it using adb or root explorer
aiverson23 said:
OK to get this to work with Root Explorer and have everything working perfectly (No weird autofocus crosshairs) I moved BOTH orginal Camera.apk and Camera.ODEX out of the system/apps folder and onto my memory card for backup purposes.
Then extracted the camera.apk from OPs zip file and moved it into System/Apps and DID NOT install. Just placed it in there and then went and ran the program. I am running perfectly fine. No FCs, and it is completely silent.
I did also go into the sounds folder like OP says and changed the name of all the sounds that you will have to do. But other than that I hope that clears up any confusion on how to get this working by using root explorer.
Click to expand...
Click to collapse
Confirmed. I had to remove Camera.odex as well and NOT install the .apk, simply replace it. Now I have regular crosshairs and no sounds. Thanks for the tip!
Thanks, I figured out it was the odex file that was screwing me up. Thanks!
Got it working with Root Explorer... I had the issue yesterday with FC and crazy focus bracket things being I didn't remove the Odex file.
Anyone else have problems with the Camera "shortcuts" within the camera app disappearing after the app closes?
WOndering if this is a bug in the Camera app itself. Most settings save but not the shortcuts. The other thing I noticed with the unmodded app was the if you set the camera to black and white, the selection does not survive a reboot. On the original Epic, the selections remained until changed.
Great find. This was driving me crazy. This was the one place I hadn't looked.

[APP] Silent Samsung Camera [EL29] [4/11/2012]

Big thanks to kcbedo for this thread, and Neotelos_com for his apkTools.
This is the stock EL29 camera with the autofocus, autofocus_error, and cameratimer silenced.
I did this because after installing kcbedo's hack for the EK02 silenced camera, my gallery was showing error triangles for any pictures I took prior to installing his hack. With this hack, that no longer happens and the camera is still silent.
Since this is exactly like his hack, I'm going to quote his install instructions. They're the exact same.
kcbedo said:
For some reason, the autofocus beep on the Samsung camera really bugs me.
The audio files for this are inside Camera.apk:
/res/raw/autofocus_ok.ogg
/res/raw/autofocus_error.ogg
/res/raw/cameratimer.ogg
I tried 7zip, MetaMorph, and a few other things to replace these with silent ogg files, but Camera.apk would Force Close.
I ended up just decompiling Camera.apk using apktool version 1.4.1, replacing the ogg files with silent ogg files, recompiling, signing, and then replacing the stock Camera.apk/odex files.
The attached Camera.apk worked for me, with no autofocus beep, and no Force Crashes.
REQUIRES ROOT
MAKE SURE YOU BACK UP YOUR EXISTING /system/app/Camera.apk and Camera.odex
IN CASE THIS DOESN'T WORK FOR YOU
Edit: To clear up some of the confusion, I'm going to explain the steps a little more clearly.
First, copy the attached file 'Camera.apk' to the root of the sdcard ( /sdcard ).
Using ADB (original files will be backed up to /system/bak) :
Code:
adb remount
adb shell
# mkdir /system/bak
# mv /system/app/Camera.* /system/app/bak/
# cp /sdcard/Camera.apk /system/app/
exit
Or Using Root Explorer (original files will be backed up to /system/bak) :
Code:
Go to /system
- Mount R/W
- Menu - New Folder - Name: bak
Go to /system/app
- Move Camera.apk and Camera.odex to /system/bak
Go to /sdcard
- Copy Camera.apk to /system/app
If you want to change the other camera sounds, they are in:
\system\media\audio\ui
You can just rename, move, or delete (after backing up) them.
The files are:
Cam_Start.ogg
Cam_Stop.ogg
camera_click.ogg
camera_click_short.ogg
Shutter_01.ogg
VideoRecord.ogg
Click to expand...
Click to collapse
Note: to edit the files mentioned at the end you MUST be rooted (or using adb shell on your computer). Some popular file browsers are Rootexplorer ($), ES File Explorer, and Astro
Finally, if this helped you please feel free to thank me.
his EKO2 worked flawlessly with EL29. no camera issues or gallary.
locoboi187 said:
his EKO2 worked flawlessly with EL29. no camera issues or gallary.
Click to expand...
Click to collapse
It had issues with my phone (which is stock), so I posted this in case someone else's phone has issues.
If yours didn't, move along.
not working
after following the exact root explorer steps my camera was gone from the launcher. i rebooted and it was still gone. i then tried matching the new camera.apk permissions to the old camera.apk permissions, rebooted and still not showing up.
do i need a new camera.odex, too? am i missing something?
using stock rooted SGSII EL29 (odin one touch)
currently went back to stock camera and is working fine. still want silence...
UPDATE:
tried again, this time leaving the Camera.odex in /system/app and it works! i'm also not getting some of the weird crosshairs or FCs as mentioned in the original thread.
THANKS!!
Worked perfectly for me. Haven't found any glitches at all.

HTC Sense 4.1 camera app?

So, I updated my phone with the HTC One maXimus V2.2 today
after I flashed it, I restored some apps using Titanium backup
I accidently restored the old camera app
can someone please provide me with the new one? the one with (from what I heard) a button the switches between the primary and secondary camera without having to go to the menu?
Thanks!
You can get it from the ROM zip.
Just open it with ES or Solid Explorer, find Camera.apk in /system/app in the archive, then put that in /system/app on your phone.
SilverHedgehog said:
You can get it from the ROM zip.
Just open it with ES or Solid Explorer, find Camera.apk in /system/app in the archive, then put that in /system/app on your phone.
Click to expand...
Click to collapse
Thanks! Worked perfectly

AOSP Apps( Will require ROOT)

If you're like me and really enjoy some of the AOSP apps while still retaining the Touchwiz functionality, you can sideload apps and fix their permissions. This is for people who prefer to run a TW rom while retaining root access. You WILL NEED ROOT ACCESS for this. This method will work for Sense roms as well, not too sure about the Sony setups.
You'll need:
ROOT ACCESS(obviously)
Titanium Backup
Root Explorer or something comparable
Whatever AOSP app
1. Download the AOSP apk and move it to your /SYSTEM/APPS folder
2. Make a backup of the TW app using Titanium backup (in case something goes wrong)
3. Uninstall the TW/Sense app using Titanium backup
4. Reboot your phone
5. Open your root explorer/file browser and navigate to /SYSTEM/APPS folder where you should have placed the AOSP apk
6. Long press on it, open up the properties tab and fix the permissions( they should read as follows RW- R-- R--)
7. Close out of the properties tab
8. Install the apk by clicking on it and there you go, you're all finished!!!!

Categories

Resources