[Q] only music app on minicm7 - Sony Ericsson XPERIA X10 Mini

Someone who can provide me the music app of minicm7 without video app? Because i dont need video because there is already the gallery...

isko95 said:
Someone who can provide me the music app of minicm7 without video app? Because i dont need video because there is already the gallery...
Click to expand...
Click to collapse
Hmm it's in 1 app. That extra app-icon is not a real app. Videos won't play in music app, but will open in what ever video app you have installed. :silly:

Emperor.dk said:
Hmm it's in 1 app. That extra app-icon is not a real app. Videos won't play in music app, but will open in what ever video app you have installed. :silly:
Click to expand...
Click to collapse
So how can i remove video app-icon?

isko95 said:
So how can i remove video app-icon?
Click to expand...
Click to collapse
i will try and make a mod for you tomorrow and make guide too

Emperor.dk said:
i will try and make a mod for you tomorrow and make guide too
Click to expand...
Click to collapse
Thanks man! Write me on PM if you want

isko95 said:
Thanks man! Write me on PM if you want
Click to expand...
Click to collapse
Hi bro
Here is the Music app modded with no video-icon: http://www.mediafire.com/?dlnsa15m7pvubvq
Install
Rename the file to Music.apk
Move to system/app
Change file permissions to rw- r-- r--
How I did it
In the AndroidManifest.xml all activities are defined, and it's also defined how they behave.
Somewhere down in the file we find the Video activity. It looks like this (line 136-147):
Code:
<activity android:label="@string/videobrowserlabel" android:icon="@drawable/app_video" android:name="com.android.music.VideoBrowserActivity" android:exported="true" android:taskAffinity="android.task.video">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.dir/video" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
[COLOR="Red"]<category android:name="android.intent.category.LAUNCHER" />[/COLOR]
</intent-filter>
</activity>
The red argument tells the UI to put the icon in the launcher, so we can just delete that line.
Play around with it, get curious, and let's elevate some newbies to great devs.

Emperor.dk said:
Hi bro
Here is the Music app modded with no video-icon: http://www.mediafire.com/?dlnsa15m7pvubvq
Install
Rename the file to Music.apk
Move to system/app
Change file permissions to rw- r-- r--
How to
In the AndroidManifest.xml all activities are defined, and it's also defined how they behave.
Somewhere down in the file we find the Video activity. It looks like this (line 136-147):
Code:
<activity android:label="@string/videobrowserlabel" android:icon="@drawable/app_video" android:name="com.android.music.VideoBrowserActivity" android:exported="true" android:taskAffinity="android.task.video">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.dir/video" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
[COLOR="Red"]<category android:name="android.intent.category.LAUNCHER" />[/COLOR]
</intent-filter>
</activity>
The red argument tells the UI to put the icon in the launcher, so we can just delete that line.
Play around with it, get curious, and let's elevate some newbies to great devs.
Click to expand...
Click to collapse
So, the app you shared is without the video icon...then you type what you did, or i have to do it with the file you shared? :S

isko95 said:
So, the app you shared is without the video icon...then you type what you did, or i have to do it with the file you shared? :S
Click to expand...
Click to collapse
I did it all. Everything is modded. There is no video-icon in the app i shared :laugh:

Emperor.dk said:
I did it all. Everything is modded. There is no video-icon in the app i shared :laugh:
Click to expand...
Click to collapse
Eeehm, man. Ive just replaced music.apk and rebooted...and... the video app-icon dissappeared, but now the music app FC Is this caused by music.odex, or???

isko95 said:
Eeehm, man. Ive just replaced music.apk and rebooted...and... the video app-icon dissappeared, but now the music app FC Is this caused by music.odex, or???
Click to expand...
Click to collapse
Hmm I don't know. It works on my ROM, not odex. Try to move the odex-file to SD-card.

Emperor.dk said:
Hmm I don't know. It works on my ROM, not odex. Try to move the odex-file to SD-card.
Click to expand...
Click to collapse
If your music-app is deodexed then he needs to delete the odex file completely. It contains the pre-compiled byte-code that goes into the dalvik cache, and that gets used instead of compiling the actual code in the new music-app.

SmG67 said:
If your music-app is deodexed then he needs to delete the odex file completely. It contains the pre-compiled byte-code that goes into the dalvik cache, and that gets used instead of compiling the actual code in the new music-app.
Click to expand...
Click to collapse
So i have to delete music.odex, right?

Guys, i solved by deleting music.odex on System > app thanks @Emperor.dk and @SmG67

Related

Live Walkman Button

Hi all, we all knew that LWW button walkman work by changing a line in keylayout (VENDOR_1 -> MUSIC)
but that method only opens the walkman (or music player) and can't close it
I found something maybe can help out but please can any developer do this
in AndroidManifest.xml from stock walkman player you can see
Code:
<uses-permission android:name="com.sonyericsson.permission.VENDOR_BUTTON" />
..................... other code xml
<receiver android:name=".ui.WalkmanButtonReceiver" android:permission="com.sonyericsson.permission.VENDOR_BUTTON">
<intent-filter android:priority="10">
<action android:name="com.sonyericsson.intent.action.VENDOR_BUTTON" />
</intent-filter>
</receiver>
...................... other code xml
so everyone can try add those lines to other music player (like walkman from xperia s) and test if it work ? thanks
I can't decode my manifest.xml you could change it for me?
then I test it in my LWW and I'll comment my results
download my MusicPlayer here: http://www.4shared.com/android/1tjBB35h/SemcMusic.html?
..::Alex00::.. said:
I can't decode my manifest.xml you could change it for me?
Click to expand...
Click to collapse
+1, plz share apktools for decode.

[Q] Open local KML file in Google Maps in offline mode

Hello all,
i just registered here to find out if opening a KML file on my SD card with Google maps in offline mode can work.
I am looking for an solution quite a time, but only found this thread on stackover...
To load kml into Google Maps on Android without writing an app, you can create a little html file somewhere with a geo-uri link to the kml file and then click on that link in any Android web browser.
For example: suppose your kml file is located in /sdcard/overlay.kml then you write a geo-uri link like this:
<html>
<head><title>Example KML link page using a geo-uri</title></head>
<body>
overlay.kml
</body>
</html>
Click to expand...
Click to collapse
Clicking on the link will launch Maps and then Maps will attempt to load and your kml.
Be warned however that the Android version of Maps does not appear to handle the same version/range of kml elements as the desktop version (or desktop Google Earth).
Click to expand...
Click to collapse
a other thread is about editing the manifest file to get maps to open local KML files
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="h**p://schemas.android.com/apk/res/android"
package="com.example.lyold"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.lyold.LoginActivity"
android:screenOrientation="landscape"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:screenOrientation="landscape"
android:name=".Home" />
<activity android:name="com.google.earth.EarthActivity" android:screenOrientation="landscape"/>
</application>
</manifest>
Click to expand...
Click to collapse
Don't know if this is already outdated solution or not, i just cant get it to work.
Does anybody know a way to open local KML files with google maps in offline mode ?
ThX in advance !
PS: i want to open kml ONLY in google maps, i know there are several apps out there that support kml files....
hello again,
before i start trying to finf out how to edit the manifest file.
I wanted to ask if adding the line
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Click to expand...
Click to collapse
could help me out here ?
ThX,
SA
Please Help !
Hello world !
Does someone know if editing the manifest file could solve the problem that google maps won't open KML file which are on the phones SD-card.
If not, i can give up to find an option..
ThX,
SA

[Q] How to modify an app to run at system start (AndroidManifest.xml )

Could anyone help me with that? I tried to modify it myself but I'm drawing a blank here, it doesn't wanna run on startup.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="biosistemika.pcrplate"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PcrplateActivity" android:screenOrientation="landscape" />
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".MainMenuActivity" android:screenOrientation="landscape">
<receiver android:name=".BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>
</activity>
</application>
</manifest>
Thanks.
Benzonat0r said:
Could anyone help me with that? I tried to modify it myself but I'm drawing a blank here, it doesn't wanna run on startup.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="biosistemika.pcrplate"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PcrplateActivity" android:screenOrientation="landscape" />
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".MainMenuActivity" android:screenOrientation="landscape">
<receiver android:name=".BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>
</activity>
</application>
</manifest>
Thanks.
Click to expand...
Click to collapse
Iam not sure but
is it on external storage may be that is causing the delay
sangalaxy said:
Iam not sure but
is it on external storage may be that is causing the delay
Click to expand...
Click to collapse
No it's installed as an app, not a system app tho.
Benzonat0r said:
No it's installed as an app, not a system app tho.
Click to expand...
Click to collapse
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------
one more thing you have set boot permission to the app
I don't know how
and you can try using any start up applications for that
sangalaxy said:
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
Click to expand...
Click to collapse
Oh sorry, it's on internal storage didn't catch that at first.
You're right it should and yet it doesn't I don't know why tho.
sangalaxy said:
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------
one more thing you have set boot permission to the app
I don't know how
and you can try using any start up applications for that
Click to expand...
Click to collapse
Yeah I know but I don't want to use any app for that, I'm doing this for for a friend and his company he works at, and I want the tablet to be as clean as possible. So no additional apps or any sort of bloatware.
Benzonat0r said:
Yeah I know but I don't want to use any app for that, I'm doing this for for a friend and his company he works at, and I want the tablet to be as clean as possible. So no additional apps or any sort of bloatware.
Click to expand...
Click to collapse
mm try with the permissions rw-r-r and 0644 I guess or do a search
sangalaxy said:
mm try with the permissions rw-r-r and 0644 I guess or do a search
Click to expand...
Click to collapse
I've pushed it to /system/app and set permissions to 0644 and the app works but still doesn't boot on start.

How to disable components without root?

Is it possible to disable receivers without root?
pm disable? I'm not really familiar with it.
I don't really want to root and I've been trying to find out ways to disable receivers in apps.
StickyPuppyPerson said:
Is it possible to disable receivers without root?
pm disable? I'm not really familiar with it.
I don't really want to root and I've been trying to find out ways to disable receivers in apps.
Click to expand...
Click to collapse
It's possible, to disable an app go to settings-->apps and notifications-->All Apps and find the one you want to disable in the list. Click it and then click "disable".
The process may vary depending on the Android version, but I'm sure you can do it (this feature appeared but Android Ice Cream Sandwich).
P.s: You can't disable some apps because they are necessary to the system.
@StickyPuppyPerson
THREAD'S TITLE IS TOTALLY MISLEADING!
Anyway:
Apps can register receivers. These are specified in app's Manifest.xml file.
Example:
Code:
<receiver android:name=".MyBroadcastReceiver"
android:exported="true"
android:enabled="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.INPUT_METHOD_CHANGED" />
</intent-filter>
</receiver>
Hence to disable/remove a receiver you would either have to change content of app's Manifest.xml file manually or programmatically by means of Android's PacketManager ( Note: if it's NOT a system app you want to modify then to do NO root is required ).
jwoegerbauer said:
@StickyPuppyPerson
THREAD'S TITLE IS TOTALLY MISLEADING!
Anyway:
Apps can register receivers. These are specified in app's Manifest.xml file.
Example:
Code:
<receiver android:name=".MyBroadcastReceiver"
android:exported="true"
android:enabled="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.INPUT_METHOD_CHANGED" />
</intent-filter>
</receiver>
Hence to disable/remove a receiver you would either have to change content of app's Manifest.xml file manually or programmatically by means of Android's PacketManager ( Note: if it's NOT a system app you want to modify then to do NO root is required ).
Click to expand...
Click to collapse
How should I rename it?
Could you show me an example with adb?
Was wondering if there was an app for this that works with no root adb.
StickyPuppyPerson said:
How should I rename it?
Click to expand...
Click to collapse
Because there are four different types of app components:
Activities
Services
Broadcast receivers
Content providers
specify the component -> Replace "components" by "receivers"
Was wondering if there was an app for this that works with no root adb.
Click to expand...
Click to collapse
May be a so-called APK-Editor does the job: Don't know it.

Deep linking with hash and key

Hello there!
I have a problem with my app. I am working on a website and it's associated android app.
If the system sends an email with a link within, I want the app to open to this specific content. The app opens but not where it's supposed to be. It stays on the main page of the app.
The links are supposed to auto connect the user, so he can access the app as he wishes automatically, so my links have this form:
https://www.mysite.com/autoconnect/stringHASH/stringKEY
I don't know in advance what will be put in the hash and key parts. So I don't know what to put in the manifest to make this work.
Here is what I currently have in my manifest file:
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="mysite.com" />
<data android:pathPrefix="/autoconnect/" />
</intent-filter>
Did I miss something? I need to add I have generated the well-known file and it is on my server.
Thank you for your help!

Categories

Resources