Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Yifei
Old
(Last edited by Yifei; 28th October 2011 at 02:21 PM.)
#1  
Junior Member - OP
Thanks Meter 5
Posts: 25
Join Date: Oct 2010
Default [MOD]iphone style screencapture.apk

disassemble screencapture.apk with apktool
edit /screencapture/AndroidManifest.xml
line 11 change android:theme
Code:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
edit /res/layout/preview.xml
Code:
    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <RelativeLayout android:id="@id/top" android:background="#ff000000" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent">
           <ImageView android:id="@id/screenshot" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="6.0dip" android:layout_marginBottom="6.0dip" android:layout_above="@id/button_row" android:layout_alignParentTop="true" />
                <Button android:state_enabled="false" android:id="@id/share_button" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="2.0dip" android:text="@string/screenshot_button_share" android:layout_weight="50.0" android:visibility="invisible" />
                <Button android:state_enabled="false" android:id="@id/use_as_button" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="3.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="3.0dip" android:text="@string/screenshot_button_use_as" android:layout_weight="50.0" android:visibility="invisible" />

        </RelativeLayout>
        <LinearLayout android:id="@id/shutter" android:background="#ffffffff" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <View android:id="@id/fullscreen" android:background="#ffffffff" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
        </LinearLayout>
    </RelativeLayout>
edit /smali/com/sonyericsson/screencapture/DisplayScreenshot.smali
find ".line 371" and insert the following code to make it exit after shutter animation

Code:
invoke-virtual {p0}, Lcom/sonyericsson/screencapture/DisplayScreenshot;->finish()V
build with apktool and sign with auto-sign tool
remove or hide stock screencapture.apk in /system/app
then install the modified apk, enjoy!

A question:
Is there a way to install modified apk as a update? like stock maps
in that way no need to remove stock apk and only upgrade apk works.

Sorry, I did not test it fully. It does not work after restart.
 
rogomantik
Old
#2  
Junior Member
Thanks Meter 3
Posts: 16
Join Date: Jan 2011
screenshots before/after ?
 
sdk16420
Old
#3  
Senior Member
Thanks Meter 1270
Posts: 2,708
Join Date: Jul 2011
Location: The Netherlands
Before
________Device______________ROM________Kernel___
Sony Ericsson Xperia Neo | Xperia T ROM 7.1.8 | Night-elf ICS
 
armando101
Old
#4  
armando101's Avatar
Senior Member
Thanks Meter 32
Posts: 146
Join Date: Aug 2011
Location: Riga
And after ?
Phone - Sony Ericsson Xperia Neo V -stock ICS 4.0.4 - Rooted - Removed bloatware - CWM recovery - Xperia S and GX apps
Tablet - Viewsonic Viewpad 7 - ROOTED - Bloatware removed - CWM installed






If I helped you - press the thanks button
The Following User Says Thank You to armando101 For This Useful Post: [ Click to Expand ]
 
sdk16420
Old
#5  
Senior Member
Thanks Meter 1270
Posts: 2,708
Join Date: Jul 2011
Location: The Netherlands
Quote:
Originally Posted by armando101 View Post
And after ?
________________________________________________
Quote:
Originally Posted by Yifei View Post
Sorry, I did not test it fully. It does not work after restart.
________Device______________ROM________Kernel___
Sony Ericsson Xperia Neo | Xperia T ROM 7.1.8 | Night-elf ICS
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
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...