yashsingh1/xdaforums huggingface dataset:
[Fascinate General] bobloblaw1:
Q&A probably would have been a good fit since this is like a question since it is troubleshooting but regardless,

use root explorer or something similar.

Go to /data/system/

delete (or rename) ms3c_yamaha.cfg

Reboot.

Accelerometer should work.

It can't hurt to recalibrate it either after doing this: Settings>Display settings>horizontal calibration
[Fascinate General] nitsuj17:
if you flashed the early release candidate rom from irc w/o a data wipe this is almost to be expected...go into data/system and delete ms3c_yamaha.cfg and toggle rotation in status bar...profit
[Fascinate General] schlouchy8:
ah that's exactly what the issue was. I had flashed RC1 and RC2 from IRC prior to flashing the final build. thanks alot for the help and for all you do! I (and many others) sincerely appreciate it!
[Fascinate General] sageDieu:
Thanks nitsuj, I was having problems as well. youdaman

Sent from my CM7 SCH-i500
[Xperia Play Themes and Apps] deepestblue:
See Post 21 for guide on how to add modify your apps to appear in the launcher....

Orignal post below...

Hi,

Ok, it really annoyed me that when I flipped open the game pad I could only see the apps Sony Erricson allowed.... I have made some progress on this front, just not a 100% working fix yet :(

I'm not an expect, so please don't flame me if this is useless info!

Here goes the instructions....

I will warn those who have little skill in editing files this is not for you!

Here is how I added Solitare (free app from the android market) as a test to the Xperia Play Launcher....

First browse to

data/data/com.sonyericsson.semcsuite/databases

copy the to content.db file to your computer

edit the content.db

with SQLite (which you can download for free)

The info you need to edit is under browse data in SQLite, you need the pkg name of the app you want to include inside, as well as the full name of the app you are inserting… I simply replaced an app I wasn't bothered about in the launcher, my assumption would be that you can insert more by following the numbering convention used! :D

In the cover column you need to use -1 as the cover name and false under the menu...

then save the file

Now reboot the phone open the xperia play app, click on more games…. Then copy over the file…. I copied over the file while on more games….

Then kill the app in the settings (in mine shows as Android System), finally reopen the app and the added applications will show!

You then have the added apps you want in the launcher :-)

Here is a screenshot of the added solitaire app as a test:

imageshack.us/photo/my-images/821/screenshot2zm.png

The big problem I have found so far is that the app very frequently ovewrites the .db :mad: For example on reboot or sometimes randomly, so at the moment it's not an actual fix...

I have attempted making the file read only but this crashes the app on opening...

But progress is progress any ideas moving forward? It would be nice to be able to slide open your play and see a bunch of emulators ;)

Chris
[Xperia Play Themes and Apps] AndroHero:
i told them all they needed to edit the database.db but no1 beleved me :rolleyes: lol
[Xperia Play Themes and Apps] deepestblue:
Just found your old thread, damn could have been here sooner! Oh, well progress still made :D

So much better knowing I can slide open my play and see all my emulators! :D

I've found out that once you get the hacked.db file on the play and get it to open correctly provide you press the home button and not the back button then it stays put :D Hopefully it should stay in place unless I accidently quit the app or need to reboot!

Still not a permanant fix, but close enough until we figure out how to stop the app replacing the edited file!

Here are two new screenshots completed with emulators hehe

imageshack.us/photo/my-images/853/screenshotye.png/

imageshack.us/photo/my-images/200/screenshot1kv.png/

The only downside is that the app blows up the icon of the edited in app, so it looks a bit pixelated - but I really don't care about that!

Chris
[Xperia Play Themes and Apps] AndroHero:
that looks really cool maybe a line in one of the .xml files can be changed in the .apk to get it to read from a diffrent (modded) file, then it dosent matter if it rewrites the database.db file :confused:
[Xperia Play Themes and Apps] Logseman:
Could the whole db edition be done through an app?
[Xperia Play Themes and Apps] zerojay:
Yes, we know, this is nothing new. We've already known about this for weeks. The problem of course is that it has to be populated manually. We've been searching for a way to do this automatically just by looking at how it works and doing what needs to be done to tell it "hey, I should be on this list" whenever it rebuilds the database.
[Xperia Play Themes and Apps] deepestblue:
Well so far good news, the xperia play app has yet to overwrite the file, so I guess leaving it the app open and not quiting, is possibly a very good temporary solution.

