[Q] how to make the stock launcher widgets visible in other launchers - Sony Xperia P, U, Sola, Go

Dear m8s
there's no doubt that Xperis S stock launcher is awesome
but still i want to experience other launchers
for me, i found Nemus launcher is so great
my only problem is that i can't place the stock widgets (timescape) and Accuweather on any of the home screens
as it's not available in Widgets list in any launcher except the stock one only
tried some other launchers to check, and result is still the same
available only in stock launcher widgets list
and not available for any other launcher
My Q is, is there any method i could make the stock launcher widgets list available for all launchers
i'm sorry to place a Q in this forum, but i think my Q is related to this forum only
i'm not trying to break any rules
Thanks in advance.

You can't use Sony widgets with other launchers.

I've wanted this for a while but my research yielded nothing :-(
Sent from my XperiaS via subspace beacon.

Not possible...sorry and actually that is the reason I didn't move to other launchers...

i really can't believe it that Devs can cook a complete ROM
and they r unable to port some widgets only !!

ChIcO*GsM said:
i really can't believe it that Devs can cook a complete ROM
and they r unable to port some widgets only !!
Click to expand...
Click to collapse
You see, when you modify the stock firmware, you don't have sources for anything but the kernel. You can add tweaks and overclocking and init.d without going deeper, but after that it's all decompiling. You probably know a toolchain named smali. If you don't, smali is like assembly for Android. You can't get java code from a built app, just as you can't get C++ from an EXE. Now say we want a part of that app ( widgets ). This is the very moment smali comes in. With smali, you can get some very basic, assembly like code from a prebuilt app. That's the code Android uses to run it. And that's where the interesting things are. To allow using Sony widgets on other launchers, you need to find the code responsible for loading them, displaying them and all the code the previous two depend on. It can be in the launcher or in the frameworks, so it's two huge source trees that you can't even search through. When you get all this code, you need to integrate it into your launcher app. Ironically, Android doesn't support smali code directly, so you have to either rewrite it back into Java ( which is hard) or build your launcher first and then add the code using smali ( which is not easier) .

K900 said:
You see, when you modify the stock firmware, you don't have sources for anything but the kernel. You can add tweaks and overclocking and init.d without going deeper, but after that it's all decompiling. You probably know a toolchain named smali. If you don't, smali is like assembly for Android. You can't get java code from a built app, just as you can't get C++ from an EXE. Now say we want a part of that app ( widgets ). This is the very moment smali comes in. With smali, you can get some very basic, assembly like code from a prebuilt app. That's the code Android uses to run it. And that's where the interesting things are. To allow using Sony widgets on other launchers, you need to find the code responsible for loading them, displaying them and all the code the previous two depend on. It can be in the launcher or in the frameworks, so it's two huge source trees that you can't even search through. When you get all this code, you need to integrate it into your launcher app. Ironically, Android doesn't support smali code directly, so you have to either rewrite it back into Java ( which is hard) or build your launcher first and then add the code using smali ( which is not easier) .
Click to expand...
Click to collapse
in short words
i have to wait till Android support this smali
or to wait for some Dev to wast his time on this
as i dun have any other solution yet
So,Waiting .....

Related

[Q][Help] Porting .apk's WP7 style

