[Q] Getting rid of TW Screen Capture... - Galaxy Tab 10.1 Themes and Apps

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)

gseseske said:
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)
Click to expand...
Click to collapse
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

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.)

gseseske said:
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.)
Click to expand...
Click to collapse
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 said:
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
Click to expand...
Click to collapse
Opps, mispost, sorry.

DocRambone said:
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.
Click to expand...
Click to collapse
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 said:
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.
Click to expand...
Click to collapse
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.

gseseske said:
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.
Click to expand...
Click to collapse
hmm, i try it.
Getting errors in compiling after i try to change the smali

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.

Related

Launcher editing please?

We need to know how to edit the app short cuts that appear on the home screen. I use apktool. Is there a specific way to edit what icons/short cuts appear on the home screen and their position? Any help will be greatly appreciated.
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
jbirdvegas said:
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
Click to expand...
Click to collapse
Why do you keep posting this like we have ESP and know what you mean?
D
Greenteam! said:
We need to know how to edit the app short cuts that appear on the home screen. I use apktool. Is there a specific way to edit what icons/short cuts appear on the home screen and their position? Any help will be greatly appreciated.
Click to expand...
Click to collapse
Default screen layout may be adjusted when building a ROM by editing the default.xml file in /system/customize/MNS/ and /system/customize/CID/.
Here you configure all of the first boot settings:
What is on each screeen, apps and widgets.
Default browser home page.
Shortcuts in the browser.
News Reader Settings.
Mail app settings.
Boot and shutdown sounds and animations location.
Many, many things are here. Read it carefully and tweak slowly till it makes sense.
D
jbirdvegas said:
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
Click to expand...
Click to collapse
ah, that's the setting in the github. Makes sense now. By changing the setting in the github, after the rom is compiled it will have the changed setting in it. Thanks
dsb9938 said:
Default screen layout may be adjusted when building a ROM by editing the default.xml file in /system/customize/MNS/ and /system/customize/CID/.
Here you configure all of the first boot settings:
What is on each screeen, apps and widgets.
Default browser home page.
Shortcuts in the browser.
News Reader Settings.
Mail app settings.
Boot and shutdown sounds and animations location.
Many, many things are here. Read it carefully and tweak slowly till it makes sense.
D
Click to expand...
Click to collapse
Thanks. Will have to give it a shot!
dsb9938 said:
Why do you keep posting this like we have ESP and know what you mean?
D
Click to expand...
Click to collapse
Sorry for not explaining
default_workspace.xml controls what appears when adw is loaded for the first time. I'm not sure how to do this after compiling but if you want to make changes before look at that file. It's in CyanogenMod's source code.
jbirdvegas said:
Sorry for not explaining
default_workspace.xml controls what appears when adw is loaded for the first time. I'm not sure how to do this after compiling but if you want to make changes before look at that file. It's in CyanogenMod's source code.
Click to expand...
Click to collapse
LOL, okay. I don't run CM, I'm, working on a Thunderbolt.
I'm editing native Rosie, and that ***** ain't forgiving.
Thanks anyway though.
D

[Q] Hide the page indicator in TouchWiz

