[Q] Gallery has stopped working - Samsung Galaxy Nexus

So basicly I've been using KK 4.4 for a while now, but I don't like the camera. My friend has the S3 with JB 4.1, and I like his camera more so I downloaded stock JB gallery, placed it into System/Apk with permissions. Cleared cache and dalvik, still can't run downloaded gallery. Help please

kr1pt said:
So basicly I've been using KK 4.4 for a while now, but I don't like the camera. My friend has the S3 with JB 4.1, and I like his camera more so I downloaded stock JB gallery, placed it into System/Apk with permissions. Cleared cache and dalvik, still can't run downloaded gallery. Help please
Click to expand...
Click to collapse
If you want to try and run a different Gallery.apk or Camera.apk, you need the dependent libs in /system/lib as well. To find the libs that are tied to the apk, open terminal emulator and run this command:
Code:
strings /system/app/Gallery.apk | grep -ai \\.so
Then copy those libs from the S3 to /system/lib and fix perms: chmod 0444.
Make sure you do a nandroid backup first. There's a chance those libs could be used by other apps and cause a bad reaction. This is your best chance though.
If this doesn't work, I recommend trying "Snap" app. It's a super camera that combines all android camera features, and it has the new and old gui too which is nice.

Related

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

[Q] Stock Sprint FM Radio .apk

So I've been trying to get the stock Sprint FM Radio app to reinstall on my phone. I have Fresh EVO ROM, (froyo...hate that the voice doesn't workon G.B.) I've been trying to get the FM radio apk to install using ES File Explorer, and I've tried to use Android SideLoad Wonder Machine. From file explorer it simply comes back with a "application not installed" message...ASWM gives some wonky error that I googled and ultimately led me to the unsigned file direction.
I haven't tried using an .APK installer app or anything, but it appears that it might be an issue with the apk not being signed. Anyone have the stock FM radio app working or a diff/new .apk? I tried searching but any reference to "radio" in my search just brings up a ton of core radio references of which I'm NOT looking for. Anyone?
Download a stock sprint rom, then you can manually extract the apk, place on the root of your sd card, and install. I that doesn't work, you'll have to move it to /system/app, then set the permissions for it.
Well, I've got multiple versions of the .apk and they're all relatively identical. They all pose the same issue when I try to install.
When I move it to the system/app folder and give it full permissions, it still fails install. Any other ideas?
Phederico said:
Well, I've got multiple versions of the .apk and they're all relatively identical. They all pose the same issue when I try to install.
When I move it to the system/app folder and give it full permissions, it still fails install. Any other ideas?
Click to expand...
Click to collapse
Try this:
- delete any of the fm radio apks in system app
- place the new apk in /system/app , even if it doesn't install
- from applications, if the fm radio is still showing, clear its cache and data
- boot into recovery and wipe cache and dalvik
- boot back up and try to install
if it doesn't install, then its the file because the rom might be odexed/de-odexed, and the file is the opposite of what your rom is. So you'll have to track down an apk of each, then try it.
I can try that, I will say I have a de-odexed version of this ROM so I'd presume any basic sense based .apk would work fine. Of course I may be oversimplifying it a bit.
I'll give your ideas a try see what I come up with, thanks!
Well now, I completely did NOT anticipate this result. So as it turns out the .apk for the stock HTCFMRadio.apk is not an installer. I went ahead and dumped the .apk into the /system/app folder then went to the app drawer and there it was. So I opened it and that was all there was to it. No install necessary...I've never experienced that type of functionality but hey, it works now. Thanks for the insight, all is now well with the world!

[REQ] Stock samsung clock/alarm 1.0 for 4.0.4 AOKP based rom

