FORUMS
Remove All Ads from XDA

Editing the Xperia Play (slide open) app

13 posts
Thanks Meter: 15
 
By deepestblue, Junior Member on 4th June 2011, 08:21 PM
Post Reply Email Thread
14th June 2011, 02:06 PM |#21  
OP Junior Member
Thanks Meter: 15
 
More
Ok, here is a step by step guide I have tried to keep it as simple and straight forward as possible…

The good news is you don't even need root, to get your apps in the launcher!
Those with root can keep the save data from edited apps, those without will lose save data.

Every app, I have tried works! The only app, which didn't was ScummVM due to an integrity check! There is alternative version of ScummVM you can use though (which I think is better anywho)!

You need the following installed:


File Expert *
https://market.android.com/details?i...=search_result
Titanium Backup * (required for backing up save data of the app you are editing - root only)
https://market.android.com/details?i...=search_result
QuickSSHd *
https://market.android.com/details?i...=search_result
ZipSigner 2
https://market.android.com/details?i...=search_result

-

Apktool (Mac / Linux)
http://code.google.com/p/android-apktool/

OR

ApkManager (Windows / Linux)
http://forum.xda-developers.com/showthread.php?t=695701

-

Smultron (Mac / Linux) *
http://sourceforge.net/projects/smultron/

OR

Notepad ++ (Windows) *
http://notepad-plus-plus.org/


(* Optional, you can use alternatives)

=================================================

Ok, so here goes the guide if you get stuck or need help just ask….
You could also no doubt skip some steps, or do things differently so feel free to tweak the guide

1. Open File Expert and click on the app tab, backup the apps you wish to edit…. The app files, .apk - will be saved in a folder called backup_apps on your SD card.

2. (ROOT ONLY STEP) Open up Titanium Backup - first backup the apps - (this will allow you to restore the saved data later on)… Then remove the apps…

3. Copy the apps to your computer…. For this I use QuickSSHd

4. Install Apktool (Mac / Linux) or ApkManager (Windows / Linux)

4a) Use Apktool or ApkManager to decompile the app

There is a nice youtube video of ApkManager (Windows / Linux) here:
http://www.youtube.com/watch?v=dkQVX...eature=related

Also, here is a great guide to using Apktool (Mac / Linux) here:
http://forum.xda-developers.com/showthread.php?t=916814

5. You should now have a nice decompiled app, go to the folder and open up AndroidManifest.xml - using either Smultron (Mac / Linux) or Notepad ++ (Windows)

6. Edit the manifest…. I found Apktool sometimes didn't like certain changes…. So instead of adding a line I replaced lines which where not needed…. For example in the excellent emulators by Yongzh here is what the manifest looks like:

Code:
            </intent-filter>
        </activity>
        <service android:name="EmulatorService" android:process=":emulator" />
    </application>
</manifest>
replace

Code:
<service android:name="EmulatorService" android:process=":emulator" />
with this line

Code:
<meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/icon" />
so it now looks like

Code:
            </intent-filter>
        </activity>
        <meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/icon" />
    </application>
</manifest>
6. Part of the problem of adding this line however is that you need to add some extra files inside the 'res' folder.
Go to the res folder and create three new folders, called:
drawable-hdpi
drawable-ldpi
drawable-mdpi

7. Go to the drawable folder and copy the app icon, then go to the drawable-hdpi and paste the app icon renaming it icon.png, paste the image once more this time renaming it launchericon.png…. Paste a further copy of icon.png in both drawable-ldpi and drawable-mdpi

8. Recompile the app using Apktool or Apkmanager….

9. Complete steps 4-8 with each apk you wish to show in the launcher….

10. Copy the edited apk files back to your Xperia Play, in a folder called changed… within that folder create another folder called permissions (this just makes it easier to find your correct files)…

11. Open the Zipsigner app, select the input file from the changed folder and select the signed out for the permissions folder. Make sure that under the key/mode auto-testkey is selected and click sign the file.

12. Repeat this process for each app

