[MOD]-22/05- Hack i9000 Camera i9000 FROYO & GB (Low Battery + Shutter + Audio)

Search This thread

rafalense

Senior Member
Sep 20, 2008
318
6,164
Amsterdam
Thanks for your work, this hack rocks. I'm gonna try zsjpg or js7 tonight, is this hack gonna work on them?
Enhorabuena, gran calidad de sonido en la gravación de video, aunque no he probado aun el avidemux, miraré que hay k hacer con el para sincronizar audio, aunque gravé un video corto de prueba y no tuve problema de sincr

Thanks mate!! Good to see spanish people around ;)
Post your results if you test on JS7
ES: Muchas gracias maskarellet! Lo del avidemux la verdad que me asombró, funciona de maravilla. Cierto es que para videos cortos (20seg o así) la perdida de sincronía no se aprecia. Si pruebas JS7 postea tus resultados. Saludos!

This may be a dumb question, if so please be mild :) i didnt find an answer for it in a quick search.
I installed the camera hack v4, seems to work great but cause of the framework I have stock froyo theme now. Is it possible to flash a theme over it without losing the hacked camera?

Well, that´s why I included 'framework-res.apk' and 'twframework-res.apk'
If you flash a new theme you will replace both files, and also 'android.policy.jar' (if it has extended power menu), where most of the code for automatic focus resides.
At least my 'framework-res.apk' and 'android.policy.jar' as to be there ('twframework-res.apk' has no code at all)

Conclusion, after flash another theme, your camera sure will work, but as v3 (no automatic focus). Hope it's clear! :)


how about 1080p fullhd recording hack? Seriously?

Are you kiding? :p
I think we all should happy to be able to record @ 720p
Camera does not support FullHD. Let's wait SGS 2 for that ;)

that's what i'm talking about!

Works perfect. Battery mod isn't circle but it's OK. Camera works fine, Lockscreen is nice and Battery-Mod is fine too!

One question. What I installed was a theme huh? Cause i only notice a Change at the Notification Bar and a few more Options at the Settings Menu (different Unlock Methods). Everything else is like it was before. (I never changed the theme before, sorry for the dumb question ;) )

still awesome work. Thumbs up!

Yep, as far as I had to include 'framework-res.apk', I decided to do it stock
Regarding your notification bar issue, it's languague related I guess. In english should work fine. anyway, if I find a solution I'll let you know

Hi,

Why isn't it working for me? I used Mod2 and Mod3 - but nothing changed - is it really only for deoxed roms?

Sure man, only for deodexed, what are you waiting for? :p

jv1 version here - logs will help?


wo odex file it failed to start -> http://www.wklejto.pl/txt91806
your Camera.apk with odex from original cam apk -> http://www.wklejto.pl/txt91807
and here it is from original file -> http://www.wklejto.pl/txt91808

i can post dumpstate_app_com_sec_android_app_camera_error_20110310_231958 but i will have to clean out of sensitive data :)

Sorry omator, I had some issues with JV1 and I'm back on JS5 again. I only was able to do a quick test. For the moment only battery hack is ready for JV1

I'm happy you like my work. I was afraid as it's my first official post. I will keep the support as I really like it, but it's just a hobby, so not full dedicated. Weekend knocking at my door! :)
 
  • Like
Reactions: phalanger

lgkahn

Senior Member
Mar 26, 2010
2,324
219
londonderry
It is most certainly not only for deodexed roms! I am running it on stock jpy. In stock Rom you need to remember to remove Camera.odex

Sent from my GT-I9000 using Tapatalk
 
  • Like
Reactions: rafalense

karl999999

Senior Member
Oct 25, 2010
281
55
different theme

Hi!

can you post the sourcecode of your changes to the framework/theme
so that we can apply it to other themes aswell please?

thanks.
 

maskarellet