As the title says, im trying to look for a stock sammy clock 1.0 (alarm/clock in one) for 4.0.4 AOKP based roms. Been searching forums, only found one for nexus but it wont work for i9100. Does anyone have the zip/apk for it that works? If not, is it possible to port to AOKP? If not, is there an equivelant app in the store that does the same features as the sammy original?
Hello!
I'm also looking for the clock and fmradio applications from stock samsung roms.
I've been trying to extract and install fmradio - I've done the following:
Unzipped an official LP7 rom,
Converted the factoryfs.img to ext4 with sgs2toext4.jar
Mounted factoryfs.ext4.img with DiskInternals Linux Reader
Extracted FmRadio.apk and FmRadio.odex
Edited the FmRadio.odex with HEX editor (As shown here)
Renamed the edited FmRadio.odex to classes.dex and pushed that into the root of the FmRadio.apk (Means that I have a deodexed FmRadio apk)
But after these steps FmRadio.apk still failed to install on Hydrog3n ics 4.0.4 (aokp milestone 5)
I would be glad, if someone would say, that is it possible to use stock samsung apps on aokp, and if yes, what is the "method".
Look at this thread
Here is a possible solution, check it out
Gyebro said:
Hello!
I'm also looking for the clock and fmradio applications from stock samsung roms.
I've been trying to extract and install fmradio - I've done the following:
Unzipped an official LP7 rom,
Converted the factoryfs.img to ext4 with sgs2toext4.jar
Mounted factoryfs.ext4.img with DiskInternals Linux Reader
Extracted FmRadio.apk and FmRadio.odex
Edited the FmRadio.odex with HEX editor (As shown here)
Renamed the edited FmRadio.odex to classes.dex and pushed that into the root of the FmRadio.apk (Means that I have a deodexed FmRadio apk)
But after these steps FmRadio.apk still failed to install on Hydrog3n ics 4.0.4 (aokp milestone 5)
I would be glad, if someone would say, that is it possible to use stock samsung apps on aokp, and if yes, what is the "method".
Click to expand...
Click to collapse
The apk will never install, it will need to be pushed as it is a system app. And/or use a root browser/explorer and place in system/app then reset the permissions to match the app above it, set back to read-only -> reboot recovery -> clear dalvik -> reset permissions (do it anyway) and then boot. Ensure you are running a FMradio equiped kernel or else it won't work anyway.
PS: You can run the Gingerbread apk if you like, I tested a SGS1 gingerbread FMradio apk from JVS and it works perfectly fine and even looks the same as the ICS one....yell out if you get stuck and I will upload it.
PPS: You will also need the fmradio.so to push into /system/lib or else it won't work.
james
Gyebro said:
Here is a possible solution, check it out
Click to expand...
Click to collapse
That worked like a charm for me
Jarmezrocks said:
The apk will never install, it will need to be pushed as it is a system app. And/or use a root browser/explorer and place in system/app then reset the permissions to match the app above it, set back to read-only -> reboot recovery -> clear dalvik -> reset permissions (do it anyway) and then boot. Ensure you are running a FMradio equiped kernel or else it won't work anyway.
PS: You can run the Gingerbread apk if you like, I tested a SGS1 gingerbread FMradio apk from JVS and it works perfectly fine and even looks the same as the ICS one....yell out if you get stuck and I will upload it.
PPS: You will also need the fmradio.so to push into /system/lib or else it won't work.
james
Click to expand...
Click to collapse
Thanks for the instructions! What should I do with a freshly extracted stock GB FmRadio.apk (do i need to decompile it, remove dependencies, copy resources, remove tw references, recompile, test, etc) Or exracting and deodexing then pushing is enough?
Also I think, that when I extract the fmradio.apk from JVS rom, then only pushing (with the .so) is needed. Is this correct?
Jarmezrocks said:
The apk will never install, it will need to be pushed as it is a system app. And/or use a root browser/explorer and place in system/app then reset the permissions to match the app above it, set back to read-only -> reboot recovery -> clear dalvik -> reset permissions (do it anyway) and then boot. Ensure you are running a FMradio equiped kernel or else it won't work anyway.
james
Click to expand...
Click to collapse
I've placed my FmRadio.apk (extracted from a stock deodexed ics) to system/app and placed libfmradio_jni.so to system/lib. (With ES file explorer) then restored the read only permissions, then reboot recovery, wipe dalvik cache and fix permissions. After reboot (and some app optimizations) the radio did not show up : (
By the way spriritFm works, so I think my kernel is capable.
(Should I try with a GB stock deodexed apk?)
Gyebro said:
I've placed my FmRadio.apk (extracted from a stock deodexed ics) to system/app and placed libfmradio_jni.so to system/lib. (With ES file explorer) then restored the read only permissions, then reboot recovery, wipe dalvik cache and fix permissions. After reboot (and some app optimizations) the radio did not show up : (
By the way spriritFm works, so I think my kernel is capable.
(Should I try with a GB stock deodexed apk?)
Click to expand...
Click to collapse
No the kernel needs to support bcm4329.ko, if it doesn't then don't bother...trust me I have had a heap of SGS1 users try and they all get the same thing as you.
I would also check to see if you can get the app working touchwized first before you go to the efforts of de-touchwizing the app.
What I mean by this is including the twframework.apk and twframework.jar in the directiory /system/framework
Try this first, use a deodexed ICS FMradio apk and if the app works with a supported kernel.....THEN think about de-touchwizing it
Sorry to go off topic.
Jarmezrocks said:
No the kernel needs to support bcm4329.ko, if it doesn't then don't bother...trust me I have had a heap of SGS1 users try and they all get the same thing as you.
I would also check to see if you can get the app working touchwized first before you go to the efforts of de-touchwizing the app.
What I mean by this is including the twframework.apk and twframework.jar in the directiory /system/framework
Try this first, use a deodexed ICS FMradio apk and if the app works with a supported kernel.....THEN think about de-touchwizing it
Sorry to go off topic.
Click to expand...
Click to collapse
Thanks for the answer, I've placed the FmRadio.apk, libfmradio.so, twframework-res.apk and twframework.jar files to their appropriate folders in the system folder. I've set their permissions to rw-r--r--, then rebooted, entered recovery, wipe dalvik, fix permissions. -> After all these steps; Should I install the apk, or the radio is supposed to be in my app drawer? (And if the radio is not in the application list, this means, that my kernel does not support the mentioned .ko?)
is it possible that you update these files for me?
and by placing twframework files into their right places, the phone should be able to get sammy apps functioning with an aokp rom on?!