Hi i found apk's styled to Windows Phone 7 (Mms.apk, Phone.apk, Contacts.apk, and there is framework-res.apk, and much more) it is made for Galaxy S I9000.
here is originar thread:
http://forum.xda-developers.com/showthread.php?t=910918
is there any option or someone who can help or port those apk's to X10 mini pro.
i don't have so much knowledge to do that i only know how to resize png's and decompile apk.
I'll be grateful for any help
Well, porting will be much work..but at least there are some developers creating some WP7 apps, they are even working on our QVGA devices
Have a look at: WP7Android.com
If you make a little contribution you get access to all (full version) apps - for lifetime!
Theming the framework-res.apk (statusbar, buttons and all that stuff) is not that big problem, but how to resize an app, i don't know either so we need some more help
Apkmanager or apktool, it has nice enviorenment and noob friendly ui
@Nitroboy tnx i will take al look
@ glavic i allready have apkmaneger for decompiling and compiling and so.
I dont know how is with smali and java :/
Sent from my U20i using XDA Premium App
Here is the original thread in XDA: WP7Android UI - UPDATE 6.1: WP7Contacts 1.1 Update
Like you see, some apps are free...
EDIT: When downloading app it requires a password...
Nitroboy77 said:
Well, porting will be much work..but at least there are some developers creating some WP7 apps, they are even working on our QVGA devices
Have a look at: WP7Android.com
If you make a little contribution you get access to all (full version) apps - for lifetime!
Theming the framework-res.apk (statusbar, buttons and all that stuff) is not that big problem, but how to resize an app, i don't know either so we need some more help
Click to expand...
Click to collapse
Well, now the new site since August 10 is: http://sevenplusandroid.org/
And I found also this theme here in the forum: http://forum.xda-developers.com/showthread.php?t=1219691
I just want to clarify that http://sevenplusandroid.org is not the new website, but rather a separate organization from http://wp7android.com. While some of WP7Android's developers (notably ZPlayer and WP7Lock) have joined us, a number of other developers are a part of this project (notably Timo of Launcher 7), and it is under different management so to speak. Nonetheless the ideas are similar, we seek to provide an entire suite of applications for any Android device with the WP7 style user interface.

[Q]Anybody know if it's possible to . . .