13. Reboot your Xperia play - this step is needed as android will notice that your are attempting to install an app which is the same as a previous installed app, only that the signatures don't match! By rebooting it will clear the remnants of those old files!

14. Open File Expert and go to the permissions folder and install your newly modified apps! They should now show in the launcher, if it doesn't kill the launcher app and reopen it!

15. (ROOT ONLY STEP) Go back to Titanium Backup and restore your app data only!

That's it, sit back and enjoy your launcher showing the apps you want! Oh, to remove the stock apps, simply back them up with Titanium Backup and then remove them... Open up the launcher and they will now be gone!
The Following 11 Users Say Thank You to deepestblue For This Useful Post: [ View ] Gift deepestblue Ad-Free
14th June 2011, 04:15 PM |#22  
Senior Member
Flag London
Thanks Meter: 43
 
More
Quote:
Originally Posted by deepestblue

Ok, here is a step by step guide I have tried to keep it as simple and straight forward as possible…

The good news is you don't even need root, to get your apps in the launcher!

Every app, I have tried works! The only app, which didn't was ScummVM due to an integrity check! There is alternative version of ScummVM you can use though (which I think is better anywho)!

You need the following installed:


File Expert *
https://market.android.com/details?i...=search_result
Titanium Backup *
https://market.android.com/details?i...=search_result
QuickSSHd *
https://market.android.com/details?i...=search_result
ZipSigner 2
https://market.android.com/details?i...=search_result

-

Apktool (Mac / Linux)
http://code.google.com/p/android-apktool/

OR

ApkManager (Windows / Linux)
http://forum.xda-developers.com/showthread.php?t=695701

-

Smultron (Mac / Linux) *
http://sourceforge.net/projects/smultron/

OR

Notepad ++ (Windows) *
http://notepad-plus-plus.org/


(* Optional, you can use alternatives)

=================================================

Ok, so here goes the guide if you get stuck or need help just ask….
You could also no doubt skip some steps, or do things differently so feel free to tweak the guide

1. Open File Expert and click on the app tab, backup the apps you wish to edit…. The app files, .apk - will be saved in a folder called backup_apps on your SD card.

2. Open up Titanium Backup - first backup the apps - (this will allow you to restore the saved data later on)… Then remove the apps…

3. Copy the apps to your computer…. For this I use QuickSSHd

4. Install Apktool (Mac / Linux) or ApkManager (Windows / Linux)

4a) Use Apktool or ApkManager to decompile the app

There is a nice youtube video of ApkManager (Windows / Linux) here:
http://www.youtube.com/watch?v=dkQVX...eature=related

Also, here is a great guide to using Apktool (Mac / Linux) here:
http://forum.xda-developers.com/showthread.php?t=916814

5. You should now have a nice decompiled app, go to the folder and open up AndroidManifest.xml - using either Smultron (Mac / Linux) or Notepad ++ (Windows)

6. Edit the manifest…. I found Apktool sometimes didn't like certain changes…. So instead of adding a line I replaced lines which where not needed…. For example in the excellent emulators by Yongzh here is what the manifest looks like:

Code:
            </intent-filter>
        </activity>
        <service android:name="EmulatorService" android:process=":emulator" />
    </application>
</manifest>
replace

Code:
<service android:name="EmulatorService" android:process=":emulator" />
with this line

Code:
<meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/icon" />
so it now looks like

Code:
            </intent-filter>
        </activity>
        <meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/icon" />
    </application>
</manifest>
6. Part of the problem of adding this line however is that you need to add some extra files inside the 'res' folder.
Go to the res folder and create three new folders, called:
drawable-hdpi
drawable-ldpi
drawable-mdpi

7. Go to the drawable folder and copy the app icon, then go to the drawable-hdpi and paste the app icon renaming it icon.png, paste the image once more this time renaming it launchericon.png…. Paste a further copy of icon.png in both drawable-ldpi and drawable-mdpi

8. Recompile the app using Apktool or Apkmanager….

9. Complete steps 4-8 with each apk you wish to show in the launcher….

