[MOD][GUIDE] Change Air Command Apps - Galaxy Note 4 General

Hello XDA,
The Air Command feature on the Note 4 is an excellent concept, with all sorts of potential. Unfortunately, that potential is severely crippled by Samsung's decision to hard-code the available apps, and prevent users from changing them...Until now.
This guide will show you how to change the default Air Command apps (Action Memo, Smart Select, Image Clip, and Screen Write) to whatever apps you choose. In order to do this, you must have working knowledge of how to decompile, modify, and recompile .jar and .apk files. If you do not know how to do this, stop here, and come back when you do, as I won't respond to any questions asking how to decompile/recompile in this thread.
***Before proceeding, MAKE A BACKUP.***
***This mod entails making modifications to your phone's framework files. Any mistakes***
***can, and almost certainly will, prevent your phone from booting properly. If you choose to ***
***proceed with this mod, you are doing so at your own risk. I am not responsible for loss of data,***
***damaged devices, sudden onset male pattern baldness and impotence, or any***
***other consequences that may arise as a result of this mod.***
***Did I mention making a backup?***​
With that out of the way, let's get to it.
1) Start by pulling services.jar from /system/framework, and decompiling it.
2) Download the attached zip file, extract it to a location of your choice, and copy the included SpenGestureManagerService$9.smali to /com/android/server/smartclip in your decompiled services.jar, overwriting the existing one.
3) Now in order to set your own apps, you will need to know the package name of the app, and the name of the activity that you want to open from that app, which, for most of you, will be the main activity. To find the package name, go to App Info or Application Manager on your phone, find your app, and look at the line underneath the app's name. This is the package name. Note that it is all lowercase; this is important. Some examples include:
com.android.chrome
com.visionobjects.calculator
com.steadfastinnovation.android.projectpapyrus
com.quoord.tapatalkxdapre.activity​
Alternatively, you can decompile the app and look at its' AndroidManifest.xml. Somewhere on the 2nd line will be
Code:
package="your.package.name"
To find the activity, you can use a launcher like Nova Launcher, long-press the home screen to add a shortcut, select 'Áctivities', go to your app's name, and then try to locate the main activity. Alternatively, you can again look at the AndroidManifest.xml from the decompiled app, and locate it that way. It's not always entirely clear which activity is the main one, so in some cases it may take some trial-and-error to locate. Again, take note of the capitalization; it is important. Some examples are:
com.google.android.apps.chrome.Main
com.visionobjects.calculator.activity.MainActivity
com.steadfastinnovation.android.projectpapyrus.application.HeadlessMainActivity
com.quoord.tapatalkxdapre.activity.MainActivity​
4) Once you have the package name and activity name of the app(s) you want to use, go ahead and open the file you just copied with Notepad++.
***Note: I have left all the original code intact, so the stock functions can still be used if you want.***
***You can change as many of the stock functions as you wish, but I have included 'blanks' for all 4.***​
5) To add your first app, search for:
Code:
CUSTOM.PACKAGE.ONE
Replace it with the package name from your app. Do not remove the enclosing parentheses, and pay attention to the capitalization.
The next line will include:
Code:
CUSTOM.ACTIVITY.ONE
Replace this with the activity name from your app. Again, be sure to keep the parentheses, and watch the capitalization.
If you are changing more than one app, repeat the last two steps. The only thing different will be the lines that you need to search for/replace. The others are:
Code:
CUSTOM.PACKAGE.TWO
CUSTOM.ACTIVITY.TWO
Code:
CUSTOM.PACKAGE.THREE
CUSTOM.ACTIVITY.THREE
Code:
CUSTOM.PACKAGE.FOUR
CUSTOM.ACTIVITY.FOUR
6) Once you have added the packages and activites you want, scroll to the very end of the file, where you will see the following array:
Code:
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_1
:pswitch_3
:pswitch_4
:pswitch_5
:pswitch_6
:pswitch_7
:pswitch_2
.end packed-switch
.end method
Here it is again, with the functions labeled:
Code:
:pswitch_data_0
.packed-switch 0x0
:pswitch_0 ACTION MEMO
:pswitch_1
:pswitch_3 SCREEN WRITE
:pswitch_4
:pswitch_5
:pswitch_6 IMAGE CLIP
:pswitch_7
:pswitch_2 SMART SELECT
.end packed-switch
.end method
If you want to use any of the default options, take note of their numbers:
Action Memo = switch_0
Smart Select = switch_2
Image Clip = switch_6
Screen Write = switch_3
7) Each of the custom apps that you added package/activity names for has a unique number associated with it. Using the same 1-4 numbering as before, they are as follows:
CUSTOM.PACKAGE.ONE = switch_ms1
CUSTOM.PACKAGE.TWO = switch_ms2
CUSTOM.PACKAGE.THREE = switch_ms3
CUSTOM.PACKAGE.FOUR = switch_ms4
Simply take the switch values of the custom apps and/or stock apps that you'd like to use, and place them in the array in any order you'd like. Be aware that changing any of the switch values other than the 4 that I labeled above will have no effect.
8) After you have made your changes, recompile services.jar, push to /system/framework, set permissions, reboot, and enjoy your new, more useful Air Command!
CHANGING THE TEXT AND ICONS​Once you've changed the apps that your Air Command opens, you'll probably want to change the associated icons and text as well. To do so, you will need to decompile your framework-res.apk, found in /system/apps.
The default icons will be found in the /res/drawable folders in your decompiled framework-res. Their names are:
Code:
airbutton_global_icon_quickmemo
airbutton_global_icon_flashannotation
airbutton_global_icon_easyclip
airbutton_global_icon_pinmode
The text for each of the Air Command items can be found in /res/values/strings.xml. Their names are:
Code:
Action memo
Screen write
Image clip
Smart select
Note that you will most likely also have to change the same strings in /res/values-en-rUS/strings.xml to see any effect.
Once you've finsihed making your changes, recompile your framework-res.apk, push it to /system/framework, set permissions, and reboot!
That's it! I hope you enjoy!
I will do my best to answer any questions you may have, but be aware that I do not have a Note 4, so I cannot do any testing or try to replicate any issues. The following screenshot/video are taken from the same mod I did for my Note 3, but are a good representation of what this mod/guide will achieve.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Finally, I'd like to give a huge thank you to @kevinoliva113 for testing for me. Over, and over, and over. Without him this would not have been possible...