I have a very nice icon overlay I would like to use over all of the icons placed on home screens or in the app tray by Rosie.
I am assuming if I find the spot in Rosie where it places those icons after getting them from the apps, I could add this in.
I can add the overlay to each APK by hand, but this will only work for APKs included in the ROM, whereas putting it into Rosie would put it on all of them, even user installed ones.
Thoughts? Anybody done or seen anything like this?
D
.
dsb9938 said:
I have a very nice icon overlay I would like to use over all of the icons placed on home screens or in the app tray by Rosie.
I am assuming if I find the spot in Rosie where it places those icons after getting them from the apps, I could add this in.
I can add the overlay to each APK by hand, but this will only work for APKs included in the ROM, whereas putting it into Rosie would put it on all of them, even user installed ones.
Thoughts? Anybody done or seen anything like this?
D
.
Click to expand...
Click to collapse
That would need to be coded and supported into the launcher application. Stock aosp, and rosie I don't think support that, there are other launchers that do support it though with a theme apk. Like Go Launcher or ADW.
Unless you are asking something else?
lithid-cm said:
That would need to be coded and supported into the launcher application. Stock aosp, and rosie I don't think support that, there are other launchers that do support it though with a theme apk. Like Go Launcher or ADW.
Unless you are asking something else?
Click to expand...
Click to collapse
No, I was totally talking about hacking it into Rosie.
I know there are overlays used for other things, so I was just considering the idea of adding one for this.
Not as a user option, as something automatically done to all icons.
D
.
dsb9938 said:
No, I was totally talking about hacking it into Rosie.
I know there are overlays used for other things, so I was just considering the idea of adding one for this.
Not as a user option, as something automatically done to all icons.
D
.
Click to expand...
Click to collapse
I have no smali experience, and don't really have an interest. Hopefully someone else can help then.
lithid-cm said:
I have no smali experience, and don't really have an interest. Hopefully someone else can help then.
Click to expand...
Click to collapse
LOL, that's fine. I'm sure it's XML, not smali, but thanks for looking anyway.
D
.
dsb9938 said:
LOL, that's fine. I'm sure it's XML, not smali, but thanks for looking anyway.
D
.
Click to expand...
Click to collapse
Its most definitely not just xml edits. You will need to write code into the launcher to accept different icons based on package name. Currently the launcher uses a default api to retrieve the icon attached to the launcher intent. Be my guest to get it working with only xml edits though.
lithid-cm said:
Its most definitely not just xml edits. You will need to write code into the launcher to accept different icons based on package name. Currently the launcher uses a default api to retrieve the icon attached to the launcher intent. Be my guest to get it working with only xml edits though.
Click to expand...
Click to collapse
I don't want to change it pulling the icon from the app.
After it does that, when it renders it, I want to add the overlay on top. Which I am hoping I can do in the layout XML files.
Of course, I could be completely wrong, which is why I posted this.
D
.
dsb9938 said:
I don't want to change it pulling the icon from the app.
After it does that, when it renders it, I want to add the overlay on top. Which I am hoping I can do in the layout XML files.
Of course, I could be completely wrong, which is why I posted this.
D
.
Click to expand...
Click to collapse
Right, you need to code in the overlay. Overlay via xml that you are thinking of only works when building from source. An example is the amount of code needed to theme a rom like cm7, cm9, cm10. These all have that ability to theme the icons based on activity name in the framework, if that activity path and image exists, it displays a different image. This is done in code, not xml.
lithid-cm said:
Right, you need to code in the overlay. Overlay via xml that you are thinking of only works when building from source. An example is the amount of code needed to theme a rom like cm7, cm9, cm10. These all have that ability to theme the icons based on activity name in the framework, if that activity path and image exists, it displays a different image. This is done in code, not xml.
Click to expand...
Click to collapse
Guess it's a good thing I asked before diving in then.
Thanks for the info.
Being an HTC guy who only messes around with Sense, I have some smali under my belt, but I am by no means good at it. So I guess I will seek help from somebody who is.
Thanks a bunch!
D
.
Here is some code from ADW that enables the icons to be themed.
Part1
https://github.com/CyanogenMod/andr...mmit/84457c8837dfd62f11f616de50289860b8542887
Part2
https://github.com/CyanogenMod/andr...mmit/6c6ae4a8d5dc538b337e4d0206ac75358b31044c
This toggles on/off the icon themes:
https://github.com/CyanogenMod/andr...mmit/8236848db5c80e5cb8f2e1cbba74e7fa194dfb1f
In order for you to enable "icon" overlay support, you will need to add code in to support it. I am sorry.
lithid-cm said:
Here is some code from ADW that enables the icons to be themed.
Part1
https://github.com/CyanogenMod/andr...mmit/84457c8837dfd62f11f616de50289860b8542887
Part2
https://github.com/CyanogenMod/andr...mmit/6c6ae4a8d5dc538b337e4d0206ac75358b31044c
This toggles on/off the icon themes:
https://github.com/CyanogenMod/andr...mmit/8236848db5c80e5cb8f2e1cbba74e7fa194dfb1f
In order for you to enable "icon" overlay support, you will need to add code in to support it. I am sorry.
Click to expand...
Click to collapse
No worries, it's good to have input from people who know more than I do.
I was hoping it would be easier, just adding my overlay in the layout XML files over top of the app icons, but life is never easy.
D
.

Galaxy S3 Alarm Clock Widget Source Code