Member
Oct 30, 2010
23
2
installed js5mod3extend over js7 and everything works so far, i'll post again when i reach low battery to test.
También es bueno ver gente española que se lo curra como tu,rafaelense.

Edit: I was testing holding a bit longer power button doing a photo, and the phone restarted itself, the next boot the power button didn't show up the menu when pressing, so i had to flash a different theme to solve.
Anyway, good work
 
Last edited:

phalanger

Senior Member
Feb 26, 2006
499
53
Well, that´s why I included 'framework-res.apk' and 'twframework-res.apk'
If you flash a new theme you will replace both files, and also 'android.policy.jar' (if it has extended power menu), where most of the code for automatic focus resides.
At least my 'framework-res.apk' and 'android.policy.jar' as to be there ('twframework-res.apk' has no code at all)

Conclusion, after flash another theme, your camera sure will work, but as v3 (no automatic focus). Hope it's clear! :)

Thanks. I figured as much. No biggie cause I kinda like the stock theme :) only a shame the battery icon is so inaccurate (looks like its 100% until around 75% etc). An improved version of that would be awesome (not visually different, just more accurately depicting the battery level).
Or if people include the needed hacked files into their themes ofcourse, which I also hope they will.

Anyway thanks for this awesome mod/hack!
 

f l x

Member
Oct 15, 2010
13
1
New York City
Hej, me again.

I noticed, that during video playback the audio wasnt synchron anymore. So i made a test. I recorded a testvideo and i was right.

At the end of the video, sound was almost 5 seconds before (!!) image. Than I used the original camera.apk from my firmware, record again and everything was synchron.

So I think with the better soundquality the video gets unsynchron. I recorded all time at 720p.
 

maskarellet

Member
Oct 30, 2010
23
2
Hej, me again.

I noticed, that during video playback the audio wasnt synchron anymore. So i made a test. I recorded a testvideo and i was right.

At the end of the video, sound was almost 5 seconds before (!!) image. Than I used the original camera.apk from my firmware, record again and everything was synchron.

So I think with the better soundquality the video gets unsynchron. I recorded all time at 720p.

This is a known issue posted by rafaelense. You just need to download avidemux on pc and sync with it
 

jaiiscool

Senior Member
Jan 30, 2008
1,011
360
Mumbai
jaiparekh.com
Is it possible for you to make a version with only

low power + shutter button + autofocus

I dont need the hq audio and the sync issues.

Please!

Sent from my Galaxy S I9000 using XDA Premium App

DocROM 9.9 (ZSJPG + SpeedMod K13C + ZSJPG)
RomKitchen beta tester
 

rafalense

Senior Member
Sep 20, 2008
318
6,164
Amsterdam
Is it possible for you to make a version with only

low power + shutter button + autofocus

I dont need the hq audio and the sync issues.

Please!

Sent from my Galaxy S I9000 using XDA Premium App

DocROM 9.9 (ZSJPG + SpeedMod K13C + ZSJPG)
RomKitchen beta tester

'CameraLowShutterNoAudio.apk' added to first post

HOWTO:

- Download
- Rename to 'Camera.apk'
- Put in your mobile
- Move it to System/App/ (with Root Explorer for example)
- Press yes when it asks to overwrite previous 'Camera.apk'*
- Enjoy it! ;)


*Read-only warning when pasting? Click on the "Mount R/W" button on top
 

karl999999

Senior Member
Oct 25, 2010
281
55

rafalense

Senior Member
Sep 20, 2008
318
6,164
Amsterdam
so the source changes that you made are a secret?

just changing some pngs wont work. i use a different system setup, also i get lots of strange % strings.
strange that you would not share the smali changes ...
maybe other people could also contribute

This hack should work with any theme
So, if you want to try yourself, just decompile your 'android.policy.jar', open 'GlobalActions.smali' and add modifications you see below

Code:
     :cond_1a
     invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->prepareDialog()V
 
+    const/4 v1, 0x1
+
     .line 115
     iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mStatusBar:Landroid/app/StatusBarManager;
 
