Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
aleadam
Old
(Last edited by aleadam; 10th February 2011 at 07:02 AM.)
#1  
aleadam's Avatar
Senior Member - OP
Thanks Meter 54
Posts: 403
Join Date: Feb 2008
Location: Albany, NY
Lightbulb [Camera] [Mod] Armani + power button focusing + video recording

Time for a big update to this post.

The andromeda roms have now a camera that not only uses the power button for taking stills, but also for video recording.

More interestingly, the power button in still images function now as the grey button on the display, i.e., one quick press takes a still as is, while a long press focuses until the key is released, and then takes the still.


The second mod required a change in android.policy.jar to prevent the power button long press to bring the power menu up. Thus, it will only work in the andromeda rom unless other rom developers decide to implement the change also.


You can find the diffs between the original armani camera app and this one attached here. For the actual app, please take a look at the andromeda page for the reason stated above.

I will explain the changes in posts below (20-23) so I don't clutter this one too much.
GlobalActions.smali is part of android.policy.jar, while the other three belong to the camera app.

BTW: This does not belong any more to Q&A. Dear Mods, would you please move the thread to a more suitable forum (apps or dev)?
The Following 2 Users Say Thank You to aleadam For This Useful Post: [ Click to Expand ]
 
vw671
Old
#2  
Senior Member
Thanks Meter 86
Posts: 609
Join Date: Sep 2010
Location: California
+1, how do I do this?
 
cesierra
Old
#3  
cesierra's Avatar
Senior Member
Thanks Meter 10
Posts: 199
Join Date: May 2008
Location: Honolulu
subscribed...
 
dimab
Old
#4  
Member
Thanks Meter 0
Posts: 33
Join Date: Jul 2010
Location: Tel Aviv
Same here... Any rom removes this?
 
totomato
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2010
subscribed... really, that is annoying...
 
PhilipPeake
Old
#6  
Junior Member
Thanks Meter 0
Posts: 18
Join Date: Jan 2011
If this helps in the search:

I installed dropbox, and noticed that dropbox now shows as one of the upload options. This suggests (to me) that there is a configuration file or database entry somewhere where this was added.

If we can find out where, there is a possibility of just removing the lockbox entry.

I doubt that its built into the app, they would want to sell this to different providers, and each will have (or not) its own version of the AT&T lockbox.

I did spend an hour or so this morning perusing databases, but didn't find anything.
 
aleadam
Old
#7  
aleadam's Avatar
Senior Member - OP
Thanks Meter 54
Posts: 403
Join Date: Feb 2008
Location: Albany, NY
Quote:
Originally Posted by PhilipPeake View Post
If this helps in the search:

I installed dropbox, and noticed that dropbox now shows as one of the upload options. This suggests (to me) that there is a configuration file or database entry somewhere where this was added.

If we can find out where, there is a possibility of just removing the lockbox entry.

I doubt that its built into the app, they would want to sell this to different providers, and each will have (or not) its own version of the AT&T lockbox.

I did spend an hour or so this morning perusing databases, but didn't find anything.
Lol! I almost forgot about this thread already! So many roms now and I always saw that button that I learned to be careful

I just decompiled it and this is what I found:
Code:
$:~/android/apk_manager/out$ grep -i -r -n 'locker' *
res/values/strings.xml:271:    <string name="menu_qsend">Send to Online Locker</string>
smali/com/sec/android/app/camera/ReviewImage.smali:2346:.method public onSendToOnlineLocker()V
smali/com/sec/android/app/camera/ReviewImage$9.smali:57:    invoke-virtual {v0}, Lcom/sec/android/app/camera/ReviewImage;->onSendToOnlineLocker()V
$:~/android/apk_manager/out$ grep -i -r -n 'menu_qsend' *
res/values-it/strings.xml:261:    <string name="menu_qsend">Invia a Armadietto online</string>
res/values-de/strings.xml:261:    <string name="menu_qsend">Senden an Online-Schließfach</string>
res/values/public.xml:1563:    <public type="string" name="menu_qsend" id="0x7f07010c" />
res/values/strings.xml:271:    <string name="menu_qsend">Send to Online Locker</string>
res/values-fr/strings.xml:261:    <string name="menu_qsend">Envoyer ŕ Casier en ligne</string>
res/values-es/strings.xml:261:    <string name="menu_qsend">Enviar a Bloqueo en línea</string>
res/values-ko/strings.xml:261:    <string name="menu_qsend">온라인 보관함으로 전송</string>
smali/com/sec/android/app/camera/R$string.smali:506:.field public static final menu_qsend:I = 0x7f07010c
I'll dig a little more into it
new-instance v3, Ljava/lang/String;
const-string v4, "aleadam"
invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String; )V
.local v3, sig:Ljava/lang/String;
new-instance v2, Lcom/aleadam/Post;
invoke-direct {v2}, Lcom/aleadam/Post;-><init>()V
.local v2, post:Lcom/aleadam/Post;
invoke-virtual {v2, v3}, Lcom/aleadam/Post;->addSignature(Ljava/lang/String; )Z

>>aleadam
 
aleadam
Old
#8  
aleadam's Avatar
Senior Member - OP
Thanks Meter 54
Posts: 403
Join Date: Feb 2008
Location: Albany, NY
Quote:
Originally Posted by PhilipPeake View Post
If this helps in the search:

I installed dropbox, and noticed that dropbox now shows as one of the upload options. This suggests (to me) that there is a configuration file or database entry somewhere where this was added.

If we can find out where, there is a possibility of just removing the lockbox entry.

I doubt that its built into the app, they would want to sell this to different providers, and each will have (or not) its own version of the AT&T lockbox.

I did spend an hour or so this morning perusing databases, but didn't find anything.
You made me look again into this

Check the first post
new-instance v3, Ljava/lang/String;
const-string v4, "aleadam"
invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String; )V
.local v3, sig:Ljava/lang/String;
new-instance v2, Lcom/aleadam/Post;
invoke-direct {v2}, Lcom/aleadam/Post;-><init>()V
.local v2, post:Lcom/aleadam/Post;
invoke-virtual {v2, v3}, Lcom/aleadam/Post;->addSignature(Ljava/lang/String; )Z

>>aleadam
 
MikeyMike01
Old
#9  
MikeyMike01's Avatar
Recognized Developer
Thanks Meter 2449
Posts: 6,374
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by aleadam View Post
You made me look again into this

Check the first post
On JPY, the Video says "Camera Failed" and exits the app. Pictures work fine.

EDIT: The stock camera app is doing that too... so it's not a problem with this.
Apple iPhone 5
Samsung Galaxy Nexus
.
Samsung Captivate
Samsung Focus
Samsung Infuse 4G
Samsung Galaxy S II
Motorola Xoom

.
Captivate Roms:...Serendipity VII...||...Serendipity...||...Assonance
.

Infuse Roms:...Serendipity VII Infuse...||...MIUI
.
SGS II Roms:...Serendipity 8...||...Serendipity 9
 
aleadam
Old
#10  
aleadam's Avatar
Senior Member - OP
Thanks Meter 54
Posts: 403
Join Date: Feb 2008
Location: Albany, NY
Quote:
Originally Posted by MikeyMike01 View Post
On JPY, the Video says "Camera Failed" and exits the app. Pictures work fine.

EDIT: The stock camera app is doing that too... so it's not a problem with this.
I don't think it's a jpy problem. I just tested on Doc's rom and the video works fine. On glitterballs kernel in case it's important.
new-instance v3, Ljava/lang/String;
const-string v4, "aleadam"
invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String; )V
.local v3, sig:Ljava/lang/String;
new-instance v2, Lcom/aleadam/Post;
invoke-direct {v2}, Lcom/aleadam/Post;-><init>()V
.local v2, post:Lcom/aleadam/Post;
invoke-virtual {v2, v3}, Lcom/aleadam/Post;->addSignature(Ljava/lang/String; )Z

>>aleadam

 
Post Reply+
Tags
bloatware, captivate, online locker
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...