Hi there,
loving my new Galaxy but I don't really fancy the page indicator telling me what page of the home screen I am on. Any option to hide it? And no I wanna stick with TouchWiz so no other Launcher suggestions please ;-)
Thanks
DoubleYou
anybody any ideas?
Hmmm I'm curious about this too.....
Im still very n00b to android but off the top of my head im thinking about the possibility of getting into the touchwiz files and making the page indicator graphics transparent.
There's probably another, more efficient way than that but..... .
I've no idea if that's possible but I would certainly hope so. Ill be looking into theming this thing when I get my sgs2 and if I have any luck ill let you know.
I hate page indicators.......
Sent From My Fingers To Your Face......
Yes let me know please in case you find a way? I was actually hoping someone had already found a way to do this though ;-)
DoubleYou79 said:
Yes let me know please in case you find a way? I was actually hoping someone had already found a way to do this though ;-)
Click to expand...
Click to collapse
I did it....
I dont know if there are any differences between the touchwiz apks in different ROMS but to be on the safe side, upload the file "TouchWiz30Launcher.apk" from "/system/app" for me and I will get rid of that pesky page indicator for you.
Its not completely removed, it still works if you long press on it, its just invisible.
conantroutman said:
I did it....
I dont know if there are any differences between the touchwiz apks in different ROMS but to be on the safe side, upload the file "TouchWiz30Launcher.apk" from "/system/app" for me and I will get rid of that pesky page indicator for you.
Its not completely removed, it still works if you long press on it, its just invisible.
Click to expand...
Click to collapse
sounds great will PM you tomorrow.
hmmm just noticed that the numbers are still there.
I was using a black wallpaper so I didnt notice before...
Damn. Will keep playomg around with it.
I also would of thought it would be as simple as making the numbers transparent, even a blank .png file?
mitchell.tamsett2 said:
I also would of thought it would be as simple as making the numbers transparent, even a blank .png file?
Click to expand...
Click to collapse
Afraid not. They are called into play by a line of code somewhere.
They can be disabled in the same way you would disable the names of apps displayed under the icons our another item of text. Its just a matter of finding the right line to tweak.
Sent From My Fingers To Your Face.....
Ah, that makes sense. Hmm bit of pain!

[Q] [Request] modified buttonbar/statusbar for 101