-    const/4 v1, 0x1
-
     invoke-virtual {v0, v1}, Landroid/app/StatusBarManager;->disable(I)V
 
+    const/4 v1, 0x0
+
+    const/4 v4, 0x1
+
+    const-string v2, "****>> GlobalActions <<****"
+
+    const-string v3, "****>> onCreate() <<****"
+
+    .line 105
+    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
+
+    iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
+
+    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
+
+    move-result-object v0
+
+    .line 106
+    const-string v2, "camera_in_use"
+
+    invoke-static {v0, v2, v1}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
+
+    move-result v0
+
+    if-ne v0, v4, :cond_42
+
+    const-string v2, "****>> GlobalActions <<****"
+
+    const-string v3, "****>> Skipping power menu dialog. Camera in use! <<****"
+
+    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
+
+    return-void
+
     .line 116
+    :cond_42
     iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;
 
     invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V
All credits for this goes to aleadam, who did it for Samsung Captivate users
Success!
 
  • Like
Reactions: Sine.

padlad

Senior Member
Jan 23, 2005
1,239
663
'CameraLowShutterNoAudio.apk' added to first post

HOWTO:

- Download
- Rename to 'Camera.apk'
- Put in your mobile
- Move it to System/App/ (with Root Explorer for example)
- Press yes when it asks to overwrite previous 'Camera.apk'*
- Enjoy it! ;)


