After updating CM from 6.1.1 to 7.0.3 the market app crashes on startup. I have no crash when I wipe in recovery before updating. The reason for not wiping is that I don't want to configure all my apps again.
Is there another solution out there?
Logcat shows:
Code:
INFO/ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.vending/.AssetBrowserActivity bnds=[5,415][115,533] } from pid 280
ERROR/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
INFO/ActivityManager: Starting: Intent { cmp=com.android.vending/.TosActivity } from pid 354
DEBUG/AccountManagerService: bind attempt failed for Session: expectLaunch false, connected false, stats (0/0/0), lifetime 0.0, getAccountsByTypeAndFeatures, legacy_hosted_or_google
DEBUG/vending: [1] BaseActivity.completeGetAuthToken(): auth result is RESULT_CANCELED
DEBUG/vending: [1] BaseActivity.onAuthTokenComplete(): null auth token.
WARN/vending: [1] TosLoadAction.displayResults(): Could not check for TOS
INFO/vending: [1] BaseActivity.displayDialog(): Dialog (id=2) was not shown as the application was paused. Dialog will be shown onResume
ERROR/ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
i am using Eclipse to do a simple android app. Deploying to the device was working fine before when i was on Froyo. But then i updated to DDKQ5 and now i flashed GingerReal 1.2 and i am no longer able to run the app on the device from eclipse. It throws following error:
Code:
[2011-09-19 15:56:40 - SimpleCube] Failed to install SimpleCube.apk on device 'S5830bfcc8426': Permission denied
[2011-09-19 15:56:40 - SimpleCube] com.android.ddmlib.SyncException: Permission denied
[2011-09-19 15:56:40 - SimpleCube] Launch canceled!
By the way I have enabled a2sd, swap and dalvik cache on sd. Also 'Unknown Sources' and 'USB Debugging' are also enabled.
Any way to solve this?
PS: Sorry for double posting.. (noob problem i guess! posted in gingerreal thread as a reply).. i guess this is a general issue and not specific to Samsung Galaxy Ace or GingerReal.
here is the SOLUTION: http://forum.xda-developers.com/showpost.php?p=17843380&postcount=15
Oopsss.. no answers?? guys.. help me to figure this out
byepass said:
Oopsss.. no answers?? guys.. help me to figure this out
Click to expand...
Click to collapse
I think its because of wrong api version because android 2.2 platform is api 8 and gingerbread 2.3.3 is api 10, try installing android 2.3.3 platform in your android sdk and then creat a AVD for 2.3.3 os and test on that.. then try to port it to your phone...
yagya said:
I think its because of wrong api version because android 2.2 platform is api 8 and gingerbread 2.3.3 is api 10, try installing android 2.3.3 platform in your android sdk and then creat a AVD for 2.3.3 os and test on that.. then try to port it to your phone...
Click to expand...
Click to collapse
don't think thats the reason as app compiled for 2.2 should work in 2.3.3 (read so somewhere!)..
any way i tried what you told and created a project based on 2.3.3. It works fine on AVD but i get the same error when i try to 'Run' or 'Debug' on device. Still gets the following error:
Code:
[2011-09-20 22:56:08 - Trial] Android Launch!
[2011-09-20 22:56:08 - Trial] adb is running normally.
[2011-09-20 22:56:08 - Trial] Performing com.example.trial.TrialActivity activity launch
[2011-09-20 22:56:08 - Trial] Automatic Target Mode: using device 'S5830bfcc8426'
[2011-09-20 22:56:08 - Trial] Uploading Trial.apk onto device 'S5830bfcc8426'
[2011-09-20 22:56:08 - Trial] Failed to install Trial.apk on device 'S5830bfcc8426': Permission denied
[2011-09-20 22:56:08 - Trial] com.android.ddmlib.SyncException: Permission denied
[2011-09-20 22:56:08 - Trial] Launch canceled!
Any clue?
Have you tried to restart your adb server? I had this issue a couple of times while working on my app as well. I went to the command line and shut down the adb server and then restarted the server.
Also not sure what O/S you are using as your development, but if you are using Linux, I would also recommend starting the server using sudo.
-Eric
Haven't tried restarting adb server. I am using ubuntu. How to restart adb? won't restarting eclipse or the computer restart the server? I have also tried rebooting the phone with no luck
Sent from my GT-S5830 using XDA App
Dunno whether this helps.. but i tried using "adb install" directly. But still it failed.
Code:
[email protected]:~$ ./adb install /home/sinu/programs/SimpleCube.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
failed to copy '/home/sinu/programs/SimpleCube.apk' to '/data/local/tmp/SimpleCube.apk': Permission denied
Seems like I should grant permission in the device.. but where?
byepass said:
Dunno whether this helps.. but i tried using "adb install" directly. But still it failed.
Code:
[email protected]:~$ ./adb install /home/sinu/programs/SimpleCube.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
failed to copy '/home/sinu/programs/SimpleCube.apk' to '/data/local/tmp/SimpleCube.apk': Permission denied
Seems like I should grant permission in the device.. but where?
Click to expand...
Click to collapse
Oh yes, i think the problem is because you didn't grant permissions for the app. YOu can grant permissions in ANdroid Manifest.xml file of your app.
To restart the adb server you need to be in you platform-tools directory where you installed the Android SDK then do the following.
sudo ./adb server stop
sudo ./adb server start
If that does not work you can also look at the permissions you have given the app in your android manifest file as the other poster replied. If you post you manifest file we might be able to help more.
Sent from my PC36100 using Tapatalk
Whether you are trying to install the same version of app from a different source??
This error would occur in these scenario's
a)When you have the same app on your phone installed from Market or via Bluetooth
b) When you again try to install the app without uninstalling the previous app this error would occur..
If you have the app already in your device un install it and now try to install it from Eclipse..
Shan986 said:
Whether you are trying to install the same version of app from a different source??
This error would occur in these scenario's
a)When you have the same app on your phone installed from Market or via Bluetooth
b) When you again try to install the app without uninstalling the previous app this error would occur..
If you have the app already in your device un install it and now try to install it from Eclipse..
Click to expand...
Click to collapse
Not so sure about that with item 'B' above. I am currently developing an app myself and I have the app installed on my phone for basic use. Whenever I install the app from Eclipse it just updates the app and I have not seen this issue. I don't have to uninstall it and then install from Eclipse.
Not saying you are completely incorrect, just saying my usage does not seem to match what you explain.
Solved original problem. But here i got another!
thanks guys for the response
i ALMOST figured it out.. its not a problem with my project since i started a fresh Android project which displays nothing but Hello World!.
It appears to be the problem with the GingerReal ROM.
I had to change ro.secure value to 0 from 1 in /defaults.prop.
This solved the problem But it led to another one
[2011-09-22 19:51:27 - HelloAndroid] ActivityManager: /sbin/sh: am: not found
To solve this i added #!/system/bin/sh to /system/bin/am
This solved that one.. But now am faced with yet another problem which i can't seem to fix. This is the error:
Code:
[2011-09-22 23:10:04 - Trial] Android Launch!
[2011-09-22 23:10:04 - Trial] adb is running normally.
[2011-09-22 23:10:04 - Trial] Performing com.example.trial.TrialActivity activity launch
[2011-09-22 23:10:04 - Trial] Automatic Target Mode: using device 'S5830bfcc8426'
[2011-09-22 23:10:04 - Trial] Uploading Trial.apk onto device 'S5830bfcc8426'
[2011-09-22 23:10:04 - Trial] Installing Trial.apk...
[2011-09-22 23:10:05 - Trial] Success!
[2011-09-22 23:10:05 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:06 - Trial] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.trial/.TrialActivity }
[2011-09-22 23:10:06 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:09 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:10 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:13 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:16 - Trial] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.trial/.TrialActivity }
[2011-09-22 23:10:16 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:19 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:19 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:22 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:23 - Trial] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.trial/.TrialActivity }
[2011-09-22 23:10:23 - Trial] ActivityManager: Error type 3
[2011-09-22 23:10:23 - Trial] ActivityManager: Error: Activity class {com.example.trial/com.example.trial.TrialActivity} does not exist.
Any Help on this?
---------- Post added at 11:22 PM ---------- Previous post was at 11:20 PM ----------
byepass said:
thanks guys for the response
i ALMOST figured it out.. its not a problem with my project since i started a fresh Android project which displays nothing but Hello World!.
It appears to be the problem with the GingerReal ROM.
I had to change ro.secure value to 0 from 1 in /defaults.prop.
This solved the problem But it led to another one
[2011-09-22 19:51:27 - HelloAndroid] ActivityManager: /sbin/sh: am: not found
To solve this i added #!/system/bin/sh to /system/bin/am
This solved that one.. But now am faced with yet another problem which i can't seem to fix. This is the error:
Code:
[2011-09-22 23:10:04 - Trial] Android Launch!
[2011-09-22 23:10:04 - Trial] adb is running normally.
[2011-09-22 23:10:04 - Trial] Performing com.example.trial.TrialActivity activity launch
[2011-09-22 23:10:04 - Trial] Automatic Target Mode: using device 'S5830bfcc8426'
[2011-09-22 23:10:04 - Trial] Uploading Trial.apk onto device 'S5830bfcc8426'
[2011-09-22 23:10:04 - Trial] Installing Trial.apk...
[2011-09-22 23:10:05 - Trial] Success!
[2011-09-22 23:10:05 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:06 - Trial] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.trial/.TrialActivity }
[2011-09-22 23:10:06 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:09 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:10 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:13 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:16 - Trial] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.trial/.TrialActivity }
[2011-09-22 23:10:16 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:19 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:19 - Trial] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-09-22 23:10:22 - Trial] Starting activity com.example.trial.TrialActivity on device S5830bfcc8426
[2011-09-22 23:10:23 - Trial] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.trial/.TrialActivity }
[2011-09-22 23:10:23 - Trial] ActivityManager: Error type 3
[2011-09-22 23:10:23 - Trial] ActivityManager: Error: Activity class {com.example.trial/com.example.trial.TrialActivity} does not exist.
Any Help on this?
Click to expand...
Click to collapse
I already tried 'Clean' in Eclipse and also looking in /data/apps for dead files as google suggested with no luck
Is TrialActivity defined in your manifest file using the <activity></activity> tags?
EABonney said:
Is TrialActivity defined in your manifest file using the <activity></activity> tags?
Click to expand...
Click to collapse
Yup.. As i said its a new project which displays Hello World. Here is its content:
Code:
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".TrialActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
[SOLVED]
Hah!! Solved all problems!
So this is what i did from the beginning:
1. Changed ro.secure = 1 to ro.secure = 0 in /defaults.prop
2. Add #!/system/bin/sh as the first line /system/bin/am
3. Add #!/system/bin/sh as the first line /system/bin/pm
For step 1, you might have to flash a boot image in which you chaged /defaults.prop file
For steps 2 n 3, you might have to remount /system as read-write
Sometimes you'll have to click 'Run' two times to actually make it run.. Guess i can live with that
cool beans, good to try it with android 11. getting permission denied error from spammy's bots
Hi guys,
my problem is that my Nexus 5 is rebooting all the time since yesterday. My roommate had the same problem yesterday, but now its suddenly gone. My Android version is 6.0.1 and I can tell you the last few logs before the restart occures:
Code:
03-12 15:17:51.221 203-924/? D/NuPlayerDriver: reset(0xb60585e0)
03-12 15:17:51.221 203-924/? D/NuPlayerDriver: notifyListener_l(0xb60585e0), (8, 0, 0)
03-12 15:17:51.221 203-7815/? D/NuPlayerDriver: notifyResetComplete(0xb60585e0)
03-12 15:17:51.222 812-826/? I/ActivityManager: Killing 4914:android.process.acore/u0a2 (adj 15): empty #17
03-12 15:17:52.052 1908-4068/? W/ctxmgr: [AclManager]checkPermissionTypeStatus: no inject permission for { uid=10010, packageName=com.google.android.gms }. Returned permission was: PACKAGE_NOT_WHITELISTED for context name=POWER_CONNECTION, account=account#-517948760#
03-12 15:17:52.054 1908-4068/? W/ctxmgr: [AclManager]checkPermissionTypeStatus: no inject permission for { uid=10010, packageName=com.google.android.gms }. Returned permission was: PACKAGE_NOT_WHITELISTED for context name=POWER_CONNECTION, account=account#-517948760#
03-12 15:17:52.055 1908-1908/? E/ctxmgr: [PowerConnectionProducer]Could not write powerInfo=Plug state: 2 BatteryLevel: 0.77, status=Status{statusCode=unknown status code: 7503, resolution=null}
01-01 00:00:00.000 0-0/? E/Internal: device 'XXXXXXXXX' not found
I really have no idea where to start looking for the problem. I mean, the log does not tell me much about a fault or something like that and as far as I know Android does not provide crash logs on reboot.
Do you have any hints?
Ah and by the way: The only app I installed recently before the problem occured was runtastic, but removing it did not change anything.
Best regards,
Arma
Ok, it was the power button...
I would get a case that protects the power button .
I have 2 devices, a LGG4 and a Xiaomi Mi 8, both rooted.
I'm modifying a .db of an App and everything works fine on the LGG4.
But on the Xiaomi, when I launch the App after changes, I get this error:
Code:
avc: denied { open } for path="/data/data/com.app.app/databases/database.db" dev="sda21" ino=2761689 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0 tclass=file permissive=0
(I'm correctly setting permissions)
I already tried to search similar questions here and on google, but I can't find a valid solution.
Thanks!
When I would add an app and select the add button it crashes with the following error.
```
type: crash
osVersion: google/sunfish/sunfish:13/TP1A.220905.004/2022091400:user/release-keys
package: com.oasisfeng.greenify:47500
process: com.oasisfeng.greenify
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.SecurityException: Permission Denial: getUidProcessState from com.oasisfeng.greenify asks to run as user 11 but is calling from uid u0a242; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at android.os.Parcel.createExceptionOrNull(Parcel.java:3012)
at android.os.Parcel.createException(Parcel.java:2996)
at android.os.Parcel.readException(Parcel.java:2979)
at android.os.Parcel.readException(Parcel.java:2921)
at android.app.IActivityManager$Stub$Proxy.getUidProcessState(IActivityManager.java:4838)
at android.app.ActivityManager.getUidImportance(ActivityManager.java:3792)
at java.lang.reflect.Method.invoke(Native Method)
at lq1$c0.a(SourceFile:1)
at lq1$e0.a(SourceFile:3)
at lq1$k.a(SourceFile:2)
at df1.a(SourceFile:164)
at df1.a(SourceFile:113)
at na1.a(SourceFile:5)
at oa1$e.doInBackground(SourceFile:2)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
... 4 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.UserController.handleIncomingUser(UserController.java:2243)
at com.android.server.am.ActivityManagerService.getUidProcessState(ActivityManagerService.java:7340)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2060)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2641)
at android.os.Binder.execTransactInternal(Binder.java:1302)
```
I think you'll find active support on the GrapheneOS Element chat. The people there have been very helpful for me in the past.
GrapheneOS contact information
Contact information for GrapheneOS.
grapheneos.org
hopeless.unknown said:
Caused by: java.lang.SecurityException: Permission Denial: getUidProcessState from com.oasisfeng.greenify asks to run as user 11 but is calling from uid u0a242; this requires android.permission.INTERACT_ACROSS_USERS_FULL
Click to expand...
Click to collapse
User 11 is related to your work profile. You may be using Island/Insular and Greenify tries to access the state of a process belonging to that work profile user. But it lacks the necessary permission INTERACT_ACROSS_USERS_FULL.
You can try to grant it via ADB:
Code:
pm grant om.oasisfeng.greenify android.permission.INTERACT_ACROSS_USERS_FULL
4ndr0x said:
User 11 is related to your work profile. You may be using Island/Insular and Greenify tries to access the state of a process belonging to that work profile user. But it lacks the necessary permission INTERACT_ACROSS_USERS_FULL.
You can try to grant it via ADB:
Code:
pm grant om.oasisfeng.greenify android.permission.INTERACT_ACROSS_USERS_FULL
Click to expand...
Click to collapse
Thanks @4ndr0x for your answer. I tried the adb command, but I got only the following message:
Exception occurred while executing 'grant':
java.lang.SecurityException: Permission android.permission.INTERACT_ACROSS_USERS_FULL is managed by role
at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermissionInternal(PermissionManagerServiceImpl.java:1390)
at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermission(PermissionManagerServiceImpl.java:1321)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:547)
at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:602)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2546)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:292)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:5959)
at android.os.Binder.shellCommand(Binder.java:1058)
at android.os.Binder.onTransact(Binder.java:886)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4397)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:5943)
at android.os.Binder.execTransactInternal(Binder.java:1307)
at android.os.Binder.execTransact(Binder.java:1265)
Click to expand...
Click to collapse