[Galaxy Y GT-S5360 General] halnovemila:
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! :D

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! :mad:

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.

[][][]

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:

<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:

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

.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 :D) END