Reserved

Works great.. Finally useful shortcuts. Check it out here on the Note 4. http://youtu.be/kiXKFdCg1TM

Really good guide. It should work well with eteam's anyapp aircommand

How many apps minimum/maksimum can be add? And what happen to rounded shape if use more than 4/5?
Sent from my SM-N910C using XDA Premium 4 mobile app

CasTTeLLo said:
How many apps minimum/maksimum can be add? And what happen to rounded shape if use more than 4/5?
Sent from my SM-N910C using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The minimum would be zero, as you could just place one of the existing, nonfunctional switch numbers in every spot, but I believe the maximum is 4. I don't have a Note 4 myself to test with, but @kevinoliva113 did pretty extensive testing for me...
By default, there are 7 (or maybe it was 8 lol), things already set in the array that controls it, and all the code for them seems to basically be there, but only 4 of them actually work. Basically, it looks like Samsung left the existing code from the Note 3, and just added the Note 4 stuff on top of it, as the other items are all the ones that were on the Note 3 (quick memo, S-finder, etc.). I think you could probably put the switches for those in the working slots and have those functions working, if you wanted, but I don't know of any way to get more then 4....

sorry to be "that guy" but im green when it comes to reverse engineering on my android, i am unclear about what to do on step 7 when you say take the values and place in array. am i suppose to search the smali for "e.g..pswitch_ms4 " and replace with app/activity name? thanks in advance

Would this work on Note 4 with Android 5.0.1 too?
Sent from my SM-N910F using XDA Free mobile app

One thing I love -adding V3 calculator, But this takes so much time it isn't worth it...
Anyway, Thanks for your guide and effort!

Sorry, haven't checked back here in a while....
scalleygwags said:
sorry to be "that guy" but im green when it comes to reverse engineering on my android, i am unclear about what to do on step 7 when you say take the values and place in array. am i suppose to search the smali for "e.g..pswitch_ms4 " and replace with app/activity name? thanks in advance
Click to expand...
Click to collapse
Go to where you placed your package/activity names earlier, and scroll up from there until you find the first place it says "pswitch". That is going to be the 'value' for the package/activity below it...Now scroll the the end of the smali file, and you should see several "pswitch" lines all together. That is the array....Replace one of the existing 'values' with the one corresponding to your package/activity.
Freeddi said:
Would this work on Note 4 with Android 5.0.1 too?
Click to expand...
Click to collapse
Yes, but there's a good chance that the number at the end of the filename will be different, so you'd have to figure out which one is the equivalent. Also, the existing pswitch values will likely be different. I don't have a note 4, so I can't work it out myself, but if you'd be willing to do some testing, PM me and we might be able to work something out.
AndroidState said:
One thing I love -adding V3 calculator, But this takes so much time it isn't worth it...
Anyway, Thanks for your guide and effort!
Click to expand...
Click to collapse
It does take awhile, especially the first few times you do it. When you've done it dozens of times, as i have, it's second nature, but hopefully nobody will have to lol.

@Morningstar
My device Note 3 N900
My spen 5 select function have but I want 4 select function (remove pen window )function
Can you help me?

tural_625 said:
@Morningstar
My device Note 3 N900
My spen 5 select function have but I want 4 select function (remove pen window )function
Can you help me?
Click to expand...
Click to collapse
Changing the number of available functions is really beyond the scope of this guide....You would have to set one of them to point to nothing, rather than a specific activity (which may in itself cause nullpointer errors), then you'd have to change the pngs for the bg in framework' adjust the spacing of the remaining icons....It would be far, far easier just to set it to some other app, even if you never use it....

Can you edit for me ?
I want pen window function remove
Can you help ?

Morningstar said:
Yes, but there's a good chance that the number at the end of the filename will be different, so you'd have to figure out which one is the equivalent. Also, the existing pswitch values will likely be different. I don't have a note 4, so I can't work it out myself, but if you'd be willing to do some testing, PM me and we might be able to work something out.
Click to expand...
Click to collapse
Would lovely test it myself if its working on Note 4 or not. But now i see that i have to decompile/reconpile that File. I cant decompile/recompile. Have now Knowless about this.
Sent from my SM-N910F using XDA Free mobile app

Related

Touch Flo 3D Programs Tab

