Can anyone point me in the right direction to getting AOSP APK's working on other devices (in my case, HTC EVO 3D GSM and HTC One X)?
For example, when I push a different Settings.apk to my device, I see the following logcat output:
I/PackageManager( 1256): /system/app/Settings.apk changed; collecting certs
D/dalvikvm( 1256): GC_CONCURRENT freed 1980K, 22% free 11742K/14947K, paused 9ms+20ms
W/PackageManager( 1256): Signature mismatch for shared user : SharedUserSetting{40de1400 android.uid.system/1000}
E/PackageManager( 1256): Package com.android.settings has no signatures that match those in shared user android.uid.system; ignoring!
Click to expand...
Click to collapse
What's the recommended approach to getting the app to match the same signature of the previous one? I tried opening both APK's and copying the META-INF folder to the new app but that doesn't help.
I'm looking to get this working in my custom ROMs which are obviously rooted, deodexed, etc.
Thanks in advance.
I'm trying to install a certain .apk file. and it keeps showing me "application not installed".
I've tried it on stock, and it installs.
After checking logcat this is what it says:
D/PackageManager( 1399): Scanning package com.abcdef.android.abcdef.abcdef.apk
W/PackageManager( 1399): Cannot install platform packages to user storage
W/PackageManager( 1399): Package couldn't be installed in /data/app/com.abcdef.android.abcdef.abcdef.apk
I did some more investigation and it turns out it can install apps that install to sd card, but can't install system apps to data folder or the others.
How can i fix this?
Thanks.
Hi everyone
I decided to post here because I couldn't resolve my problem with only tutorials.
I have an HTC Legend which was very slow, because of an update from SFR. I tryed a factory reset but it was still slow.
I did a backup with clockworkmod, so I can always go back to the first (bad) configuration.
Today, after many operations, the phone boots until the first screen (when you have to use the slide to unlock the screen). But the screen doesn't respond and the reboot reboot after few minutes. Even after using a RUU...
I know that it is possible to restore it, because it worked once. But because of my enthusiasm, I broke the configuration with cyanogen. (I didn't made backup, so stupid)
If even a RUU cannot restore my HTC Legend, what can I do?
Thank you in advance
Useful information:
HTC Legend branded (Vodafone)
Actual HBOOT version: 1.00
Radio: 7.13.35.05
S-ON
Neferth said:
If even a RUU cannot restore my HTC Legend, what can I do?
Click to expand...
Click to collapse
Hello Neferth,
Switch off your phone. Than switch it on holding the "Vol-" and the "power" button. Then select recovery.
At the red [!] screen. press "Vol+" and the "power" button.
Wait for a blue menu list at the top of the screen. Then select update.zip.
Then you can see the ClockworkMod Recovery menu. You can do a restore now ...
Greetings: alligator-asl
Hi,
If I do that, I can only backup my phone to the first (and bad) configuration. And the phone still boots in loop...
I search for a solution to completely format the system and wipe all things I added. I believed that a RUU could help me, but the problem still remains, as if I forgot something. This is despairing...
Neferth said:
Hi,
If I do that, I can only backup my phone to the first (and bad) configuration. And the phone still boots in loop...
I search for a solution to completely format the system and wipe all things I added. I believed that a RUU could help me, but the problem still remains, as if I forgot something. This is despairing...
Click to expand...
Click to collapse
Here's an idea, you can boot into clock work mod yeah? OK, pick a rom, any rom, but I'd advise you to get one of the froyo based roms like blay0s, these are probably better for you at this stage as they are compleat, and dare I say it bug free
Anyway download the zip file, put it onto your sdcard, boot into recovery, format boot, system, data, cache, and sdext NOT THE SD CARD!
now flash the zip file and reboot, if you still have boot loop then its possible your internal rom space is damaged, I've heard of this issue in other phone threads, however I've not yet heard a story about damaged rom space on legend.
Sent from my Legend using xda app-developers app
Thanks you for your help!
I followed your instructions and I:
-rooted my phone with r4legend.
-formatted boot, system, data and cache partition
-installed Bay0 O.8 and upgraded it to 0.8.4
The bootloop seems to be fixed, but the phone still freeze at first screen. Moreover, the screen dies out after few minutes.
Just in case, I launched
Code:
adb logcat
, and I noticed the following errors and fails:
Code:
--------- beginning of /dev/log/system
I/Vold ( 150): Vold 2.1 (the revenge) firing up
D/Vold ( 150): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
I/SystemServer( 189): Entered the Android system server!
I/SystemServer( 189): Entropy Service
W/EntropyService( 189): unable to load initial entropy (first boot?)
[...]
E/ConnectivityService( 189): Error in radioAttributes - ignoring attempt to define type 6
E/ConnectivityService( 189): Error in networkAttributes - ignoring attempt to adopt radio 6
[...]
/SystemServer( 189): HTC Checkin Service.
I/SystemServer( 189): Wallpaper Service
W/WallpaperService( 189): failed parsing /data/system/wallpaper_info.xml java.io.FileNotFoundException: /data/system/wallpaper_info.xml (No such file or directory)
I/SystemServer( 189): Audio Service
[...]
I/WindowManager( 189): SAFE MODE not enabled
W/DevicePolicyManagerService( 189): failed parsing /data/system/device_policies.xml java.io.FileNotFoundException: /data/system/device_policies.xml (No such file or directory)
V/KeyguardViewMediator( 189): password timeout delay 281859ms
[...]
D/KeyguardViewMediator( 189): pokeWakelock(15000)
W/WindowManager( 189): VOLUME button: Unable to find ITelephony interface
D/KeyguardViewMediator( 189): pokeWakelock(15000)
W/WindowManager( 189): VOLUME button: Unable to find ITelephony interface
D/KeyguardViewMediator( 189): pokeWakelock(15000)
W/WindowManager( 189): !!! Unable to find ITelephony interface !!!
And when the screen dies out:
Code:
W/PackageManager( 897): Unknown permission android.permission.ACCESS_LOCATION in package com.htc.android.locationpicker
W/PackageManager( 897): Unknown permission android.permission.ACCESS_GPS in package com.htc.android.locationpicker
W/PackageManager( 897): Unknown permission com.htc.android.mail.permission.READ_ACCOUNT in package com.htc.htccontactwidgets
W/PackageManager( 897): Unknown permission com.htc.android.mail.permission.WRITE_ACCOUNT in package com.htc.htccontactwidgets
W/PackageManager( 897): Unknown permission android.permission.BACKUP_DATA in package com.htc.CustomizationSetup
W/PackageManager( 897): Not granting permission android.permission.CLEAR_APP_USER_DATA to package com.android.packageinstaller (protectionLevel=2 flags=0xbe45)
W/PackageManager( 897): Unknown permission com.android.providers.im.permission.READ_ONLY in package com.google.android.apps.maps
W/PackageManager( 897): Unknown permission android.permission.BACKUP_DATA in package com.htc.android.htcime
W/PackageManager( 897): Unknown permission android.permission.BACKUP_DATA in package com.htc.UpgradeSetup
W/PackageManager( 897): Unknown permission com.android.providers.htccdma.Specific in package com.htc.android.htcsetupwizard
W/PackageManager( 897): Unknown permission com.htc.VzWBackupAssistantClient.PROVISION in package com.htc.android.htcsetupwizard
W/PackageManager( 897): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.android.email.permission.ACCESS_PROVIDER in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.android.email.permission.READ_ATTACHMENT in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.google.android.apps.googlevoice.permission.AUTO_SEND in package com.google.android.voicesearch
Perhaps I am wrong but I see nothing that prevent the phone from booting...
You also talked about internal rom space, what is it exactly? Because I only know the partitions:
• /boot
• /cache
• /data
• /misc
• /recovery
• /system
Where can I find this internal rom space and how can I repair it?
Neferth said:
Thanks you for your help!
I followed your instructions and I:
-rooted my phone with r4legend.
-formatted boot, system, data and cache partition
-installed Bay0 O.8 and upgraded it to 0.8.4
The bootloop seems to be fixed, but the phone still freeze at first screen. Moreover, the screen dies out after few minutes.
Just in case, I launched
Code:
adb logcat
, and I noticed the following errors and fails:
Code:
--------- beginning of /dev/log/system
I/Vold ( 150): Vold 2.1 (the revenge) firing up
D/Vold ( 150): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
I/SystemServer( 189): Entered the Android system server!
I/SystemServer( 189): Entropy Service
W/EntropyService( 189): unable to load initial entropy (first boot?)
[...]
E/ConnectivityService( 189): Error in radioAttributes - ignoring attempt to define type 6
E/ConnectivityService( 189): Error in networkAttributes - ignoring attempt to adopt radio 6
[...]
/SystemServer( 189): HTC Checkin Service.
I/SystemServer( 189): Wallpaper Service
W/WallpaperService( 189): failed parsing /data/system/wallpaper_info.xml java.io.FileNotFoundException: /data/system/wallpaper_info.xml (No such file or directory)
I/SystemServer( 189): Audio Service
[...]
I/WindowManager( 189): SAFE MODE not enabled
W/DevicePolicyManagerService( 189): failed parsing /data/system/device_policies.xml java.io.FileNotFoundException: /data/system/device_policies.xml (No such file or directory)
V/KeyguardViewMediator( 189): password timeout delay 281859ms
[...]
D/KeyguardViewMediator( 189): pokeWakelock(15000)
W/WindowManager( 189): VOLUME button: Unable to find ITelephony interface
D/KeyguardViewMediator( 189): pokeWakelock(15000)
W/WindowManager( 189): VOLUME button: Unable to find ITelephony interface
D/KeyguardViewMediator( 189): pokeWakelock(15000)
W/WindowManager( 189): !!! Unable to find ITelephony interface !!!
And when the screen dies out:
Code:
W/PackageManager( 897): Unknown permission android.permission.ACCESS_LOCATION in package com.htc.android.locationpicker
W/PackageManager( 897): Unknown permission android.permission.ACCESS_GPS in package com.htc.android.locationpicker
W/PackageManager( 897): Unknown permission com.htc.android.mail.permission.READ_ACCOUNT in package com.htc.htccontactwidgets
W/PackageManager( 897): Unknown permission com.htc.android.mail.permission.WRITE_ACCOUNT in package com.htc.htccontactwidgets
W/PackageManager( 897): Unknown permission android.permission.BACKUP_DATA in package com.htc.CustomizationSetup
W/PackageManager( 897): Not granting permission android.permission.CLEAR_APP_USER_DATA to package com.android.packageinstaller (protectionLevel=2 flags=0xbe45)
W/PackageManager( 897): Unknown permission com.android.providers.im.permission.READ_ONLY in package com.google.android.apps.maps
W/PackageManager( 897): Unknown permission android.permission.BACKUP_DATA in package com.htc.android.htcime
W/PackageManager( 897): Unknown permission android.permission.BACKUP_DATA in package com.htc.UpgradeSetup
W/PackageManager( 897): Unknown permission com.android.providers.htccdma.Specific in package com.htc.android.htcsetupwizard
W/PackageManager( 897): Unknown permission com.htc.VzWBackupAssistantClient.PROVISION in package com.htc.android.htcsetupwizard
W/PackageManager( 897): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.android.email.permission.ACCESS_PROVIDER in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.android.email.permission.READ_ATTACHMENT in package com.qo.android.htc
W/PackageManager( 897): Unknown permission com.google.android.apps.googlevoice.permission.AUTO_SEND in package com.google.android.voicesearch
Perhaps I am wrong but I see nothing that prevent the phone from booting...
You also talked about internal rom space, what is it exactly? Because I only know the partitions:
• /boot
• /cache
• /data
• /misc
• /recovery
• /system
Where can I find this internal rom space and how can I repair it?
Click to expand...
Click to collapse
Well, rom space (memory storage) is the location of where your rom is flashed to, as far as I know once this is damaged there is no way to fix it.
I'm pretty sure that the boot, system, misc, recovery is all part of rom space. I'm pretty sure that data and cache is part of internal memory?
I haven't actually gotten that deep into internal workings of the hardware so I could be wrong.
Sent from my Legend using xda app-developers app
Found it. It was bad blocks on the system and data partition.
Just THANK to you for your tips and AngelDeath for his marvellous article:
http://forum.xda-developers.com/showthread.php?t=1189544
I will try to move /system and /data partitions to SD card.
edit: I will follow this tutorial => http://petermolnar.eu/linux-tech-coding/how-to-move-dalvik-cache-to-system-partition-in-android/
edit 2: Launching a /system partition on SD card seems to be possible => http://forum.xda-developers.com/showthread.php?t=779274
But it isn't user frienldy enough, so I will probably try "task 29" with MTTY to format the partition. The bad blocks will not disappear, but I hope the system will mark them as "bad".
=> http://forum.xda-developers.com/showthread.php?t=540290
=> http://forum.xda-developers.com/showthread.php?t=644781
Is it working now? I'm also getting problems with bad blocks now
Sent from my Legend using xda premium
Hello xennr3
Sorry for the delay, I had examinations and I forgot this painful problem...
I tried to use MTTY but XP/Seven didn't let me create ActiveSync connection (making a banal connection is too hard for these OS). And without ActiveSync, no mtty.
And obviously no documentation in order to make the same thing with linux.
Sigh.
Anyway, I returned the HTC to its owner. I will try later (~3 month), but I surely will not give up. I will update this post if I found any useful documentation or alternative.
Neferth said:
Hello xennr3
Sorry for the delay, I had examinations and I forgot this painful problem...
I tried to use MTTY but XP/Seven didn't let me create ActiveSync connection (making a banal connection is too hard for these OS). And without ActiveSync, no mtty.
And obviously no documentation in order to make the same thing with linux.
Sigh.
Anyway, I returned the HTC to its owner. I will try later (~3 month), but I surely will not give up. I will update this post if I found any useful documentation or alternative.
Click to expand...
Click to collapse
Isn't active sync for connecting to windows mobile devices like GPS etc?
Sent from my Legend using xda app-developers app
Hello,
I have recently purchased a refurb Lenovo K6, it came with an Android 6.0 rom.
Off the bat it had some weird reboots and app crashes, updating and system restore solved nothing; the problem worsened, so I ended up using the official Lenovo tools to perform a system recovery, which flashed a stock Nougat rom (K33_USR_S223_1706101140_Q00440_ROW).
This didn't stop sudden app crashes and system restarts however; even at initial system setup, many apps including Google Play Services would stop responding.
Since then I've lost count of re-flashes, data and cache wipes, permission resets etc. that I've performed.
I've attempted to root the phone with KingRoot in order to wipe the Dalvik Cache but could not complete the process.
I got plenty of logs via logcat, wish you could help me understand what's going on using them; here is a small one (Error level treshold) that I got, includes crashes of Firefox, Lenovo Launcher and I think Google Play Services.
pastebin. com/sZkDYPXi
I got other bigger ones, as well.
Mainly I notice a lot of "no such file or directory" errors, such as:
Code:
07-24 14:46:13.852 1447 1667 E QCOM PowerHAL: Error opening sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: No such file or directory
and a lot of SELinux permission denials:
Code:
07-24 14:31:22.373 474 474 E SELinux : avc: denied { find } for service=android.hardware.fingerprint.IFingerprintDaemon pid=2905 uid=10112 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:fingerprintd_service:s0 tclass=service_manager permissive=0
In another log with Warning treshold I was getting a lot of PackageManager warnings such as these:
Code:
07-22 19:34:36.255 5135 5135 W PackageManager: Not granting permission android.permission.ACCESS_FINE_LOCATION to package com.skype.raider because it was previously installed without
Code:
07-22 19:31:12.912 1422 1595 W PackageManager: Permission com.google.android.googleapps.permission.GOOGLE_AUTH from package com.google.android.gsf in an unknown group android.permission-group.ACCOUNTS
I'd rather try to fix the problem myself if at all possible, rather than returning the phone...
Thanks a lot for your help.
I now suspect there has been a failed root attempt on this device, as many errors have to do with denied permissions.
Also I managed to get a new logcat from many Firefox/Google Play Services and a system reboot, and the following line appears:
Code:
07-24 19:12:21.346 10637 10647 F art : art/runtime/gc/collector/mark_sweep.cc:448] Attempting see if it's a bad root
Also firefox crashes report this:
Code:
07-24 19:10:16.979 6598 6954 E InputDispatcher: channel '28475f0 org.mozilla.firefox/org.mozilla.gecko.BrowserApp (server)' ~ Channel is unrecoverably broken and will be disposed!
and apparently can't read session files:
Code:
07-24 19:10:42.340 10412 10426 E GeckoApp: An error occurred during restore, switching to backup file
07-24 19:10:42.340 10412 10426 E GeckoApp: org.mozilla.gecko.GeckoApp$SessionRestoreException: Could not read from session file
and the backtrace reports failure of some sort with async threads...
I really am banging my head against a wall here :crying:
bumpity bump bump
Hello together,
I recently made an update of LineageOS for my LG G5 (LineageOS 14.1) as well as my Samsung Galaxy S5 (LineageOS 15.1). They both seem to have serious issues afterwards and I don't know what happened. I assume something has changed within the last month or so and my problem appears with both devices.
It appears as if the permissions for all GApps have changed (or the uids perhaps). All other apps work perfectly fine so far. I also downloaded the latest GApps and installed them via TWRP but that doesn't seem to solve any problem. However I'm not sure that overwrites the old applications or only installs currently not installed ones.
So when ever I use one of these apps (Gmail, Playstore, Maps, some of the system processes), it always crashes and I see the log messages looking like this:
Code:
com.google.android.gms.persistent, PID: 13071
java.lang.RuntimeException: Unable to create application
com.google.android.gms.common.app.GmsApplication:
java.lang.SecurityException: addOnPermissionsChangeListener:
Neither user 10039 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5451)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1564)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6186)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
or
Code:
java.lang.SecurityException: Permission Denial: opening provider
com.google.android.gsf.gservices.GservicesProvider from
ProcessRecord{22a7d3b 23968:com.google.android.youtube/u0a108}
(pid=23968, uid=10108) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES
at android.os.Parcel.readException(Parcel.java:1684)
at android.os.Parcel.readException(Parcel.java:1637)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:4199)
or
Code:
java.lang.SecurityException: tname=Sensors - Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{3745b29 6048:com.google.android.apps.maps/u0a179} (pid=6048, uid=10179) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES
They all have in common that they tell me that "Neither user [???] nor current process has android.permission.[???] "
It seems to work uninstalling the specific app and reinstalling it. However this is a lot of work and isn't really easy for some apps that are closer to the system.
So what can I do? What exactly is the problem here? Did the UIDs change? Any suggestions please!