I have searched here and googled - but perhaps my google-fu isn't as good as it could be.
I am trying to find the source code for the Alarm Clock Widget on the Galaxy S3. If I could find the source code for the whole alarm clock app as well that would be awesome!
Does anyone know where I could find it and how I could get that source code? A friend of mine who has been tinkering with building his own ROMS told me that I would have to decompile an APK file and get the source code from there.
Reason behind this is that I am learning android development and really like some of the alarm clock features/functionality the stock one has, but wanted to just add a few simple features I find it's lacking. I figure their code should be just fine to look from and pluck things out of to assist me on my way - I just don't know how to get it.
Any thoughts? Anyone know where I may find this source code? And/or how I would go about tearing down an APK to get it if I need to?
You won't find.source code for any manufacturer app or 99% of all apps in the market as most are closed source...
Like your friend said your gonna have to.decompile it...but your also gonna have to decompile the twframeworks as a lot of the "cool" features are there...but called on from the clock app
To decompile just search for "apktool"
apktool d appnamehere.apk
-decompiles app
Apktool b appnamehere
-builds the app again...don't add the .apk...you just need the name of the folder for the decompiled app which by default is the app name
You'll then be looking into a bunch of xmls and smalis which I am not familiar with...good luck
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
You won't find.source code for any manufacturer app or 99% of all apps in the market as most are closed source...
Like your friend said your gonna have to.decompile it...but your also gonna have to decompile the twframeworks as a lot of the "cool" features are there...but called on from the clock app
To decompile just search for "apktool"
apktool d appnamehere.apk
-decompiles app
Apktool b appnamehere
-builds the app again...don't add the .apk...you just need the name of the folder for the decompiled app which by default is the app name
You'll then be looking into a bunch of xmls and smalis which I am not familiar with...good luck
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Perfect. That gives me a great jump and a better understanding.
I would just have to find the ROM of the default Galaxy S3 OS right? Or am I misunderstanding something?
hanny137 said:
Perfect. That gives me a great jump and a better understanding.
I would just have to find the ROM of the default Galaxy S3 OS right? Or am I misunderstanding something?
Click to expand...
Click to collapse
You will need the TW framework of the ROM you will be modding the apk for and the actual clock widget apk as well. The TW framework is just required to install certain dependencies. Once you decompile the clock widget, you'll have to poke around the smali code and try to make sense of it. From what I know, even most proficient developers take a bit to actually understand smali since it's kind of a "programming language" in its own right. Good luck though
Sent from my SPH-L710 using xda premium
Ceelos09 said:
You will need the TW framework of the ROM you will be modding the apk for and the actual clock widget apk as well. The TW framework is just required to install certain dependencies. Once you decompile the clock widget, you'll have to poke around the smali code and try to make sense of it. From what I know, even most proficient developers take a bit to actually understand smali since it's kind of a "programming language" in its own right. Good luck though
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Apparently I have a lot to learn! I thought once it was decompiled it was the source code.
I'm far to new of a programmer to probably be able to make much sense of the 'smali' in that case - and would probably be spinning my wheels to get a TWFramework, find the proper apk for the widget and decompile it - only to not be able to understand it.
Guess I will have to just work from the ground up on this, which is more work - but hopefully I can make it do what I want. I just figured if I could it would be easier to utilize some of the existing code to make it look/feel like the original.

"Newbie" looking to create a "standard" android theme. Some starter questions

