[HINT] How to set the default Home screen page on Galaxy Y - Galaxy Y GT-S5360 General

In /system folder open the file build.prop and add the following line
ro.csc.homescreen.defaultscreen=1
where 1 means 2nd screen page, 2 means 3rd page, etc...
(to find and edit the build.prop file use a file manager app able to navigate the /system folder and to eventually remount the /system partition in Read/Write mode if it's read only.
NOTE: Editing system files require root permissions so the Andriod system must be rooted first)
That's it!
PLEASE NO POSTS SAYING THAT THIS HINT IS KNOWN ALREADY, THANKS
(I'll explain here below why I decided to make this thread)
What will follow is just some sort of vent, nothing else; so if you are not curious just skip to read it, save your time and don't get mad at me
Why the vent? because it took me two days to find out the above, yes... TWO DAYS! almost 20 hours of Internet searches, readings, downloads, editing, file tranfers, CWM zip reworking, and a huge amount of trial&errors attempts... just to find something that was "known already"... yeah!
And the simple plain reason that made me fail to find the answer by few Google searches is that the "trick" above is nowhere associated to the Galaxy Y, hence the reason that made me decide to post the hint here in the Galaxy Y section of XDA Forum.
Here is how it started my treasure chase.
First of all: why the need to set as home page a different page than the number one?
Look at my Home screens here.
{
"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"
}
[][][]
Credits:
- Lockscreen logo and poligonal wallpaper from Hyperion GM9 ROM
- Planet view wallpaper from Aurora v1 - Sense ROM
- Custom lockscreen from myself (as I want to keep the framework system files odexed and so I didn't want to follow or use any mod that rely on modification of odexed system files)
As you can see I have three pages, the one in the center is the "home page", on the left of it I have my less used "multimedia" and "fun" apps, and on the right I have the "system tools" collection page.
By stock default the "home page" is the number 1, that is where the wallpaper left side is displayed.
So from home page swiping to the left I get the the icons from page 2 scrolling to the left as well as the underneath wallpaper that, actually advance of 1/3 of its total length.
But if from "page 1" I swipe right to reach my games folder in page 3, the icons will scroll moving to the right direction, but the wallpaper will scroll in the opposite direction (from right to left) and THAT'S what makes me feel awkward and I decided to find a way to fix it.
So the way was as simple as to set as "home page" the page number 2, instead of the stock default number one.
1st idea: find a "way" or a setting provided by the the stock launcher user interface.
By pinching the screen or touching "edit" on the home screen menu the user has the option to manage the home screen as per the number of pages and their relative order.
I hoped there was a (maybe "hidden") way to set one of the pages as the "home", but I wasn't able to find it; actually there isn't.
By the many readings I've learnt that in TouchWizard launcher v4 the option is there; there's a "home icon" at the top of each page thumbnail and by taping on it the page is then set as the default.
But that's not the case of my Galaxy Y smartphone that carry the stock TouchWizlauncher v.3 so... dead end.
2nd idea: use a CSC feature
While experimenting with my Galaxy Y I already had the chance, few months ago, to discover the existence of the /system/CSC folder and the XML files there inside, which make it possible many system customizations but that it's almost impossible to find good and complete documentation about.
Here is what I found by myself
[HOW TO] Customizing your phone via CSC (wallpaper gallery, data toggle)
and here is a related thread that I've discovered some time later after I publish my own.
[MOD] Custom CSC Codes (for All Stock Based SGS3 TMobile JB 4.1.1 ROM's)
In that thread (post #2) I found a reference to the XML tag that can be used to set the default home screen page. Here it is:
Code:
<CscFeature_Launcher_DefaultPageNumber>1</CscFeature_Launcher_DefaultPageNumber>
That's supposed to be declared inside the feature.xml file
On my stock Android I haven't found any sample of feature.xml so I downloaded and tried the one supplied by ktmdave7 on his thread but it didn't work.
I've then read (here) that file others.xml might have the same function as feature.xml, I added the tag to the others.xml file but that didn't work too.
I thought that maybe my csc xml where missing some relevant headers so I tried to find a working feature.xml made for Galaxy Y.
I found this thread here Enable Hidden CSC Features on rooted SGY and I thought I had finally found the final solution... but I was wrong
The thread main post, in fact, doesn't provide any valid link to a complete feature.xml sample working on Galaxy Y.
But I didn't give up and I somehow managed to find a site where someone shared a Zip file containing the precious feature.xml for Galaxy Y
Missing DATA SWITCH tutorial for GALAXY Y (5360) Users
But the download is only available to registered users so... I registered.
Once I finally downloaded and extracted the Zip file content... surprise! the feature.xml file was kind of empty.
I anyway tried to fill it up with some of the more meaningful headers I've seen around but all the attempts I tried were a failure... dead end
3rd idea: install TouchWiz launcher v4
As internal storage space is my main concern I prefer to keep the system files odexed (so they don't require storage space in /data partition to save the related davilk-cache).
But in some cases I might accept to use a deodexed version of some system file if I really can't find a better alternative (as, for example, my modded SystemUI.apk ).
So, after I had to give up with my previous two ideas, I started to consider to install a TW4 launcher on my Galaxy Y.
By doing some other Google searches I've found a handful of blog article, forum posts providing TouchWiz v4/4.5 even 5! for Galaxy Y... a site like this one
TOUCH WIZ 5.0 HACK FOR GALAXY Y
Yeah... but where's the link to download the apk or the CWM installer?
Seems that all the download link were broken, probably removed by the file host service admin for violation of license rights.
Well... to make a long story little less long, I managed to find and download four of this TouchWiz 4 for Galaxy Y.
TouchWiz4-v2-deodexed.zip, TouchWiz4-2-JW5-odexed.zip, TW4Launcher.apk, TW4 Launcher.zip, TW+Launcher+4+5+android.apk, Lava_Theme.zip, ToucWizUX-1.3-5x5.zip.
All Zip files were CWM installer... none of them working on my Galaxy Y, stock ROM, kernel White, CWM 5.0.2.6.
They all failed to install with Status 0 error... they failed at the mount command line.
Well... I'm not so easy to give up, am I?
So, I reworked the installers (extract the files, edit the updater-script file, make) and tried one by one.
None of them worked, not even one... the apk just failed to install (I think because of incompatible lib files) and the installation via CWM just got me to a long series of boot crash or freeze.
Another... dead end.
4th idea: reverse engineering the stock TouchWiz30Launcher.apk and hardcoding the default home screen page
Ok, this is where I never wanted to go; i'm not a professional programmer/developer, I am just someone who doesn't like to give up; but, hey! this is something too big.
I was really close to give up, but I was thinking... there must be somewhere in the launcher where the default page is declared... could it be so difficult to find it... let's try.
So I deodexed TouchWiz30Launcher.apk, and decompiled and started to give a look at the smali folder to see if anything to start with.
In the folder containing 183 smali files, one catched my attention... Workspace.smali
The name sound primising
I opened it and just at the beginning, (line 50 of 9453) I found something interesting:
Code:
.field private mDefaultScreen:I
That's the declaring of a variable that will contain a value related to the default screen... isn't it?
I then searched the code for the 1st reference of that variable and what I found is this:
Code:
.line 264
.local v0, a:Landroid/content/res/TypedArray;
const-string v1, "ro.csc.homescreen.defaultscreen"
invoke-static {v1, v2}, Landroid/os/SystemProperties;->getInt(Ljava/lang/String;I)I
move-result v1
iput v1, p0, Lcom/sec/android/app/twlauncher/Workspace;->mDefaultScreen:I
Yes, there it is!
The value of mDefaultScreen is read from ro.csc.homescreen.defaultscreen!
And ro.csc.homescreen.defaultscreen is, obviously a setting that is read from build.prop file.
THE (HAPPY ) END

Well, now I can proudly say that, thanks to this thread, unlike before, holders of Galaxy Y will have easy life to find the answer if they look for a way to change their default home screen page.
42 millions results and this thread is no. 1! (actually since the day after posting)

Related

Editing APKs to match themes (Not just app icons!)

I've never started a thread here, as I rarely have a unique idea - but this time I've decided to bite the bullet and share my experience.
It has been discussed on these forums about editing the APKs for non-stock apps in order to make the icon match the theme throughout the OS (as opposed to using Bettercut or similar to just change the homescreen icon). It has also been discussed elsewhere, but I can't find the link.
My problem was very similar, yet different, so I figured I'd play around and see what I could come up with.
I use the unbelievably sexy GlossSuite theme by Moonsspoon which uses this cool little icon in the notification bar to alert you to having a new SMS (and maybe MMS, not sure...).
{
"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 also use the app from the market called SMS Popup. If you dont know what it is, check it out - very handy. One of my favorite features of the app is that you can use it for your SMS notifications, and it allows you to set a custom vibe pattern and it will flash the LED the color of your choice - both very helpful to let you know that it's an SMS you're getting instead of a call or whatever...
You need to turn off the native SMS app's notifications when you use this feature of SMS Popup so that you dont get 2 alerts every time you get a message. The drawback to this, while using a theme like GlossSuite, is that the notification icon for messages that SMS Popup uses is the stock icon:
This is only a problem if you're OCD like myself.
I had already gotten the png icon extracted from the GlossSuite theme in hopes that I could just swap it out with the icon inside the SMS Popup apk (if I could find it, that is).
So I decided to crack open the APK for SMS Popup and see if I could find the icon used and what I could do to make it use the icon from the GlossSuite theme.
Inside the APK in the /res/drawable folder there are 2 images: The app's icon, and the icon used in the notification bar. And to make it even easier, the file name was exactly the same as the file used by the GlossSuite theme! Easy enough!
I used 7zip (WinRAR should work just fine too) to:
1. Open the APK
2. Navigate to the /res/drawable folder
3. Delete the stat_notify_sms.png
4. Drag and drop the png I extracted from the theme into it's spot
5. Delete the META-INF folder inside the SMS Popup APK
-- I got this info from the previously mentioned thread about swapping non-stock icons. It is so that when you resign the APK in the next step, the keys don't conflict with what the APK dev has used (or something like that - I admittedly don't know anything about keys and signing and all that jazz)
6. Close your archiving application.
I then used this auto-signing tool posted by "Dave Da illest 1" to resign the APK using the testkeys. It had to be edited slightly to sign APKs instead of ZIP files. If you want to download my edited version of the auto-signing tool, click here.
Uninstalled the previous version of the app, copied the APK over to my SDcard and then used AppManager to install the APK, and now:
(yes, I know there are typos...)
It works!
I'm sure most of your brainiacs here at XDA have figured this out on your own, but I couldnt find any solid information on it so I figured I'd share what little knowledge I had on the subject.
If you want to try this for yourself and want the icon from the GlossSuite theme, it is here.
And if you just happen to have GlossSuite installed and are using SMS Popup and would like my already edited version of the APK, click here.
[DISCLAIMER: If my sharing of this APK goes against any rules of the forum, please excuse my ignorance. If I find out this is the case, and a mod hasn't beat me to the punch, I'll gladly remove this link!]
So - with all that being said, I should clarify that I haven't done any theme creation (although I have edited a few pngs here and there, but nothing major), so obviously this bit of information is probably well below most of you... But if it can help anyone, then yay for my first real contribution to this community.
Awesome find. When I finally settle on a version I think I will sit down and do this for a few Apps. I havent heard anything on it before so as far as I'm concerned your the first!
|Spike|
i am trying to do something very similar- i am trying to install the file below as my status bar icon but when i use your autosign app (and the other auto sign app) i still get a "this cannot be installed on your device" or something similar....
did you have this issue ever?
After resigning with your tool did you then name it back to what is originally was or did you leave the name as to what the autosign converted it to?
fixed. apparently you need to uninstall the app first. wonder how this affects updates of it in the future?
MontAlbert said:
fixed. apparently you need to uninstall the app first. wonder how this affects updates of it in the future?
Click to expand...
Click to collapse
great find. im also curious to know how updates will affect the app (if the market place will even tell us if ther is an update)
MontAlbert said:
fixed. apparently you need to uninstall the app first. wonder how this affects updates of it in the future?
Click to expand...
Click to collapse
Yeah thanks for pointing this out - I added the "remove old version" step to my information in the original post.
And since the process goes as such, as far as the Market is concerned, the app isn't even installed on the phone, so I would assume that you won't be notified of updates.
And, of course, if you manually notice an update in the Market and install the app from there, you won't have your changes in place... would have to go thru the process again I believe.
That's where aTrackDog comes into play.
Keep all your apps uptodate even if the market doesn't know.
APrinceAmongMen said:
That's where aTrackDog comes into play.
Keep all your apps uptodate even if the market doesn't know.
Click to expand...
Click to collapse
yeah- for sure. now that i have flashed to 5.0G none of my apps show up in my downloads so i stick with atrackdog. i am wondering if an update is found by atrackdog will it be able to be installed over the top of the altered one we have installed....
2. Navigate to the /res/drawable folder
Am I supposed to open the APK on my phone or computer? I can't find this folder.
creid2352 said:
2. Navigate to the /res/drawable folder
Am I supposed to open the APK on my phone or computer? I can't find this folder.
Click to expand...
Click to collapse
you drag the apk file from your phone to your pc. from there open with 7zip.
MontAlbert said:
you drag the apk file from your phone to your pc. from there open with 7zip.
Click to expand...
Click to collapse
and how do i get the apk to my sd so i can transfer to my computer?
delete plz
Its simply just replace the image with your own, resign, install and you're good to go. Heres an example of what you could do.
I made this months ago but didn't think it was anything special so i never said anything. Lighting bolt at the top is the triangle notification.
copy it from your phone to your pc using adb.
MontAlbert said:
copy it from your phone to your pc using adb.
Click to expand...
Click to collapse
how do you pull stock apps?
I get the Apps out with "My Backup Pro"
and I modded the Weatherbug and Battery Level:
(see statusbar)
nice- i like battery level- now if only i had access to paid apps in australia so i could get it!
MontAlbert said:
nice- i like battery level- now if only i had access to paid apps in australia so i could get it!
Click to expand...
Click to collapse
For non-stock apps, you can use a free app called AppManager to copy non-protected apps to your SD card.
Or, you can just use the terminal emulator
cd data/app
ls
[shows a list of all non-protected apps installed]
cp [filename.apk] /sdcard/[backup folder of your choice]
This same method can be used for protected apps if you can find the correct folder... But I won't provide that info, because I'm sure that's against the rules of these forums.
im.l0ltn said:
Its simply just replace the image with your own, resign, install and you're good to go. Heres an example of what you could do.
I made this months ago but didn't think it was anything special so i never said anything. Lighting bolt at the top is the triangle notification.
Click to expand...
Click to collapse
Congrats. Like I said, this isn't rocket science. But for a n00b like me (and apparently others) this was good information that I'm glad I posted.
so how do edit the files in update.zip without getting an error?

[MOD][SENSE2.5TAB] Facebook Tab - Developer Thread

{
"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"
}
Thread to be used for development discussions only, install issues etc use the release thread:
[MOD][23MAR10][v1.0][SENSE2.5TAB] Basic Facebook Tab
http://forum.xda-developers.com/showthread.php?t=651007
Thread Quicklinks:
2.5.192x issue and ROMs with older facebook engine...
v1.5 Released, v2.0 Development starts here [Post#361+]
v1.5 Beta Testing details start here [Post#133+]
Information for v1.5 language files & beta drafts [Post#109+]
I'll fill in more detail here when we start doing development work.
I've placed an OLD release into the groups 4shared directory, in the projects folder.
http://manila.4shared.com
Also my tutorial (which is more a notepad at the moment) is here:
TUT Manila Tutorial 4 - Placeholder/Facebook Tab
Setup Instructions
Setup Instructions (roughly):
1. Use the Command Line Kitchen (http://forum.xda-developers.com/showthread.php?t=528548).
2. Recommend 1st copying ALL xxxxxxxx_manila files from your windows dir (keep a copy as backup too), and decompile them all using the kitchen.
3. Rename the Workspace to something else (i.e. Workspace_complete), you can use this now as reference!
4. Start again with the manila files you want to work on, you now have your "working" folder of lauc files etc.
5. Make use of the manilaHASH to convert between filenames and internal path/file references (recommend you keep a list of ones you find, you'll be surprised how useful it can be).
For editing, Programmer's Notepad is excellent, you can save your workspace, highlight the files for lauc and xml and also use the "find in files" search to find stuff in your "Workspace_complete" folder.
Useful Links
Temp Location for the stuff moved off the main thread (this post can them be referred to if the info is important):
MAIN THREAD POST #1:
-----
The stuff below will get replaced when the next version is released...
-----
This is my facebook tab, the project is a learning project, it will also have a supporting tutorial with full details of how it is built.
By it's nature the intention is it is freely available and totally open.
Before people ask, no I can't do comments, pokes, likes, notifications etc etc, I am cheating here and borrowing HTC function/pages and only changing what I have to, to obtain the function needed.
I shall attempt to add some more function soon, will be linking in with a exe which will hopefully talk to the facebook api. At the moment I am unsure how successful this will be, also what to do about facebook requiring an account to be linked with the app and how to keep multi-language support. This will become clearer as I work on it.
Also, as I start to adjust things to suit my changes, I expect to break a few things too, this will be because I don't always see the full range of HTC functionality as I test (i.e. Events etc).
Hopefully it does enough to keep everyone happy. I shall try to document the creation of the tab, but at the moment development work is 1st.
HTC has put in as much more functionality than I thought (I keep seeing new parts to it), but they also did a good job of hiding it!
Personally I think there are some excellent features and credit goes to the poor soul who got told it couldn't be a tab (this is for you and your hard work!).
Please understand, currently ALL the facebook function is by HTC, all the integration is by HTC. The MOD moves the tab and formats it to look nice and also adds some small features which I wanted (I wanted to do more but everyone was keen to have it too!). Formatting and the extras is what takes the time. If you see the 192X basic "basic tab" a simple move of the tab is a 5 min job!
I'm planning to do at least one update to this to add the bits I couldn't get going in time, plus to make it easier to configure via the settings instead of the registry. After that, I'll release a dev pack and facebok api could be added etc on top (but again must be a matter of time before we get an official one).
______
Latest WVGA Screens
Latest VGA Screens
MAIN THREAD POST #2:
-----------------------------------------
Details for v1.01 (to be removed later)
-----------------------------------------
Settings are all via the registry (for now). The "Download Data Automatically" etc in the settings subpage runs independently of the Automatic Update Period.
Registry Settings
Change these registry keys to change how it works.
[HKEY_CURRENT_USER\Software\HTC\Manila]
"Facebook.LaunchAppSel"=dword:1
Number added to Facebook.LaunchApp to determine which app is launched (entry must exist)
"Facebook.LaunchAppName0"="MS Facebook App"
"Facebook.LaunchApp0"="\\Windows\\Facebook.exe"
Path and filename of app, note \\ should be used in *.reg file to put \. Within the registry this will read as "\Windows\Facebook.exe"
"Facebook.LaunchAppArgs0"=""
Added to the end of the application call if required
"Facebook.LaunchAppName1"="Facebook IM App"
"Facebook.LaunchApp1"="\\Storage Card\\Program Files\\fim\\fim.exe"
"Facebook.LaunchAppArgs1"=""
2nd optional application. You can add any number of others at the moment.
"Facebook.LaunchWebSel"=dword:0
Same as "Facebook.LaunchAppSel" but for the web launch
"Facebook.LaunchWebName0"="Mobile Facebook"
"Facebook.LaunchWeb0"="m.facebook.com/"
"Facebook.LaunchWebArgs0"=""
"Facebook.LaunchWebName1"="iPhone Facebook"
"Facebook.LaunchWeb1"="touch.facebook.com/"
"Facebook.LaunchWebArgs1"=""
"Facebook.LaunchWebName2"="Desktop Facebook"
"Facebook.LaunchWeb2"="www.facebook.com/"
"Facebook.LaunchWebArgs2"=""
Same as "Facebook.LaunchApp#" but for the web launch
"Facebook.LastUpdateTime"=""
"Facebook.LastUpdateDate"=""
Stores the last update time/date used in the display, set by the program.
"Facebook.MyStatus"=""
Copy of your status text, set by the program, if its working ok
"Facebook.MyStatusExe"="\\Windows\\FacebookStatusUpdate.exe"
"Facebook.MyStatusScript"=""
Used to copy registry entry of My Status into the above key. Note: If you set Facebook.MyStatusExe blank, it won't try to update.
"Facebook.AutoUpdateInterval"=dword:0
Time in minutes between automatic updates. I think only runs when within the tab, set to 0 will disable automatic update (although independent of the 2 hour update on the settings page).
FAQ
Launch App/Web does not work (i.e. I get a Certificate error)
Chances are, you need to adjust the registry setting to point the selected application to the location where it is installed (or ensure you have the app installed).
Please see Agent Zach's guide here:
http://forum.xda-developers.com/showpost.php?p=6247589&postcount=470
Why do we need FacebookStatusUpdate.exe (or originally mortscript) and what does it do?
It's a limitation of what is in manila, you can only read from "HKCU\Software\HTC\Manila", unless you are only after a int value.
All the script does (or exe), is the following:
Code:
RegReadString("HKLM", "Software\HTC\FacebookSDK","Status",myStoredStatus)
RegWriteString("HKCU","Software\HTC\Manila","Facebook.MyStatus",myStoredStatus)
There may be a work around, but it would take a lot of time to test for something so simple.
MAIN POST #3:
=============================================
Below applies to v1.01 only - will be removed soon
=============================================
All-In-One Cab Install Instructions
Warnings etc
Modifying manila means various levels of messing around with the files on the device so, as with most of the mods on here, back-up often and be prepared to screw it up and hard-reset your device. All the changes explained here may or may-not work on your particular device/version of manila or perhaps it's just not going to happen today.
Instructions:
1) Ensure you have moved your tabs around at least once, via Settings Tab, this ensures the correct registry keys are present used by the cab install.
2) Run the cab and Install to Device (attached to first post).
3) Copy any language files which are missing if you need them into the windows directory (some are included).
4) If this does not work, then don't un-install, but follow the manual install instructions (ensure you copy all the files from the zip as instructed).
You don't even have to disable Sense first or anything. It'll do that, and re-start Sense for you. It's recommended to install it after a fresh hard reset for best results, but it may still work without doing so.
Thanks to Captain_Throwback for creating the cab and johncmolyneux for creating the executable that adds the correct info to the tab control file automatically so that the install is fully automated.
Please report any issues you have with the install here, so that we can try to fix them.
All-In-One Cab Uninstall Instructions
Will update soon, with precise details:
1. Replace the 26948339_manila file in your windows directory with the backup version made by the cab also in windows.
2. Then perform 5. Reset Manila as described in the manual install steps.
Note: Until this is updated, and you are not confident, you can simply disable the tab via Settings, Home Screen Tabs!
Latest: http://forum.xda-developers.com/showpost.php?p=6203074&postcount=434
Manila Sense Fix - Sense is not starting after install/uninstall
If you run into problems with Sense not starting then there are two things you can do.
1. Run moonnah's B_L_Group_FixStartManila_2.5.cab from the following thread (this should fix any problems with your tab control file):
http://forum.xda-developers.com/showthread.php?t=670116
2. Post your tab control file (26948339_manila) on the thread and we shall correct any problems and repost it.
The next release of All-In-One cab will hopefully run the FixStartManila for you so this issue will hopefully be fixed.
[USE ALL-IN-ONE CAB INSTEAD] Captain_Throwback's OLD Cab Install Instructions
I've just kept this section for now, until we are happy the all-in-one cab does what it needs to do. Let me know if you still have to use this method.
Note: 1084 views on this cab now - will monitor for use. OK removed the attached cab to avoid confusion.
Warnings etc
Modifying manila means various levels of messing around with the files on the device so, as with most of the mods on here, back-up often and be prepared to screw it up and hard-reset your device. All the changes explained here may or may-not work on your particular device/version of manila or perhaps it's just not going to happen today.
Captain_Throwback Post here
NOTE: This cab does NOT include the tab control file (26948339_manila). Because everyone's set of tabs is different, each will need to be edited individually, per the instructions HERE. The edited file should be copied AFTER the CAB is installed. The install will make a backup of your original file called "26948339_manila_orig", if you have issues with the edited file.
Instructions:
1) Install CAB (attached to this post)
2) Verify that Sense is disabled in Today items once install is complete.
3) Copy edited tab control file (26948339_manila) to \Windows folder on device. Confirm overwrite of existing file.
Either get your tab control file (26948339_manila) from \Windows folder and edit it yourself or use a pre-written one which matches all the tabs orginally listed in your Settings Tab (where you re-order the tabs).
Edit your 26948339_manila file from your \windows\ directory (you can use the example in the zip file \tabcontrol\ as a guide, use a UTF-16 Compatible Editor such as Notepad2 or Programmers Notepad.
a) Insert the following text, between the other "pages" defined, replacing the X with suitable number (re-numbering the others as required to avoid duplicated numbers):
Code:
<Page Order="X" Name="facebook.page" PackageName="HTC" Title="[[Facebook]]">
<ComponentReference Name="page" Mode9Path="HTC\People\facebook.mode9" Component="SummaryAllPage" SmartComponent="true"/>
<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\Facebookicon.mode9" Component="Facebook_Off"/>
<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\Facebookicon.mode9" Component="Facebook_On"/>
<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\Facebookicon.mode9" Component="Facebook_Preview"/>
</Page>
b) Copy back completed file to your device \windows\ directory
4) Re-enable Sense in Today items.
Manual Install Instructions (for use with the zip files)
Scott8813 has kindly provided a detailed tutorial on how to add the tab, so if you need more detail then please refer to this.
Manual Install Tutorial (Scott8813)
http://forum.xda-developers.com/showpost.php?p=6004802&postcount=216
Warnings etc
Modifying manila means various levels of messing around with the files on the device so, as with most of the mods on here, back-up often and be prepared to screw it up and hard-reset your device. All the changes explained here may or may-not work on your particular device/version of manila or perhaps it's just not going to happen today.
The files may be hidden system files (may need to enable viewing of system hidden files to find them)
Keep an original copy of your 26948339_manila file, particularly if you use a cab to install
If the tab doesn't work you can use it to restore things back (just do step 5)
1. Copy 26948339_manila from your \windows\ directory to your PC.
2. Copy all the files in the zip file \windows\ directory to your devices \windows\ directory.
3. Import the registry items from the "appFacebook.reg" file into your devices registry.
This will add new entries "Facebook.XXX" to "HKEY_CURRENT_USER\Software\HTC\Manila"
4. Create your Tab Control File:
Edit your 26948339_manila file from your \windows\ directory (you can use the example in the zip file \tabcontrol\ as a guide, use a UTF-16 Compatible Editor such as Notepad2 or Programmers Notepad.
a) Insert the following text, between the other "pages" defined, replacing the X with suitable number (re-numbering the others as required to avoid duplicated numbers):
Code:
<Page Order="X" Name="facebook.page" PackageName="HTC" Title="[[Facebook]]">
<ComponentReference Name="page" Mode9Path="HTC\People\facebook.mode9" Component="SummaryAllPage" SmartComponent="true"/>
<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\Facebookicon.mode9" Component="Facebook_Off"/>
<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\Facebookicon.mode9" Component="Facebook_On"/>
<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\Facebookicon.mode9" Component="Facebook_Preview"/>
</Page>
b) Copy back completed file to your device \windows\ directory
5. Reset Manila:
a) Delete "\\windows\manilaFull.xml" on your device (don't worry this is regenerated when manila restarts).
b) Delete the configuration reg-key HKLM\Software\HTC\Manila\Configuration (this resets the tab list and allows the new tab to be included in the tab re-ordering page of the settings tab - the keys only re-generate when you go back to that tab re-ordering page)
Alternative exe instead of mortscript (old zip version v1.0 23Mar10 ReleaseB):
Use the exe from FacebookStatusUpdate.zip and place in your windows folder (doesn't matter where, as long as you link correctly).
Change reg file to:
"Facebook.MyStatusExe"="\\Windows\\FacebookStatusUpdate.exe"
"Facebook.MyStatusScript"=""
Or directly in reg:
Facebook.MyStatusExe = "\Windows\FacebookStatusUpdate.exe"
Facebook.MyStatusScript =""
To Do List
Development To Do List:
Unreleased development work
Correct landscape view (remove space at top) - DONE (except displayed items are not refreshed)
Reduced reg key copies (less lag) - DONE
Improve extended char support for updates etc
Move birthday icon in expanded view - DONE
Provide "updating..." feedback when there is no Update Bar (for 1st run etc)
Build in wait state to tab, to catch when external app has completed operations (keep checking for reg key flag)
Character count for the status update page (xx/420).
API Phase 2
Development (from v1.01, released in v1.5):
People Link font colour - DONE
Allow view of full status text, either bigger space, expand on selection or ticker tape
- DONE (all expanded/colaspe view)
Improve autoupdate timer for entering tab - 20% INPROGRESS Leaving this as not a big issue.
Update settings page to include things set in registry (Auto Update time etc) - 100% DONE
Replace naff .Net fileopen dialogue with something usable - 100% DONE (thanks johncmolyneux)
Htc sense look for settings page - 100% DONE
Multi Language Support for exe - 100% DONE
Tie in to Facebook Api - Initial Tests 100% DONE - limited for release
Implement Fb Api Status Update - 100% DONE
File's Involved
Release v1.0 Uses the following files:
Code:
Graphics
4F90441E_manila \windows\htc\Common\Assets\Images\Common\VGA\facebook_divider.qtc
5D4F2200_manila \windows\htc\Assets\Images\Manila\icon_off\Facebook_tray.qtc
05FF1072_manila \windows\htc\Assets\Images\Manila\icon_preview\Facebook_large.qtc
06C09C86_manila \windows\htc\Common\Assets\Images\Common\facebookline.qtc
357374E7_manila \windows\htc\Assets\Images\Manila\icon_preview\Facebook_tray.qtc
Lang
35452D58_manila \windows\htc\people\locales\en-gb\facebook.en-gb.xml
5470CE36_manila \windows\htc\people\locales\en-us\facebook.en-us.xml
Luac
090EF4F3_manila \windows\htc\people\scripts\people\facebookpage.luac
Mode9
51B6F88A_manila \windows\htc\people\facebook.mode9
59B632C0_manila \windows\HTC\Manila\facebookicon.mode9
Tab Control
26948339_manila
Supporting
manila_xml\Facebook_Pages.xml
FacebookStatusScript.mscr
appFacebook.reg
Attached is my current list of filenames which I've used/worked on/browsed through etc.
subscribed! thanks for starting this thread,now i don't have to write more OT's in your main thread
etoy said:
subscribed! thanks for starting this thread,now i don't have to write more OT's in your main thread
Click to expand...
Click to collapse
No problem.
Gives me somewhere to write what I am up to without spamming my own thread too.
1. Currently I'm working on different views of the main page.
It's hard to see how events will be displayed since no-one I know uses them (how do they appear normally? Are they part of the individual status items?) Also, unable to change "Has Multiple Updates" to display the status and updated album message when there is more space, not a major issue. I'll post some screens at some-point.
2. Will then start to work on tying things into an exe which I can then experiment with the facebook api without having to wrestle with manila, plus for now I will put the tab specific settings page in it too (makes little difference visually to a manila sub-page, except I'm not sure how to pull in the translations for multi-lang).
3. Also starting to look at .\Scripts\People\peopleUpdateViewPage.luac 285D32BC_manila which is the more detailed tab when you select someone, but it's not fully decompiled so I've not tried changing it yet. Ideally I can put more info/options within this page when the fb api is functional.
4. Need to finish off the update timer, should be able to look at the time of the last update and update immediately even if you've just entered the tab. Currently it just waits for the update period, which only happens if the tab is open.
5. Need to put another text object on the main page for each fb item, hopefully for use with the fb api.
damn,i can't open that m9editor. if i'll not find other possibilities i'll have to run an xp-mode VM. i only managed to convert the 59B632C0_manila file to xml with mode9converter but it gives me an error when i try to convert back to mode9.
meltwater, please just edit it this way from "icon_off" to "icon_on" and attach me the edited manila file,i'll try to do the rest. thanks!
etoy said:
damn,i can't open that m9editor. if i'll not find other possibilities i'll have to run an xp-mode VM. i only managed to convert the 59B632C0_manila file to xml with mode9converter but it gives me an error when i try to convert back to mode9.
meltwater, please just edit it this way and upload me the edited manila file,i'll try to do the rest. thanks!
Click to expand...
Click to collapse
Ok done. Well timed checking of xda, there..a few mins difference.
Code:
<Movie>
<Property> Name=Platform Value="GLESPlatform"
<Locale>
<Directory> = Value=".\locales\"
<LibraryManager>
<Library>
<Character>Type="ComponentClipCharacter"
<Property> Name=LibraryID Value="6"
<Property> Name=Name Value="Facebook_Off"
<Object>Type="ComponentClip"
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="GLESSprite2D"
<Property> Name=Disable Render Value=""
<Property> Name=Instance Name Value="iconButton"
<Property> Name=Position Value="PosX=-16 PosY=8 PosZ=0"
<Property> Name=Texture Path Value="..\Common\Assets\Images\Common\alpha-hitbox.qtc"
<Property> Name=Size Value="Width=96 Height=100"
<Object>Type="GLESSprite2D"
<Property> Name=Instance Name Value="iconButton1"
<Property> Name=Texture Path Value=".\..\Assets\Images\Manila\icon_off\Facebook_tray.qtc"
<Property> Name=Size Value="Width=140 Height=140"
<Character>Type="ComponentClipCharacter"
<Property> Name=LibraryID Value="7"
<Property> Name=Name Value="Facebook_On"
<Object>Type="ComponentClip"
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="GLESSprite2D"
<Property> Name=Texture Path Value=".\..\Assets\Images\Manila\icon_on\Facebook_tray.qtc"
<Property> Name=Size Value="Width=140 Height=140"
<Character>Type="ComponentClipCharacter"
<Property> Name=LibraryID Value="8"
<Property> Name=Name Value="Facebook_Preview"
<Object>Type="ComponentClip"
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="GLESSprite2D"
<Property> Name=Texture Path Value=".\..\Assets\Images\Manila\icon_preview\Facebook_large.qtc"
<Property> Name=Size Value="Width=300 Height=300"
<Scene>
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="Component"
<CharacterReference> LibraryName=facebookicon.mode9 Value="6"
Looks like the right change, although will see what it does on my phone...ok doesn't break it which is good.
Now just need to get my hands on a full version of visual studio...
IT WORKS!
great we found the right reference,which results in:
1F04C842_manila \windows\htc\Assets\Images\Manila\icon_on\Facebook_tray.qtc
--
do you think the 357374E7_manila file is needed? it does not show anywhere..
--
i attached the right 1F04C842_manila file. now you can use it with your corrected 59B632C0_manila to have separated split icon on/icon off.
the "icon on" should be hi-res 16bpp and "icon off" 8bpp but cfc_gui did'em both at 8bpp not a big deal tho,and easily correctable.
i'm happy for my little contribution,now i have to research that last missing "rearrange tab" icon
etoy said:
IT WORKS!
--
do you think the 357374E7_manila file is needed? it does not show anywhere..
--
i attached the right 1F04C842_manila file. now you can use it with your corrected 59B632C0_manila to have separated split icon on/icon off.
the "icon on" should be hi-res 16bpp and "icon off" 8bpp but cfc_gui did'em both at 8bpp not a big deal tho,and easily correctable.
i'm happy for my little contribution,now i have to research that last missing "rearrange tab" icon
Click to expand...
Click to collapse
Ok, will try it out on my phone too. Donno about the 8bpp and cfc'ing can't remember what my originals were like.
Good luck with the "rearrange tab" I think the key is to find what the reference path/name is, either from the filenames or from the mode9 file whichever that one is.
Oddly, I've found it hard to find the colour settings for the title when in landscape mode, all the colours are in the mode9 file (but not that one it seems - changed all from R0G0B0 but it is still black...):
51B6F88A_manila \windows\htc\people\facebook.mode9
It might be using the theme colours instead (remember it was a sub-page so black is default), only found them yesterday so will chase that route 1st.
Been thinking about how to do the first page interface (depending on the fb api success of course). I think, ideally we want to drop the link to the People Tab sub-page and drive everything within the main tab page (ideally storing it's state if you leave the tab). It should then allow you to select someone, and the item expand, again you view comments etc, select them again and you get options to comment/like etc. Easy to suggest, but not anywhere near being able to do that within the manila yet, a nice aim though.
One issue I do see ahead is updating the information/storing it all, do we pick up live data when we open views (unlikely to be smooth) or attempt to download everything we need in one burst and store it away (I guess you could then open wifi, download and close wifi again...in theroy). Ideally we could use the same storage as the fbmgr uses, but I doubt that is accessible so may need duplicated info.
meltwater said:
Ok, will try it out on my phone too. Donno about the 8bpp and cfc'ing can't remember what my originals were like.
Good luck with the "rearrange tab" I think the key is to find what the reference path/name is, either from the filenames or from the mode9 file whichever that one is.
Click to expand...
Click to collapse
there are no direct references,or at least i did not find'em yet. unfortunately the other tabs' manila icon files don't have a group,they're "unknown" on cfc_gui. it was easier with slider and tab icons as they were in manila names.txt list. i found some interesting file this nite but it was late so i left some work for this evening
meltwater said:
Oddly, I've found it hard to find the colour settings for the title when in landscape mode, all the colours are in the mode9 file (but not that one it seems - changed all from R0G0B0 but it is still black...):
51B6F88A_manila \windows\htc\people\facebook.mode9
It might be using the theme colours instead, only found them yesterday so will chase that route 1st.
Click to expand...
Click to collapse
on my phone, in landscape mode, i don't have the facebook tab title at all not even the black one you talk about..
meltwater said:
Been thinking about how to do the first page interface (depending on the fb api success of course). I think, ideally we want to drop the link to the People Tab sub-page and drive everything within the main tab page (ideally storing it's state if you leave the tab). It should then allow you to select someone, and the item expand, again you view comments etc, select them again and you get options to comment/like etc. Easy to suggest, but not anywhere near being able to do that within the manila yet, a nice aim though.
One issue I do see ahead is updating the information/storing it all, do we pick up live data when we open views (unlikely to be smooth) or attempt to download everything we need in one burst and store it away (I guess you could then open wifi, download and close wifi again...in theroy).
Click to expand...
Click to collapse
that becomes a tad difficult to understand to me,sorry hope some skilled user will help you more with that. very curious to see what's possible to achieve with the facebook api tho.
etoy said:
there are no direct references,or at least i did not find'em yet. unfortunately the other tabs' manila icon files don't have a group,they're "unknown" on cfc_gui. it was easier with slider and tab icons as they were in manila names.txt list. i found some interesting file this nite but it was late so i left some work for this evening
Click to expand...
Click to collapse
Yep there are lots of interesting goodies within the files.
etoy said:
on my phone, in landscape mode, i don't have the facebook tab title at all not even the black one you talk about..
Click to expand...
Click to collapse
Ah, my background is black so I assumed it was just black too. Ok, will rethink that then. Maybe just a case of setting it visible...at the right point..at the right time. No logical reason why it's on the people tab but not this one, same code. Not too bothered about it yet.
etoy said:
that becomes too difficult to understand to me,sorry hope some skilled user will help you more with that. very curious to see what's possible to achieve with the facebook api tho.
Click to expand...
Click to collapse
I've found the editing of the gui the hardest so far, mainly because you can't see until you try but also if it doesn't like it, it gives up and moves on (so you can't even see where it was wrong). Still what started out as a little experiment on my part has already opened up a lot of what can be done. The Custom Manila Interface Tab is still a long term goal.
MS don't make it very easy to develop on windows mobile, they still don't have support for it in Visual Studio 2010 Express. I think I'll go for a trail version to get me started and then switch to non-MS solution once I'm happier. It's all new to me but keen to pick this up too.
Hi meltwater and etoy,
it is a help when i testing something too, because i was working also for that issue and i have found the same thing as you two. Strange, three people with the same thoughts. Not easy to find....
Ask me and will help. BTW, this is the dutch language file. I working on it, but a lot of translation:
6CD727C8_manila \windows\htc\people\locales\nl-nl\facebook.nl-nl.xml
meltwater said:
1. Currently I'm working on different views of the main page.
Click to expand...
Click to collapse
I think you was to much busy with co0kies new mod. But the idea is very good. Possible i can help out too
mike2nl said:
Hi meltwater and etoy,
it is a help when i testing something too, because i was working also for that issue and i have found the same thing as you two. Strange, three people with the same thoughts. Not easy to find....
Ask me and will help. BTW, this is the dutch language file. I working on it, but a lot of translation:
6CD727C8_manila \windows\htc\people\locales\nl-nl\facebook.nl-nl.xml
I think you was to much busy with co0kies new mod. But the idea is very good. Possible i can help out too
Click to expand...
Click to collapse
You can get most of it from:
\windows\htc\people\locales\nl-nl\peopleupdate.nl-nl.xml
35DC316_manila
Probably a little late to point that out...
All help is welcome. There should be a lot more as I implement more, but fixing the little bugs is very helpful.
It will get difficult to manage changes as we all get deeper into it, but at least the more we change the more files and area's of functionality there is to work on, so hopefully it will be possible.
meltwater said:
You can get most of it from:
\windows\htc\people\locales\nl-nl\peopleupdate.nl-nl.xml
35DC316_manila
Probably a little late to point that out...
Click to expand...
Click to collapse
Have you can say it 5 minuts earlier? Thanks for the info but that was also my thought to take some things that are allways done .
All help is welcome. There should be a lot more as I implement more, but fixing the little bugs is very helpful.
It will get difficult to manage changes as we all get deeper into it, but at least the more we change the more files and area's of functionality there is to work on, so hopefully it will be possible.
Click to expand...
Click to collapse
10 Ask me
20 me is waiting for info (source or whatever)
30 me send's response
40 goto 10
mike2nl said:
Have you can say it 5 minuts earlier? Thanks for the info but that was also my thought to take some things that are allways done .
10 Ask me
20 me is waiting for info (source or whatever)
30 me send's response
40 goto 10
Click to expand...
Click to collapse
10 Donno yet! What can you do / what do you want to do?
20 the source "is" the manila files (although I've started putting comments in my latest files - so will have source versions for later builds), you need to install the command line kitchen and decompile it (see the rough tips on this threads post #2).
30 go for it - ask away
40 Compile, reset manila. Bang head on table. Goto 10
At the moment, I've started working on the supporting exe which will handle the facebook api and settings etc, but I'm a beginner with windows mobile development so it'll take some time before I am up to speed with that and have something worth sharing (oh plus day job...).
qitt said:
meltwater
Thank you for your great mod. I finally investigate the name of file "icon in rearrange tab". The name must be 6BEE887F_manila. Hope it helps you.
Click to expand...
Click to collapse
OK, looks like we have another fix!
Ok, so I tried this . . .
I used my CFC graphics files, and replaced them in the All-in-One CAB. I replaced the updated file from the first page that had the updated mode9(?) code, and I copied the manila file and pasted it as "6BEE887F_manila" (I retained the original file some said 'wasn't needed' anyway). I now have the icon in the Customize tabs screen, but I'm missing the icon when the tab is selected. Is it because I didn't delete the "357374E7_manila" file? Is it just me that has this issue? The icon is there when the tab is not selected, and the large version is fine. That's the only one that's missing now (and previously, it was fine ).
Captain_Throwback said:
I used my CFC graphics files, and replaced them in the All-in-One CAB. I replaced the updated file from the first page that had the updated mode9(?) code, and I copied the manila file and pasted it as "6BEE887F_manila" (I retained the original file some said 'wasn't needed' anyway). I now have the icon in the Customize tabs screen, but I'm missing the icon when the tab is selected. Is it because I didn't delete the "357374E7_manila" file? Is it just me that has this issue? The icon is there when the tab is not selected, and the large version is fine. That's the only one that's missing now (and previously, it was fine ).
Click to expand...
Click to collapse
Don't delete 357374E7_manila, it's slider icon. Just create 6BEE887F_manila from scratch or using existing files from rearrange tab.
qitt said:
Don't delete 357374E7_manila, it's slider icon. Just create 6BEE887F_manila from scratch or using existing files from rearrange tab.
Click to expand...
Click to collapse
So I can't copy "357374E7_manila" and paste as "6BEE887F_manila" (that's what I did - I didn't delete any files)? That doesn't explain why my slider icon is missing when the tab is selected ?

[Guide/Tutorial][17/06/12]How to make "basic" theming mods + .9.png tutorial

[Guide/Tutorial][17/06/12]How to make "basic" theming mods + .9.png tutorial
If you find this guide useful then please rate the thread, i dont really care about thanks, thanks.
Give a man a theme and he can flash for a day.
Teach him how to theme and he can flash for a lifetime.
{
"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"
}
-------------------------------------------------------------------------------------------
"What's in the guide??"
*Basic image editing
*Using UOT kitchen to change the battery icons
*Popular image names and locations (GB)
*How to decompile using apk manager4.9
*Editing .9.png's
*How to use the universal theme.zip
*Create a batch Hue action in Photoshop
-------------------------------------------------------------------------------------------
I'm constantly seeing people asking for minor changes to ROMS, Themes, Mods etc, so i thought i would post this to let the talented people get on with what they do best, and the rest of us can stop harassing them for simple tasks that we are all capable of ourselves.
"Could you add these images from this ROM to your theme?"
"Can you change the colour of the battery in you ROM?"
"Is it possible to have different status bar colour?"
Well people it's time to learn some basic theming/modding/skinning, whatever you want to call it.Lets say you want to change the colour of the battery....
​What you will need:
*7zip (free)
*Greenfish icon editor pro (free/ windows) or *Gimp (free/ all platforms)
Getting going:
[1]
Firstly open up your ROM/Theme/Mod with 7zip and navigate to:
"system/framework/"
*If framework-res is a folder drog and drop to a suitable location on you pc.
*If it is an .apk then extract it and unpack.
TIP: drag it out then right click>7zip>extract to "***".
TIP2: Create a copy of this folder in case you make a mistake!!
[2]
Now navigate into "framework-res/res/drawable-hdpi/", in here are your battery images named "stat_sys_battery.png"
[3]
Open up Greenfish/Gimp, and drag across the images you want to adjust.
[Greenfish] Select Filter>Hue/Saturation
In the window that opens adjust the properties until you get your desired effect.
Save and close.
[Gimp] Select tools>color tools>hue-saturation
In the window that opens adjust the properties until you get your desired effect.
Save and close.
[4]
When your happy with the results open up(NOT EXTRACT!!) the Universal Theme template provided using 7zip and navigate to-
"system/framework/framework-res.apk/res/drawable-hdpi/"
Drag the newly adjusted images across.
Close and place on your sdcard to be flashed from recovery.
-------------------------------------------------------------------------------------------Now lets say you want to use different signal images....
​[1]
Get the ROM/Theme/Mod containing the images you want to use
Open up with 7zip and navigate to "system/app/systemUI.apk/res/drawable-hdpi/"
in here are your signal images named "stat_sys_signal.png"
[2]
Open up(NOT EXTRACT!!) the Universal Theme template provided using 7zip and navigate to-
"system/app/systemUI.apk/res/drawable-hdpi/"
Drag the desired images across.
Close and place on your sdcard to be flashed from recovery.
-------------------------------------------------------------------------------------------
That was easy was'nt it!
There are free software programs out there like gimp that let you batch process images but im not aware of the methods used, if anyone is then please post.
Please feel free to post helpful info and ask questions about locations of images or anything else related. Hopefully myself or anyone else in the know will help.
If you want to go deeper into theme-ing here is an amazing guide:
http://forum.xda-developers.com/showthread.php?t=916814
-------------------------------------------------------------------------------------------
>>> Universal Theme empty template <<<
Thanks to JR soft and also Intronauta for universal theme http://www.htcmania.com/showthread.php?t=258333 .Based on the "VillainTheme system" tool by VillainTeam. More info etc, head to www.villainrom.co.uk.
dully79 said:
I'm constantly seeing people asking for minor changes to ROMS, Themes, Mods etc, so i thought i would post this to let the talented people get on with what they do best, and the rest of us can stop harassing them for simple tasks that we are all capable of ourselves.
"Could you add these images from this ROM to your theme?"
"Can you change the colour of the battery in you ROM?"
"Is it possible to have different status bar colour?"
Well people it's time to learn some basic theming/modding/skinning, whatever you want to call it. Ill add more info to this as necessary.
Please feel free to post helpful info and ask question about locations of images or anything else related. Hopefully myself or anyone else in the know will help.
Like i said is is a very basic guide, if you want to go deeper into it, here is an amazing guide:
http://forum.xda-developers.com/showthread.php?t=916814
>>> Universal Theme empty template <<<
Thanks to JR soft and also Intronauta for universal theme.(based on the "VillainTheme system" tool by VillainTeam. More info etc, head to www.villainrom.co.uk).
Hopefully this helps some people.
Click to expand...
Click to collapse
Thanks dully .Very usefull guide indeed.I use paint.net for changing colour but i found really usefull this empty template
And a little help.The only thing i do is to make the necessary changes png's or xml's into system/app or framework is that right?
Do i need anything else eg extras?
Thanks again!!!
This will come in useful. thanks
Your very welcome.
I use "actions" in photoshop for batch processing, but i also have another program which is really good called "AbleBatchConverter", unfortunately thats paid software.
Greenfish is ideal for minor adjustments- its a small file size, easy on resources, quick and has some good features, but best of all........it's free.
siberian tiger said:
Thanks dully .Very usefull guide indeed.I use paint.net for changing colour but i found really usefull this empty template
And a little help.The only thing i do is to make the necessary changes png's or xml's into system/app or framework is that right?
Do i need anything else eg extras?
Thanks again!!!
Click to expand...
Click to collapse
If you put any xml's into the framework folders there is a good chance it will break it from being "Universal"
The "XTRAS" depends on what your doing.
The "XTRAS" folder is where you put apk's to be installed instead of just images in the system folder.
Example how to use "XTRAS" folder:
Open "Vending.apk"
Goto "res/drawable-hdpi/"
Drag and drop in images with matching names
Close apk
Open UT empty template
Goto "XTRAS/app/
Drag and drop Vending.apk inside
Close and place on sdcard for flashing
When flashed this will install "Vending.apk" into "system/app/"
Hope this helps.
Always here to help and share my friend...!!!
===THANK YOU=== mate !
Universal-Flasher-tool_v3.0
Hello everyone!
This version of the template that you use (2.X) is somewhat outdated. Version 3.0 has many new features, and is much faster and safer.
http://www.multiupload.com/HOP6RWMNOB
Basically, has a new advanced configuration file (MOD.config) where you can enable / disable functions (more information inside the file).
Have also been replaced binaries zip and busybox with a new binary 7z, much faster. The process is much faster now than before.
It also supports theming non-system applications (though not recommended).
Enjoy it!!!
jrsoft said:
Hello everyone!
This version of the template that you use (2.X) is somewhat outdated. Version 3.0 has many new features, and is much faster and safer.
http://www.multiupload.com/HOP6RWMNOB
Basically, has a new advanced configuration file (MOD.config) where you can enable / disable functions (more information inside the file).
Have also been replaced binaries zip and busybox with a new binary 7z, much faster. The process is much faster now than before.
It also supports theming non-system applications (though not recommended).
Enjoy it!!!
Click to expand...
Click to collapse
Does it support "sdcard"?
The last script supported "emmc", that's why I still use v.2*
dully79 said:
Does it support "sdcard"?
The last script supported "emmc", that's why I still use v.2*
Click to expand...
Click to collapse
Yes, the script autodetects the path of the sdcard. You can also manually set the path very easily to the new file MOD.config. Check this out:
Code:
[SDCARD PATH]
##########################################
default_internal_sdcard=/emmc
##########################################
##########################################
default_external_sdcard=/sdcard
##########################################
*It's not necessary to modify this
parameters unless you really need another
custom folder path for your sdcards in the
recovery. You should try before change
this!! and remember don't modify the
generic "sdcard" folder name in XTRAS.
The system will adapt the paths depending
of this values.
Cheers mate, your a legend. I could never get vrtheme to play nice but yours runs perfect.
If anyone previously downloaded the empty template, please download this version instead, it has many improvents over the old zip including speed.
Links:
>>>HERE<<<
And in the OP.
Thanks.
UOT kitchen battery
Ok lets say we want to change our battery for the new flavour of the month.
If you plan on using a battery theme from UOT kitchen then just follow "UOT Battery" instructions.
If you want to use a theme you found floating around the forums that doesn't work for your ROM then follow "Custom Battery".
UOT Battery
Here is how to gain a new battery theme using UOT kitchen:
FOR ICS AND ABOVE USE SYSTEMUI.APK
Get your "framework-res.apk", there are many methods to do this, i'll let you pick one.
Go HERE and click the "file upload" tab, select "system files" and upload your framework-res.apk. To avoid problems please us a CLEAN/UN-THEMED framework-res.apk
Now click the "battery" tab, check "use this mod", now choose whichever battery theme tickles your fancy.
Click the "summary" tab and "submit work to kitchen"
Wait for the kitchen to cook your files then flash your new battery theme from CWM
Reboot and enjoy
---------------------------------------------------------------------------------------------------
Custom Battery
Here is how to gain a new custom battery using UOT kitchen:
Download and open up the battery theme you would like to use using 7zip.
Navigate to "framework-res.apk/res/drawable-hdpi/"
Count how many "stat_sys_battery_*.png" and "stat_sys_battery_charge_*.png" are inside and remember or write it down(keep this window open).
Get your "framework-res.apk", there are many methods to do this, i'll let you pick one.
Again navigate to "framework-res.apk/res/drawable-hdpi/" and count how many "stat_sys_battery_*.png" and "stat_sys_battery_charge_*.png" are inside, then close.
If there is the same number of images in both files then goto "UT.zip" below, if not continue to step 7.
Go HERE and click the "file upload" tab, select "system files" and upload your framework-res.apk. To avoid problems please us a CLEAN/UN-THEMED framework-res.apk
Now click the "battery" tab, check "use this mod", now find a battery theme on UOT that uses the same number of images as what you wrote down earlier.
If applicable scroll down to the bottom and select a charging animation style, I would reccomend hybrid.
Click the "summary" tab and "submit work to kitchen"
Once your theme is cooked open up the UOT.zip with 7zip and navigate to "framework-res.apk/res/drawable-hdpi/".
Now select all the battery images from the window you left open earlier and drag and drop them onto the UOT.zip window, click yes to confirm and close.
Now you have a modified framework-res.apk that will correctly display all the battery images, just simply flash from CWM recovery.
---------------------------------------------------------------------------------------------------
UT.zip
Download the empty template from the OP.
Open up the empty template and navigate to "framework-res.apk/res/drawable-hdpi/". If the directory doesn't exist just simply create the folders being case-sensitive.
Now select all the battery images from the window you left open earlier and drag and drop them onto the empty template window, click yes to confirm and close.
Now you have a universal theme.zip that will theme battery images on your ROM.
Here is a link for a esk02k's CWM flashable glass orb battery mod zip, it contains 100 discharging and 100 charging png's:
esk02k battery orb mod
Preview
And here is a link for my Power Battery mod, it contains 100 discharging and 100 charging png's:
Phone Candy Power Battery
Preview
Both links are in universal theme format.
---------------------------------------------------------------------------------------------------
Thanks for the guide, dully79. Got a quick question...
I am currently on a stock (but rooted) 2.3.4 rom on my international Galaxy S2. I am pretty noobish at hacking around with the Galaxy S2, so if I may.
Rather than editing framework-res.apk from a rom and then flashing the whole thing in CWM, can I just extract the framework-res.apk from the rom running on the phone at the moment, using Root Explorer, edit the PNG files that I want, save the PNGs back into framework-res.apk and then just overwrite framework-res.apk on the phone (again using Root Explorer), reboot the phone and then enjoy the changes I've made?
Or is that asking for a disaster?
I apologise for being incredibly ignorant in the ways of Android modding. I'm still getting used to all this Android modding stuff. Modding the Nokia N900 was no trouble at all!
I have made a full backup of the phone on CWM, and I have one of them USB Jigs, just in case...
I wouldn't recommend it as your framework-res.apk is constantly being called by various things. I tried it once using root explorer on my old HTC hero and ended up in a world of pain.
If you want to do edits on board the best thing would probably be:
1- copy and paste your framework-res on your sd.
2- extract your framework and make the edits you want.
3- download the UT empty template from OP and extract that, if the files are extracted individually instead of into a folder then put them into folder.
4- copy your new images into the extracted empty template in MORPH/system/framework/framework-res.apk/res/drawable-hdpi/ (if the directory doesn't exist just create it being case-sensitive).
5- zip up the files INSIDE the extracted empty template folder using store add the compression method (beware that some zip apps don't seem to play nice with cwm).
6- flash from cwm
This method will only replace the images you added into the extracted empty template.
Hope this helps, if you need anything else just ask.
Thanks for the reply
So the empty theme template will work ok with the stock (but rooted) 2.3.4 Touchwiz rom that my phone shipped with?
Will the same method you described above also work for systemui.apk so I can edit the green Wifi/Bluetooth/GPS/Sound/Auto Rotation switches in the notification tray?
Thanks again I'm looking forward to shifting the green-ness of a lot of the graphics - I'd much prefer blue!
Yes mate it will.
If you just want to change images use the MORPH folder with the correct directory to the images like described above.
And if you want to replace full apk's you place them in XTRAS.
Don't edit any .9.pngs, as in changing the hue, these need to be decompiled before editing.
You can swap compiled .9's for compiled .9's but be careful with them as these can cause force closes and boot loops. There are guides around xda about editing them.
Another thank you to you, dully79!
I've followed the instructions you laid out, and I've turned the stock battery level (and charging indicator) blue!
I'd post a picture, but I'm not allowed to yet. Gotta shift my forum training wheels.
But I assure you, it looks goooooooood...
This is only just the beginning...
I'm going to make every single graphic a different colour, with lens flare! /vomits
Thanks again for this guide, this has started me off on the journey of Android discovery!
Crugath said:
Another thank you to you, dully79!
I've followed the instructions you laid out, and I've turned the stock battery level (and charging indicator) blue!
I'd post a picture, but I'm not allowed to yet. Gotta shift my forum training wheels.
But I assure you, it looks goooooooood...
This is only just the beginning...
I'm going to make every single graphic a different colour, with lens flare! /vomits
Thanks again for this guide, this has started me off on the journey of Android discovery!
Click to expand...
Click to collapse
No probs mate, I'm more than happy to pass on what I've learned.
Don't hesitate to ask if you needed owt.
Seeing as you've offered, I think I'll take you up on the offer to answer more questions! lol...
I am trying to change the progress bar colour. I can find progressbar_indeterminate#.png, which is fine, but I can't find the regular solid progress bar. Do you know what that's called and where it might live?
And another, I'm trying to change the colour of the background of a slider for things like changing volume in the settings, I also can't find the PNG for that. If you know where I can look, please let me know!
That's found in progress_horizontal.xml in framework-res.apk/res/drawable.
To make edits you need to decompile first to make the xml readable, then re compile.
Here is a blue progress bar with a grey background from my phone candy theme if you don't want to edit xmls, just extract it from the zip and put it in the correct directory in the MORPH folder.

[GUIDE] Changing status bar icons by editing framework-res.apk and lots more

So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-mdpi (in my case, as our phone is mdpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-mdpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"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"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
FlemishDroid said:
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
Click to expand...
Click to collapse
Yes
It is a tedious process
By editing smali files of classes.dex of SystemUI.apk
BUMP
which file do you you need for notificationbar background???
jkoetsier said:
which file do you you need for notificationbar background???
Click to expand...
Click to collapse
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Thanks man, its working!!
Sent from my GT-S5660 using xda premium
SpaceCaker said:
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
*android
BUMP
BUMP
BUMPS are unneeded, if theres nothing to say, dont do it.
Sent from my GT-S5660 using xda app-developers app
Bigger PNG's
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
JaySilverMusiq said:
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
Click to expand...
Click to collapse
You need to create an image of correct pixels according to your phone's dpi
Have a look here - http://developer.android.com/design/style/iconography.html

[APK] Xperia Chinese Keyboard 25.1.A.0.45 modified to work on any device (tested on LOS 18.1)

Xperia Chinese Keyboard modified to work on any device
Supports pinyin, zhuyin, stroke order, handwriting and Cangjie, as well as English input
Version: 25.1.A.0.45 Patch #6 Updated 2022-11-18
{
"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"
}
​
Download
From Mega.nz (file too large to attach here):
Patch 6 for LOS 19.1 / Android 12
Patch 5 for LOS 18.1 / Android 11
Spoiler: Other versions – for reference only
Patch 4 - Test (for Lineage 18.1, test workaround)
Patch 3 (for LineageOS 18.1, occasional crashes)
Patch 2 (for LineageOS 17.1)
Patch 1 (for LineageOS 16.0)
Installation
Best installed with: adb install -g <filename>
Otherwise, have to manually grant the permission: Settings → Apps & notifications → See all apps → Xperia Chinese keyboard → Advanced → Display over other apps: Allowed (will crash if you won't)
Enable the input method in Settings → Languages & input and switch to it using the keyboard icon on the navigation bar, which appears when you start editing text
Some Details
Based on firmware H9493_Customized TW_52.1.A.3.137-R4C for Sony Xperia XZ3 (Akatsuki)
Includes libraries to make it work as a user (not system) app:
libbase.so, libc++.so, and libnativehelper.so from LineageOS 18.1
libsqlite.so from SQLite's official precompiled Android binaries
Changed values loaded into $LayoutParams;->type:I from 0x000007dc = 0x000007d9 (TYPE_KEYGUARD_DIALOG) | 0x00000002 (TYPE_APPLICATION) | 0x00000001 (TYPE_BASE_APPLICATION), only allowed for system apps, to 0x000007f6 (TYPE_APPLICATION_OVERLAY) and updated the manifest accordingly to request the permission android.permission.SYSTEM_ALERT_WINDOW (which must be granted manually)
Patch 3: Remove dependency on Sony Vibration Effect library (com.sonymobile.vibrationeffect.api_1) from the manifest
Patch 3: Replace all references to Sony Vibration Effect library: invoke-static {p1}, Lcom/sonymobile/vibrationeffect/VibrationEffect;->get(I)Landroid/os/VibrationEffect;which were causing the app to crash, with standard Android calls:
const/4 p0, -0x1 (DEFAULT_AMPLITUDE)
const-wide/16 v2, 0xc (Duration: 12 ms)
invoke-static {v2, v3, p0}, Landroid/os/VibrationEffect;->createOneShot(JI)Landroid/os/VibrationEffect;
— for keypresses
const v0, 0x2 (EFFECT_TICK)
invoke-static {v0}, Landroid/os/VibrationEffect;->createPredefined(I)Landroid/os/VibrationEffect;
— for other events
Patch 4 - Test: Remove the invocation of a virtual method invoke-virtual {p0}, Lcom/sonyericsson/textinput/chinese/uxp/view/hw/HWFullView;->getVisibility()I that causes a crash under some circumstances in InputMethodServiceGlue. However the side effect of this change is that other UI elements cannot be interacted with while the keyboard is open. How to fix this completely needs further investigation. Since the crash seems rare, I recommend sticking with Patch 3 for now.
Patch 5: A different workaround for the above mentioned issue. If iget-object p0, p0, Lcom/sonyericsson/textinput/chinese/glue/InputMethodServiceGlue;->mHwFullView:Lcom/sonyericsson/textinput/chinese/uxp/view/hw/HWFullView; returns 0 (i.e. effectively NULL but there's no explicit check for that in Smali), then skip the call and return from the method. Otherwise, proceed. After a week of testing, this seems to work well: no rare crashes, and the UI is accessible too with the keyboard open.
Tested to work on two different LineageOS 18.1 devices. Should work elsewhere too. If it doesn't, it's probably because of the three libraries (libbase.so, libc++.so, and libnativehelper.so): check adb logcat and replace them with the versions from your system.
Patch 6: Fix compatibility with LOS 19.1/Android 12 where a call to jniGetFDFromFileDescriptor() from libnativehelper.so fails by design due to API changes (see: Google Issue Tracker), and the version of the library included with the app can no longer be used due to name conflict with the system library with the same name. The workaround: rename the bundled libnativehelper.so (same as Patch 5/Android 11/LOS 18.1, so unchanged) to libforeignenemy.so and change references to it in libcootek_pte_oem.so, libcootek_pte_oem_western.so and libcurve_oem.so accordingly. Also update libbase.so and libc++.so to current versions from LOS 19.1 (Android 12).
Related
Xperia keyboard for most languages port by @greenys'
Xperia Chinese keyboard version 10.1.A.0.1 (Android 4.4+, 2012-2013) by @danist727
That's some amazing work there. I wish there was a more up to date version for general languages not just the good ol 8.0.A.110 version that I've been using for 3 years or more across my devices. Thanks a lot.
Thank you for your work! However, the link is down, it is giving 410 error from XDA. Can you reupload it? Thanks again.
sjdhmtthm said:
Thank you for your work! However, the link is down, it is giving 410 error from XDA. Can you reupload it? Thanks again.
Click to expand...
Click to collapse
Hi, the files are attached to the post, so they are hosted here on XDA. I checked the links and they seemed to start downloading correctly for me but now I edited the post and removed the inline links, so the files should show up as an attachment below the post instead.
Can you successfully download any other attachments at all (from other posts)? Maybe there are some restrictions in place for newly-created XDA accounts. Anyway, if they still don't download for you, let me know and I'll upload them elsewhere as well. (The advantage of having the files hosted here is that the links never expire.)
Aqq123 said:
Hi, the files are attached to the post, so they are hosted here on XDA. I checked the links and they seemed to start downloading correctly for me but now I edited the post and removed the inline links, so the files should show up as an attachment below the post instead.
Can you successfully download any other attachments at all (from other posts)? Maybe there are some restrictions in place for newly-created XDA accounts. Anyway, if they still don't download for you, let me know and I'll upload them elsewhere as well. (The advantage of having the files hosted here is that the links never expire.)
Click to expand...
Click to collapse
It works now, must be having some errors just now. Thanks again.
Edit: Part 2 seems to not be able to download and corrupted, second try gives me the same error again.
I asked my friend who is not logged in to download and he experienced the same error.
It would be great if you can upload it elsewhere, the two tries I where I successfully downloaded part 2 returns corrupted. Thank you.
Edit 2: Changing browsers on mobile worked. Surprised that both Firefox on mobile and desktop returned an error for me. Thank you, problem is solved.
Is this keyboard for chinese only or can I use english as well? its been a while and long since we get an updated Xperia Keyboard version, still using the 2/3 years old v8.1.A.0.12 dated November 12, 2017.
SM-03 said:
Is this keyboard for chinese only or can I use english as well?
Click to expand...
Click to collapse
It can be used for English input too. If you take a look at the first 3 screenshots, there is a button (labelled "CN") that toggles between English and Chinese in the bottom right corner of the keyboard.
It supports word completion in English too but there's no way to type accented characters (for other languages written in the Latin script).
how to dl and extract this? I downloaded two p[arts but still getting error while extracting, any other parts there or missing?
is there any update for android10?
after update to 55.1.A.0.748
chinese keyboard keep crashed
SM-03 said:
any other parts there or missing?
Click to expand...
Click to collapse
Just checked again, it unpacks fine. Nothing is missing. The complete instructions are already in the first post. Not sure what else would need explaining.
frank3302 said:
is there any update for android10?
Click to expand...
Click to collapse
I don't use Android 10. Feel free to contribute an update, and I will link to it in the first post.
Aqq123 said:
Just checked again, it unpacks fine. Nothing is missing. The complete instructions are already in the first post. Not sure what else would need explaining.
Click to expand...
Click to collapse
Yes, it's working (extracted) as per the instructions written into the OP, but the font size is too small that I didn't see /notice that instruction earlier, you should've mentioned that in bold & highlighted for better & clear visibility.
SM-03 said:
I didn't see /notice that instruction earlier, you should've mentioned that in bold & highlighted for better & clear visibility.
Click to expand...
Click to collapse
This board is called XDA Developers for a reason. As a participant you are expected to possess a modicum of rudimentary computer skills and, more importantly, willingness to learn to solve your own problems. In particular, this thread is in the Development section. This is not the place to demand an illustrated step-by-step tutorial how to unpack a ZIP file.
Besides, as duly proven, even the best instructions won't help an ignorant person who can't be bothered to read them such as yourself. And finally, neither me nor anyone else here owes you anything just because you can't get something to work, so the only thing I "should have" is not indulged this behavior earlier.
Good luck with your future endeavors as you will need it with this kind of an attitude. Now, feel free to move on.
Aqq123 said:
This board is called XDA Developers for a reason. As a participant you are expected to possess a modicum of rudimentary computer skills and, more importantly, willingness to learn to solve your own problems. In particular, this thread is in the Development section. This is not the place to demand an illustrated step-by-step tutorial how to unpack a ZIP file.
Besides, as duly proven, even the best instructions won't help an ignorant person who can't be bothered to read them such as yourself. And finally, neither me nor anyone else here owes you anything just because you can't get something to work, so the only thing I "should have" is not indulged this behavior earlier.
Good luck with your future endeavors as you will need it with this kind of an attitude. Now, feel free to move on.
Click to expand...
Click to collapse
wow, so many words for just saying the small font & you should've written it with bigger font size for better visibility? You're rare & amazing.
I am not able to merge the two zipped files into one. I followed the instruction to rename as .zip and .z01 for both files but the second part stated no content inside to extract. should I download rar software to unrar it in desktop file explorer? Can someone kind hearted enough keep the file in one and upload somewhere for me to download?
atisha said:
I am not able to merge the two zipped files into one. I followed the instruction to rename as .zip and .z01 for both files but the second part stated no content inside to extract. should I download rar software to unrar it in desktop file explorer? Can someone kind hearted enough keep the file in one and upload somewhere for me to download?
Click to expand...
Click to collapse
I just checked and it unpacks with WinRAR and 7-Zip for me. Anyway, since I made another version later, here they are both, externally hosted:
Patch 2 (try this first, should be compatible with LineageOS 17.1 at least)
Patch 1 (original version as linked above)
I also updated the original post accordingly.
Found a Bug
Hi Aqq123,
This is some impressive work, thank you for making this!
Just wanted to post a bug I found: the "pull down menu" for the Chinese typing doesn't work. E.g. I want to type the word 蚝煎, but after clicking on the arrow on the right, nothing appears! So I wasn't able to type things beyond the suggestions in the first row.
I'm using Sony Xperia 10 II, Android 10 (Build number 59.0.A.10.5), and I used Patch 2 of your download. Would really appreciate if you could solve the bug, because this keyboard is such a life saver for me. Thanks!
Screenshot: https:// drive. google. com/ file/ d/ 12eEBAzBalbq0ZKfQMh2SLI-045-Gb1Z1/ view?usp=sharing
(Included the spacing because the forum just wouldn't let me post it)
johnsyh said:
Just wanted to post a bug I found: the "pull down menu" for the Chinese typing doesn't work
Click to expand...
Click to collapse
You're right, thanks for spotting it. It used to work in the first version though, so it's probably down to some library incompatibility (and the first version itself won't work with the newer Android). I'll look into it when I have the time. A better approach though might be to ditch it altogether and look at adopting a newer APK version instead. Meanwhile, a lousy workaround is to just hand-write the character.
Since you're using Sony stock firmware, have you tried downloading the Hong Kong or Taiwan version for your device with XperiFirm, extracting the APK from there (for example with UnSIN), and installing it? It'd either work immediately or, if not, the exact library versions to make it work would also be there.
Aqq123 said:
Hi, the files are attached to the post, so they are hosted here on XDA. I checked the links and they seemed to start downloading correctly for me but now I edited the post and removed the inline links, so the files should show up as an attachment below the post instead.
Can you successfully download any other attachments at all (from other posts)? Maybe there are some restrictions in place for newly-created XDA accounts. Anyway, if they still don't download for you, let me know and I'll upload them elsewhere as well. (The advantage of having the files hosted here is that the links never expire.)
Click to expand...
Click to collapse
Thank you so much. I am able to download patch 2 and install directly. So so very grateful as this is the best T9 keyboard ever! (Could be better if it supports Malay too with black layout white font but one shouldnt be too greedy).
Aqq123 said:
You're right, thanks for spotting it. It used to work in the first version though, so it's probably down to some library incompatibility (and the first version itself won't work with the newer Android). I'll look into it when I have the time. A better approach though might be to ditch it altogether and look at adopting a newer APK version instead. Meanwhile, a lousy workaround is to just hand-write the character.
Since you're using Sony stock firmware, have you tried downloading the Hong Kong or Taiwan version for your device with XperiFirm, extracting the APK from there (for example with UnSIN), and installing it? It'd either work immediately or, if not, the exact library versions to make it work would also be there.
Click to expand...
Click to collapse
HI would you have general sony xperia keyboard (non Chinese, English) apk as well to share? with layout skin colour if possible.
On behalf of my wife, who has just upgraded from Xperia XZs to the new Xperia 1 III, and couldn't get over how bad gboard is over the Xperia 注音 input (she has a very unusual character in her name, which gboard doesn't recognize, it spoiled her fun of getting a new device when she couldn't even type her name in correctly during setup) - thank you! You have made me a hero around the house for finding this, and installing it on her phone. My old account on this forum got lost in time, gone with an e-mail domain that no longer exists, but I set up a new one just to thank you for your work!

Categories

Resources