Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

LG encrypted apps can't be loaded #27

Closed
chris1000 opened this issue Mar 9, 2015 · 39 comments
Closed

LG encrypted apps can't be loaded #27

chris1000 opened this issue Mar 9, 2015 · 39 comments

Comments

@chris1000
Copy link

When you install any version of xposed on lg g3 lollipop it cause several apps to crash. These apps are LGSmartCover and Wether applications. You cannot uninstall LGSmartCover because it causes fc's.

@rovo89
Copy link
Owner

rovo89 commented Mar 9, 2015

Please provide logs of the crashes, otherwise I don't have any chance of analysing or even fixing them.

@ryrzy
Copy link

ryrzy commented Mar 9, 2015

@nobless
Copy link

nobless commented Mar 12, 2015

Any news here? :) or maybe any ideas what goes wrong, really waiting for the fix of this, the only thing that stops me from using Xposed, that crash of SmartCover, cause of daily using of it, and big thanks for supporting Liollipop, keep going i like your work so much ;))

@chris1000
Copy link
Author

Just do this
http://forum.xda-developers.com/lg-g3/general/how-to-xposed-running-properly-stock-t3030261
On Mar 11, 2015 8:26 PM, "nobless" notifications@github.com wrote:

Any news here? :) or maybe any ideas what goes wrong, really waiting for
the fix of this, the only thing that stops me from using Xposed, that crash
of SmartCover, cause of daily using of it, and big thanks for supporting
Liollipop, keep going i like your work so much ;))


Reply to this email directly or view it on GitHub
#27 (comment).

@ryrzy
Copy link

ryrzy commented Mar 12, 2015

chris100 we know this, but what if we use circle case ?

@nobless
Copy link

nobless commented Mar 12, 2015

I know that we can just delete smartcase and weather, but im using smartcase :)

@rovo89
Copy link
Owner

rovo89 commented Mar 12, 2015

Sorry, I don't have time to look into this at the moment... Maybe someone else has enough technical knowledge to check the logs for the root cause? The ClassNotFoundException for SmartCoverViewManagerService seems to be a good start, maybe there are other lines before that (verifier rejecting the class or something like that). Also, is that class even existing in /system/priv-app/LGCover/LGCover.apk?

@chris1000
Copy link
Author

Try sending a log I can try to help if not I will ask for help on xda
On Mar 12, 2015 12:18 PM, "rovo89" notifications@github.com wrote:

Sorry, I don't have time to look into this at the moment... Maybe someone
else has enough technical knowledge to check the logs for the root cause?
The ClassNotFoundException for SmartCoverViewManagerService seems to be a
good start, maybe there are other lines before that (verifier rejecting the
class or something like that). Also, is that class even existing in
/system/priv-app/LGCover/LGCover.apk?


Reply to this email directly or view it on GitHub
#27 (comment).

@P-Toti
Copy link

P-Toti commented Mar 22, 2015

The root cause is that some LG apps are encrypted. Both dex and oat are protected(AES-CBC). LG art libs are slightly differents than AOSP(so dex2oat is) ones,anyway almost all the code to handle the protection is placed in another lib(liblgalmond)

@rovo89
Copy link
Owner

rovo89 commented Apr 7, 2015

Do you have any reference with further details on this? I don't really expect that I can add support for such apps, but it would be good to know.

@P-Toti
Copy link

P-Toti commented Apr 9, 2015