10. Copy the edited apk files back to your Xperia Play, in a folder called changed… within that folder create another folder called permissions (this just makes it easier to find your correct files)…

11. Open the Zipsigner app, select the input file from the changed folder and select the signed out for the permissions folder. Make sure that under the key/mode auto-testkey is selected and click sign the file.

12. Repeat this process for each app

13. Reboot your Xperia play - this step is needed as android will notice that your are attempting to install an app which is the same as a previous installed app, only that the signatures don't match! By rebooting it will clear the remnants of those old files!

14. Open File Expert and go to the permissions folder and install your newly modified apps! They should now show in the launcher, if it doesn't kill the launcher app and reopen it!

15. Go back to Titanium Backup and restore your app data only!

That's it, sit back and enjoy your launcher showing the apps you want! Oh, to remove the stock apps, simply back them up with Titanium Backup and then remove them... Open up the launcher and they will now be gone!

Thanks for this tutorial - will Titanium Backup run on stock (unrooted) Xplay please?
The Following 2 Users Say Thank You to ps3taker For This Useful Post: [ View ] Gift ps3taker Ad-Free
14th June 2011, 04:42 PM |#23  
OP Junior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by ps3taker

Thanks for this tutorial - will Titanium Backup run on stock (unrooted) Xplay please?

No worries, hopefully it will work for you and others

I believe Tiitanium backup requires root - but you could give it a go and try?

Titanium backup really is only used here to backup the save data / settings of the app before you remove it and then restore the save data / settings after...
But if you don't have any save data or you don't care about the sava data just ignore those steps!

Thanks, I've also now edited the guide explaining that it is a root only step to restore save data..
14th June 2011, 07:34 PM |#24  
Senior Member
Thanks Meter: 7
 
More
Thanks, thanks, that works really great! I didn't want the original app's icon, so i've edited the icon.png in all the folders you says and in the folder res\drawable. I've now a new icon that i've choiced in the launcher!

For fpse i've remplacing the line:

<activity android:name="com.zeemote.zc.ui.android.Controller AndroidUi$Activity" />

Now, I've this:

........
<intent-filter>
<category android:name="android.intent.category.VIEW" />
</intent-filter>
</activity>
<meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/icon" />
</application>
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
........

It works great
14th June 2011, 09:14 PM |#25  
GetPatriotized's Avatar
Senior Member
Flag Toronto
Thanks Meter: 160
 
More
dosent work when i drag my apk file just a box with green text pops up and the pof its gone :P help!
14th June 2011, 09:36 PM |#26  
Senior Member
Thanks Meter: 7
 
More
Place the apk file in "place-apk-here-for-modding" and then launch the script.
After launching, make choice "22" and "1" if the apk is alone and after select "9" to unpack the apk.
14th June 2011, 10:02 PM |#27  
OP Junior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by mastertiti2000

For fpse i've remplacing the line:

<activity android:name="com.zeemote.zc.ui.android.Controller AndroidUi$Activity" />

It works great

Exactly the same line that I replaced!

Awesome, glad it works!
14th June 2011, 11:02 PM |#28  
GetPatriotized's Avatar
Senior Member
Flag Toronto
Thanks Meter: 160
 
More
I'm so confused :S

When it says make your decision, I press 22,I hit enter,then it says enter it's number,I hit 1?

It goes back to the first screen.

Noob here,sorry.
14th June 2011, 11:17 PM |#29  
Senior Member
Thanks Meter: 7
 
More
Your apk must appear with a number on top of the line. 1 for the first apk, 2 for the second....

Sent from my R800i using XDA App
14th June 2011, 11:55 PM |#30  
GetPatriotized's Avatar
Senior Member
Flag Toronto
Thanks Meter: 160
 
More
It says Java was not found,where can I get that? :S
15th June 2011, 12:03 AM |#31  
GetPatriotized's Avatar
Senior Member
Flag Toronto
Thanks Meter: 160
 
More
so I installed java,now it says adb was not found :S

omg
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes