Hi I created a test android app that does two simple things, open the browswer and open the calculator
My main problem is that once I put a custom permission inside the mainfest, I can no longer open my own application. The app does appear on the launcher screen but when I launch it, it will say "App isn't installed". However using a second app and giving it the proper uses and making sure it's signed by the same signature it opens fine.
Here is the manifest for my main app:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dms_test_app2"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<permission
android:name="com.example.test"
androidrotectionLevel="signature" android:label="this is my custom permission" />
<uses-permission android:name="com.example.test"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
androidermission="com.example.test"
android:name="com.example.dms_test_app2.MainActivity"
android:label="@string/app_name"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I understand from logcat that the issue is that the LAUNCHER does not have the proper permission:
E/Launcher( 1392): java.lang.SecurityException: Permission Denial: starting Inte
nt { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0
x10200000 cmp=com.example.dms_test_app2/.MainActivity } from ProcessRecord{b5430
118 1392:com.android.launcher/u0a10002} (pid=1392, uid=10002) requires com.examp
le.test
However if you check my manifest, I clearly declared the <uses-permission> tag.
How can I fix this?
Thanks for reading.
BR,
Ken
Doing this i think u should push it uisng adb or root explorer
I should root to
System apps cant install in package installer
It can only in adb or root explorer
Sent from my GT-S5300 using xda app-developers app
i can install fine through "adb install", my problem is executing the main application from the launcher screen
Related
Hi everyone,
I've created a GO SMS Pro theme using their webtool,
but it appears to have yet to implement various common aspects of functionality. I want to be able to modify the AndroidManifest.xml file myself, primarily to add Airpush (the presence of which I let people know of from the beginning), but the formatting is quite garbled. I'm guessing this may be due to the localization to Chinese that the Google Play developer console reports. Does anyone have a functional, readily editable version in English with all the required information for a GO SMS Pro Theme? I want to be assured I have all the required information, rather than hacking together another xml file with Eclipse. I figured I'd install the Chinese language on my computer, but it appears Microsoft did not include such functionality in Windows 7 Premium (64-bit). I've download other GO SMS Pro themes with Airpush, figuring I could use their AndroidManifest.xml and mail.xml files as templates, but found the same formatting / editability issue. Thank you for your help!
I've since found kantbstopped519's post at the end of page 3 in the following thread: http://forum.xda-developers.com/showthread.php?t=1125626&page=3
and used what was posted:
<?xml version="1.0" encoding="UTF-8"?>
<manifest android:versionCode="5" android:versionName="1.0" android:installLocation="auto" package="com.jb.gosms.theme.kxnt.dark"
xmlns:android="http://schemas.android.com/apk/res/android">
<application android:label="@string/app_name" android:icon="@drawable/jb_smsmms">
<activity android:theme="@android:style/Theme.Dialog" android:label="@string/app_name_desc" android:name=".GoSmsInstallDialog" android:excludeFromRecents="true" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>
<intent-filter>
<action android:name="com.jb.mms.theme.others" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="4" />
</manifest>
Click to expand...
Click to collapse
It appears this functioned for kantbstopped519.
I used this as a template (made no additions of Airpush or anything such) and made the supposedly appropriate changes, also changing anything referencing @string to plain text directly in AndroidManifest.xml. Now I'm getting that informative "The server could not process your apk. Try again."
I've been making various changes, deletions, and resigning after each change, to repeatedly the same message. Only re-adding my original garbled-de-goop AndroidManifest.xml file and resigning has thus far resulted in a successful processing upon upload. Could this have something to do with the resources.arsc and/or classes.dex files in the root of the apk?
If the APK is already compiled then you will need to decompile it with apktool to get the XML readable.
I have a sola, running the JB port from munjeni.
I'm devlopping an app and I get
Failure [INSTALL_FAILED_INVALID_APK] when trying to debug on the phone. USB debug activated of course.
I see this message as well DeviceMonitor: Adb rejected connection to client '21134': closed
My Nexus 7 when i did that, aksed me to autorize my PC. It seem the sola just deny acces ?
Is that some problem with the JB port ? Common problem with the sola ?? Invalid apk, not really a usefull message.
I'm using intelliJ, and here is the manifest, just in case :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.MyLauncher"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="14"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:name="LauncherScreen" android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen">
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
I did some test, put akp on SD, install, start -> all OK.
So apk is valid for sure, and compatible. Had to be some securitty thing bloking it.
EowynCarter said:
I did some test, put akp on SD, install, start -> all OK.
So apk is valid for sure, and compatible. Had to be some securitty thing bloking it.
Click to expand...
Click to collapse
Did you solve?
Yes, got myself a nexus 4
Joke aside, look around in the developer setting, at adb and all.
And the max / min sdk version.
You might also want to try adb install name.akp see what happens.
What phone and rom are you using exactly?
EowynCarter said:
Yes, got myself a nexus 4
Joke aside, look around in the developer setting, at adb and all.
And the max / min sdk version.
You might also want to try adb install name.akp see what happens.
What phone and rom are you using exactly?
Click to expand...
Click to collapse
No way....same extact error with adb install.
My phone is a Zopo zp998 with rom of 28/3/2014
Before the rom update it was working fine!
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
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.
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!