How To: Restore 4.1 Camera on 4.2 ROM

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.

Gapps replacing camera, how?

Well pretty much I downloaded a ROM with a bunch of camera features "smart capture, power shutter" etc. When I flash gapps over that it gets replaced by the stock camera. No options + photosphere. Now that behavior is normal and I know that.
The ROM apk in /system/app is Gallery2.apk and the gapps package has GalleryGoogle.apk.
After flashing I delete GalleryGoogle.apk from /system/app and replace it with Gallery2.apk that I extracted from the ROM zip. Reboot and it works fine. All the new options are there. Great.
HOWEVER. I deleted GalleryGoogle.apk from the gapps package system app folder, yet any time I flash that same package my camera still gets replaced... what else do I need to delete in gapps to keep the camera in the ROMs zip file? Thanks
So are you wanting gallerygoogle or galery2? And which gapps file are you using? Mine doesnt have gallery2 in it and has galleyrgoogle.apk inside an "optional" folder. I'm using gapps-jb-20130301-signed.zip
Inverted gapps from TeamBlackOut.
I want the Gallery2.apk which has all the extra features.
I deleted GalleryGoogle.apk (stock camera) from gapps, yet when I do a clean install I always have the stock camera and need to delete and replace it with Gallery2.apk.
I will check the optional folder though. Not sure how it keeps getting replaced aha
EDIT: That did it, thanks d00d. Haven't seen much of you since they closed the X2 OT thread... Bastards.....Or anyone else for that matter

Categories

Resources