I was looking for some nice honeycomb touch for my 101. I already found a gingerbread framework wich looked very nice, however unfortunately my archos 101 gets bootloops everytime I try to install it.
I was wondering if its possible to move the buttonbar to the statusbar (with arctools maybe) and then move the bar to the bottom of the screen (as seen on honeycomb). I would also love to see the search icon removed, as its useless in my opinion.
Otherwise some help to get the framework from this post succesfully installed would be highly appreciated.
http://forum.xda-developers.com/showthread.php?t=1125284
Thanks in advance
buchi89 said:
I was looking for some nice honeycomb touch for my 101. I already found a gingerbread framework wich looked very nice, however unfortunately my archos 101 gets bootloops everytime I try to install it.
I was wondering if its possible to move the buttonbar to the statusbar (with arctools maybe) and then move the bar to the bottom of the screen (as seen on honeycomb). I would also love to see the search icon removed, as its useless in my opinion.
Otherwise some help to get the framework from this post succesfully installed would be highly appreciated.
http://forum.xda-developers.com/showthread.php?t=1125284
Thanks in advance
Click to expand...
Click to collapse
I would love to see this
And i think this is possible, you have to find the right parameters in the right files..
I dont know anything about frameworks but msticninja and fisha21 should know this
Maybe you could pm ninja
We had have very much discussions about the soft buttons and or status bar
Lenn said:
I would love to see this
And i think this is possible, you have to find the right parameters in the right files..
I dont know anything about frameworks but msticninja and fisha21 should know this
Maybe you could pm ninja
We had have very much discussions about the soft buttons and or status bar
Click to expand...
Click to collapse
Yeah shouldn't be too hard, as Cyanogenmod for Archos 101 has something like this already! However I will not PM anyone from this board since its a matter of respect, as I am being a newbie. I know how it feels like, if some newbie comes, demands something and already annoy some ppl. Maybe I am just being hypersensitive xD
buchi89 said:
Yeah shouldn't be too hard, as Cyanogenmod for Archos 101 has something like this already! However I will not PM anyone from this board since its a matter of respect, as I am being a newbie. I know how it feels like, if some newbie comes, demands something and already annoy some ppl. Maybe I am just being hypersensitive xD
Click to expand...
Click to collapse
Just be brave
A community excist, because peoples help eachother
If you want to i can pm him, we know us
Moving the buttons to the notification bar is easy, just use urukconfig on uruk, or Arctools on stock.
I may be able to remove the search button as well by editing the virtualkeys files.
Moving the bar to the bottom though, I'll have to look into CM7 and see how they do it, but it may not be possible on froyo.
msticninja said:
Moving the buttons to the notification bar is easy, just use urukconfig on uruk, or manually add the line on others.
I may be able to remove the search button as well by editing the virtualkeys files.
Moving the bar to the bottom though, I'll have to look into CM7 and see how they do it, but it may not be possible on froyo.
Click to expand...
Click to collapse
Thanks I am really looking forward to what you come up with!
msticninja said:
Moving the buttons to the notification bar is easy, just use urukconfig on uruk, or Arctools on stock.
I may be able to remove the search button as well by editing the virtualkeys files.
Moving the bar to the bottom though, I'll have to look into CM7 and see how they do it, but it may not be possible on froyo.
Click to expand...
Click to collapse
Thanks, ninja for joyning us!
Do could tell me the files?
I want to look me into tthis
Lenn said:
Thanks, ninja for joyning us!
Do could tell me the files?
I want to look me into tthis
Click to expand...
Click to collapse
It looks like the virtualkeys files don't control the buttons once they've been moved to the notification bar. Not sure if I can remove buttons.
To move the bar to the bottom, CM7 did alot of java work. I can move it to the bottom, but I can't get it to expand upwards. I have to modify the logic in StatusBarService.java, particularly the performFling method on line 1159, but it's gonna be really hard. Not even sure if it will work with froyo. I'll keep trying.
msticninja said:
It looks like the virtualkeys files don't control the buttons once they've been moved to the notification bar. Not sure if I can remove buttons.
To move the bar to the bottom, CM7 did alot of java work. I can move it to the bottom, but I can't get it to expand upwards. I have to modify the logic in StatusBarService.java, particularly the performFling method on line 1159, but it's gonna be really hard. Not even sure if it will work with froyo. I'll keep trying.
Click to expand...
Click to collapse
Thanks,ninja! You're our man for design/frameworks
In java, i cant help you, just starting at the school with basic java projects...
But if there is any other thing i can help, ask!
msticninja said:
It looks like the virtualkeys files don't control the buttons once they've been moved to the notification bar. Not sure if I can remove buttons.
Click to expand...
Click to collapse
I did try looking into this (before I got distracted by my shiny new Transformer )
Once you move the buttons into the notification bar, the icons change. These new icons are found in the "drawable" folder of the framework-res.apk eg stat_sys_back_p.png. There are also associated .xml files, but these just tell the system which icon to show when the button is pressed. Haven't yet found where the appearance (order, size etc) are controlled.
fisha21 said:
I did try looking into this (before I got distracted by my shiny new Transformer )
Once you move the buttons into the notification bar, the icons change. These new icons are found in the "drawable" folder of the framework-res.apk eg stat_sys_back_p.png. There are also associated .xml files, but these just tell the system which icon to show when the button is pressed. Haven't yet found where the appearance (order, size etc) are controlled.
Click to expand...
Click to collapse
I'm still trying to duplicate the upwards fling. I've got it working sometimes, but when you hiccup or stop in mid fling, it gets stuck sometimes, usually causing a soft-reboot. See if you can find the button layout for me, I'll keep working on the bar itself.
msticninja said:
I'm still trying to duplicate the upwards fling. I've got it working sometimes, but when you hiccup or stop in mid fling, it gets stuck sometimes, usually causing a soft-reboot. See if you can find the button layout for me, I'll keep working on the bar itself.
Click to expand...
Click to collapse
Is there any way i can help?

[Q] possible to hide status bar in lock screen?

hey guys. is it possible to hide the status bar from the lockscreen? I'm good with .xml, .smali or any other kind of edit. i just need to be pointed to where I would need to go.
I tried searching and came up empty handed. i'm trying hard to like the lock screen. i already changed the backgrounds (much better now), currently working on a custom lockring, last thing would be to hide that ugly status bar...it's only showing me what the lockscreen already shows anyways.
thanks for the info.
Download the app Widget Locker...U can remove taskbar and also a lot of customization to your style
I'm a big WidgetLocker fan, with my own custom themes made and all that when i was on the Evo 3D. i'm trying to move on with the times and use this nifty sense lockscreen. just has a few kinks to work out.
but if i dont end up fixing it to my liking soon enough i'll download widgetlocker again.
anyone else have any ideas as to how to get this done?
If you go into titanium backup, and freeze statusbar, it will do what you want, it will also remove in regular screen, possibly decompile lockscreen.apk and see if you can do it there.
life64x said:
If you go into titanium backup, and freeze statusbar, it will do what you want, it will also remove in regular screen, possibly decompile lockscreen.apk and see if you can do it there.
Click to expand...
Click to collapse
that is not what I want to do at all. I don't want to make the status bar unavailable everywhere in the system. just within the lockscreen.
if I knew where to go, I can make .xml and .smali edits or whatever else. I just don't know how to search for things from scratch :-(
Max_Pain said:
that is not what I want to do at all. I don't want to make the status bar unavailable everywhere in the system. just within the lockscreen.
if I knew where to go, I can make .xml and .smali edits or whatever else. I just don't know how to search for things from scratch :-(
Click to expand...
Click to collapse
I'm just guessing, so this could be a useless thought, but... I think checking in idlescreen base would be a good start. You wouldn't probably want to mess with this in system UI because that would likely just hose the whole bar. Team d3rp seems to have maybe figured out making the bar transparent, which would leave the icons and if course be clear everywhere else too... but it's still finicky across the roms, so not quite done yet. pstevep is the man, and maybe could help? See what you can find and then maybe send him a pm.
bumpity bumb
bump, bump, bumpity bump.
any way to do this?
i would say edit lockscreen.apk (decompile and fish around) and also look in a androidpolicy.jar probably some lines of code your could remove/add to make it happen.
clever idea by the way. i am still trying to resolve issues with my idea of clearing notifications from the lockscreen by double tapping the home key. had it figured out for a little bit but it was causing apps to force close :/
again i like your idea... i probably wouldn't use it myself simply because i wouldnt be able to see important details or notifications etc without unlocking the phone
Bump

[Solved] Screenshot Button Help

I have an Apex AP-GS918 (Nobis NB09) tablet with rooted stock Jellybean Rom. There is an annoying screenshot button on the bottom bar next to the volume button that I keep pressing accidentally because it is in a bad spot. I wish to disable it or remove it completely. I have searched the forums but all the answers seem to be for Samsung devices. They say to change the quick launch in the settings which I do not have. And they say to remove or disable the system app that controls it, they have different names for the app like screenshotcapture.apk and such, but there is no system app with that or similar name.
If anyone knows a way to be rid of this annoyance, any help would be greatly appreciated.
Thanks in advance.
UPDATE EDIT...
UltraWelfare said:
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
Click to expand...
Click to collapse
I was unable to find an app to disable, and you were correct that it was part of SystemUI.apk. But I found out how to remove it from the bar. I am unable to post where I found the method because I am not allowed to post outside links yet, So I kind of wrote a tutorial (if you can call it that).
I decompiled my SystemUI.apk using Android Multitool on my PC. I edited \res\layout\system_bar.xml.
The info about the buttons are there. I found the line labeled
Code:
@id/screenshot
and changed the following code after it
Code:
android:layout_width="@dimen/navigation_menu_key_width"
to
Code:
android:layout_width="0.0dip"
which makes the screenshot button 0 pixels wide, meaning not there anymore.
Then I recompiled it, opened the new apk using 7zip and copied the edited xml from it to the original apk to prevent signature failure (after making another backup of it of course), used ADB to push it, permission it, and reboot it. After that I was free of that %$#@ button. I now have to use a third party screenshot app from the play store, but it doesn't have a constant button that leaves me with 50 accidental screenshots a day.
It also works to remove the volume buttons, which are pointless when you have the hardware buttons. Those lines are labeled
Code:
@id/sub
@id/add
(on my device anyway). It does NOT work for the 3 dot menu button, but that one isn't so bad to have there.
Take that you cheap Chinese tablet.
Bump
lovestospooge said:
Bump
Click to expand...
Click to collapse
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
UltraWelfare said:
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
Click to expand...
Click to collapse
I got it to go away. The method is in the original post. Thanks for the info that got me going in the right direction.

Categories

Resources