Hey, after messing with the new Launcher of Facebook we can see some of the reverse engineering with the Facebook Home apk.
We will benefit from the new forums recently added for Developers!
Remember it's only with educational intentions! No thermonuclear wars supported!
Let's start!
Important findings!
The Feature called Home it's established inside the code as Dash.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title_activity_dash">Facebook Home</string>
<string name="[B]settings_dash[/B]">Facebook Home settings</string>
<string name="[B]enable_dash[/B]">Enable Facebook Home</string>
The Main Process seems to be DashActivity:
Code:
<activity
android:theme="@style/Theme.FacebookDark"
android:label="@string/title_activity_dash"
android:name="com.facebook.dash.activities.DashActivity"
android:process=":dash"
android:taskAffinity="com.facebook.dash.dashtask"
android:clearTaskOnLaunch="true"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
<intent-filter>
<action android:name="com.facebook.intent.action.DASH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="com.facebook.intent.action.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
How does it work
The launcher apk AKA com.facebook.home it's just a very poor coded apk with a recalling method to the official Facebook apk AKA com.android.katana. As the Home app doesn't include too many code we will expect that Facebook Home will work on any android device while it accomplishes the minimum requirements. For the moment the launcher only supports the portrait options and it's not finished (like the experience in the Apps page).
How does it feel
The launcher without any sync account it's very easy to use. First you locate your profile picture that with some swipe methods we will Access to the Camera, the apps or the last app launched. It's oriented in a 100% to share content to facebook with the Status, Photo and Check in options in the top. If you wanna dismiss it you can swipe down easily.
Feedback Device List
RK29 Tab - Working - CM10
Galaxy S I9000 - Working - CM10.1
Please continue with the Reverse! Any important comment will be added to the Original Post!
I am attaching the source build environment of com.facebook.home and com.facebook.katana. Based on decompiled sources!
See you!
Lol it's the intent-fair of this year
{
"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"
}
It worked in my i9000 with the leaked version but no with the official.
Sent by the force with a CM10.1 device!
SferaDev said:
It worked in my i9000 with the leaked version but no with the official.
Sent by the force with a CM10.1 device!
Click to expand...
Click to collapse
Official version working on gti9000 here. Edited my build prop to galaxy s3 though to get it to work.
Sent from my GT-I9300 using Tapatalk 2
knuckles1978 said:
Official version working on gti9000 here. Edited my build prop to galaxy s3 though to get it to work.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Ok! I'll try to edit the build.prop.
But it's one time progress or I must stay with the build.prop changed?
Sent by the force with a CM10.1 device!
I am thinking to build a light version of Facebook home, without the launcher and all the crappy stuff.
Help is always appreciated
Related
{
"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"
}
Slim JB for GT-S5830 Galaxy Ace is here.
IMPORTANT: FEATURE REQUESTS WITHOUT LINK TO SOURCE/COMMIT WILL BE IGNORED.
Verry Smooth
Easy to customize features (thanks to Jellaxy team)
ROM - 107MB [Google Apps are 25MB and included]
Multilanguage
Lockscreen Options ( Calendar, Weather etc )
Screenshot via Customizable Nav Bar
Bulid.prop Tweaks
Lightning Launcher
OTA Updater
All out of HD Video Play
Found Bug? Write Me A PM
V1: http://www.mediafire.com/?ma388ktj2617no5
How To
1: When u Upgrade From Stock:
1: wipe data
2: wipe cache
3: Flash Rom
2: When u Upgrade From CM or CM Based Roms:
1: Flash Rom
3: When u Upgrade from other Custom Roms Like AOSP or MIUI:
1: wipe data
2: wipe cache
3: Flash Rom
Changelog:
V1:
LWPs Removed
Gapps Included
Lighting Launcher Added
build.prop tweaks
app tweaks
governor tweaks
Bootanimation Removed
Some Other Tweaks
1st, Post Screenies and I'll check it out :highfive:
EDIT
2
\o
Link to download?
Sent from my GT-S5830 using xda app-developers app
olveeraa said:
Link to download?
Sent from my GT-S5830 using xda app-developers app
Click to expand...
Click to collapse
im uploading
mediafire is sooo slowv
Originally Posted by olveeraa<br />
Link to download?<br />
<br />
Sent from my GT-S5830 using xda app-developers app
Click to expand...
Click to collapse
<br />
<br />
im uploading <br />
<br />
mediafire is sooo slowv
Click to expand...
Click to collapse
Thank You man nice job
Sent from my GT-S5830 using xda app-developers app
which launcher you use?
Nice reflection icons in Drawer
Gilmar Mess said:
which launcher you use?
Nice reflection icons in Drawer
Click to expand...
Click to collapse
Lightning Launcher
installation process?
Wipes?
Format?
Gilmar Mess said:
installation process?
Wipes?
Format?
Click to expand...
Click to collapse
check out secound theard
does the camera work fine??
G.Galante said:
does the camera work fine??
Click to expand...
Click to collapse
yes
pidio1 said:
yes
Click to expand...
Click to collapse
try soon
the roms is fast and smoth? i download and install
Does anyone confirm that tethering work in this rom?
thank you.
What kernel should I use
Sent from my GT-S5830 using xda app-developers app
Strong Lag for me
=x
Wallpapper
Man how to change wallppaper? In lighting launcher?
Sent from my GT-S5830 using xda app-developers app
Here i am going to put a tutorial of how to translate to your lenguage firefox OS.
IMPORTANT I AM TRYING TO FIND HOW TO HAVE MORE THAN ONE LENGUAGE RUNNING IF YOU TRANSLATE YOU LOSE ONE LENGUAGE
First descompile your ROM
Then go to data/local/webapps here you will find all apps to translate.
Now install a program for edit .html and notepad if you are in windows.
We are going to use settings.gaimobile.org to translate
We open the folder and we will see a ZIP call aplication you unzip it.
Now we open index.html with a html editor:
{
"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"
}
In the code:
<!-- Main List -->
<section role="region" id="root">
<header>
<h1 data-l10n-id="settings">Settings</h1> Here you translate the CODE only the word!!!
</header>
<!-- Main :: Network & Connectivity -->
<header>
<h2 data-l10n-id="networkAndConnectivity">Network & Connectivity</h2>
</header>
<ul>
<li>
<label>
<input data-type="switch" name="ril.radio.disabled" type="checkbox">
<span></span>
</label>
<a id="menuItem-airplaneMode" class="menu-item" data-l10n-id="airplaneMode">Modo Avión</a>
</li>
<li>
<label>
<input data-type="switch" name="geolocation.enabled" type="checkbox">
<span></span>
</label>
<a id="menuItem-gps" class="menu-item" data-l10n-id="gps">GPS</a>
</li>
<li>
<small id="wifi-desc" class="menu-item-desc" data-l10n-id="fullStatus-disconnected">Offline</small>
<a id="menuItem-wifi" class="menu-item" href="#wifi" data-l10n-id="wifi">Wi-Fi</a>
</li>
<li>
<small id="call-desc" class="menu-item-desc"></small>
<a id="menuItem-callSettings" class="menu-item" href="#call" data-l10n-id="callSettings">Ajustes de llamada</a>
Then when you finnish editing all save it.
You can see what you have done opening it with a broswer.
Then you comprime it when you finnish and you try it.
This app per app.
I WILL POST MORE THINGS
How to localize FirefoxOS
You can contribute to FirefoxOS translation using one of localization platforms such as mozilla.locamotion.org
Get in touch with the Mozilla Localization team of your language to learn more.
thanks
谢谢
这对以后用其他语言的wepapp非常有用。:good:
Good new!
Now I found new way to add language without delete another language
Go to B2G/gaia/shared/resource/language.json
and add new language (i add "th" : "ไทย",)
so now build and flash it you will found new language support at first time boot
Hey all!
If you have noticed, on ICS/JB there is a little transition when you click on a chooserbox. This is a nice feature which I like very much!
After doing some investigation on framework I realized that on res/drawable-mdpi there were some pngs which are needed for this feature to work.
{
"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"
}
Click to expand...
Click to collapse
Actually this feature exists on gingerbread but there aren't enough xmls to activate it. Seems like Google has abandoned the project because of some reasons. The closest reason is this :
"Google have not implemented the full sources of it because they wanted to reserve it for future releases. [On ICS/JB]"
Why do i think so? Because @SpaceCaker has discovered many secrets whose nature is like in our case. He has discovered weather information on lockscreen, Music Player Control on Lockscreen and also some codes and smalis which are present on ICS.
[Actually, I have used custom sources rather than using google's one]
Today I gonna show you how to fully implement it on GB! :victory:
Requirments :
-APK Multi Tools
-Notepad++
-Knowledge about xmls
-Sources on attachments
Click to expand...
Click to collapse
- Decompile framework-res.apk
1. Go to res/drawable/list_selector_background.xml
You will see something like this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="@color/transparent" />
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_disabled" />
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/[B]list_selector_background_disabled[/B]" />
[COLOR="red"]<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/[B]list_selector_background_transition[/B]" />[/COLOR]
<item android:state_focused="true" android:drawable="@drawable/list_selector_background_focus" />
</selector>
2. Change the 2 red lines. It will look like this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="@color/transparent" />
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_disabled" />
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_background_disabled" />
[COLOR="Red"]<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/[B]sniper_killer[/B]" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/[B]sniper_killer[/B]" />[/COLOR]
<item android:state_focused="true" android:drawable="@drawable/list_selector_background_focus" />
</selector>
3. Download the Highlight Chooserbox_source.zip in the attachment, extract it and put sniper_killer.xml on drawable folder.
It consists these lines :
Code:
<item android:duration="20" android:drawable="@drawable/sniper_status_bar_item_pressed_anim2" />
<item android:duration="20" android:drawable="@drawable/sniper_status_bar_item_pressed_anim2" />
<item android:duration="30" android:drawable="@drawable/sniper_status_bar_item_pressed_anim3" />
<item android:duration="30" android:drawable="@drawable/sniper_status_bar_item_pressed_anim4" />
<item android:duration="40" android:drawable="@drawable/sniper_status_bar_item_pressed_anim5" />
<item android:duration="50" android:drawable="@drawable/sniper_status_bar_item_pressed_anim6" />
<item android:duration="60" android:drawable="@drawable/sniper_status_bar_item_pressed_anim7" />
<item android:duration="60" android:drawable="@drawable/sniper_status_bar_item_pressed_anim8" />
4. Put the PNGs on res/drawable-mdpi
5. Recompile framework-res.apk and test
Click to expand...
Click to collapse
Proof :
[The transition changes in miliseconds making it impossible to capture.
But after tries and tries i finally managed to capture the transition ]
[Confirmed to be working on CM7.2]
Pressed :
Click to expand...
Click to collapse
Selected :
Click to expand...
Click to collapse
Credits :
-ryanfebriyadi
-Google
-Me
Click to expand...
Click to collapse
Developers, if you decide to use it on your ROM just put my name on the credits! :good:
Leave a thanks if you find this helpful! :good:
First!!
Great Work
Thank you, will use this and put your name on credits
Hi,
i've got my GT-I9505 for almost 2 weeks now, nearly soft-bricked it twice, but successfully rooted and installed Xposed Framework.
I would like to play Popcaps Chuzzle on it. Sadly the exclusive selling over amazon wasn't a good idea, so it isn't continued and not optimized for devices with higher resolutions (only 320x480).
While the Galaxy Tab has a compatibility feature to scale old apps, the S4 doesn't provide such. So the plan was to use Xposed App Setting to change the DPI for Chuzzle. But that doesn't work. Changing the resolution for normal apps like Google Play Store and such works great, all fullscreen games seems to ignore the app settings.
{
"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"
}
Any suggestions?
PS.: As amazon no longer sells Chuzzle PM me if you need the APK for testing.
So, I tryed another way... and failed again.
I've tryed to modify the apk to change the manifest. The manifest didn't contain a <supports-screens /> yet, so I created two modded versions with
HTML:
<supports-screens android:compatibleWidthLimitDp="252" />
and
HTML:
<supports-screens android:resizeable="false" />
to force Android to display them in compatibility mode. But both didn't change anything.
Sadly I haven't coded any app yet, so I don't have any experience with the screen behaviors.
The game isn't even that good, that it deserves that effort, but it really bothers me that I'm not able to get it running. Please help
Xposed App Settings
jpossi said:
So, I tryed another way... and failed again.
I've tryed to modify the apk to change the manifest. The manifest didn't contain a <supports-screens /> yet, so I created two modded versions with
HTML:
<supports-screens android:compatibleWidthLimitDp="252" />
and
HTML:
<supports-screens android:resizeable="false" />
to force Android to display them in compatibility mode. But both didn't change anything.
Sadly I haven't coded any app yet, so I don't have any experience with the screen behaviors.
The game isn't even that good, that it deserves that effort, but it really bothers me that I'm not able to get it running. Please help
Click to expand...
Click to collapse
The module App Settings doesn't support changing DPI and Resolution of native apps, as of today (not just this game you're talking about). The code they've is too simplistic to achieve that. To their credit, their solution is clean enough. You can reach out and raise a request with the developer of the App Settings Xposed module to get support out for ALL apps, and not just java apps.
Try ParanoidAndroid meanwhilst. Their Hybrid Settings that changes per app DPI/Resolution is more powerful.
Hi friends ,
I just want to share one simple and very usefull guide about making Transparent framework mod for deodexed 4.1+ roms. A big thanks to @Dickey Kid'deviel for giving permission to share his work.
There's many guide for doing this but the different on this guide is its more easy and some fix for some popup dialog background
and make it looks perfect on Xperia 2012/2013/2014 devices..
Already Tested and Working On:
- Xperia M XMS/XMD JB 4.1, 4.2, 4.3
- Xperia L JB 4.2
- Xperia V JB 4.3
- Xperia M2 JB 4.3
- Xperia Z KK 4.4.2
- Xperia Z1 KK 4.4.4
- Xperia P / S JB 4.1.2
- And maybe working on any other Xperia devices.
So here you go ....
1. Decompiled your framework-res.apk
2. Open styles.xml
Find:
<style name="Theme.NoDisplay" parent="@style/Theme">
Then Add:
<item name="windowShowWallpaper">false</item>
Click to expand...
Click to collapse
Find:
<style name="Theme.DeviceDefault.Light.Dialog" parent="@style/Theme.DeviceDefault.Light">
Then Add:
<item name="windowShowWallpaper">false</item>
Click to expand...
Click to collapse
Find:
<style name="AlertDialog.DeviceDefault" parent="@style/AlertDialog.Holo">
Then Add:
<item name="windowShowWallpaper">false</item>
Click to expand...
Click to collapse
Find:
<style name="AlertDialog.DeviceDefault.Light" parent="@style/AlertDialog.Holo.Light">
Then Add:
<item name="windowShowWallpaper">false</item>
Click to expand...
Click to collapse
Find:
<style name="Theme.Holo" parent="@style/Theme">
And Change It To:
<style name="Theme.Holo" parent="@style/Theme.Wallpaper">
Click to expand...
Click to collapse
And Search Below:
<item name="windowShowWallpaper">false</item>
Click to expand...
Click to collapse
Change It To:
<item name="windowShowWallpaper">true</item>
Click to expand...
Click to collapse
Find:
<style name="Theme.DeviceDefault.Light" parent="@style/Theme.Holo.Light">
Then Add:
<item name="windowShowWallpaper">true</item>
Click to expand...
Click to collapse
3. Open drawable hdpi and find "semc_bg" and semc_bg_light and make it transparent, or you can download transparent png on the attachment below.
4. Recompile and Done.
SCREENS
{
"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"
}
I will try
Sent from my C2305 using Tapatalk