[MOD][7/5/2011]Camera Mod - Power Button for Shutter (and more!) - Verizon Droid Charge

Well, after moving from roms on the Captivate with all their camera mods I began to miss having an actual shutter button on the Charge. I thought this would be a good point for me to dive into android dev/hacking and so I whipped up a modded camera.apk with the power shutter mod. I would like to thank GizmoDroid on the Samsung Fascinate forum for writing an awesome tutorial on how he did this mod.
v0.2
Removed low battery check (by nitroglycerine33) Install via CWM.
http://www.mediafire.com/?rx07byzc006ip8t
v0.1
Initial Test Release. Shutter/AF function for Power button.
Future updates
Other buttons for shutter (search, menu)
Old Installation instructions (using root explorer)
1. Copy my Camera.apk to your sdcard
2. Using Root explorer (or any file browser) navigate to /system/app and copy your current Camera.apk to somewhere safe as a backup, or rename it to camera.apk.bak (root explorer only)
3. Using root explorer (or adb) copy my Camera.apk to /system/app and overwrite the existing file
If anything goes wrong, simply copy your backed up Camera.apk back to /system/app, or remove the new Camera.apk and restore your Camera.apk.bak

wow, this works great! thanks a lot! tested on Altered Beast v5

Works for me. Thanks! I changed the owner to root, and set permissions a la swapping out swype themes before testing tho, so it was rw-r--r-- again. unnecessary? Altered beast as well
Sent from my SCH-I510 using Tapatalk

What a great feature! Works great, thanks!
Sent from my SCH-I510 using Tapatalk

Is it possible to eliminate the power button / move it to another button?
One of the biggest (pretty much only) complaint is the power button on the side of the Charge.
I am use to having the power button on top of the phone.
I am always hitting the power button by mistake. What a pain.
It would be nice to move it to the search button.
Thx for your input

plain Rooted ee4
Worked great on plain old rooted ee4, in fact it fixed the problem I had where the pic would not show up for review after installing rooted ee4. Thanks!

Works perfectly on eclipse 1.1
Sent from my SCH-I510 using XDA App

Cannot download
When I try and download from android browser I get:
Cannot download. The conten is not supported on the phone.​I know there are an infinite number of other ways to get this file but does anyone know why the browser refuses to download it?

Gummy Charge 1.81
Works great on GummyCharged 1.8.1. Thank you soooo much!!!

Works lovely on Eclipse 1.1. Thanks!
Sent from my SCH-I510 using Tapatalk

Jack$on said:
Is it possible to eliminate the power button / move it to another button?
One of the biggest (pretty much only) complaint is the power button on the side of the Charge.
I am use to having the power button on top of the phone.
I am always hitting the power button by mistake. What a pain.
It would be nice to move it to the search button.
Thx for your input
Click to expand...
Click to collapse
Agreed, I'd love for it to work on the search button.

pH_ said:
When I try and download from android browser I get:
Cannot download. The conten is not supported on the phone.​I know there are an infinite number of other ways to get this file but does anyone know why the browser refuses to download it?
Click to expand...
Click to collapse
Use Astro File Manager and go to Preferences then check the box next to "Enable Browser Download". You will then be able to download any file. Stock android restricts it for some reason.

Took me a couple of tries, but - VERY COOL!!!

What about if you have the camera rotate the screen so that you can use the volume up to take the photo

About to test... can't wait!
I have a request, could you do another hack to the apk so we can use the camera at any battery level? Thanks!

I have this little mod on my DC and it works great.

Awesome, works great! I just downloaded the .apk through Dolphin on my phone, and used Root Explorer to rename the old camera.apk and move the new file from my download folder to /system/app, took a total of 2 minutes, making it actually easier to do than a zip for a competent user, considering I didn't have to reboot my phone.

Worsk great
TY. Works great with Voodoo. awesome!!

Does not work with stock rooted ee4
I tried many times but not working for me I used root explorer to replace the camera.apk file but it would just take off my icon not be able to access my camera. Also tried just deleting the original camera.apk then paste the new camera.apk but still no luck. Thank you I really want to get this mod. Please help

commuterbox said:
I tried many times but not working for me I used root explorer to replace the camera.apk file but it would just take off my icon not be able to access my camera. Also tried just deleting the original camera.apk then paste the new camera.apk but still no luck. Thank you I really want to get this mod. Please help
Click to expand...
Click to collapse
You will need to remove the camera.odex file to get it to work with a stock ee4 build. I would make a backup of the odex file just in case before you try it out.

Related

Humble 5.0... Restoring aosp lockscreen

