[One (M7) Themes and Apps] Sandmann79:
Hi here is a tutorial for 5 shortcuts on lockscreen:

1. decompile idlescreen_base.apk

2. open res\layout\buttonfooter.xml

change this line:

<com.htc.idlescreen.base.ui.footer.LockIcon android:id="@id/lockiconsphere" android:layout_width="@dimen/lockicon_width" android:layout_height="@dimen/shortcut_height" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">

to:

<com.htc.idlescreen.base.ui.footer.LockIcon android:id="@id/lockiconsphere" android:layout_width="@dimen/lockicon_width" android:layout_height="@dimen/shortcut_height" android:layout_alignParentBottom="true" [COLOR="Red"]android:layout_alignRight="@id/shortcut_panel"[/COLOR]>

remove this line:

<View android:layout_width="@dimen/shortcut_center_space" android:layout_height="@dimen/shortcut_height" />

instert the blue colored line:

<com.htc.idlescreen.base.ui.footer.ShortcutSphere android:id="@id/shortcutpanel_shortcut_04" android:layout_width="@dimen/shortcut_width" android:layout_height="@dimen/shortcut_height" />
[COLOR="RoyalBlue"]<com.htc.idlescreen.base.ui.footer.ShortcutSphere android:id="@id/shortcutpanel_shortcut_05" android:layout_width="@dimen/shortcut_width" android:layout_height="@dimen/shortcut_height" />[/COLOR]
</LinearLayout>

If you want to add more shortcuts, just insert more of these lines with consecutive numbers after @id/shortcutpanel_shortcut_

3. open res\values\ids.xml

add this line below the last item entry:

<item type="id" name="shortcutpanel_shortcut_05">false</item>

4. compile idlescreen_base.apk and decompile the new created file

5. open res\values\public.xml

look for this line

<public type="id" name="shortcutpanel_shortcut_05" id="0x[COLOR="SeaGreen"]7f0b0043[/COLOR]" />

and notice the id number (in my case 7f0b0043)

You have to do this for every shortcut, you added in step 2 and step 3

6. open smali\com\htc\idlescreen\base\ui\footer\ShortcutPanel.smali

look for this lines:

iput-object v4, p0, Lcom/htc/idlescreen/base/ui/footer/ShortcutPanel;->mShortcutDivide:Landroid/view/View;

const/4 v4, [COLOR="Red"]0x4[/COLOR]

new-array v3, v4, [I

fill-array-data v3, [COLOR="SeaGreen"]:array_0[/COLOR]

First replace 0x4 with 0x5 (or the number of shortcuts you want).

In the next lines you see a fill-array-data command with a jump label (in my case :array_0) search for it.

The result should look like these:

:array_0
.array-data 0x4
0x1ct 0x0t 0xbt 0x7ft
0x1dt 0x0t 0xbt 0x7ft
0x1et 0x0t 0xbt 0x7ft
0x1ft 0x0t 0xbt 0x7ft
.end array-data

Now you have to insert the id (7f0b0043) from step 5 to array in the following format:

:array_0
.array-data 0x4
0x1ct 0x0t 0xbt 0x7ft
0x1dt 0x0t 0xbt 0x7ft
0x1et 0x0t 0xbt 0x7ft
0x1ft 0x0t 0xbt 0x7ft
0x[COLOR="Magenta"]43[/COLOR]t 0x[COLOR="Lime"]0[/COLOR]t 0x[COLOR="RoyalBlue"]b[/COLOR]t 0x[COLOR="DarkOrange"]7f[/COLOR]t
.end array-data

The leading zero should be left out.

Repeat this for every additional shortcut.

7. open smali\com\htc\idlescreen\base\setting\SettingDB.smali

look for this lines:

iput-boolean v1, p0, Lcom/htc/idlescreen/base/setting/SettingDB;->mShortcutExist:Z

const/4 v0, [COLOR="Red"]0x4[/COLOR]

and

const/4 v2, [COLOR="Red"]0x4[/COLOR]

new-array v0, v2, [Lcom/htc/idlescreen/base/setting/ShortcutInfo;

replace 0x4 with 0x5

8. open res\values-xxhdpi\dimens.xml

At least icon size and spacing must be adjusted. This values are for 5 icons:

<dimen name="lockicon_width">[COLOR="Red"]210.0px[/COLOR]</dimen>
<dimen name="lockicon_margin_left">[COLOR="red"]50.0px[/COLOR]</dimen>
<dimen name="shortcut_panel_padding_left">[COLOR="red"]14.0px[/COLOR]</dimen>
<dimen name="shortcut_panel_padding_right">[COLOR="red"]16.0px[/COLOR]</dimen>
<dimen name="shortcut_width">[COLOR="red"]175.0px[/COLOR]</dimen>
<dimen name="shortcut_center_space">[COLOR="red"]175.0px[/COLOR]</dimen>
<dimen name="shortcut_icon_marge_left">[COLOR="red"]20.0px[/COLOR]</dimen>
<dimen name="shortcut_icon_marge_right">[COLOR="red"]20.0px[/COLOR]</dimen>

9. Finished, now recompile idlescreen_base and sent it to phone

I hope this is helpful for you, good luck for your port!