*Read-only warning when pasting? Click on the "Mount R/W" button on top
I also was after this, thanks for it but unfortunately it does not work. When overwritten, the camera app disappears and rebooting does not being it back. When re-replacing the original camera.apk the camera app is back. Hope you can sort it.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 184
    snap20110305002540.jpg



    Version 1/2/3 for FROYO DEODEXED (Hack is based on JS5 2.2.1)

    G versions for GINGERBREAD STOCK & DEODEXED


    FROYO STOCK ROMs: Try deleting original 'Camera.apk' and 'Camera.odex' from your system folder and then place my 'Camera.apk' there. How to do that? Easy Guide Here (you need root access) (You will find my 'Camera.apk' of any version just unzipping the files below)

    AUDIO HACK USERS (all versions): There might be loss of sync between audio and video. In that case can be corrected later with Avidemux.
    Avidemux MiniTutorial: http://xdaforums.com/showpost.php?p=12067865&postcount=76


    Version 1: 'Low Battery' Hack
    We can still use the camera (both still images and videos) with battery below 15%

    http://www.multiupload.com/C10P3QI0LK


    Version 2: 'Low Battery' Hack + 'Shutter' Hack
    In addition to using the camera on low battery, the power button can be used to take pictures (without autofocus yet) and to record videos (first click STARTs, next click STOPs)

    http://www.multiupload.com/JXUQ0TBMHK

    Version 2b: 'Low Battery' Hack + 'Shutter' Hack Plus
    Just with one click, camera focuses and then shoots!

    http://www.multiupload.com/OXTIHJUKNQ

    Version 3: 'Low Battery' Hack + 'Shutter' Hack + *Audio Hack
    This version adds to the previous hacks a higher quality audio in both frequency and bitrate
    [1280x720: 44100Hz/192Kbps # 720x480: 44100Hz/128Kbps # 640x480: 32000Hz/default # 320x240: default/default # 176x177: 8000Hz/default]


    http://www.multiupload.com/IL2VA3Y5QT

    Version 3b: 'Low Battery' Hack + 'Shutter' Hack Plus + *Audio Hack
    Version 3 plus autofocus. Just with one click, camera focuses and then shoots!

    http://www.multiupload.com/IE0EAJH4V8

    * There might be loss of sync between audio and video. In that case can be corrected later with Avidemux.
    Avidemux MiniTutorial: http://xdaforums.com/showpost.php?p=12067865&postcount=76

    As 'android.policy.jar' and 'framework-res.apk' are linked and share common power menu options,
    I decided to offer 2 versions for this hack: First for stock power menu, second for extended power menu

    ________STOCK_______________EXTENDED______
    snap20110309163608.png


    Stock:
    http://www.multiupload.com/5E59LHPZFG

    Extended Power menu:
    http://www.multiupload.com/WMGVJDXFNE


    And in case you have any issue:
    Original camera JS5: http://www.multiupload.com/UH63FNOBCW

    Last addition:

    As most of you may know, Samsung had the marvellous idea of make dissapear the GPS option from our camera settings on Froyo
    Camera-LowShutter-NoGeoTag.apk will totally disable GeoTag info in our photos :)

    How to install it? Easy Guide Here

    Note: Since Froyo Samsung removed from settings Geotag and 2 seconds review. you know why? Me neither

    31/03/2011
    As promised, Gingerbread Camera hacked:

    Version G1: 'Low Battery' Hack + 'Shutter' Hack
    · Based on JVK (Gingerbread 2.3.3)
    · Known battery hack
    · Camera: Just with one click, camera focuses and then shoots!
    · Camcorder: One click STARTs, next click STOPs recording
    · Both Stock & Deodexed ROMs compatible (07/04/2011)

    http://www.multiupload.com/5QGSBQKGSI


    Version GA: 'Low Battery' Hack + 'Shutter' Hack + Audio Hack
    · Same as G1 Hack (including Stock ROMs compatibility)
    · Higher quality audio in both frequency and bitrate
    [1280x720: 44100Hz/192Kbps # 720x480: 44100Hz/128Kbps # 640x480: 32000Hz/default # 320x240: default/default # 176x177: 8000Hz/default]


    http://www.multiupload.com/36Q3BEWX01

    20/04/2011

    Version G2: 'Low Battery' Hack + 'Shutter' Hack
    Same as G1 but for JVB

    http://www.multiupload.com/X1D5SY58UP

    Version GA2: 'Low Battery' Hack + 'Shutter' Hack + Audio Hack
    · Same as GA but for JVB

    http://www.multiupload.com/DWMODEMXFI

    22/05/2011 (JVO-JVP-JVQ)

    Version G: 'Low Battery' Hack + 'Shutter' Hack

    http://www.multiupload.com/JMD1SZL90H

    Version GA: 'Low Battery' Hack + 'Shutter' Hack + Audio Hack

    http://www.multiupload.com/6YD4V2EKI9


    Enjoy!

    BACKUPS:
    GINGERBREAD STOCK JVK APK & ODEX (Thanks to $omator)
    FROYO 2.2.1 JSx


    Thanks for their help/contribution: aleadam, Fr4gg0r, lpy, crudelios
    __________________________________________________________________
    Note: Before take any risk, I advise you make a backup of your original camera ('System/app/Camera.apk')
    5
    Camera HACK by >> rafalense <<

    'Low Battery' Hack + 'Shutter' Hack + Audio Hack

    *** YOU MUST HAVE 1MB+ OF FREE SPACE IN YOUR \SYSTEM\ ***

    JVQ ODEX --- > download

    JVQ DEODEXED --- > download

    JVQ ODEX RESTORE --- > download

    JVQ DEODEXED RESTORE --- > download
    3
    Hi Camera Hack users
    Main thread updated with hack for JVO
    It should work fine also on JVH
    2
    Thanks for your wonderful work pal. will surely try. Way to go pal.
    2
    nice hack.

    it would be amazing to see continuous focusing while recording video, or manual focus by taping on screen (also while recording).

    As Idan73 says, that's firmware related, not to the camera.apk itself. I have it on mine by the way. Try (at your own risk as usual). For me working like a charm:

    http://www.4shared.com/file/estcwRQU/comsecandroidappcamerafirmware.html

    Video example:


    And now sorry, but it's my birthday, and I want to enjoy a bit the day outside :p
    Will check previous posts later