"Newbie" looking to create a "standard" android theme. Some starter questions
Hello,
I am not new to Android but I have had a tough time finding a "native" way to create themes. I do not want to use a theme launcher or an alternative home app. I just want to use the standard android home app and create a theme for it. I took a brief look at the theme starting page above but none of the links I tried work. I just want to use the standard android theme (it fits my tastes closely enough) and change only a few things (for now). Here is what I want to change:
Wallpaper (so that it changes periodically through a "slide show"... only one shows currently... I have already some of these)
Lock out Wallpaper (so that a different one shows every time like it currently does... I have already created these)
Replace specific icons (I already have the icons I want to use)
Possibly replace colors of one or two apps (such as texting).
Is it possible to do this?
I have done some initial exploring on my own. My phone came with one theme (and the default theme) and that is it. I found it on my phone and decompiled it. It appears a bit more complex than I was hoping though I understand most of it. There are lots of extra icons I do not want to replace so I have a few questions which are number in parenthesis. First, there appears to be some sort of pseudo java code. I know both C++ and C# and have used them extensively. However Java isn't nearly as familiar. It does not however seem to quite fit the Java syntax I have seen and used in the past.
The files that contain this pseudo java code also seem to define the file names to use for each icon followed by a hex code which I am assuming is the activity that the file is associated with. However, I have not found where it defines the lock out wallpaper. (1) If I only specify specific icons, will the default android icon be used or do I need to identify them all? (2) If I need to do them all, is there a location to download the standard theme for Java 6.0.1 (the version on my phone?) (3) Is there a standard format for themes that can be used by the Android Home/Launcher? (4) Is someone going to update the sticky post above with more recent file links?
I found this icon pack generator tool. (5) Does it create "standard" icon packs that can be used without a third party launcher? I still would like to integrate my own wallpapers and lockout wallpapers though.
primem0er said:
Hello,
I am not new to Android but I have had a tough time finding a "native" way to create themes. I do not want to use a theme launcher or an alternative home app. I just want to use the standard android home app and create a theme for it. I took a brief look at the theme starting page above but none of the links I tried work. I just want to use the standard android theme (it fits my tastes closely enough) and change only a few things (for now). Here is what I want to change:
Wallpaper (so that it changes periodically through a "slide show"... only one shows currently... I have already some of these)
Lock out Wallpaper (so that a different one shows every time like it currently does... I have already created these)
Replace specific icons (I already have the icons I want to use)
Possibly replace colors of one or two apps (such as texting).
Is it possible to do this?
I have done some initial exploring on my own. My phone came with one theme (and the default theme) and that is it. I found it on my phone and decompiled it. It appears a bit more complex than I was hoping though I understand most of it. There are lots of extra icons I do not want to replace so I have a few questions which are number in parenthesis. First, there appears to be some sort of pseudo java code. I know both C++ and C# and have used them extensively. However Java isn't nearly as familiar. It does not however seem to quite fit the Java syntax I have seen and used in the past.
The files that contain this pseudo java code also seem to define the file names to use for each icon followed by a hex code which I am assuming is the activity that the file is associated with. However, I have not found where it defines the lock out wallpaper. (1) If I only specify specific icons, will the default android icon be used or do I need to identify them all? (2) If I need to do them all, is there a location to download the standard theme for Java 6.0.1 (the version on my phone?) (3) Is there a standard format for themes that can be used by the Android Home/Launcher? (4) Is someone going to update the sticky post above with more recent file links?
I found this icon pack generator tool. (5) Does it create "standard" icon packs that can be used without a third party launcher? I still would like to integrate my own wallpapers and lockout wallpapers though.
Click to expand...
Click to collapse
I've moved your thread to Q&A as I think it is more appropriate. So you want to keep the standard android launcher, depending on your device you could install a rom that has substratum support. This will allow you to keep your normal launcher but theme every aspect of your rom
sawdoctor said:
I've moved your thread to Q&A as I think it is more appropriate. So you want to keep the standard android launcher, depending on your device you could install a rom that has substratum support. This will allow you to keep your normal launcher but theme every aspect of your rom
Click to expand...
Click to collapse
What about my device would it depend on? If I even understand this question, my first guess would be my OEM. since...
I really don't know what you are talking about. Wouldn't the rom depend on the OEM? What if my OEM doesn't provide substratum report (not that I know what that is).

How do I skin my custom ROM?

I'm trying to make a custom ROM (for now, only for x86, because I don't want to flash anything on my actual phone) and I want to modify the default UI throughout the entire system. This includes colors, outlines, corners on buttons, etc. Is there something in the AOSP source that would allow me to make these changes? I'm hoping I don't have to open the source for each individual application to change the look.
MasterPixelDestroyer said:
I'm trying to make a custom ROM (for now, only for x86, because I don't want to flash anything on my actual phone) and I want to modify the default UI throughout the entire system. This includes colors, outlines, corners on buttons, etc. Is there something in the AOSP source that would allow me to make these changes? I'm hoping I don't have to open the source for each individual application to change the look.
Click to expand...
Click to collapse
Sorry to say that but you'll have to mod each and everyone of your apps to have those changes (outlined, colors).
I've heard of a substratum theme that might fit your expectations, but I you want to do it yourself (which is more fun) you'll have to modify each and every apps. When you'll mod systemUI your modification will go "system wide" (quick settings and stuff) but the phone app won't be changed.
Have a good day
@MasterPixelDestroyer
Several XPosed Framework modules exist that do the job.
Study their source code to get an idea how to tweak system UI ( read: home screen ) is done.

Categories

Resources