Unfortunately, after taking a look at the xml files no joy :(

There doesn't seem to be any reffrence to writing to the .db or that location...

Within the apk, there is a searchable.xml file though where the app is asking to search. So, possibly changing this so it searches for something else? hmm

The problem is if you change it to something else then I assume it would create a blank .db file! LOL But this might be a way forward... Feel free to take a look at the included xml file of the launcher here:

mediafire.com/?2eqtw1f0358omp2

Probably, if someone wanted to create such an app... But editing the .db file is not so hard, provided you are not wanting to change things all the time! I'd write up step by step instructions, so it should be fairly easy...

The problem at the moment is that it is not a full solution to our problem...

I've had a scan though the past posts, and yes your right the .db file was known about for weeks... But unfortunately not followed though, no one actually attempted to edit the .db file nor get the edited file to work or at least not that I can see.... It's a shame really as we could have been here sooner...

Actually, I have an idea of how the app decides what should go into the database... I believe it is rather simple how the app works... The app will search installed apk, then my assumption would be that it would look at the AndroidManifest.xml of said installed apps for an xperiaplayoptimized_content tag.

An xperiaplayoptimized_content tag can be seen in the AndoridManifest.xml of two free apps on the market Cyberlords - Arcology, Happy Vikings.... I've not checked any other apps from the market, but please check more - maybe I'm wrong :confused:.

The problem is if this is how the app works and is needed in every app, it would mean adding to evey app we wanted to be included in the launcher and removing from every app we did not want to appear in the launcher, sigh... :(

I suppose if someone wants they could check this for certain by adding an xperiaplayoptimized_content tag to an app or removing the tag from an app and seeing what happens...

So, I'm thinking three possible options? Unless any can think of any further solutions?

a) Change how the Xperia Play app searches - possibly by editing the searchable.xml file - although I'm not sure what to change the search to?

b) Add the xperiaplayoptimized_content tag to every maifest of every app we want included - that's also, assuming xperiaplayoptimized_content is the correct tag!

c) Leave things as they are - you just lose the changed .db file on reboot or when you close the application by mistake. Perhaps even a simple app to replace .db file when this happens?

Sigh, so much work/effort for something simple - damn you Sony Erricson! LOL

Chris
[Xperia Play Themes and Apps] svenk919:
Hurray, it works :)

Added this line:

<meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/icon" />

right before:

</application>

you can probably use the @drawable to make it any icon you want.

The happy viking game uses a resolution of 170*170 I believe.

Now is there anyone with the skills to have the android manifests modified of allready installed apps with a nice menu where you could select wich app you want to have the line added to the manifest? If that's possible at all.

Edit: updated the app I use for testing stuff so it shows up in the game launcher: http://xdaforums.com/showthread.php?p=14451093#post14451093
[Xperia Play Themes and Apps] deepestblue:
Great work :D, just tested your app! Awesome we now know for certain that xperiaplayoptimized_content is the correct tag...

Ageed it needs someone skilled - but an app that acutally modifies the manifests already installed apps is far beyond what I can do :(

As you say I'm not even sure such a feat is possible? :confused:

An alternative may be to decompile your apps and recompile them... Apktool, should do the trick...

code.google.com/p/android-apktool/

Hmm, tempting... I think I might have a go with one app, see how long it takes to decompile, edit and recompile an app!
[Xperia Play Themes and Apps] AndroHero:
Maybe an app along the lines of ninjamorph but more dedicated to editing the android mainifest :)
[Xperia Play Themes and Apps] deepestblue:
Hi, I tried ninjamorph but it didn't actually decompile the the android manifest...

However apktool did! :D

So, it's a simple matter of copying your apk, decompile with apktool, add the xperia play optimized tag, recompile with apktool and then install :D

It's a much quicker process than it sounds, and to add the tag to an app in total takes about 15 mins with install...

If anyone wants step by step instructions let me know!

It's so much better having the apps you want in the launcher....
[Xperia Play Themes and Apps] g9man:
If it isnt too much trouble,could you please post the step by step process. I would greatly appreciate it.
[Xperia Play Themes and Apps] Logseman:
I picked the Xperia Play Camera Mod app, courtesy of Zoop57, to tinker a bit. svenk's suggestion left me with this error:

C:\Users\Logseman\Downloads\seb.camera.mod-1\AndroidManifest.xml:46: error: Error: No resource found that matches the given name (at 'resource' with value '@drawable/icon').

and some others chained to it. I presume we need to add something more than that line? This is the first time I actually use apktool, so I can perfectly have missed something.
[Xperia Play Themes and Apps] svenk919:
apk tool should give a "res" map, if you have folders like: "drawable-h/m/ldpi" look into it, mostly it has an icon named "icon.png" but it could be named different with the camera app, if it is different change the icon '@drawable/icon' to what the file is named in the camera app. If such folders don't exist you probably have to chancgte the '@drawable' part to.

