Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gseseske
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2011
Default [Q] Getting rid of TW Screen Capture...

At the very least I found the png for the screen cap button that I can blank out, but I'd really love to remove the functionality that's running in the background.

Is the ScreenCaptureService.apk the only related file? Anyone try removing this?

(forum won't let me post under development, so I'm posting here)
 
PhantomHacker
Old
(Last edited by PhantomHacker; 7th August 2011 at 04:58 PM.)
#2  
PhantomHacker's Avatar
Recognized Developer
Thanks Meter 6086
Posts: 2,518
Join Date: Sep 2010
Location: St. Louis

 
DONATE TO ME
Quote:
Originally Posted by gseseske View Post
At the very least I found the png for the screen cap button that I can blank out, but I'd really love to remove the functionality that's running in the background.

Is the ScreenCaptureService.apk the only related file? Anyone try removing this?

(forum won't let me post under development, so I'm posting here)
Making the PNG transparent will look like the button is gone, but it will still be there when you tap that area. Removing screencaptureservice.apk will cause fcs when you tap the screenshot button, for me anyway.

Sent from my Galaxy Tab 10.1 via Tapatalk

Please do not PM me, if you have a question ask it in the according thread.
 
gseseske
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2011
Well I just removed the apk, and I'm not getting any visible fcs when I press it. The button still clicks, but nothing happens.

I guess the next question is...where do I look to try removing the actual button? Presumably a layout file somewere?

(If it isn't already apparent, I'm new at this. Experienced developer, but new to android.)
 
DocRambone
Old
#4  
Recognized Developer
Thanks Meter 2357
Posts: 6,316
Join Date: Jan 2010
Location: Stockholm

 
DONATE TO ME
Quote:
Originally Posted by gseseske View Post
Well I just removed the apk, and I'm not getting any visible fcs when I press it. The button still clicks, but nothing happens.

I guess the next question is...where do I look to try removing the actual button? Presumably a layout file somewere?

(If it isn't already apparent, I'm new at this. Experienced developer, but new to android.)
A a starting point: decompile the systemui.apk, check the smali/com/android/statusbar/tablet: MiniModeAppsPanel.smali et al.
No sources so its reverse engineering task.
 
PhantomHacker
Old
#5  
PhantomHacker's Avatar
Recognized Developer
Thanks Meter 6086
Posts: 2,518
Join Date: Sep 2010
Location: St. Louis

 
DONATE TO ME
Quote:
Originally Posted by PhantomHacker View Post
Making the PNG transparent will look like the button is gone, but it will still be there when you tap that area. Removing screencaptureservice.apk will cause fcs when you tap the screenshot button, for me anyway.

Sent from my Galaxy Tab 10.1 via Tapatalk

Opps, mispost, sorry.

Please do not PM me, if you have a question ask it in the according thread.
 
gseseske
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2011
Quote:
Originally Posted by DocRambone View Post
A a starting point: decompile the systemui.apk, check the smali/com/android/statusbar/tablet: MiniModeAppsPanel.smali et al.
No sources so its reverse engineering task.
Thanks for the direction. Found the code in smali\com\android\systemui\statusbar\tablet, but I think I'm in over my head in these files for the amount of time I have to commit to this. I'll mess with it a bit later today and see where I end up.
 
gseseske
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2011
Quote:
Originally Posted by gseseske View Post
Thanks for the direction. Found the code in smali\com\android\systemui\statusbar\tablet, but I think I'm in over my head in these files for the amount of time I have to commit to this. I'll mess with it a bit later today and see where I end up.
The screen capture references I was looking for are in TabletStatusBar.smali. The easiest thing to do would be to just add a 'return' at the top of the onclick handler for the button (in conjunction with blanking out the png)...but obviously the button would still be there. I'm think getting rid of it cleanly would be over my head, but if anyone else has any interest in picking up from here please post with your findings.
 
DocRambone
Old
(Last edited by DocRambone; 7th August 2011 at 06:56 PM.)
#8  
Recognized Developer
Thanks Meter 2357
Posts: 6,316
Join Date: Jan 2010
Location: Stockholm

 
DONATE TO ME
Quote:
Originally Posted by gseseske View Post
The screen capture references I was looking for are in TabletStatusBar.smali. The easiest thing to do would be to just add a 'return' at the top of the onclick handler for the button (in conjunction with blanking out the png)...but obviously the button would still be there. I'm think getting rid of it cleanly would be over my head, but if anyone else has any interest in picking up from here please post with your findings.
hmm, i try it.
Getting errors in compiling after i try to change the smali
 
deficitism
Old
#9  
Recognized Developer
Thanks Meter 38
Posts: 520
Join Date: Jul 2007
Why remove it? Lets remap it to a custom activity... The same can be done with the TW mini-app bar. Those can all be custom activities...

If you really want to remove the functionality, the quick and dirty would be to simply delete the ScreenCaptureService.apk from your system apps. Then make your icon transparent. Removing the blank space between the multitasking and menu (within apps) buttons may require a tiny bit of smali and/or XML layout tweaks.

 
Post Reply+
Tags
screen capture, touchwiz
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...

XDA PORTAL POSTS

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more

Flash Custom ROM and Recovery to Samsung Galaxy S 4

After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4,I … more

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more