Hi everyone
My original ROM (Telstra) had a link in the Programs Tab to the Games FOLDER, which was really handy.
With my new ROM there is no such link, does anyone know how to add a FOLDER as a Tab item.
I have played with the registry keys at ...
HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher\n (n being 0 -17)
So far I've had no success. I've tried linking to the folder directly and linking to a shortcut to the folder.
Anyone ?
If anyone else with a stock Telstra ROM could have a look at theirs to see how it's done, that would be great.
Cheers
I've been looking at the following site:
http://forum.brighthand.com/showthread.php?s=&threadid=119476
and in this topic:
http://forum.xda-developers.com/showthread.php?t=358613&highlight=programs+window
But nothing seems to work.. If anyone can figure it out, let us know!
Ok, I have worked out how to link the buttons in the Programs Tab to folders and not files.
The way it was done on my original Telstra ROM is as follows.
Note this guide assumes you want to link the Games Folder, this should work for any other folder as well.
Copy the _FolderView.exe in the attached ZIP to your Windows directory
You need to create a new shortcut file (I copied an existing one and modified it and I'm sticking with the original Telstra filenames throughout this)
So I made a shortcut called _GamesFolder.lnk, and I put this in the Windows folder as well.
On the Shortcut Tab the target line needs to contain the line below:
\Windows\_FolderView.exe #\Windows\Start Menu\Programs\Games\?shellres.dll,-8229
At this point if you run that shortcut it SHOULD open your Games Folder, if it doesn't you've done something wrong.
Ok, now we need to edit the registry
Navigate to ... HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher\n
n being the number of the button you want to point to your folder. Remember the first one is 0 not 1, so top row 0-2, 2nd row 3-5 etc etc
Change the value of DispName to whatever you want it to be (for this I just used Games)
Change the value of Path to \Windows\_GamesFolder.lnk
If all has gone well you should now have a Games Button that has the little Ace of Diamonds on it, and when selecting should take you straight to your folder.
I would imagine you could put the exe and shortcuts anywhere you wanted them, I haven't tried, frankly I'm fine with them in the Windows Folder.
Hope this helps someone out.
Cheers
I've made a cab file that does the job easily, to be found here.
http://wmpoweruser.com/?p=804
Surur
very interesting - hope a friendly editor comes along - also allowing for editing the folder shortcut graphics (to make it meaningful without text)
NLS said:
very interesting - hope a friendly editor comes along - also allowing for editing the folder shortcut graphics (to make it meaningful without text)
Click to expand...
Click to collapse
I believe in \Windows\_FolderView.exe #\Windows\Start Menu\Programs\Games\?shellres.dll,-8229
shellres.dll,-8229 is the icon for the shortcut.
yes but I don't know if there are ready folder icons for other things (tools for example, comms, whatever)
In spanish windows 6.1
Extract and put this archive in windows directory.
How frustrating.
I assumed that if I created a shortcut to the folder (which Touch Flo 3d then finds) it would be able to launch it.
No cigar.
pgriffith said:
Ok, I have worked out how to link the buttons in the Programs Tab to folders and not files.
The way it was done on my original Telstra ROM is as follows.
Note this guide assumes you want to link the Games Folder, this should work for any other folder as well.
Copy the _FolderView.exe in the attached ZIP to your Windows directory
You need to create a new shortcut file (I copied an existing one and modified it and I'm sticking with the original Telstra filenames throughout this)
So I made a shortcut called _GamesFolder.lnk, and I put this in the Windows folder as well.
On the Shortcut Tab the target line needs to contain the line below:
\Windows\_FolderView.exe #\Windows\Start Menu\Programs\Games\?shellres.dll,-8229
At this point if you run that shortcut it SHOULD open your Games Folder, if it doesn't you've done something wrong.
Ok, now we need to edit the registry
Navigate to ... HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher\n
n being the number of the button you want to point to your folder. Remember the first one is 0 not 1, so top row 0-2, 2nd row 3-5 etc etc
Change the value of DispName to whatever you want it to be (for this I just used Games)
Change the value of Path to \Windows\_GamesFolder.lnk
If all has gone well you should now have a Games Button that has the little Ace of Diamonds on it, and when selecting should take you straight to your folder.
I would imagine you could put the exe and shortcuts anywhere you wanted them, I haven't tried, frankly I'm fine with them in the Windows Folder.
Hope this helps someone out.
Cheers
Click to expand...
Click to collapse
Thanks for the folderview .exe file. I'm using it outside of TFL3D. I was wondering if you can make a .exe file shortcut for the games folder, because the .lnk does not work. I have a Sprint Touch Pro. Thanks in advance
There is a problem here. When I select the Games icon in the Programs tab, the games list comes up (GOOD). However, if I minimize the Games window, re-selecting the Games icon is a no-op (BAD). The only way I can get it to work again is to actually close (not minimize) the games folder list brought up by _FolderView. Note that this folder list doesn't show up in the list of tasks, so if you forgot to close (not minimize) the games folder in the first place, you can't reinvoke it without a soft reset.
A workaround is to configure the HTC's X-button to close instead of minimize a program.
great tweak, also work with the newest manila
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
GamesFolder-English.cab
GamesFolder-German.cab
@
http://wmpoweruser.com/?p=804
Does anyone know the shortcut to open 'Settings'? Thanks!
pgriffith said:
Ok, I have worked out how to link the buttons in the Programs Tab to folders and not files.
The way it was done on my original Telstra ROM is as follows.
Note this guide assumes you want to link the Games Folder, this should work for any other folder as well.
Copy the _FolderView.exe in the attached ZIP to your Windows directory
You need to create a new shortcut file (I copied an existing one and modified it and I'm sticking with the original Telstra filenames throughout this)
So I made a shortcut called _GamesFolder.lnk, and I put this in the Windows folder as well.
On the Shortcut Tab the target line needs to contain the line below:
\Windows\_FolderView.exe #\Windows\Start Menu\Programs\Games\?shellres.dll,-8229
At this point if you run that shortcut it SHOULD open your Games Folder, if it doesn't you've done something wrong.
Ok, now we need to edit the registry
Navigate to ... HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher\n
n being the number of the button you want to point to your folder. Remember the first one is 0 not 1, so top row 0-2, 2nd row 3-5 etc etc
Change the value of DispName to whatever you want it to be (for this I just used Games)
Change the value of Path to \Windows\_GamesFolder.lnk
If all has gone well you should now have a Games Button that has the little Ace of Diamonds on it, and when selecting should take you straight to your folder.
I would imagine you could put the exe and shortcuts anywhere you wanted them, I haven't tried, frankly I'm fine with them in the Windows Folder.
Hope this helps someone out.
Cheers
Click to expand...
Click to collapse
Thanks! THis works great on my Sprint Touch Pro 2
I can't get it to work on my HD2 I assume it is because I already have the 16 (4x4) icon cab installed.
Not sure I want to go back to 9 icons (3x3) just to get a games icon.
Anyone who can help?
sheepheed said:
I can't get it to work on my HD2 I assume it is because I already have the 16 (4x4) icon cab installed.
Not sure I want to go back to 9 icons (3x3) just to get a games icon.
Anyone who can help?
Click to expand...
Click to collapse
The manual method of doing it should work regardless of if you have 16 or 9 icons. I am not sure if the cabbed method will work. Try the manual method, it is a bit of work, but it should always work regardless.
Does any one know: folder icon
Hi..
I got this working on my touch hd. It is great..But
does any one know how I might change/customize the icon?
THX

[SOLVED] Changing the 'current screen' bar in Rosie

If I change the look of the Rosie launcher, so instead of the curved stock one it's more in the style of say Espresso, which is flat, the line/bar that denotes what screen you are on still curves, following the line of the stock Rosie launcher. Does anyone know what file needs to be changed to make it run straight when you go from screen to screen?
I know I could just make it invisible but I'd like it to be there if possible.
jpool81 said:
If I change the look of the Rosie launcher, so instead of the curved stock one it's more in the style of say Espresso, which is flat, the line/bar that denotes what screen you are on still curves, following the line of the stock Rosie launcher. Does anyone know what file needs to be changed to make it run straight when you go from screen to screen?
I know I could just make it invisible but I'd like it to be there if possible.
Click to expand...
Click to collapse
Take a look inside Rosie.apk under /res/drawable-port-mdpi. It contains the button bar.
Have had a look in there but can't see a button bar. I have found the actual bar - "common_mainnav_scroller1.png" under "Rosie.apk\res\drawable-normal-mdpi" but as I say that's just the bar that moves. I need to find out what makes it move in the way it does, so that I can stop it curving and make it move horizontal.
That'll Be in one of the xml file won't it ?
It's not in Rosie.apk, I remembered wrong.
It's inside com.htc.resources.apk in /system/framework.
Same folder inside the file as I told before.
In there are the Rosie .png images, but changing those won't alter the direction of the nav bar will it? As "MacaronyMax" said I think it's an XML file. I just don't know which one it is
Hello,
Has anyone found which xml file needs to be changed to get that indicator to move in a straight horizontal line? I've tried searching Rosie.apk, com.htc.resources.apk and framework-res.apk but I couldn't find it.
Had the same problem with sense-villain 12. I had a look but can't find the drawables needed
This guy has figured it out. See here.
He has also remapped the Rosie buttons. This is the third time I've found someone that has been able to do this, but no one on the GSM Hero side seems to be able to do it.
jpool81 said:
This guy has figured it out. See here.
He has also remapped the Rosie buttons. This is the third time I've found someone that has been able to do this, but no on the GSM Hero side seems to be able to do it.
Click to expand...
Click to collapse
Well what he has done can probably be applied to the Hero. BTW in the drawable you will find some precious XML files hehe
C0mpu13rFr34k said:
Well what he has done can probably be applied to the Hero. BTW in the drawable you will find some precious XML files hehe
Click to expand...
Click to collapse
I'm gonna rip it apart and mash it back together for the Hero and see what I get. Most probably a boot loop lol
jpool81 said:
I'm gonna rip it apart and mash it back together for the Hero and see what I get. Most probably a boot loop lol
Click to expand...
Click to collapse
Hehe probably But why not just look for the XML file? Usually the names makes sense and you can see from there what to do
C0mpu13rFr34k said:
Hehe probably But why not just look for the XML file? Usually the names makes sense and you can see from there what to do
Click to expand...
Click to collapse
Thanks. Will take a look.
oorrr..... ask the dev which file he changed to make it do that much easier
i'll pm him now if you havent got it working yet
Might want to thank ihtpfp69
You've got to change these values , and doing so you can make it any shape you like
Code:
<integer name="scroll_x1">
<integer name="scroll_y1">
<integer name="scroll_x2">
<integer name="scroll_y2">
<integer name="scroll_x3">
<integer name="scroll_y3">
(he didn't say what file that was in but im sure it can't be too hard to find , oh and im guessing thats stock
Thanks. I got a response from him also. The file is integers.xml and should be located inside the Rosie.apk \res\values-normal
Will look at this once I have also sorted the remapping of the Rosie buttons and some other stuff.
@macaroniMax and @jpool81
Wow, thanks you guys. That was REALLY helpful. Let me see if I can get it to change on my HTC Desire!
This is another great thread with lots of helpful information: http://forum.xda-developers.com/showthread.php?t=697994
Great. Would be good to know of the result. It's good that Rosie can be changed in this way, although is quite complex at times, but once figured out It might make me revert back to it from AOSP.
jpool81 said:
Great. Would be good to know of the result. It's good that Rosie can be changed in this way, although is quite complex at times, but once figured out It might make me revert back to it from AOSP.
Click to expand...
Click to collapse
Well, I can confirm that it works. Here's a screen dump of my phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see, the current screen bar moves in a straight horizontal line as we switch screens (it's on screen 2 in the screenshot).
This was the only change I wanted and all I did was to make scroll_y1 and scroll_y3 equal to scroll_y2 (oh, in case you're wondering, the main launcher icon has also been changed in com.htc.resources, but that's not relevant to this thread).
ADDENDUM:
If you want to change integers.xml, simply opening Rosie.apk in 7-zip will not work because the res/values* folders are compiled when the apk is built and 7-zip will not be able to show them to you. This means you can't drag and drop the modified files as you can with png resource files. So, you need to decompile the apk first. To do this, I followed the excellent guide posted here: http://forum.xda-developers.com/showthread.php?t=697994.
One odd problem was that when I rebuilt the apk as described in that thread using the command:
Code:
apktool build Rosie
it was missing the security certificates (this is not a problem with the guide as it clearly says "make sure you sign the finished apk"). Since the security certificates are missing, simply pushing the apk to /system/app will not work (it will fail with an error about no valid signatures being found). On a side note, I found this strange because I read somewhere that Android does not check security certificates for system apps. Anyway...
If you follow that thread (the URL I posted) to its end, you'll find that someone else had the same problem. The solution suggested was to first sign the apk, create an update.zip, sign the update.zip and then install it using recovery mode. Strangely, this did not work for me (it seems to have worked for the poster who reported the problem in the other thread). I guess YMMV. My logcat shows that Android compares the signature of Rosie.apk against signatures for other system apps (shared_uid) and they don't match.
* * * * UPDATE UPDATE UPDATE * * * *
Apparently, the following method has side-effects because I find that I cannot delete desktop shorcuts after the change. PLEASE DO NOT FOLLOW THE METHOD DESCRIBED BELOW!!!
So, I took the easy way out. I simply copied over the classes.dex and resources.arsc generated by
Code:
apktool build Rosie
to the original apk file (which had the original certificates to match the other system apps in the ROM I was using). I think this method will work as long as the total number and names of the files remain the same.
Just thought I'd put this down in case anyone else has the same problem.

[Q] HELP: Transparent Status Bar for Gingerbread 2.3.7

Okay, let me start by saying that I know there are other threads here that discuss status bar transparency. I've read them... twice. I know there are guides for themeing, I know that those guides discuss making the status bar transparent. I know that others have posted flashable ZIP files with transparent status bars in them. That said, posting a link to a thread that talks about how to accomplish this probably won't help me. Telling me to decompile SystemUI and modify the StatusBarService.smali file and modifying the status bar .9s probably won't help me. I've been there and I've done that and it doesn't work, maybe it's Android 2.3.7? Maybe it's my ROM (Oxygen)? Maybe it's my launcher? I don't know. But, if someone could help me figure it out, I would appriciate it - likely in the form of a donation
Lastly, let me point out that I have the notification pulldown area transparent. What I want is the status bar. The bar at the top of the screen where the clock, battery icon, connection icons and such are displayed. There seems to be a little confusion as to the notification pulldown and the status bar, so I wanted to clear that up
Okay. Here is what I'm dealing with, what I've done thus far, and what I want.
I'd like to have exactly what user gimj01 has posted, like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here is the thread: http://forum.xda-developers.com/showthread.php?t=1031106
To try and accomplish this, I've done the following:
1. Decompile SystemUI.apk
2. Using Notepad ++ I edit the StatusBarService.smali. I search for the line "invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V" and right above it is "const/4 v5, 0x2" I change this to "const/4 v5, -0x3"
3. I then save the StatusBarService.smali file and recompile the SystemUI.apk. I then sign it. (All using APKManager 5)
4. Then, I replace the META INF folder in the new SystemUI.apk with the folder from the original.
5. I then copy the .9s for the status bar from the downloaded SystemUI.apk (from the post linked above) and paste them into my new SystemUI.apk. I use ADB and push it back to the phone.
That's it. This process causes the status bar to disappear. Oh, the .9s I'm copying over are:
status_bar_background.9.png
status_bar_close_on.9.png
statusbar_background.9.png
title_bar_portrait.9.png
title_bar_shadow.9.png
So, then I tried just modifying the StatusBarService.smali file as stated in step 2 above. Recompiling and pushing back to the phone. Result = status bar disappears.
So, then I tried just copying over the .9s as stated in step 5 above. In this case, there is no need to recompile, so I just push SystemUI to the phone. Result = blurry icons and text (see the attached image). But, the background is still black.
So then, for grins, I tried editing the status_bar.xml file and changing android:background="android:background="@drawable/statusbar_background"" to android:background="@android:color/transparent". Result = blurry icons and text (see the attached image). But, again, the background is still black.
Because the result of the final steps (changing the XML file, swapping the images only) is still a black background, I feel like I'm missing something. Like Android is pulling that black from somewhere, I just don't know where!!
Now, if I'm crazy (and at this point, I'm feeling that way) and this can't be done, okay. But, I really think it can, I can't imagine that Android changed that much between 2.3.3 and 2.3.7. So if you can help and are willing to, I would appriciate it.
First off, let me say I am in no way a themeing whiz (or even very good for that matter) but I'll try to help as best as I can.
Another thing I should say is that the link to the thread doesn't work.
Those things said, let me see if I understand the whole scope of what you're trying to do:
Based on the files you listed as the nine patches you're trying to change, you want every instance of the status bar to be transparent (including when the notification pane is open?). In my experience, a disappearing status bar indicates an issue in the file that causes the system to just not open it, so there must be an issue somewhere. Usually, again in my limited experience, this is because of a stupid error that you just missed.
I'm not sure you'd have to edit the smali files to execute this, but I could very easily be wrong. I'm going to do some research and check back in a little bit to see if you were able to fix the link so I can see the file you were referencing.
kenvan19 said:
First off, let me say I am in no way a themeing whiz (or even very good for that matter) but I'll try to help as best as I can.
Another thing I should say is that the link to the thread doesn't work.
Those things said, let me see if I understand the whole scope of what you're trying to do:
Based on the files you listed as the nine patches you're trying to change, you want every instance of the status bar to be transparent (including when the notification pane is open?). In my experience, a disappearing status bar indicates an issue in the file that causes the system to just not open it, so there must be an issue somewhere. Usually, again in my limited experience, this is because of a stupid error that you just missed.
I'm not sure you'd have to edit the smali files to execute this, but I could very easily be wrong. I'm going to do some research and check back in a little bit to see if you were able to fix the link so I can see the file you were referencing.
Click to expand...
Click to collapse
Link in OP fixed. Here it is again:
http://forum.xda-developers.com/showthread.php?t=1031106
In terms of scope, I have the notification area transparent, and right now, I could care less about how it looks when you pull it down. I'm interested in the status bar (just as it looks in the image in the OP) being clear. I hope that makes sense. I copied all of the .9s from the downloaded SystemUI to be sure I got what I needed, which was probably overkill, but I wanted to be sure. Really, I guess I would only need the statusbar_background.9.png to make what I am after work since the status_bar.xml file calls out that file specifically for the status bar background.
The reason I'm going after the smali files is because of this post (step 6.2):
http://forum.xda-developers.com/showthread.php?p=9978779#post9978779
Okay from what I understand you would just need to make one file transparent, titlebar.png or something like that. I'll look into it more and let you know!
Nobody...., really?
Nothing? No ideas?
I think what he mentioned works. I made one or two status bar mods for personal reasons so ill give this a shot.
Sent from my Nexus S using xda premium
Sorry got called into work that day and just got home. Didn't get a chance to figure it out.
Sent from my Nexus S MV from the XDA Premium app.
slimdizzy said:
I think what he mentioned works. I made one or two status bar mods for personal reasons so ill give this a shot.
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
I don't have a titlebar.png file. The png files that I have are listed in the OP. When I change any of the images to be transparent - or even copy transparent images from another clear status bar, I get what I attached in the OP, basically, fuzzy text and icons in a still black status bar.
kenvan19 said:
Sorry got called into work that day and just got home. Didn't get a chance to figure it out.
Sent from my Nexus S MV from the XDA Premium app.
Click to expand...
Click to collapse
Well, I suppose you're excused
You could use the UOT Kitchen, and in the status bar section at the top, click the option to use a transparent status bar. Then in the first section, set the transparency to 0%. Then go and upload your frameworks.res.apk and your systemui.apk under system files and let it do it for you. I did mine that way. Just search UOT kitchen. I would post the link but I'm on my phone.
Statusbar_background.9.png is the image file.
Sent from my super sleek NS4G, powered by TeamNekkid.
I got it! Not sure yet what I did, but I'll backtrack and figure that out.
Everytime I've gone to the Kitchen it says it isn't open... maybe I have a bad link?
Sent from my Nexus S 4G using XDA App
denverg said:
I got it! Not sure yet what I did, but I'll backtrack and figure that out.
Everytime I've gone to the Kitchen it says it isn't open... maybe I have a bad link?
Sent from my Nexus S 4G using XDA App
Click to expand...
Click to collapse
Your link probably isn't bad. When they close it it is because it gets backed up. When you get that message just refresh the page every few minutes until you get in.
Sent from my Nexus S 4G using XDA App

[TIPS, TRICKS, GUIDES and SHORTCUTS] Graphics Software Help for Themers

TIPS, TRICKS, GUIDES and SHORTCUTS
Graphics Software Help for Themers
I created this thread for anyone who would like help or want to learn quick ways in which to make theming and/or modding easier while using various graphics software. This software includes Adobe CS(Photoshop, Illustrator, etc.), GIMP, Paint.NET, Xara, CorelDRAW, Painter, etc.
This thread ideally should be able to help those who would like to use a particular program to create icons, launcher themes, boot animations, wallpapers, etc. There are lots of great theming help threads but within these threads there may be a few questions on how to use certain software to accomplish various tasks. A thread dedicated to just that would be ideal so as to not to deviate from the main topics of those threads.
All questions pertaining to how you would use a particular software for your creation are welcome and I would encourage other themers or anyone else who has knowledge and would like help, to please do so.
I am mostly familiar with Photoshop. I'm by no means an expert but I'm comfortable enough with the program to be able to be helpful wherever and whenever I can. There are XDA members who know more than I about this particular program as well the others mentioned.
I will add to this thread as much as I can and will also add helpful posts of other users to the OP.
Lets start:
How to open multiple images as Photoshop layers:
1. Opening Adobe Bridge and navigate to the folder that contains the images you want to add to your document. I have Bridge open to a folder on my Desktop with five images inside of it. I’ll select the first image (the one on the left) by clicking on its thumbnail.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Then, to select the other two images as well, I’ll hold down my Shift key and individually select images or click on the last of the five images (the one on the right). All five images are now highlighted and selected. Or CTRL+A to select everything in your folder.
3. With all of the images selected, go up to the Tools menu in the Menu Bar along the top of the screen in Bridge, choose Photoshop for a list of Photoshop-specific options, then choose Load Files into Photoshop Layers.
4. Photoshop will open automatically, if it’s not open already, and will add all five images (or as many images that you have selected) into the same document. It may take a few moments for Photoshop to process everything, but when it’s done, you’ll see a single document open on your screen containing all of your photos.
(Photoshop) How to apply an action for your images. You can record an action and set it to one to three buttons. (Photos may be provided later)
1. Go to Window and click Action and the Action popup or menu will show on the right.
2. Click the drop-down next to Action and click New Action.
3. Name your action whatever you'd like. Where it says Function, I would recommend creating one so you don't have to keep selecting your action and clicking the Play button every time you want to use your action. For example, you can make F2, Shift+F2, or Ctrl+F2 a function and anytime you you want your action to start, just click the button or button combinations you made.
4. Click Record and perform your action from start to finish then click the Stop button. Now all you have to do is keep clicking your pre-programmed button anytime you want to use these actions on your images.
(Photoshop) How to batch apply one action to multiple images. Once you have a recorded action you can apply it to an endless amount of images at one time without pressing anything.
1. Go to File > Automate > Batch.
2. At the top in the Play section, where it says Set, find your folder in the drop-down.
3. Underneath Set you will see Action. The drop-down will have your pre-programmed actions and select the one you want.
4. Now go to the Source section. Click the Choose button and select the folder in which you would like your image files saved then Click Ok.​
Reserved
One more
vanessaem said:
One more
Click to expand...
Click to collapse
cool work......this will help new members
Good job, are you still playing on adding more to this thread?
mloc33 said:
Good job, are you still playing on adding more to this thread?
Click to expand...
Click to collapse
Thanks a lot. I would like to but don't have the time at the moment. This thread was also created for the community. It's for anyone looking for troubleshooting with the various graphics programs used to theme. Any and everyone could take part and is encouraged to do so. But I guess no one needs the help...lol.
However, the thread is still here.
On gimp, I opened a .PNG file, a quick setting toggle icon to be specific, it is in a greenish-yellow color and I wanted to change to white. So I set the foreground color to absolute white and picked the pencil tool, lower its size down to a pixel then I clicked on the image,expecting white color to fill the pixel, instead it "popped" out the same greenish-yellow color of the original image. Tried another tool, still the same result. But tried another .PNG image and BAM! white comes out.......then I realized some .PNG images worked while some didn't. Does anybody know what's causing this?
I'm still new to GIMP
And also the foreground color never changed from white and background never changed from black......... also if black is used as foreground color it works. So what's wrong with white??
Samuel2599 said:
On gimp, I opened a .PNG file, a quick setting toggle icon to be specific, it is in a greenish-yellow color and I wanted to change to white. So I set the foreground color to absolute white and picked the pencil tool, lower its size down to a pixel then I clicked on the image,expecting white color to fill the pixel, instead it "popped" out the same greenish-yellow color of the original image. Tried another tool, still the same result. But tried another .PNG image and BAM! white comes out.......then I realized some .PNG images worked while some didn't. Does anybody know what's causing this?
I'm still new to GIMP
Click to expand...
Click to collapse
Are you trying to do image masking in order to fill a particular area white?
Actually, Im trying to add white on top of the old color to as to change the whole icon to white. If that is what you also meant, then yes....
Samuel2599 said:
Actually, Im trying to add white on top of the old color to as to change the whole icon to white. If that is what you also meant, then yes....
Click to expand...
Click to collapse
I'm not sure if GIMP had anything to do with one .png's ability to work properly over another. However, it may depend on the quality of the actual image itself.

[PROJECT] Screen Recorder

Hello!
I've made a tasker project to record screen since i don't wanna use an extra app when I can do it with Tasker. I'm using it in a Zooper Widget, but you can as well export it as app.
NOTES:
1) Please let me know if you think that the "code" can be improved or that I did something unnecessary. I'm still a noob.
2) You have to run the task "Start recording" in order to start.
Click to expand...
Click to collapse
REQUIREMENTS:
● Root
● Tasker
● AutoInput Full version
● AutoNotification Full version
Click to expand...
Click to collapse
FEATURES:
● Enable/disable "show touches" option from developer options (it is done through a shell code,
)
● Set custom name for video file (the video gets saved in /sdcard0/AutoInput/ )
Click to expand...
Click to collapse
DOWNLOAD: Record_Screen.prj.xml (file is also attached at the end of post)
SCREENSHOT:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
#Henkate said:
Hello!
I've made a tasker project to record screen since i don't wanna use an extra app when I can do it with Tasker. I'm using it in a Zooper Widget, but you can as well export it as app.
NOTES:
REQUIREMENTS:
FEATURES:
DOWNLOAD: Record_Screen.prj.xml (file is also attached at the end of post)
SCREENSHOT:
Click to expand...
Click to collapse
Thanks for the cool tasker Project. It works great. I came across one error on my end. That was just the fact I didn't buy auto input and notification. I had only the lite version. Once I bought them everything worked perfectly. Thanks again pal.
Salithox said:
Thanks for the cool tasker Project. It works great. I came across one error on my end. That was just the fact I didn't buy auto input and notification. I had only the lite version. Once I bought them everything worked perfectly. Thanks again pal.
Click to expand...
Click to collapse
Im glad it helps you.
Ive edited the post saying that the full version is required for that apps.
By the way, i found out that screen can be recorded with shell code too, so AutoInput wont be required anymore. I feel bad that in a way youve purchased both apps when this can be done without it. But there are more things which can be done with this app..
I will work on an update which check if phone is rooted or not and if is rooted, it will use only shell codes and if it isnt rooted, then it will use AutoInput and Secure Settings Plugin.
My reply on reddit tasker:
Umm, then maybe I'll make an update which check if ROOT is available with %ROOT variable and use secure settings if phone isn't rooted.
I've got screenrecord working fine through shell code. Screenrecord through shell ( write in terminal emulator screenrecord --help ):
- video resolution
- set the video bit rate, in bits per second. Value may be specified as bits or megabits, e.g. '4000000' is equivalent to '4M'. Default 4Mbps.
- add additional information, such as timestamp overlay, that is helpful in videos captured to illustrate bugs
- Set the maximum recording time, in seconds. Default / maximum is 180.
Now I'm thinking to use shell codes for this and don't use autoinput & autonotification . I don't know, is just an idea
Click to expand...
Click to collapse
EDIT: It seems that screenrecord through shell can be stopped by CTRL-C or when the video reach the specified time. AutoInput still the winner.
#Henkate said:
Im glad it helps you.
Ive edited the post saying that the full version is required for that apps.
By the way, i found out that screen can be recorded with shell code too, so AutoInput wont be required anymore. I feel bad that in a way youve purchased both apps when this can be done without it. But there are more things which can be done with this app..
I will work on an update which check if phone is rooted or not and if is rooted, it will use only shell codes and if it isnt rooted, then it will use AutoInput and Secure Settings Plugin.
My reply on reddit tasker:
EDIT: It seems that screenrecord through shell can be stopped by CTRL-C or when the video reach the specified time. AutoInput still the winner.
Click to expand...
Click to collapse
No worries about having to buy the apps, I was already going to. I just honestly never got around to it. I like the idea of having full Shell commands, but I feel as you have already proven that AI and AN are the way to go. Keep up the good work, and if you ever need testers for stuff feel free to hit me up.
I wanted to share my version of your "Screen Record" project.
Didn't find any good reason to start a new thread, given the fact that I started from your code.
That being said, I've made many changes to it to suit my personal needs and I always keep adding things.
Android version: 8.0 (needed for long tap)
The main changes on the attached "project" file are:
Removed the use of global variables and the use of scenes
Recording is now initiated from a Quick Settings tile (single tap for recording with touches, long tap for recording without touches)
During the recording, I block all notifications
The recording stops in two ways: a) press tile or b) shake phone. (I prefer latter so as the video to remain clean)
The video has a default name. Once recording stops, user is prompted to enter a new name. (I do that using the AWESOME AutoTools, but can be easily replaced by a scene)
At the end, the folder containing the video is added.
Additional (not included) and future functionality:
Share file with specified device using Join
[Future] Select directory to save the file
[Future] Define a time for which the file should remain stored, then it gets deleted (I tend to forget files!)
Requirements:
Root, to enable show touches (can be overpassed using AutoInput)
AutoInput for recording (required)
AutoNotification for tile and blocking notifications (optional: can use Tasker tile and not block notifications)
AutoTools for a RegEx extraction and dialogue displace (optional: can be replaced by tasker actions and a scene)
Some different icons (attached zip file): I've used a bunch of icons (copy the Essential Set folder to your Tasker>.icn directory), credits to the creators at https://www.flaticon.com/ (Essential Set)
If anyone wants help in editing this, I'm more than happy to help.
Also if you can think of any features to be added, please let me know.
sumotori1 said:
I wanted to share my version of your "Screen Record" project.
Didn't find any good reason to start a new thread, given the fact that I started from your code.
That being said, I've made many changes to it to suit my personal needs and I always keep adding things.
Android version: 8.0 (needed for long tap)
The main changes on the attached "project" file are:
Removed the use of global variables and the use of scenes
Recording is now initiated from a Quick Settings tile (single tap for recording with touches, long tap for recording without touches)
During the recording, I block all notifications
The recording stops in two ways: a) press tile or b) shake phone. (I prefer latter so as the video to remain clean)
The video has a default name. Once recording stops, user is prompted to enter a new name. (I do that using the AWESOME AutoTools, but can be easily replaced by a scene)
At the end, the folder containing the video is added.
Additional (not included) and future functionality:
Share file with specified device using Join
[Future] Select directory to save the file
[Future] Define a time for which the file should remain stored, then it gets deleted (I tend to forget files!)
Requirements:
Root, to enable show touches (can be overpassed using AutoInput)
AutoInput for recording (required)
AutoNotification for tile and blocking notifications (optional: can use Tasker tile and not block notifications)
AutoTools for a RegEx extraction and dialogue displace (optional: can be replaced by tasker actions and a scene)
Some different icons (attached zip file): I've used a bunch of icons (copy the Essential Set folder to your Tasker>.icn directory), credits to the creators at https://www.flaticon.com/ (Essential Set)
If anyone wants help in editing this, I'm more than happy to help.
Also if you can think of any features to be added, please let me know.
Click to expand...
Click to collapse
Those are great improvements!
You're free to create a new thread. That way, more people can see your project. It's your choice.
By the way, I've seen your post just because I've checked that page where I can see all the threads I've created, otherwise I wouldn't have seen your post because you haven't quoted my post nor mentioned me. Just a friendly tip, next time you want to contact/ask someone thing or reply him, you should quote his post or mention his name because he'll receive a notification.
@#Henkate Yes should have done that pal, sorry. Hope this one at least works.
I feel you on the use of plugins. That's why I mentioned the fact that all but AutoInput can be substituted for something Tasker native. Maybe I should try and do the same variant without (at least) AutoTools for others to use it more freely. But I'm rubbish on the artistic side of a GUI. But a simple dialogue will suffice I guess.
sumotori1 said:
@#Henkate Yes should have done that pal, sorry. Hope this one at least works.
I feel you on the use of plugins. That's why I mentioned the fact that all but AutoInput can be substituted for something Tasker native. Maybe I should try and do the same variant without (at least) AutoTools for others to use it more freely. But I'm rubbish on the artistic side of a GUI. But a simple dialogue will suffice I guess.
Click to expand...
Click to collapse
I'm sorry for the late reply.
Yep, it worked. I've got the notification .
Forget what I've wrote about the plugins. I've edited my post after I've wrote that but I see that you've already read it. I've forgot that I've used AutoInput and AutoNotification myself lol.
To be honest, i'm not good at designing neither .
I'm not using Tasker anymore since some time, but I'm looking forward to see what further changes you'll make to your project. Good luck!
Hi, I use Stork.ai. It's the best for me.

Categories

Resources