PS.

I think the line of code in case of the camera app should be:

<meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/ic_launcher_camera" />
[Xperia Play Themes and Apps] Logseman:
I managed to build the app using "@drawable/ic_launcher_camera" in that field. However, after installing it, it won't show in the Xperia Play launcher with the games. Moreover, I decoded fifa.apk, which does appear in the launcher as Fifa 10, and it doesn't show that line on the Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1034" android:versionName="1.0.34" package="com.eamobile.Fifa"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:name=".Fifa" android:launchMode="singleTask" android:screenOrientation="landscape" android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="3" />
</manifest>
[Xperia Play Themes and Apps] svenk919:
Did you reboot the phone? The launcher doesn't refresh its database all the time. The line was there with the happy vikings game and it did work to add my touchpadtester app to my launcher.
[Xperia Play Themes and Apps] Logseman:
I've uninstalled the app, reinstalled it, opened it, closed it and rebooted the phone to no avail. It won't show in the menu.
[Xperia Play Themes and Apps] svenk919:
Does the camera app uses sdk version 9 or later? It should be stated in the manifest. Probably the xperia play optimized tag only works since android 2.3.2.
[Xperia Play Themes and Apps] Logseman:
Hmmm... Zoop mentioned that he grabbed the latest source, so it should be 2.3.4.

Here's the manifest of his camera mod:

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="5" android:versionName="5" package="seb.camera.mod"
xmlns:android="http://schemas.android.com/apk/res/android">
<original-package android:name="com.android.camera" />
<uses-sdk android:minSdkVersion="9" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_SMS" />
<application android:label="Camera Mod" android:icon="@drawable/ic_launcher_camera" android:taskAffinity="">
<receiver android:name="com.android.camera.CameraButtonIntentReceiver">
<intent-filter>
<action android:name="android.intent.action.CAMERA_BUTTON" />
</intent-filter>
</receiver>
<activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:name="com.android.camera.Camera" android:taskAffinity="android.task.camera" android:clearTaskOnLaunch="true" android:screenOrientation="landscape" android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.media.action.STILL_IMAGE_CAMERA" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:label="@string/video_camera_label" android:icon="@drawable/ic_launcher_video_camera" android:name="com.android.camera.VideoCamera" android:taskAffinity="android.task.camcorder" android:clearTaskOnLaunch="true" android:screenOrientation="landscape" android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.media.action.VIDEO_CAMERA" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.media.action.VIDEO_CAPTURE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
[Xperia Play Themes and Apps] svenk919:
This is the manifest of my touchpad app:

<?xml version="1.0" encoding="utf-8"?>
<manifest package="test.play.controls"
xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.2" android:versionCode="2">
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="9" />
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:label="@string/app_name" android:name="android.app.NativeActivity" android:launchMode="singleInstance" android:screenOrientation="landscape" android:configChanges="keyboardHidden|orientation">
<meta-data android:name="android.app.lib_name" android:value="touchpadndk" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="xperiaplayoptimized_content" android:resource="@drawable/launchericon" />
</application>
</manifest>
[Xperia Play Themes and Apps] ps3taker:
Thanks for this tutorial - will Titanium Backup run on stock (unrooted) Xplay please?
[Xperia Play Themes and Apps] deepestblue:
No worries, hopefully it will work for you and others :D

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

Thanks, I've also now edited the guide explaining that it is a root only step to restore save data..
[Xperia Play Themes and Apps] mastertiti2000:
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.ControllerAndroidUi$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
[Xperia Play Themes and Apps] GetPatriotized:
dosent work when i drag my apk file just a box with green text pops up and the pof its gone﻿ :P help!
[Xperia Play Themes and Apps] mastertiti2000:
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.
[Xperia Play Themes and Apps] deepestblue:
Exactly the same line that I replaced! :D

Awesome, glad it works!
[Xperia Play Themes and Apps] GetPatriotized:
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.
[Xperia Play Themes and Apps] mastertiti2000:
Your apk must appear with a number on top of the line. 1 for the first apk, 2 for the second....
[Xperia Play Themes and Apps] GetPatriotized:
It says Java was not found,where can I get that? :S
[Xperia Play Themes and Apps] GetPatriotized:
so I installed java,now it says adb was not found :S

omg
[Xperia Play Themes and Apps] deepestblue:
First you can double check if you have java installed by visiting:

http://www.javatester.org/version.html

If it is installed check to see what happens when you type:

java

in command prompt....

If it is not installed simply visit www.java.com download and install :D
[Xperia Play Themes and Apps] deepestblue:
Can you give the full error, when do you get this? I'm assuming during apkmanager?
[Xperia Play Themes and Apps] GetPatriotized:
So here's what I did.

I put the backed up .aoks in to the 'place apk here for modding' then I launched the Script file.

'Adb was not found, you will not be able to manipulate the files on your phone' so I just continued.

Please make your decision = I press 22

I see all the .apks and I want number 2 (FPSe) so I typed in 2 and hit enter.

I go backed to the first screen with 'Please make you decision'
[Xperia Play Themes and Apps] mastertiti2000:
You don't have to use adb for unpack. I had the same message when I used the bad choice. Ok I didn't see your last post :-) So once 22 and 2 selected, you have to select 9 to unpack now. The unpack apk appear in folder "project".
[Xperia Play Themes and Apps] GetPatriotized:
Okay I've set it up,how do I recompile it?
[Xperia Play Themes and Apps] mastertiti2000:
Choice 22, number of the apk and 11 to make the apk with changes. When it ask it it's a system app just say no.
[Xperia Play Themes and Apps] GetPatriotized:
Whenver I hit enter have I want to choose the number of apk,it goes back to the first screen where it says 'please make your decision'

:S Is there a video I can follow? The video in the guide doesn't help me.

I appreciate your help.
[Xperia Play Themes and Apps] mastertiti2000:
It's normal :-) When you go back to the screen "make your choice", select 11 to make apk. You will have in the folder called "modding" (were you place the apks) a new apk called "unsigned- xxxxxx.apk" (xxxxxx is the apk's name you have modded). Don't forget before installing your new apk to sign in with the soft (in android market) ZipSigner and don't forget too to uninstall old apk and rebooting before install your new apk.
[Xperia Play Themes and Apps] GetPatriotized:
I did not get the xxxx.apk in the modding folder :S
[Xperia Play Themes and Apps] mastertiti2000:
In the order:

1) place your apk you want change in the folder called "....... modding"

2) launch the script

3) Select 22 to choice your apk and type enter. If your apk is number 1 type 1 and type enter.

4) type 9 to unpack

5) go to project folder and modify your apk

6) launch the script

7) select 22 and type enter. Select 1 if your apk is number 1, type enter.

8) select 11 to compil your apk and type enter.

9) say no to the question if it's a system apk and type enter.

10) go to the ".....modding" folder and normaly you have the apk unsigned with you original apk.

If that don't work, I don't know why....

Edit: I send you a pm.
[Xperia Play Themes and Apps] GetPatriotized:
Got it,installing it now,

*fingers crossed*
[Xperia Play Themes and Apps] GetPatriotized:
Damn,parse error :S

The .apk is 7 KB o.O

I followed everything
[Xperia Play Themes and Apps] AndroHero:
a parsing error would point to the fact that maybe the .apk is not signed correctly :)
[Xperia Play Themes and Apps] Nhialor:
You are the man :-)

Will these be reverted back after the apps get an update?

I edited the app's icons becuase I didn't really like them all that much, they were too pixelated, so if you guys want the icons, I'll upload them (seeing as uploading the apk would encourage piracy)

Niall
[Xperia Play Themes and Apps] GetPatriotized:
OMG

I can't get it to work,mind writing a tutorial for me? :)

Would really appreciate it.
[Xperia Play Themes and Apps] Logseman:
This would be very interesting for me, as you can understand :) What icons have you retouched?
[Xperia Play Themes and Apps] GetPatriotized:
Mind explaining what you did exactly? I failed 3 times -_-
[Xperia Play Themes and Apps] arihellmichimich:
-Message removed-
[Xperia Play Themes and Apps] Torombolo:
Getting Decompile errors and APk does not compile.

heres my log.
[Xperia Play Themes and Apps] crowmaster20:
Working as a charm, thank you ;)
[Xperia Play Themes and Apps] bhavei:
Does decompiling of the app also allows replacement of the Games Icon, Font & Name? I'd Love to do a Remake of the Iruna Online Apk.

Sent by Abie Cruz via Xperia PLAY r800i
[Xperia Play Themes and Apps] Spatinator:
Yes it does

---------- Post added at 07:40 PM ---------- Previous post was at 07:39 PM ----------

Adding apps into the suite can also be done by editing the apk itself, which you wanna have into the launcher
[Xperia Play Themes and Apps] Spatinator:
Here you are