I apologize in advance if this has been answered elsewhere, I searched and couldn't find the solution.
I have humble 5.0 running and added the red and black theme to it. This caused me to lose the aosp lockscreen. Is there anything I can do short of reflashing humble to get the lockscreen back? I know there are apps like Golocker and magic locker, but I've experienced performance issues With these and would like to avoid them. Thanks in advance for any suggestions.
U could extract the android.policy.jar from humble5zip and overwrite the one that's on ur phone now with root explorer. its in system /framework
here ya go .just copy the old one to ur SD card just in case .of course if u get undesired results just reflash that theme
Edit....I pulled this from humble 5 rc2
I'm positive this works cuz i did it yesterday on the test rom Danalo1979 tweeted
Thanks for The help guys. How do I go about replacing the file? Just use root explorer?
Adamsaudio said:
Thanks for The help guys. How do I go about replacing the file? Just use root explorer?
Click to expand...
Click to collapse
Yea just copy and paste it in system/framework and overwrite the old one and reboot
I replaced the file with the one I downloaded from the thread and did a reboot. Nothing changed. Any other ideas?
And ur sure it replaced the other one,you hit mount system r/w in top right corner of root explorer? Let me check ...I guess i could have uploaded the backup of the stock one I made when i did this
Give me a minute. I'll upload the one that I'm using now. That one I extracted from the humble zip
alright I know this is it ..just pulled from system/framework
It says mounted as r/o... How would I Change that?
There should be a white button right beside that to the right. Just press it and it should change to r/w.
When u do it, it will ask u if u want to replace the file cuz it already exists. Hit yes
OK I got it!
Few things I had to realize... Root explorer and explorer aren't the same apps, even though the Icons are nearly identical. I got lockscreen back as desired. Just a side note, I lost the extended power menu that came with black and red theme. No big deal to me, just a side effect of replacing the File. Again.... Thanks for all of the Help.
Glad I could help. Yea i forgot it'd change the power menu but I don't use it anyway. I use quickboot from the market. Has reboot,recovery and bootloader. Plus version has hotboot option.
Yep. Quickboot installed here also.
The awesome coredroid theme will give you both options (lock screen + power menu options). It also gives you crt off animation.
~John

[Q] Tweaks apk flashable zip?

Is there any in existence? I mean roman's tweaks settings, for adding battery percentage and crt animations for our phone.
Sent from my DoubleShot Lite using Tapatalk
masterkamon842 said:
Is there any in existence? I mean roman's tweaks settings, for adding battery percentage and crt animations for our phone.
Sent from my DoubleShot Lite using Tapatalk
Click to expand...
Click to collapse
have you tried hitting up Blue, since he is the keeper of the ROM that roman started? otherwise, how about pulling the tweaks.apk out of a Bulletproof ROM and putting it into /system/app of your current ROM? i'm not sure if it's that simple or not, but could be worth a try.
yogi2010 said:
have you tried hitting up Blue, since he is the keeper of the ROM that roman started? otherwise, how about pulling the tweaks.apk out of a Bulletproof ROM and putting it into /system/app of your current ROM? i'm not sure if it's that simple or not, but could be worth a try.
Click to expand...
Click to collapse
I tried pushing it to system but it wasn't that easy... Didnt work for me. Ill see if I can get blue's attention. I'll keep this thread posted for future reference.
Sent from my DoubleShot Lite using Tapatalk
masterkamon842 said:
I tried pushing it to system but it wasn't that easy... Didnt work for me. Ill see if I can get blue's attention. I'll keep this thread posted for future reference.
Sent from my DoubleShot Lite using Tapatalk
Click to expand...
Click to collapse
What you can do is use Root Explorer to move it to /system/app while the phone is on, then set the permissions (long press on it, permissions is in the menu that pops up - scroll down) to look like the permissions of every other file in the /app folder.
Edit: to quote myself from explaining how to do it before:
Stop all apps that require market licensure to work, halt the market processes, delete the old vending.apk. Then you have to delete the market data directory at /data/data/com.android.vending and find the dalvik-cache file that belongs to the market ( [email protected]@[email protected] ) and delete that too.
Then you rename the new market .apk file to Vending.apk and use root explorer to copy it into your /system/app directory. Once there, you long-press on the Vending.apk file and select 'permissions' from the menu that pops up.
Change the permissions to read/write for owner, read for group, read for others, and nothing for the bottom 3 check boxes. Now it reads rw-r--r-- like all the other apps in the /system/app directory.
Then you reboot your phone and it should work, but you should clear the whole dalvik-cache in recovery, and you should clear cache in recovery too, so all the dependencies on the market get rebuilt the right way.
Click to expand...
Click to collapse
Then, reboot the phone, and see how much of the app works.
You should be able to get it installed that way, but if not my thread on Replacing the Google Market would be a good place to start learning how to make your own flashable zip file.
Just replace the market with whatever app you can't push to /system/app normally and you should be good.
Some third party apps don't run well or at all from the /system/app partition, they just expect to be in /data/app ... but some will. The one you're playing with works fine from in the /system/app directory.
Might want to look into this thread by Romanbb: Extended Quick Settings as well.
Romanbb's awesome tweaks are worth the work - I couldn't imagine using the device without them now, and am definitely looking at playing with it some. The one thing i'm struck by as a user more then anything else, i'd like to be able to change the order of the quick settings in the actual pull-down menu.
I want flashlight first, full settings second, then i'll figure out the rest of the order as I go, but both volume settings go dead bottom with me.
I haven't had the time to sit down and do it, but that's the next ability i'm interested in acquiring with regards to that. I can't wait to get my phone back so I can start making some progress again.
Meantime, i'll be in and out and others floating around here I know can steer you right if you need it - you lose nothing 'cept time for trying (you did do backups before you started playing around, right?).
Hi, I made Tweak.zip (i extracted tweak.apk from booletproof 1.1) for flash it by CWM, but don't works fine.
After flashed, the app is in /system/app with 0644 permissions, but with no visible changes, where was i wrong?
Can you help me? In attach my file.
antonaq said:
Hi, I made Tweak.zip (i extracted tweak.apk from booletproof 1.1) for flash it by CWM, but don't works fine.
After flashed, the app is in /system/app with 0644 permissions, but with no visible changes, where was i wrong?
Can you help me? In attach my file.
Click to expand...
Click to collapse
The tweaks need coded into the ROM, It's not as simple as just installing the apk, I would think some SystemUI smali needs edited also for any tweaks to Rosie, the Rosie.apk smali files will need an edit, so it knows what to change otherwise your just looking at the possibilities of the tweaks app.
I just did a Rosie remap for my Sense 2.1+3.0 Speedy ROM, and even though the option had always been in MikTweaks I had decompile tweaks to activate the remap option for my ROM ( by default It's turned off for Sense 2.1 ROMS ). Then I had to decompile Rosie and make the smali change. Then compile and resign both apps and i was good.
Sent from my myTouch_4G_Slide using Tapatalk 2
If you are really needing those tweaks, you can use the kitchen to apply most of them.
Compile? Decompile? More difficult for me then... I abadone the idea to realize Tweaks.zip.
Sorry.
Inviato dal mio Bulletproof_Doubleshot con Tapatalk 2

How can I disable 180 rotation in portrait mode and disable bootmenu options?

I recently installed the ICS Leak #2 and installed scv7, but there were several new features that annoyed me. I like to lie in bed to use my phone, so when I turn sideways, the screen turns from landscape mode to portrait mode, but the portrait mode is with the earpiece and camera at the bottom, and the buttons at the top. I have never had a problem with this with gingerbread/scv5. If anybody could tell me any way to disable it, that would be great, and I think the default launcher installed with scv7 is Holo Launcher, if I'm not mistaken.
One more thing, I had to install the Bootmenu manager when I was installing scv7, and everytime I hold the power button, then tap "Power off", I'm greeted with a list of options such as "Normal shutdown, reboot, and many other ones that I don't need, is there any way to disable this, and possibly add reboot back to the main list, like scv5?
Thanks.
CM9onmyMoPho said:
I recently installed the ICS Leak #2 and installed scv7, but there were several new features that annoyed me. I like to lie in bed to use my phone, so when I turn sideways, the screen turns from landscape mode to portrait mode, but the portrait mode is with the earpiece and camera at the bottom, and the buttons at the top. I have never had a problem with this with gingerbread/scv5. If anybody could tell me any way to disable it, that would be great, and I think the default launcher installed with scv7 is Holo Launcher, if I'm not mistaken.
One more thing, I had to install the Bootmenu manager when I was installing scv7, and everytime I hold the power button, then tap "Power off", I'm greeted with a list of options such as "Normal shutdown, reboot, and many other ones that I don't need, is there any way to disable this, and possibly add reboot back to the main list, like scv5?
Thanks.
Click to expand...
Click to collapse
Please don't re-post your issues, regardless of whether you feel you originally posted in an incorrect sub-forum. Ask one of the moderators to look at your post, and request it to be moved if necessary. You now have two posts with this issue (First one being HERE), and it clutters up the forum when people do this sort of thing.
As for the power menu found in the BootMenu app, that's just part of the application. You might find it very useful later on down the line. If you're just wanting to reboot, it only adds one additional click, so I wouldn't concern yourself too much over it. And, like I said, it may come in handy (and save your arse) at some point...
I think I may have just soft bricked my phone again. Stuck on the boot screen now, with the flashy scv7 thing. I edited framework-res.apk but must have improperly put it back.
CM9onmyMoPho said:
I think I may have just soft bricked my phone again. Stuck on the boot screen now, with the flashy scv7 thing. I edited framework-res.apk but must have improperly put it back.
Click to expand...
Click to collapse
you probably didnt set the permissions?
souljaboy said:
you probably didnt set the permissions?
Click to expand...
Click to collapse
yeah, i think. any way to fix this besides resetting the phone?
i can use project lense recovery right when the boot up occurs though.
did you try the fix permissions option in boot menu?
RoadToNever said:
did you try the fix permissions option in boot menu?
Click to expand...
Click to collapse
just tried it, still stuck on the scv7 screen
CM9onmyMoPho said:
just tried it, still stuck on the scv7 screen
Click to expand...
Click to collapse
It may be the edits, or how it was compiled.. Sometimes it's best to just do your edit, compile, then copy the edited files back to the original apk. In this case with the /values folder edits, they end up in the resources.arsc - move your newly compiled one back to the original apk with 7-zip/winrar. And actually with the framework-res.apk, you usually need to have no compression on the resources.arsc... copy that new resources.arsc somewhere next to the original apk, then add it to the archive in "store" mode - no compression with 7-zip.
alteredlikeness said:
It may be the edits, or how it was compiled.. Sometimes it's best to just do your edit, compile, then copy the edited files back to the original apk. In this case with the /values folder edits, they end up in the resources.arsc - move your newly compiled one back to the original apk with 7-zip/winrar. And actually with the framework-res.apk, you usually need to have no compression on the resources.arsc... copy that new resources.arsc somewhere next to the original apk, then add it to the archive in "store" mode - no compression with 7-zip.
Click to expand...
Click to collapse
How do I move it with winrar? I can't access anything besides the project lense recovery menu.
CM9onmyMoPho said:
How do I move it with winrar? I can't access anything besides the project lense recovery menu.
Click to expand...
Click to collapse
I meant on your computer.... how did you make the edits? framework-res.apk/res/values/bools.xml?
Well, you are probably going to have to restore a backup first. Unless you can make a flashable zip with a working version of the apk you edited, take out your sdcard and use a reader to access it on your comp - then flash that instead of an entire system restore.
alteredlikeness said:
I meant on your computer.... how did you make the edits? framework-res.apk/res/values/bools.xml?
Well, you are probably going to have to restore a backup first. Unless you can make a flashable zip with a working version of the apk you edited, take out your sdcard and use a reader to access it on your comp - then flash that instead of an entire system restore.
Click to expand...
Click to collapse
I made the edits with apktools on my computer, I sent the file on my phone to my computer, then the finished product from my computer back to my phone.
CM9onmyMoPho said:
I made the edits with apktools on my computer, I sent the file on my phone to my computer, then the finished product from my computer back to my phone.
Click to expand...
Click to collapse
Right. So you probably need to redo it. Is the original META-INF folder in your finished apk?
I would just decompile a fresh one..
Edit the bools only..
Compile..
Then move the new resources.arsc to the old apk in store mode..
Then use root explorer or a zip or adb.. but set proper permissions.
Sent from my phone's mind
So does that mean i have to do a reset on my phone again? Because I can't access root explorer right now.
CM9onmyMoPho said:
So does that mean i have to do a reset on my phone again? Because I can't access root explorer right now.
Click to expand...
Click to collapse
Are you still bootlooping? You need to go into recovery and restore, or flash a ROM again first..
Sent from my phone's mind
Not sure how well this would work, but worth a shot: https://play.google.com/store/apps/details?id=nl.fameit.rotate
Sent from my rooted Mayan Calendar

gallery android 4.2

This is the new gallery of android 4.2
http://forum.xda-developers.com/showthread.php?t=1965895
Don't flash it. you must put the apk and files lib in system (app and lib) change permissions in rw-r-r.
The camera works fine the photosphere is laggy.
venetkens said:
This is the new gallery of android 4.2
http://forum.xda-developers.com/showthread.php?t=1965895
does anyone know if it works on i9003?
You can find it also in androidpolice but i can't post the link.
Click to expand...
Click to collapse
Try it, it should work on ICS but if not definetly JB unless the DPI difference creates some problem because I think that android gallery from Nexus 4 which is xhdpi
I installed gallery with camera of android 4.2 . gallery works fine and camera to but in sphere mode in camera we get incompitable error for support that can be solved by changing build.prop but still not able to take sphere photograph due to some missing lib. gallery works fine but get force close when you use sphere button in gallery.
nicsptl said:
I installed gallery with camera of android 4.2 . gallery works fine and camera to but in sphere mode in camera we get incompitable error for support that can be solved by changing build.prop but still not able to take sphere photograph due to some missing lib. gallery works fine but get force close when you use sphere button in gallery.
Click to expand...
Click to collapse
I can't try it now but in the version on android police photos sphere should work.
this is what you can read on android police :
Note: Original credit goes to XDA and AndroidCentral Forums but the download below contains a camera/gallery build that we patched to allow users of non-Nexus devices to capture and view Photo Spheres.
I' m sorry but I can't post the link for download because it' s an external link
I flashed the gallery (android police) 3 time but in the menu there aren't the new gallery and the new camera,there are only the old ones.
Then I fleshed the version on xda but the situation is the same. Any solution ?
It worked for me.....I flashed it but no luck..then I opened the zip and put the apps in their right places....then I rebooted and I saw 2 camera and two gallery apps....Using root uninstaller delete the old gallery...then you're free to use 4.2 gallery and camera..Don't forget...after placing the apps put their proper permissions ( rw-r-r )
Sent from my GT-I9003 using xda premium.
Hit thanks if I helped you
mathew1234 said:
It worked for me.....I flashed it but no luck..then I opened the zip and put the apps in their right places....then I rebooted and I saw 2 camera and two gallery apps....Using root uninstaller delete the old gallery...then you're free to use 4.2 gallery and camera..Don't forget...after placing the apps put their proper permissions ( rw-r-r )
Sent from my GT-I9003 using xda premium.
Hit thanks if I helped you
Click to expand...
Click to collapse
I have already tried pushing the apk in system app but in this way the photos sphere don't work for me.
I tried it on CM10 a3 it works perfectly. Photosphere is a bit laggy.
BassBlaster said:
I tried it on CM10 a3 it works perfectly. Photosphere is a bit laggy.
Click to expand...
Click to collapse
I have the build.prop of topdroid. Can it be the problem?
mathew1234 said:
It worked for me.....I flashed it but no luck..then I opened the zip and put the apps in their right places....then I rebooted and I saw 2 camera and two gallery apps....Using root uninstaller delete the old gallery...then you're free to use 4.2 gallery and camera..Don't forget...after placing the apps put their proper permissions ( rw-r-r )
Sent from my GT-I9003 using xda premium.
Hit thanks if I helped you
Click to expand...
Click to collapse
When I tried pushing it via Solid Explorer it said "invalid CRC" for all the files.
Tried flashing through recovery, no success.
How did you do that?
I tried them on both CM10A3 by dhiru and RemICS-JB.
cheeyeen said:
When I tried pushing it via Solid Explorer it said "invalid CRC" for all the files.
Tried flashing through recovery, no success.
How did you do that?
I tried them on both CM10A3 by dhiru and RemICS-JB.
Click to expand...
Click to collapse
I push the googlegallery apk in system app, then i change permission in rw-r-r and owner in root- root. then reboot the device.
For me the gallery and camera work the only thing that doesn't work is photosphere
Now everything works! I pushed both apks into system/app, then pushed all the lib files into system/lib, changed all their permissions and then rebooted. Optional to delete old Gallery2.apk. Everything now works.
Note: photosphere lags. The blue dot moves at a per second basis. Will only take the first picture and lag big time, and gallery would force close afterwards.
Sent from my GT-I9003 using xda app-developers app
Wow it is wonderfull and of the most delight design.
I used the .zip by androidpolice but figure out that the apk and libs were send to the wrong folder...
So following comment's advices I extract the zip and put the 2 apk in /system/app and the libs in /system/lib without forgetting to change permission as the other base apks and lib so: RW-R-R (all of this using solid explorer).
I also deleted gallery2 which suck^^.
So far this version of gallery is so SEXY and CLEVER, wow now the interface is very tiny and let a lot of space for taking pictures, etc..
The video mode work also good, maybe better than previous gallery on CM10-alpha3 Paranoidandroid rom.
I never expected something of photosphere, it launch but can't be used.
There is a possibility to retouch pictures, sweet!
The interface is neet, you have to see screenshots, just for that I recommend gallery 4.2.
One little point: no possibility to take pictures with menu button.(ok very small point)
Big problemanorama doesn't work for me, am I the only one or did I do a mistake?
For me, panorama works fine! The camera is so damn smooth :good: dhiru should implement it instantly if he released another JB 4.1- Build!!
Epar said:
For me, panorama works fine! The camera is so damn smooth :good: dhiru should implement it instantly if he released another JB 4.1- Build!!
Click to expand...
Click to collapse
Ok so thanks, I used http://forum.xda-developers.com/showthread.php?t=1965895 link for 4.2 camera from xda instead of androidpolice's one and by doing exactly what I said earlier I'm happy that everything working smooth!
I was also able to took 2 pictures in sphereview ^^.
Ho and yes the panorama mode works.
Edit: the spheremod is working, I was able to take pictures, generate a file and then watch it in "3D"
Nevertheless for photosphere, pictures could only be taken following a vertical axe and I had to rotate a lot my arm so the result of my test is terrible: I had with a living room a composition of a door+ the ceiling+ another wall.
So the 2 remains problem with photosphere are that it is too slow, I mean to go to another blue point you have to move a lot and that you could only do it following one axe.
Edit2: The gyroscope seems to be the problem as said here http://forum.xda-developers.com/showthread.php?t=1965895.
Hi
I've a problem with this mod. When i try flash from recovery the zip file nothing happens. But when i extract the zip file and copy apps to system/app, lib to system/lib and changed permissions, reboot phone. Phone reboot , system loading and reset, now phone boot and go to recovery. I can't boot system normally. What i do wrong ? Can someone post a tutorial, step by step how to do it ?
Thanks for advice and sorry for my english.
ymmi21 said:
Hi
I've a problem with this mod. When i try flash from recovery the zip file nothing happens. But when i extract the zip file and copy apps to system/app, lib to system/lib and changed permissions, reboot phone. Phone reboot , system loading and reset, now phone boot and go to recovery. I can't boot system normally. What i do wrong ? Can someone post a tutorial, step by step how to do it ?
Thanks for advice and sorry for my english.
Click to expand...
Click to collapse
More info like ur ROM and android version will be useful. But from the way you said it sounds correct.
Sent from my GT-I9003 using xda app-developers app
O sorry, I use CM10 Alpha 3.
ymmi21 said:
O sorry, I use CM10 Alpha 3.
Click to expand...
Click to collapse
Try reflashing your ROM if you can only go into recovery?
1. Extract the files from zip
2. Copy the GoogleGallery.apk and GmsCore.apk and paste into system/app, change permission to rw-r--r--
3. Copy the lib files (total 3) and paste into system/lib, change permission to rw-r--r--
4. Reboot.
5. Check the camera app and gallery if they're working.
That's what I did to make it work in CM10A3 and RemICS-JB, and also JellyBam.
cheeyeen said:
Try reflashing your ROM if you can only go into recovery?
1. Extract the files from zip
2. Copy the GoogleGallery.apk and GmsCore.apk and paste into system/app, change permission to rw-r--r--
3. Copy the lib files (total 3) and paste into system/lib, change permission to rw-r--r--
4. Reboot.
5. Check the camera app and gallery if they're working.
That's what I did to make it work in CM10A3 and RemICS-JB, and also JellyBam.
Click to expand...
Click to collapse
Hey, thx for advice, but this solution don't work. I did it so, I install titanium backup, I did backup gallery file and uninstall gallery. Next I extract and rename file (like original gallery2.apk) and I go to system/app and copy files (googlegallery.apk and gmscore.apk) with change permissions. Now reboot and everything works fine. I have only one camera and gallery in menu. I change with this solution default desk clock and again work fine.

[Q] Volume Rocker Wake for Nexus 5

Hi all, I'm hoping someone will be able to help me out.
I am running stock 4.4/rooted with TWRP 2.6.3.2 recovery.
I am looking for either a pre-packed mod or instructions of how to create the mod myself to allow the volume rocker to wake the Nexus 5.
I really miss this function from my Galaxy Nexus and I really don't like using the power button all the time...it just seems sensible to have this mod to spread the use of the buttons.
I'm sure people would agree that it is absolutely baffling that Google hasn't included this as standard in stock Android.
I used the following mod on my Galaxy Nexus:
[MOD][JWR66V] Add Screen Lock button to Statusbar - by: evilisto
I realise this is mainly aimed at adding the screen lock button but it also includes an option to enable volume rocker wake.
I then obviously used the options included in CM after this.
I have done various Google searches and searched the xda forums, there are various references and mod instructions, but nothing that refers to Nexus 5.
I also know that various custom ROMs have this function already, but I am wary of flashing anything currently with all the custom recovery problems people are having (including myself...I've already had to restore phone with factory image once), going to wait until recoveries are more stable.
Basically, I am hoping someone can point me in the direction of this mod if it already exists, or if not, instructions of how to carry out the mod myself. I would be interested to learn how to do it in fact, it would be rather satisfying to carry out the mod myself!
Many thanks in advance for your help everyone!!
Sent from my Nexus 5 using Tapatalk
I haven't seen any patch for this yet, but a bunch of roms in the dev section have this built in. So either wait for a patch or install the whole rom.
peachpuff said:
I haven't seen any patch for this yet, but a bunch of roms in the dev section have this built in. So either wait for a patch or install the whole rom.
Click to expand...
Click to collapse
Thanks for the reply, as I said though I am wary of flashing ROMs at the moment due to all the problems people are having with recoveries.
I am quite happy to create the mod myself, and share it with others if they would like to use it, but I need instructions of how to do it though.
I believe there are two different system files that need modifying to produce this effect?
It also seems that it is possible on both odexed and deodexed systems, but I am not 100% sure.
If it means the system needs to be deodexed for it to work, then you are right, I will be better to just take the plunge and flash a ROM with the mod included.
As there are a number of ROMs with the mod included, there must be a process to adding this functionality, and I would be very interested to find out how it is done. It is a learning exercise just as much as anything else for me.
Sent from my Nexus 5 using Tapatalk
i remember when i was using my old phone, replace the file "android.policy.jar" udner system/framework
of coz thenew android.policy.jar is a mod from other rom with the function "volume wake". not sure if this helps...
got this link, not try yet.
[MOD] Volume wake mod for Android 4.4
http://forum.xda-developers.com/showthread.php?p=47691484
hk_aquarius said:
i remember when i was using my old phone, replace the file "android.policy.jar" udner system/framework
of coz thenew android.policy.jar is a mod from other rom with the function "volume wake". not sure if this helps...
got this link, not try yet.
[MOD] Volume wake mod for Android 4.4
http://forum.xda-developers.com/showthread.php?p=47691484
Click to expand...
Click to collapse
Ah yes, I saw this too whilst searching for information...
Do we need to just replace the android.policy.jar with modified version or are there other steps to carry out, I have noticed other threads mentioning editing both...
/system/build.prop
and
/system/usr/keylayout/Generic.kl
Are these edits required as well in 4.4/Nexus 5 or can we just use modified android.policy.jar?
If this is the case, in theory you could pull this file from a custom ROM with the volume rocker wake mod included and replace it in your own system files and reboot?
Also...would these files taken from a deodexed ROM work on an odexed factory image?
Sent from my Nexus 5 using Tapatalk
for my previous experience on u8800 (4.0.4) and mi2s (4.1.2), just need to replace "android.policy.jar" and remove odex file, then reboot; thus to enable volume rocker wake.
please backup the old set, .jar and odex file. in case of failure, will need to use adb to connect and then restore.
hk_aquarius said:
for my previous experience on u8800 (4.0.4) and mi2s (4.1.2), just need to replace "android.policy.jar" and remove odex file, then reboot; thus to enable volume rocker wake.
please backup the old set, .jar and odex file. in case of failure, will need to use adb to connect and then restore.
Click to expand...
Click to collapse
That's interesting, thanks.
I assume when you reference the odex file you are referring to 'android.policy.odex'?
If this is the case, it does raise another question...
All the other files in framework are odexed, will the deodexed version of android.policy.jar work side by side with these?
Sent from my Nexus 5 using Tapatalk
wilskywalker said:
That's interesting, thanks.
I assume when you reference the odex file you are referring to 'android.policy.odex'?
If this is the case, it does raise another question...
All the other files in framework are odexed, will the deodexed version of android.policy.jar work side by side with these?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I am eager to give this a try but still need to know the answer to the above questions?
Basically, will adding a deodexed (android.policy.jar) element into the stock odexed framework cause issues?
Many thanks
Sent from my Nexus 5 using Tapatalk
I tried it and it didnt really work, i pulled the jar file from a rom and copied it over and got some strange description when i pressed the power button, the vibration motor would go off every 5 seconds too.
I made sure to pull it from a ktm but perhaps the dev made some other changes that weren't compatible with my stock rom.
Don't be discouraged though, as long as you backup you'll be fine.
Sent from my Nexus 5
peachpuff said:
I tried it and it didnt really work, i pulled the jar file from a rom and copied it over and got some strange description when i pressed the power button, the vibration motor would go off every 5 seconds too.
I made sure to pull it from a ktm but perhaps the dev made some other changes that weren't compatible with my stock rom.
Don't be discouraged though, as long as you backup you'll be fine.
Sent from my Nexus 5
Click to expand...
Click to collapse
Thanks for giving this a try, normally I would already have tried myself, but as I said I have already had a complete nightmare with using custom recoveries on this phone so am a little more reluctant to experiment than usual.
I did wonder if this would cause issues. As you said in your post, it looks as though other changes were made to the android.policy.jar you used, that is my worry with any version of this file pulled from another ROM as I don't know what else this file is used for so there could be multiple other changes made that wouldn't then be compatible with a stock factory image.
I also still wonder if the odexed and deodexed files will work properly together as well? Is it the case that this mod is only possible on a deodexed system?
There must be a way of making this mod myself though, I would be happy to learn how to do it and make the changes myself, does anyone know how to do this, or can they point me in the direction of instructions of how to do so?
As always, thanks everyone!
Alright i finally got volume wake working but in a completely different way.
Install xposed framework http://forum.xda-developers.com/showpost.php?p=47771876&postcount=5621
Install modaco module http://d-h.st/PeV
Run module, goto htc one settings and enable volume wake, reboot and voila it works
Also suggest installing gravity box and xblast tools modules.
peachpuff said:
Alright i finally got volume wake working but in a completely different way.
Install xposed framework http://forum.xda-developers.com/showpost.php?p=47771876&postcount=5621
Install modaco module http://d-h.st/PeV
Run module, goto htc one settings and enable volume wake, reboot and voila it works
Also suggest installing gravity box and xblast tools modules.
Click to expand...
Click to collapse
Very interesting work round, I will have to give it a go, thanks
I would still like to know how this mod is achieved via system edits rather than installing apk's, if anyone is aware? I am interested to learn!
Many thanks all
Sent from my Nexus 5 using Tapatalk
wilskywalker said:
That's interesting, thanks.
I assume when you reference the odex file you are referring to 'android.policy.odex'?
If this is the case, it does raise another question...
All the other files in framework are odexed, will the deodexed version of android.policy.jar work side by side with these?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
i just tried it on nexus 5, it works!
hk_aquarius said:
i just tried it on nexus 5, it works!
Click to expand...
Click to collapse
Hi there,
Can you please give some information about your system (odexed or deodexed/stock factory image or custom ROM etc)?
Also, could you outline exactly what you have done to get this working and what files you used and or modified?
This would be really useful...my plan if I can find out how this is done is to package it for others to use too...I cannot be the only person that wants this mod.
Many thanks for your help!
Sent from my Nexus 5 using Tapatalk
wilskywalker said:
Hi there,
Can you please give some information about your system (odexed or deodexed/stock factory image or custom ROM etc)?
Also, could you outline exactly what you have done to get this working and what files you used and or modified?
This would be really useful...my plan if I can find out how this is done is to package it for others to use too...I cannot be the only person that wants this mod.
Many thanks for your help!
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
OK, i use stock 4.4 Kitkat on my Nexus 5 out of the box.
Download the mod android.policy.jar from the link below: (credit goes to javi851, thanks...)
http://forum.xda-developers.com/showthread.php?p=47691484
transfer this file to the root of /sdcard
I suppose bootloader is "unlocked" and root access is "ready".
use Root Explorer
go to system/framework
rename android.policy.jar to android.policy.jar.ORG
rename android.policy.odex to android.policy.odex.ORG
copy the mod android.policy.jar to system/framework
** make sure the filename is android.policy.jar
change permission to rw-r--r--
turn off the phone, then turn it on
it will take a while, it says to upgrade android files 100+
leave it there until it completes.
try pressing the power button to turn it off, then press either volume button and you can wake the screen for that.
hope my try helps people who need volume rocker wake function!
hk_aquarius said:
OK, i use stock 4.4 Kitkat on my Nexus 5 out of the box.
Download the mod android.policy.jar from the link below: (credit goes to javi851, thanks...)
http://forum.xda-developers.com/showthread.php?p=47691484
transfer this file to the root of /sdcard
I suppose bootloader is "unlocked" and root access is "ready".
use Root Explorer
go to system/framework
rename android.policy.jar to android.policy.jar.ORG
rename android.policy.odex to android.policy.odex.ORG
copy the mod android.policy.jar to system/framework
** make sure the filename is android.policy.jar
change permission to rw-r--r--
turn off the phone, then turn it on
it will take a while, it says to upgrade android files 100+
leave it there until it completes.
try pressing the power button to turn it off, then press either volume button and you can wake the screen for that.
hope my try helps people who need volume rocker wake function!
Click to expand...
Click to collapse
Hi mate,
Really good instructions thanks.
Can I ask what the significance of renaming the .jar and .odex files to .jar.ORG and .odex.ORG is?
Many thanks
Sent from my Nexus 5 using Tapatalk
wilskywalker said:
Hi mate,
Really good instructions thanks.
Can I ask what the significance of renaming the .jar and .odex files to .jar.ORG and .odex.ORG is?
Many thanks
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
just in case for fallback, as i am afraid i will not get OTA upgrade afterwards.
.ORG means original files for me.
hk_aquarius said:
just in case for fallback, as i am afraid i will not get OTA upgrade afterwards.
.ORG means original files for me.
Click to expand...
Click to collapse
Ah right thanks. So basically a way of backing up the files in their original file location so the system ignores them.
A very good idea my friend, very similar to Root File Explorer, it backs up system files you make changes to by renaming the original file with a .bak suffix.
I have asked the OP in the thread you linked to what changes he made to the android.policy.jar and how he did it, I am hoping to learn how to actually make the changes myself and create a mod for others to use too.
I'm going to give your process a go in the mean time though, thanks.
Sent from my Nexus 5 using Tapatalk
hk_aquarius said:
just in case for fallback, as i am afraid i will not get OTA upgrade afterwards.
.ORG means original files for me.
Click to expand...
Click to collapse
Hi buddy,
I've tested your method and it is working fine, wakes the phone normally and from deep sleep. Two days of use and no other problems.
I'm going to try and create a flashable zip with this file, just need to work out the edify commands to rename the original files rather than delete, so people have a backup of their files.
Sent from my Nexus 5 using Tapatalk
wilskywalker said:
Hi buddy,
I've tested your method and it is working fine, wakes the phone normally and from deep sleep. Two days of use and no other problems.
I'm going to try and create a flashable zip with this file, just need to work out the edify commands to rename the original files rather than delete, so people have a backup of their files.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I would advise against posting an android.policy.jar from a different device since there are some differences within the policy jar between the two. It's a little sad that the other guy ignored a request for what the actual edit is considering it's so figgin simple. After diff'ing some other jar files, I found what the edit is. All you need to do is remove 2 lines from PhoneWindowManager.smali. Attached pic shows 2 lines that need removal (stock is on the right).
good day.

Categories

Resources