Actually the protection isn't anything hard to understand(and there are at least 2 ways to obtain a clear dex) but i agree you shouldn't add the support for such apps.(unless you agree to create a closed-source fork). LG just encrypted 2 proprietary apps and i think they probably had very good reasons for that(even if i really couldn't find one). That's why i chosen to not release the apps after decrypting them(i really don't want LG to be mad at me). I can send to your email further details,including some explanations about the protection,the lib,a clear and the relative encrypted dex if you are interested.

@ghost
Copy link

ghost commented Apr 26, 2015

Has this issue been addressed on newest release? I know this is not the biggest issue on your plate but any update would be appreciated!

@pylerSM
Copy link
Contributor

pylerSM commented May 1, 2015

Even LG modifies ART? If every OEM did it, it would be death of Xposed.

@Zorastris
Copy link

Any updates on this issue? Can any one be of assistance please? Thanks.

@kevinkhill
Copy link

I am also curious if there is any hope for us G3 owners of circle cases to be able to have xposed and smart cover working together? I don't know much about android development, but I can help test or debug if possible.

@rovo89
Copy link
Owner

rovo89 commented Jun 4, 2015

I have currently no plans on adding support for encrypted apps (mostly because of limited time). However, Xposed is open-source, so if someone wants to try and create a proof-of-concept that can handle such apps, I will obviously consider integrating it.

@kevinkhill
Copy link

Ahhh, I see, I didn't realize that was the reason why it didn't work. I would like to help, but I wouldn't even know where to start. Thank you very much for all that you have done and I'll just keep patiently waiting for someone more skilled than me to hopefully make a fix.

@rovo89 rovo89 changed the title LG G3 Lollipop Issue LG encrypted apps can't be loaded Jun 14, 2015
@lgg3helpme
Copy link

how to fix LGSmartCover?i dont need xposed anymore??

@rovo89
Copy link
Owner

rovo89 commented Jun 28, 2015

how to fix LGSmartCover?i dont need xposed anymore??

Support questions don't belong here, but I have just uploaded uninstaller scripts: http://forum.xda-developers.com/showthread.php?t=3034811

@lgg3helpme
Copy link

thank you that you made time for me. I hope that you helped me with your
answer :)
Dana 28. lip 2015. 22:08 osoba "rovo89" notifications@github.com napisala
je:

how to fix LGSmartCover?i dont need xposed anymore??

Support questions don't belong here, but I have just uploaded uninstaller
scripts: http://forum.xda-developers.com/showthread.php?t=3034811


Reply to this email directly or view it on GitHub
#27 (comment).

@Zackptg5
Copy link

Zackptg5 commented Jul 1, 2015

@lgg3helpme

LGSmartCover is an encrypted app and is incompatible with xposed. You have 3 choices:

  1. Remove LGSmartCover completely
  2. Freeze LGSmartCover
  3. Don't use xposed

I recommend the 2nd one.

@chris1000
Copy link
Author

I just took it out of my ROM that way my users don't have to worry....

Sent from my iPad

On Jul 1, 2015, at 6:52 PM, Zackptg5 notifications@github.com wrote:

@lgg3helpme

LGSmartCover is an encrypted app and is incompatible with xposed. You have 3 choices:

  1. Remove LGSmartCover completely
  2. Freeze LGSmartCover
  3. Don't use xposed

I recommend the 2nd one.


Reply to this email directly or view it on GitHub.

@smiledexter
Copy link

@rovo89
Copy link
Owner

rovo89 commented Jul 30, 2015

Can someone please upload the files related to the apps that cannot be used and the encryption library? I think that would be:

/system/priv-app/LGCover
/system/app/LGWeather
/system/app/LGWeatherService
/system/lib/liblgalmond.so
/system/build.prop (just for reference)

@rovo89
Copy link
Owner

rovo89 commented Aug 2, 2015

@rovo89
Copy link
Owner

rovo89 commented Aug 3, 2015

@suljo94 Unfortunately, the XDA thread is closed now. So everything works fine after deleting the Dalvik cache? Nothing else required? If yes, I'll release an official update with the change.

@Zackptg5
Copy link

Zackptg5 commented Aug 3, 2015

@rovo89 Sorry, was out of town. Here's the files you requested: http://www.4shared.com/zip/5IjAoJLDba/LG_Encrypted_Apps.html

The lib file was where you said it would be; I have the verizon variant lg g2. These are all stock files as I flashed stock lollipop to make this as vanilla as possible. Currently testing the xposed version you put in the thread, will update when It's booted (so far so good)

Edit: Booted fine, no force closes, installer says xposed is installed and working but when attempting to get logs from the installer, gives read error. So I got logs from terminal and catlog:
http://www.4shared.com/zip/sZUBO6fuce/v69_Logs.html

Hopefully one of them will have what you need. Thanks!

@rovo89
Copy link
Owner

rovo89 commented Aug 3, 2015

As long as there are no force closes and the LG apps work fine, I don't think I'll need any further logs. The Xposed logs might be available after another reboot.

@smiledexter
Copy link

com.lge.filemanager work fine with v69 test1 version, thanks.

@rovo89
Copy link
Owner

rovo89 commented Aug 7, 2015

The commit only adds support for encrypted .dex files. However, some ROMs have encrypted .odex files instead, which will need a different way of decryption. I'm almost done with this and will probably upload a test build this evening (in ~9 hours from now). If anyone is available for testing at that time, it would be good, as I won't have time to work on Xposed in the next few day.

@alex-necula
Copy link

@rovo89 i'm available for testing at almost anytime. Can' t wait for that:)

