Galaxy S I9000 Hacked Camera.apk
http://forum.xda-developers.com/showthread.php?t=860609
Notes:
I edited onKeyUp() in the Camera class.
const/16 v0, 0x1a //KEYCODE_POWER = 26, p1 is the keycode parameter
if-ne p1, v0, :cond_1 //if not power key jump behind this code
//the following capture the phote, I'm not sure if all of them are needed, at least the last one is
iget-object v1, p0, Lcom/sec/android/app/camera/Camera;->mCameraEngine:Lcom/sec/android/app/camera/CameraEngine;
invoke-direct {p0}, Lcom/sec/android/app/camera/Camera;->handleShutterKey()Z
invoke-virtual {v1}, Lcom/sec/android/app/camera/CameraEngine;->handleShutterEvent()V
invoke-direct {p0}, Lcom/sec/android/app/camera/Camera;->handleShutterKeyReleased()Z
invoke-virtual {v1}, Lcom/sec/android/app/camera/CameraEngine;->handleShutterReleaseEvent()V
const/4 v0, 0x1 //true
goto :goto_0 //return true
Additionally I removed one line, so that battery warning popup won't show up and
one change in ImageSavingUtils, because when capturing a picture of the front camera
it crashed when setExifData() tried to parse a double. (As a result, the pictures from font camera did not show in gallery until the device rebooted)
If someone is interested, I can post/share full code.
All Credit to Fr4gg0r
- Attached to Post, Modded Camera.apk (Froyo 2.2 Only)
I second that. Would be awesome. Really hard to take a picture above your head or when facing it at yourself
I don't know about using the power button but there was a post to make the search button used for the camera to take pictures instead of search.
Sent from my Captivate
I found the script for the search button, it was intended for the HTC incredible, while the touch button is certainly better than the touch screen, its still in an awkward position, ive upacked camera.apk and going through the source to see if i can find the hook for the power button. If successful, i will post the results, any guidance is appreciated since im new to this.
wow.. if someone can pull this off.. awesomeeeeeeeeeeeeeeeeeeeee
Yes please. Great idea to use power button.
[rom] Doc's I9000XXJPO 7.6.2
[kernel] SetiroN reorient 1.3.5b
[modem] I9000XXJPP
[theme] AndroDena Galassia
[boot] Apples are for nom
Great idea. Can Tasker App be able to do this?
+1 The way it shoulda been.....
I would definitely love to see this.
don't let this thread die!!!
looking into this, no promises
Would be awesome. Instead of it locking the camera would snap a picture using power button
Running Perception Build 4 w/ Setiron 1.4.1 1280
Dammit dg, I love you for even looking at it
xdaApp via Captivate
This would be really nice to have......damn near impossible to take self pics without hitting the screen to focus
designgears said:
looking into this, no promises
Click to expand...
Click to collapse
Dam, right what I was about to say!
I'd ADORE this, and the fact that DG and hansmrtn are looking into it just makes me happy to own a phone and have such wonderful people looking after it.
+1
Would love to see this happen.
+1 also... "the way it should haev been" oh Samsung, why do you make our lives so difficult? and why are we so much smarter than you
Mike De.
would be awesome! A much needed feature
arcangels03 said:
I noticed when launching the camera app the power button locks the app so you don't accidently click anything. I was wondering if its possible to modify the apk to take picture (activate shutter) when the power button is clicked within the application, is this possible? What are the steps that could achieve this, any information would be greatly appreciated, I just prefer using a physical button to take a picture.
Thank You
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
quick question , long press on the search button (not really hardware ) can be easily modified I think , well many apps allow you to set long press on search button to launch them , I think this could be easily mapped to the camera ?
Related
Hello.
How can I quit the autofocus from the camera?.
I want to make a photography and when I push the button, my dog isn't in the place. Because it's so slowly to make a photo.
Can I touch the registry and change this for make the camera more fast?.
Thanks.
I doubt you can. The lens wasn't made for fixed focus... at best you could fix it at infinity but that's not going to help with indoor dog shots...
Imanoltxo said:
Hello.
How can I quit the autofocus from the camera?.
I want to make a photography and when I push the button, my dog isn't in the place. Because it's so slowly to make a photo.
Can I touch the registry and change this for make the camera more fast?.
Thanks.
Click to expand...
Click to collapse
You do realize it focuses on the half press of the button, right? This is standard problem with all autofocus cameras, and the only real solution is to pre-focus by pressing button halfway, then depressing fully when your subject is in place and composed the way you want it.
Good luck!
App now on the market, thanks for all your help.
great emulation. see my magic/sapphire device specs below...
no sound
very slow response to fire/shoot tap
...other than those issues, nice work.
Hi, great looking and I like the neat touches about adding 10p etc.
Comments - as posted above, no sound and the motion of the base is very slow either by motion detection or using the trackball. Though the trackball seemed to be very intermittent.
I'm running a T-Mobile G2 touch with the latest stock rom. All other background apps, had been disabled too.
Most gracious thanks for your comments. I think I've found the sound bug proper now. I've also found a vast improvement in speed after some GFX tweaks.
The control issues sound odd as both the emulator & my i7500 don't have these problems (but neither have a trackball, the emulator has no sensor), maybe the speed increase will fix things, as the phone was probably getting bogged down with unnecessary drawPixels.
Version 5 is available in the 1st post above, be grateful of any further feedback.
Edit: I've also updated the sensor updated time to maximum to see if that helps.
Great improvemnet.
Sound - now works, firing, explosions, flying saucer. Though the sound of the "invaders" moving is slow, but I am guessing that is as the original?
Movement - The motion sensor works fine now, though the trackball still does not function for left or right movement. If you try the trackball, the app says "motion sensor disabled", but the trackball does not move the player. The fire function works when you depress the ball though.
I love it, takes me back
Daft question but
Could this be used with other arcade roms?
Splather said:
Could this be used with other arcade roms?
Click to expand...
Click to collapse
Yes, a limited few though, those what run on similar 8080 hardware (a few tweaks may be needed).
I will probably add these later.
OK, nearly at the finishing post. I reckon I've sorted the trackball issue, though I don't have a device with a trackball to test it on. I've also added the suggested full screen mode, though it runs a bit slow even after skipping a few frames, but I've left it in for the moment as it will encourage me to further optimize (will probably have a go at h/w acceleration in v2).
Version 6 Now available in the 1st post.
Trackball works fine now, not sure if it's just me but it seems slower than using the tilt method. Nice work.
I prefer the "bordered" view as it reminds me of the actual screen in the cabinet with the border around the black and white screen. Though on some machines they added coloured bands across the screen so that the invaders "appear" to change colour the lower they got. Maybe you could add that in?
"Edited"
Just a thought, not sure if you can do it, but can you override the "back" key functionality, then you could use it as a fire button and the trackball would be movement only. This way it is slightly more authentic in having the left right control and a fire button just like the original.
OMG that's slow!
Uninstalled... sorry
Love the idea, though
beaker656 said:
Trackball works fine now, not sure if it's just me but it seems slower than using the tilt method. Nice work.
Click to expand...
Click to collapse
Seem to have a problem there... read the new control instructions in version & to see if that helps. It's hard to sort until I get a real device.
beaker656 said:
I prefer the "bordered" view as it reminds me of the actual screen in the cabinet with the border around the black and white screen. Though on some machines they added coloured bands across the screen so that the invaders "appear" to change colour the lower they got. Maybe you could add that in?
Click to expand...
Click to collapse
You might be thinking of 'Space Invaders Part II' or 'Space Invaders Deluxe'
beaker656 said:
"Edited"
Just a thought, not sure if you can do it, but can you override the "back" key functionality, then you could use it as a fire button and the trackball would be movement only. This way it is slightly more authentic in having the left right control and a fire button just like the original.
Click to expand...
Click to collapse
You can still used the touch screen when using the trackball.
I don't fancy overriding the back key
Henrikmand said:
OMG that's slow!
Uninstalled... sorry
Love the idea, though
Click to expand...
Click to collapse
I've tried extra hard to speed things up a bit more in version 7.
Might be able to squeeze a bit more???
NEW UPDATE: v7
more speed
vibrator
control tweaks
U seem to just have increased the gamespeed, it still laggs like before.
Very slow and lag in sound.
Looks promising...
Hi guys and gals.
Long story... Gave my code a bit of decent profiling to see what was going on with the trackball. Seems like the cpu emulation core is taking so much time up that there is very little left for the main thread to pick up any events, and when it did, it bogged down the cpu thread. Trackball events have a huge time overhead with keyPressEvents the least, TouchEvents lie some where in the middle.
A nice solution would be to replace my java 8080 cpu source with native code (anyone want to help out here?), but my skills level is probably not up to it.
So, trackball support has now gone completely , replaced with screen buttons. Dpad will still work though, and touching almost anywhere on the screen, other than the left/right buttons will fire too (so your fingers aren't all over the place). Let me know what you's all think.
Found some extra speedups from the cpu core too, but had to butcher a lot of nicely structured code to get the gains.
Updated the first Post with the last version.
Thanks all.
Tidied up the GUI and while I was there...
Deluxe Support.
Catch the APK in the first post.
Could someone give it a final try to see if the controls problem has been fixed???
Thanks very much.
Now on the market. Thanks for all your help.
tonydoc said:
Now on the market. Thanks for all your help.
Click to expand...
Click to collapse
Well thats fine but since you've edited the thread now we don't know the title of this thing anymore
Ported to Motorola Droid 1 also :O
CAN SOMEBODY PLEASE TAKE A LOOK @ THIS ROM?
DOWNLOAD LINK MOTOROLA DROID ROM
http://zen-droid.googlecode.com/files/Zen_MIUI-v2.zip
If you run into a dialer force close issue, check out this fix. Simply flash the file in Clockwork just as you did with the ROM. No wipe necessary.
http://www.droidforums.net/forum/at...i-droid-1-transparent_smoked_glass_dialer.zip
Source: Zen-Droid
http://www.youtube.com/watch?v=x6yY53Kcc0w
Is it possible to port this to Milestone? It looks very great and fast! WOW
http://androidandme.com/2010/09/hac...oidandme+(Android+and+Me)&utm_content=Twitter
dammm this UI its fkn great!!! i want this on mi milestone
i think it is possible because milestone has a lot of users in China
its looks great but there are some bugs as i read in different forum..
i think its possible to be on our milestones cuz its based on Cyanogen rom
i wonder if " kabaldan " can develop it to compatible with our device
mytouch11 said:
its looks great but there are some bugs as i read in different forum..
i think its possible to be on our milestones cuz its based on Cyanogen rom
i wonder if " kabaldan " can develop it to compatible with our device
Click to expand...
Click to collapse
let kabaldan finish it's cm6 first ... if he commits his sources to a public repository, other developers may jump in and change our milestones
i´ve seen this is ported to droid so porting the home app to milestone it shouldn´t be that hard i would love to give this a try !
Ported to Motorola Droid 1 also :O
CAN SOMEBODY PLEASE TAKE A LOOK @ THIS ROM?
DOWNLOAD LINK MOTOROLA DROID ROM
http://zen-droid.googlecode.com/files/Zen_MIUI-v2.zip
Source: Zen-Droid
http://www.youtube.com/watch?v=x6yY53Kcc0w
mousiope said:
i´ve seen this is ported to droid so porting the home app to milestone it shouldn´t be that hard i would love to give this a try !
Click to expand...
Click to collapse
what you see in front of you , is not always "just a launcher", so beware, it can be a lot harder to make it work on milestone, as droid has no strange baseband problems(12+ different variantions + drivers changes), no bt,gps,gki system as backend to handle communication.
and finally, it might have less memory and can look nice, but reloads alot. which is not a problem on droid with swap and compcache options enabled.
someone please tell me what dialer this is using..
that looks like the perfect smartdialer for me
Doesn't look anything special anyway? :/
Sent from my Milestone using XDA App
i know some people are gonna kill me but i like the iphone look a like icons where can i get those for launcher pro ?
This is off topic, dude
TheSSJ said:
This is off topic, dude
Click to expand...
Click to collapse
yes please stay on topic, we need to know if someone wants
to try to port this to our Motorola Milestone, the UI looks very nice
and fast to me + this ROM looks like no other so we got more different
options to choose from to install
Hopefully kabaldan can take a look at this thread and the Droid ROM
provided
Wow that is a sweet ROM ... its kinda like what I imagined Android should be (iOS + widgets + Google stuff).
Its awesome because it basically borrows the strengths of both Andriod and iOS and makes it into a hybrid: very intuitive user experience that supports advanced features.
I really dig the whole layout: just one place where you scroll pages (not double like Galaxy S's TouchJizz).
I think its awesome how you:
+ have only one main area where you scroll (unlike Galaxy S)
+ you have a cool looking arrow (that indicates which screen you're at)
+ the arrow is positioned in a great location
+ the arrow allows you to quickly scroll between them (your fingers dont need exercise!)
+ can have unlimited "Home" screens
+ easily rearrange them (so you can move groups of Apps easily)
+ can manually choose the main home screen is also awesome
+ can easily delete Apps from the home screen (that rubbish bin at the top is so cool)
+ enter "edit" mode on the homescreen (displays the boxes)
+ add Widgets in this weird but wonderful way
+ easily rearrange Apps and folders
- too bad you can't place folders inside folders (which isn't a big deal and actually helps keep things simple, but I still prefer having the option)
- too bad you can't make shortcuts of Apps (making it impossible to launch Apps from several places/homescreens)
- too bad it doesn't support haptic response (...that would be so cool!)
- too bad it doesn't work in landscape mode (I have an idea how this can be implemented in a great way, I will make a mock-up if requested*)
I also dig the intuitiveness of:
+ the controls/shortcuts for wateva screen is always located on the bottom (familiarity/cleaness)
+ Apps automatically get a coloured backing like on TouchWiz, to make each App look more familiar (retains order) but with its curved sides it still retain some funk (reminds some of the iPhone, in a good way)
+ I like how the page bounces when it hits the end, while kinetic-scrolling
+ the transitioning (page quickly zooms in when opening/zooms and fades out when closing)
+ I like how the Widgets/startbar/notifications tab are transparent (requires a theme that can change these collectively)
+ like the space to put 0-6 Apps to launch from the App-dock and re-arrange them easily
+ like the large icons on the bottom of the Contacts page
+ like the large icons on the bottom of the Dialer
- the Music App has the same thing but its located on the top row (they forgot?)
- the App-dock doesn't let you put any folders into it, shame (but probably an easy fix)
- the dialer could've been improved by taking some cues from the the Galaxy S... if requested I will make you a mock-up**
- the settings page is just stock Android, they could've decorated it slightly like on the HTC Sense ROMs (probably an easy fix)
I loved how you can scroll the "functions" buttons in the notifications tray but overall I didn't like it as much as the Galaxy S's, its great but I see some areas of improvement:
- i think they should've have 4-larger "functions" displayed instead of 5 smaller ones
- i think somewhere in the Settings they should've made an option to Add/Remove some of those functions and arrange the order according to the user (like having a second App-dock but instead for system tools, a Tool-dock!)
- i think it needs the controls for music/movies (the media player) in the notifications tray like the Galaxy S (that's actually awesome)
Other things that would make a killer experience on an Android phone is if they also had
1) the "hibernate" function that intiates when you switch off your device (new HTC Sense),
2) a customizable theme that's consistent throughout Widgets/Folders/Pages,
3) and 3 main buttons (no need for trackball) to make the experience intuitive;
Left button***
= press is back (works the same way already in Android)
= hold (1.5sec) is Force-Close the app (which is so handy in Android that its not funny)
Middle button***
= press directs you directly to the "main" homescreen
= hold (1.5sec) opens you another page that "previews all currently running applications" (which is great for speedy multitasking)****
= See this just as an example for what happens when you hold the Home button http://farm5.static.flickr.com/4013/4355688804_68ccaca964.jpg
Right button***
= press initiates the Menu function
= hold (1.5sec) initiates the Search function (just like on the Galaxy S)
And arranging the buttons in this order allows easier use for users because it is intuitive (majority read left-right, buttons function in that same order ... WP7 actually got this right)
I think that is the best way to go about Android ROM's (with my slight improvements) as a Froyo build. So yeah, this is about 90% finished of what I envisioned/want from Android (for the DEXT/Milestone2/GalaxyS). If you want to visually see what I mean at the (*)'s, I can do so if you are wanting
Hmmm nobody interested in this porting it to Milestone??
hanslast said:
Hmmm nobody interested in this porting it to Milestone??
Click to expand...
Click to collapse
Ask Dext3r / nadlabak
http://modmymobile.com/forums/563-m...-sep-2010-motofrenzy-froyo-2-2-milestone.html
http://modmymobile.com/forums/563-m...yanogenmod-6-milestone-bastardized-2-2-a.html
It might be possible to get Milestone + 1.2GHz + froyo + MIUI + gamegripper ... hehehe!
ekin said:
Ask Dext3r / nadlabak
http://modmymobile.com/forums/563-m...-sep-2010-motofrenzy-froyo-2-2-milestone.html
http://modmymobile.com/forums/563-m...yanogenmod-6-milestone-bastardized-2-2-a.html
It might be possible to get Milestone + 1.2GHz + froyo + MIUI + gamegripper ... hehehe!
Click to expand...
Click to collapse
yeah allready did, Dexter replied that someone else has to take a look at it, because he is too busy with his own custom roms. Kabaldan/Nadlabak did not even reply to my personal message... guess we will never see this rom on our Milestone (
hanslast said:
yeah allready did, Dexter replied that someone else has to take a look at it, because he is too busy with his own custom roms. Kabaldan/Nadlabak did not even reply to my personal message... guess we will never see this rom on our Milestone (
Click to expand...
Click to collapse
Oh
I would so develop this myself, I've got the time ... but I know nothing of coding!
hanslast said:
yeah allready did, Dexter replied that someone else has to take a look at it, because he is too busy with his own custom roms. Kabaldan/Nadlabak did not even reply to my personal message... guess we will never see this rom on our Milestone (
Click to expand...
Click to collapse
Sorry for that, I guess that I decided to postpone my reply and then forgot. Sometimes I'm not in the social mood, my friends are used to it .
I hardly find the time to focus on the bugfixing and improving of the CM6 port. I will not start any other project anytime soon, otherwise I could loose my wife, daughter and job .
believe me that if you just take 15-30 each day you will make it...and i'll be happy to know that someone's working on that
By the way YOUR ROM ROCK!!!
Hello,
someone just gave me a nice idea: what about using the volume buttons to control the Camera App? pressing on the smartphone to take a picture can result ina lost of focus, and with that nice camera, it's a shame
if u dont rush for that, cm7's camera app is doing that, so wait for cm7
oh great I'm looking forward CM7, but will it be a porting or a native ROM?
tiwiz said:
Hello,
someone just gave me a nice idea: what about using the volume buttons to control the Camera App? pressing on the smartphone to take a picture can result ina lost of focus, and with that nice camera, it's a shame
Click to expand...
Click to collapse
yeahhhh
It would be great if someone could mod the camera app to use power button as shutter button similar to how right shoulder button was used in the xperia play mod app allowing you to hold it to focus and release it to take a picture.
ps3taker said:
It would be great if someone could mod the camera app to use power button as shutter button similar to how right shoulder button was used in the xperia play mod app allowing you to hold it to focus and release it to take a picture.
Click to expand...
Click to collapse
Already been talked about here http://forum.xda-developers.com/showthread.php?t=2141755&highlight=dedicated you will need root access but it can be done
Thanks - the other posts were slightly broader discussing lack of dedicated camera button, etc - I can live without a hardware button to launch camera up and very happy how zooming works with the volume rocker and would not want to lose that.
Also old camera mod app for xperia Play did not require root but xperia play mod used R trigger not power button so maybe you are right about root access.
I know power button can be used for ending calls in other xperia phones if enabled in accessibility menu - I wonder if the camera shutter option can be added in the similar fashion as an alternative to modding the stock camera app.
ps3taker said:
Thanks - the other posts were slightly broader discussing lack of dedicated camera button, etc - I can live without a hardware button to launch camera up and very happy how zooming works with the volume rocker and would not want to lose that.
Also old camera mod app for xperia Play did not require root but xperia play mod used R trigger not power button so maybe you are right about root access.
I know power button can be used for ending calls in other xperia phones if enabled in accessibility menu - I wonder if the camera shutter option can be added in the similar fashion as an alternative to modding the stock camera app.
Click to expand...
Click to collapse
I hope so, I was a bit miffed when I found out their wasn't a camera button but it was the speaker....as this will be my first Sony device and most of their devices have had dedicated buttons....but I'm sure someone in XDA will bring out a mod
It should be a camera setting. Yes you'd lose digital zoom but that's fine for me as I'd never use digital zoom anyway.
The positioning of the volume keys would make it ideal and vastly improve the camera thanks to the shortsighted decision not to add a camera button (and thus lose the quick launch feature, which isn't possible to replicate just by having a camera icon on the lock screen).
When I went to take a picture yesterday I assumed that the button was to take a picture, was very disappointed when the screen just went black lol
Looks like this is going to be yet another phone that I am never going to take pictures with, I hate having to find the correct place on the screen to take a picture, once it has finally auto focused properly.
wonneil said:
When I went to take a picture yesterday I assumed that the button was to take a picture, was very disappointed when the screen just went black lol
Looks like this is going to be yet another phone that I am never going to take pictures with, I hate having to find the correct place on the screen to take a picture, once it has finally auto focused properly.
Click to expand...
Click to collapse
Or you can download and use CameraZoom FX.