@steffenbakke
Copy link

I'm staying tuned for this !

@rovo89
Copy link
Owner

rovo89 commented Aug 7, 2015

@cretu01 @steffenbakke Could you test this please? https://www.dropbox.com/s/yp4uwdfau4zou5z/xposed-v70-sdk21-arm-test1.zip?dl=0
Again, it would be helpful to clear the Dalvik cache, just in case...

@alex-necula
Copy link

This is working flawlessly, no FCs for cover, weather etc. i didn't wipe dalvik cache as lgcover and weather weren't present before in system (renamed those as .bak from the beginning). although, easyhome was present (gave FC only when enabled) and it is working, too! Do you need further logs if no errors are present?

@rovo89
Copy link
Owner

rovo89 commented Aug 7, 2015

Thanks for testing it so fast! :) No further logs required if everything's fine.
I'll give @steffenbakke some more time for testing though.

@fishears
Copy link

fishears commented Aug 7, 2015

Tested on G Pad 8.3 (v500) with stock 5.0.2 and Weather is now fully working. This device doesn't have LGCover, weather was the only problem. Thank you so much.

@steffenbakke
Copy link

Just flashed it and seems everything is running as it should. Thanks for fixing it!

@outoftheblack
Copy link

Hello,

So reading this thread I understand that the LG encryption issue has been fixed :-)
How/where can I get this build to install Xposed on my LG G3?

Thanks a lot
Olivier

@fishears
Copy link

Official xposed for 5.0.x
http://forum.xda-developers.com/showthread.php?t=3034811
Unofficial xposed for 5.1.x
http://forum.xda-developers.com/xposed/super-alpha-posted-permission-xposed-t3072979
On 15 Aug 2015 23:18, "outoftheblack" notifications@github.com wrote:

Hello,

So reading this thread I understand that the LG encryption issue has been
fixed :-)
How/where can I get this build to install Xposed on my LG G3?

Thanks a lot
Olivier


Reply to this email directly or view it on GitHub
#27 (comment).

B--B pushed a commit to AOSP-JF/platform_art that referenced this issue Sep 15, 2015
LG has encrypted a few apps with their DRM implementation. Those apps can
usually not be loaded. Fortunately, the decryption takes place in a separate
library called liblgalmond.so.

Xposed now uses this library if available to check if a dex file (usually
located in a ZIP archive) is encrypted, and if yes, triggers the in-place
decryption of the file before initializing it.

For precompiled/odex files, a different way of decrypting is required. Similar
to dex files, the decryption can also be done on the fly when the file is loaded.

Fixes rovo89/Xposed#27.

Conflicts:
	runtime/dex_file.cc
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests