Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

uLiveWallpaper - Develop Android Live Wallpapers with Unity!

Discussion in 'Assets and Asset Store' started by ZimM, Dec 20, 2015.

  1. androbeanstudio

    androbeanstudio

    Joined:
    May 2, 2017
    Posts:
    83
    Have a look at my live wallpaper asset; ALPS.

    ALPS lets you create Android Live wallpapers without using AndroidStudio at all.
    ALPS also has inbuilt IAP and AdMob support.

    Have a look at the user reviews in the product page, ask questions in the forum or email me directly if you have questions.

    Demo app:
    https://play.google.com/store/apps/details?id=com.androbean.android.unityplugin.alps.demo

    Product page:
    https://www.assetstore.unity3d.com/#!/content/101053

    Forum thread:
    https://forum.unity.com/threads/ann...ration-for-android.498194/page-2#post-4922318
     
  2. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    Hello.
    For some reason I'm unable to get the arm64-v8a folder after an successful compile. I have tried the right settings in Unity and in Android Studio following the guild lines. If I build straight from Unity, I get the arm64-v8a folder with the .so files but not with the uLiveWallpaper plugin. There are no errors or warnings. 32-bit armeabi-v7a folder with .so files is just fine though. Anyone has any clue as to this? Thanks.
     
  3. ArthurUS83

    ArthurUS83

    Joined:
    Jan 13, 2016
    Posts:
    25
  4. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
  5. samran263

    samran263

    Joined:
    Dec 29, 2016
    Posts:
    4
    Hello friends...
    Sir we have certain issues in uLiveWallpaper Pro.unitypackage,our wallpaper app is almost done but when we run the app on mobile and in the start open the UnityPreviewActivity for the preview.There is a menu window which have many settings for the wallpaper like change background,animation & particles and after done all of these there is an apply button and setting button...here is the issue some time when wallpaperservice is open its restart my app and in wallpaperService UnityPreviewActivity is open and menu window(mentioned above) also appear behind the green apply button....Another issue is that when i press the green apply button the wallpaper is applied to mobile home screen and menu window (mentioned above) also applied to home screen withthe wallpaper.if i import the PlayMakerIntegration then a lot of errors appear in the console.I search a lot but i could't find any solution...Please help..we are waiting for your reply.
    Screenshot are attached below....Thanks in advance
     

    Attached Files:

  6. riddlez46

    riddlez46

    Joined:
    Feb 15, 2019
    Posts:
    8
    Hi JustZht, I'm having the same problem and trying to find a fix for it, are you able to elaborate more on the work around you found?
     
  7. ArthurUS83

    ArthurUS83

    Joined:
    Jan 13, 2016
    Posts:
    25
    another problem, Live Wallpaper Crushing on Android 10, working fine on oldest versions , but Crushing new Android 10 OS. Is any body could resolve this problem?
    Plus When restarting Phone Black screen, wallpaper not starting.
     
    Last edited: Mar 14, 2020
    kkl888 likes this.
  8. Maddog4004

    Maddog4004

    Joined:
    Aug 19, 2019
    Posts:
    1
    Hi i would just like to say that the download links for pdf instructions don't work anymore. Or is it a problem on my end?
     
  9. dhtpdud528

    dhtpdud528

    Joined:
    Apr 8, 2018
    Posts:
    14
    (first i'm korean and sorry for my poor english)

    my project using universal RP, Unity 2019.3.7f1.
    If I press the create project button, the android studio project is created, but there are some errors.

    Code (CSharp):
    1. FileNotFoundException: AndroidManifest.xml not found in Android project
    2. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperProjectBuilder.LoadAndroidManifest () (at G:/PROGRAMMING/Repos/BitBucket/uLiveWallpaper/UnityProject/Assets/uLiveWallpaper/Source/Internals/Editor/BuildPipeline/LiveWallpaperProjectBuilder.cs:255)
    3. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperProjectBuilder.BuildProject () (at G:/PROGRAMMING/Repos/BitBucket/uLiveWallpaper/UnityProject/Assets/uLiveWallpaper/Source/Internals/Editor/BuildPipeline/LiveWallpaperProjectBuilder.cs:111)
    4. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperBuildGuiUtility.CreateLiveWallpaperProject (LostPolygon.uLiveWallpaper.Editor.Internal.ProjectSettingsContainer projectSettings) (at G:/PROGRAMMING/Repos/BitBucket/uLiveWallpaper/UnityProject/Assets/uLiveWallpaper/Source/Internals/Editor/LiveWallpaperBuildGuiUtility.cs:134)
    5. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperBuildWindow.CreateLiveWallpaperProject () (at G:/PROGRAMMING/Repos/BitBucket/uLiveWallpaper/UnityProject/Assets/uLiveWallpaper/Source/Internals/Editor/LiveWallpaperBuildWindow.cs:602)
    6. UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    After that, when built and installed on my Android device, only UnityApp runs, do not show up Android windows for wallpaper.
     
  10. dhtpdud528

    dhtpdud528

    Joined:
    Apr 8, 2018
    Posts:
    14
    Oh! I just solved the problem by using version 2019.2. I really hated the 2018.x version because of the emission baking problem. So I think it's a relief.
     
  11. ArthurUS83

    ArthurUS83

    Joined:
    Jan 13, 2016
    Posts:
    25
    How About Android 10 Problem?
     
  12. dhtpdud528

    dhtpdud528

    Joined:
    Apr 8, 2018
    Posts:
    14
    The Android device I am using is "Samsung Galaxy Note10+". and it's the Android 10. at least, there is no problem with my device.
     
    Last edited: May 11, 2020
  13. kkl888

    kkl888

    Joined:
    Dec 6, 2014
    Posts:
    52
    I've been getting alot of this crash error on Android 10, some in Android 8 and 7.

    I'm using Unity 2019.2.21f1, uLivewallpaper 1.4.8.0. Any clue?

     
  14. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    Is this project still updated at all ?
     
  15. kkl888

    kkl888

    Joined:
    Dec 6, 2014
    Posts:
    52
    Ok. I solved it by overriding
    useScreenOnOffAsVisibilityChangedWorkaround
    to return false.
     
  16. kkl888

    kkl888

    Joined:
    Dec 6, 2014
    Posts:
    52
    I'm getting another error. This happens on mostly Samsung devices with Android 10. I tried other native Android Live Wallpaper (non-unity3d) and it does not cause this error.
    Code (CSharp):
    1. Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.WallpaperManager.notifyPid(boolean, int, java.lang.String)' on a null object reference
    2.        at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:1326)
    3.        at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1732)
    4.        at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
    5.        at android.os.Handler.dispatchMessage(Handler.java:107)
    6.        at android.os.Looper.loop(Looper.java:237)
    7.        at android.app.ActivityThread.main(ActivityThread.java:8154)
    8.        at java.lang.reflect.Method.invoke(Method.java)
    9.        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    10.        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
     
  17. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Hi, have You find a way to solve this issue? I have several clients with same error.
     
  18. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    Hey, I just updated my Note 10+ and having the same error. Any updates?
     
    Breathtaker likes this.
  19. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    I still try to get Samsung device to have possibility debug error in android studio(((.

    When i find solution i will post it here as soon as possible.
     
    abotrix and nasos_333 like this.
  20. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Can You please tell me current version of One UI from Note 10+?
    Looks like this bug appears only at One UI 2.5.
     
    Last edited: Oct 23, 2020
  21. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    I have 2 news.
    1) I succesfully find a way to debug live wallpaper on samsung device with One UI 2.5. The error easy reproducible.
    You need to register on https://developer.samsung.com/remote-test-lab and run your live wallpaper on galaxy z fold2 for example.

    2) Lite Version of ULiveWallpaper is not enough. Souces disassembling is not helped me.

    To be honest i'am not sure that i want to spend another 30$ on product to have possibility to fix it.
     
    nasos_333 likes this.
  22. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    I get a similar error when test in One UI 2.5

    Code (csharp):
    1.  
    2. java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.WallpaperManager.getLidState()' on a null object reference
    3. at android.service.wallpaper.WallpaperService$Engine.isSupportInconsistency(WallpaperService.java:1615)
    4. at android.service.wallpaper.WallpaperService$Engine.onCreate(WallpaperService.java:628)
    5. at com.lostpolygon.unity.livewallpaper.UnityWallpaperService$UnityWallpaperEngine.onCreate(UnityWallpaperService.java:255)
    6. at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:1363)
    7. at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1784)
    8. at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
    9. at android.os.Handler.dispatchMessage(Handler.java:107)
    10. at android.os.Looper.loop(Looper.java:237)
    11. at android.app.ActivityThread.main(ActivityThread.java:8167)
    12. at java.lang.reflect.Method.invoke(Native Method)
    13. at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    14. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
    15.  
    From what i gather the error means that the WallpaperManager has not been created when the onCreate for the unity wallpaper engine is called

    I also read about some issues that may be related to the latest Android 10 for bakcground processes and intents limitations, this may apply in One UI 2.5 since it is the first native Android 10 version, so may implement those limitations

    https://stackoverflow.com/questions...t-activity-background-in-android-10-android-q
     
  23. kkl888

    kkl888

    Joined:
    Dec 6, 2014
    Posts:
    52
    After decompiled the java code, I suspect the wallpaper service is being forced to close by code even if it should not. When other internal Android code trying to access the wallpaper service instance, it becomes unavailable and null. Not sure how to fix the current codebase as of now, but I'm thinking of rewriting my own from the scratch instead. Sigh
     
  24. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    I tried disable the following option that might be responsible, but still not working


    /**
    * @return Whether to destroy the live wallpaper service if all wallpaper engines got destroyed.
    * For some reason, when Preview screen is started first, the wallpaper service is not destroyed automatically.
    * Override this to return false if you run into issues.
    */
    protected boolean useServiceDestroyWorkaround() {
    return false;
    }


    EDIT:

    I also get an error related to API use

    Code (csharp):
    1.  
    2. 10-29 00:14:17.407 10506 17008 17008 E UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    3. 10-29 00:14:17.407 10506 17008 17008 W System.err: java.lang.Exception: permissionRequestDialogInterface == null
    4. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.androidintegration.UnityPlayerWrapper.disableConflictingApi23Support(UnityPlayerWrapper.java:394)
    5. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.androidintegration.UnityPlayerWrapper.<init>(UnityPlayerWrapper.java:70)
    6. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(UnityPlayerInstanceManager.java:109)
    7. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.requestCreateUnityPlayer(UnityPlayerInstanceManager.java:95)
    8. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.androidintegration.UnityPlayerWrapperInstantiator.instantiate(UnityPlayerWrapperInstantiator.java:54)
    9. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.livewallpaper.UnityWallpaperService$UnityWallpaperEngine.<init>(UnityWallpaperService.java:241)
    10. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.lostpolygon.unity.livewallpaper.UnityWallpaperService.onCreateEngine(UnityWallpaperService.java:102)
    11. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1781)
    12. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
    13. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at android.os.Handler.dispatchMessage(Handler.java:107)
    14. 10-29 00:14:17.407 10209 10821 17041 D [WEATHER_WIDGET]WidgetUtil(188): {[6ACB7E8902D2B0069966A161D950DDBBD8883FD9C8D5E7BBA378FE7D8F1A087B]}
    15. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at android.os.Looper.loop(Looper.java:237)
    16. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at android.app.ActivityThread.main(ActivityThread.java:8167)
    17. 10-29 00:14:17.407 10241  3278  3371 D KnoxHelper: getActivityList callingUserId: 0, target user: 0
    18. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at java.lang.reflect.Method.invoke(Native Method)
    19. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    20. 10-29 00:14:17.407 10506 17008 17008 W System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
    21.  
     
    Last edited: Oct 29, 2020
  25. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    Yah, it's OneUI 2.5!
     
  26. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    I just noticed that in OneUI 2.1 i get a permissions message while in the 2.5 i dont, at the point where gets stuck

    Maybe is just that something has changed in persimissions granting

    I get this one in 2.5 and not in 2.1

    "Unable to disable conflicting built-in Unity player API 23 permission request dialog."

    This is a message coming from a strange function that does some strange manipulations related to API 23 version, i suppose it might be the issue

    EDIT: I take half of it back, i do see the same error message in OneUI 2.1, but i do get a permissions dialog displayed and thus i get this only once, while in 2.5 i dont get that window and then retry and got it multiple times
     
    Last edited: Oct 29, 2020
  27. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    I'm finally getting back around to updating some of my older live wallpaper that I've made a few years ago. When I try to update my Android Studio project from the Tools > Lost Polygon menu setting, I receive the following error:

    Code (CSharp):
    1. InvalidOperationException: The build target does not support build appending.
    2. UnityEditor.BuildPipeline.BuildPlayer (System.String[] scenes, System.String locationPathName, System.String assetBundleManifestPath, UnityEditor.BuildTargetGroup buildTargetGroup, UnityEditor.BuildTarget target, UnityEditor.BuildOptions options) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
    3. UnityEditor.BuildPipeline.BuildPlayer (UnityEditor.BuildPlayerOptions buildPlayerOptions) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
    4. UnityEditor.BuildPipeline.BuildPlayer (System.String[] levels, System.String locationPathName, UnityEditor.BuildTarget target, UnityEditor.BuildOptions options) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
    5. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
    6. Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    7. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
    8. System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <9577ac7a62ef43179789031239ba8798>:0)
    9. LostPolygon.uLiveWallpaper.Editor.BuildPipelineUtilities.BuildPlayerGetErrors (System.String path, System.String[] buildScenes, UnityEditor.BuildOptions buildOptions, System.String[]& errors) (at Assets/uLiveWallpaper/Source/Internals/Editor/BuildPipeline/BuildPipelineUtilities.cs:91)
    10. LostPolygon.uLiveWallpaper.Editor.BuildPipelineUtilities.BuildAndroidProject (System.String path, LostPolygon.uLiveWallpaper.Editor.Internal.UnityVersionedReflectionWrapper+AndroidBuildSystem buildSystem, System.String[] buildScenes, UnityEditor.BuildOptions buildOptions, System.String packageName, System.String& unityProjectPath, System.String[]& errors) (at Assets/uLiveWallpaper/Source/Internals/Editor/BuildPipeline/BuildPipelineUtilities.cs:49)
    11. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperGradleProjectUpdater.BuildStagingProject (System.String stagingProjectPath) (at Assets/uLiveWallpaper/Source/Internals/Editor/BuildPipeline/LiveWallpaperGradleProjectUpdater.cs:228)
    12. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperGradleProjectUpdater.UpdateProject () (at Assets/uLiveWallpaper/Source/Internals/Editor/BuildPipeline/LiveWallpaperGradleProjectUpdater.cs:41)
    13. LostPolygon.uLiveWallpaper.Editor.LiveWallpaperBuildGuiUtility.UpdateLiveWallpaperProject (LostPolygon.uLiveWallpaper.Editor.Internal.ProjectSettingsContainer projectSettings) (at Assets/uLiveWallpaper/Source/Internals/Editor/LiveWallpaperBuildGuiUtility.cs:103)
    14. LostPolygon.uLiveWallpaper.Editor.Internal.MenuItemsImplementation.UpdateProject () (at Assets/uLiveWallpaper/Source/Internals/Editor/MenuItemsImplementation.cs:60)
    15. LostPolygon.uLiveWallpaper.Editor.Internal.MenuItems.RunUpdateProject () (at Assets/uLiveWallpaper/Source/Exposed/Editor/MenuItems.cs:18)
    16.  
    Sorry for the long stack trace - I wanted to give as much info as possible. I have already looked through this forum thread but I could not find any information about this. Thanks.
     
  28. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    Generally the project seems to not be updated for long time now, i will revert to another system or make my own after weeks of trying to get anything to work, is getting too much and support is zero, i sent email too and nothing happens

    I wonder how the store allows such a system to be sold, is crazy, they should remove it asap as there is zero support or updates.
     
  29. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    I contacted the developer as well but he's not responding. I was thinking that if I bought the full version of the asset to change code somewhere to make it work, you guy's think that would work? If so, I'm willing to buy it and post the code here or make it available to anyone who wants it via google drive since the developer doesn't want to come back to his asset. (If I'm allowed to do this). Let me know!
     
  30. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    Unfortunately is not allowed to redistribute the code unless the original developer allows it.

    The issue is that the code is rather complex, so is very hard to pin point anything in it and the trust to system is zero at this point, as using it even if one bug is fixed is still a huge risk if the asset is not supported.
     
  31. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    I think what seems to have worked in my scenario was to begrudgingly install an older version of Unity (2018.4.28f1). Luckily I had a snapshot of my project in git that I could refer to in order to get around the issue with files being compiled/serialized to the latest version of Unity.
     
  32. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    Does it also solve the crashes in Android 10 ?
     
  33. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    Oh man... To be honest, I wasn't aware of that issue. I had only done a search on this thread for my particular issue. Is your issue happening on all Android 10 devices, or just a particular few?
     
  34. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    I think is related to only those with latest OneUI 2.5, i could reproduce a complete crash on those, but worked on OneUI 2.1 for example. To find the reason seems that will have to go through the whole code and in this case maybe is best to remake my own system from start, so will have control over it in future, as cant risk having clients not be able to use the software.
     
  35. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    I got to a certain point in my project where I was finally able to compile and try to set the live wallpaper. I received the same error as you:
    Code (CSharp):
    1. E/Unity: Failed to load 'libmain.so', the application will terminate.
    2. E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    What a bummer!
     
  36. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    Yes, this is a game stopper unfortunately, i tried many things but simply crashes with anything i tried
     
  37. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    One thing I just tried was to recreate the LWP android project into a new directory as opposed to just running an update. After opening that newly exported project in Android Studio and running that, it seems to work. What I plan to do today is to migrate all of my Android code into this newly created directory and hopefully that will work!
     
    nasos_333 likes this.
  38. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    You mean it solves the crash in oneui 2.5 in android 10 ? That would be cool :), thanks for the heads up
     
  39. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    I'd need a Samsung device to be able to replicate that issue unfortunately :(
    If you have one, maybe we can try a test. The live wallpaper I'm working on is titled HexOrb 3D. If you have time, would you please try that wallpaper out and see if it works? The version on the play store is pretty old and I want to update it. Then, when I am ready with my update, I can send you an .apk to try out and to see if my method works.
     
    nasos_333 likes this.
  40. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    You can check this site, this is where i did the tests as well

    https://developer.samsung.com/remotetestlab

    Galaxy Z Fold2 has the OneUI 2.5 that causes the crash.
     
  41. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Guys. I have successfully solved the One UI 2.5 bug. Thanks to one good person who helped with getting sources:).
    If you have sources then you just need to add super.onCreate() in method onCreate() of UnityWallpaperService class.


    New method code here:
    Code (CSharp):
    1. @Override
    2.     public void onCreate() {
    3.         super.onCreate();
    4.  
    5.         // Update Unity version info
    6.         MetaInfo.updateUnityVersionIfNeeded(this);
    7.         if (MetaInfo.getInstance().isVerboseLog()) {
    8.            DebugLog.setIsVerboseEnabled(true);
    9.         }
    10.         DebugLog.logStartupMessage();
    11.         if (DebugLog.getIsVerboseEnabled()) DebugLog.v("UnityWallpaperService.onCreate");
    12.  
    13.         // Attach the {@link StandardExceptionHandler} to get better exception logs.
    14.         StandardExceptionHandler.getInstance().attach();
    15.  
    16.         // Register the screen on/off broadcast listener
    17.         IntentFilter filter = new IntentFilter();
    18.         filter.addAction(Intent.ACTION_SCREEN_ON);
    19.         filter.addAction(Intent.ACTION_SCREEN_OFF);
    20.         registerReceiver(mScreenOnOffReceiver, filter);
    21.     }
    Tomorrow I will build an updated LP_uLiveWallpaper.aar library and post it here.
    To fix this bug users of the indie version just need to change this lib in their projects.
     
    abotrix, ArthurUS83 and nasos_333 like this.
  42. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Here the fix for One UI 2.5. Warning: Using this method in commercial projects is not legal. For more information, see the posts below.

    Video instruction:


    Text instruction:
    The latest version of uLiveWallpaper does not work on Samsung devices with One UI 2.5.
    If You try to launch live wallpapers on such a device, You will receive the next error.

    Code (CSharp):
    1. java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.WallpaperManager.getLidState()' on a null object reference
    2. at android.service.wallpaper.WallpaperService$Engine.isSupportInconsistency(WallpaperService.java:1615)
    3. at android.service.wallpaper.WallpaperService$Engine.onCreate(WallpaperService.java:628)
    4. at com.lostpolygon.unity.livewallpaper.UnityWallpaperService$UnityWallpaperEngine.onCreate(UnityWallpaperService.java:255)
    5. at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:1363)
    6. at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1784)
    7. at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
    8. at android.os.Handler.dispatchMessage(Handler.java:107)
    9. at android.os.Looper.loop(Looper.java:237)
    10. at android.app.ActivityThread.main(ActivityThread.java:8167)
    11. at java.lang.reflect.Method.invoke(Native Method)
    12. at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    13. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
    To prevent this kind of error, you need to replace the old LP_uLiveWallpaper.aar with the new ones.
    1) You need to download the archive using this link or from message bottom.
    2) Get new LP_uLiveWallpaper.aar from it and replace old ones in unity project. Typical path is Assets\uLiveWallpaper\Libraries.
    3) You need to update Your Android Studio project using uLiveWallpaper updater.
    4) Clean Android Studio project and build new APK.
     

    Attached Files:

    Last edited: Nov 17, 2020
    abotrix, ArthurUS83 and nasos_333 like this.
  43. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    Awesome!! You the man!! Worked perfectly!:D Thanks a bunch!
     
    Breathtaker likes this.
  44. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    I suppose is prohibited to distribute the code though, also anyone that uses it is subject to lawsuits now, so that is definitely not the best way to solve the issue unfortunately. But is great to know the solution for anyone that has bought the full version for sure.
     
    Breathtaker likes this.
  45. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Source code is not available here, and using uLiveWallpaper still needs to have unity part of uLiveWallpaper and a big part of the Android Studio project. In docs, store pages, and projects, I don't find any information about licensing and forbidding to free share modified library.

    I understand Your thought and maybe it's right. But to be honest looks like uLiveWallpaper project is dead now. Indie users don't have a choice at all.
     
    ArthurUS83 likes this.
  46. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    You cant share any code or library you do not have explicit rights to do so, that is a general rule. It is exactly like pirating the code, even if intentions are good. The issue is also that users that use this code are directly accountable for using code they dont have rights to use, risking everything in their development.

    The only legal choice in this case is to buy the asset that provides the code and edit it manually, so there is one option that does not involve distributing code.
     
    Breathtaker likes this.
  47. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Ok, I'll add information about this in the post with a fix. I will delete the fix as soon as uLiveWallpaper creator fix this issue.
     
    Last edited: Nov 17, 2020
    abotrix, ArthurUS83 and nasos_333 like this.
  48. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    Umm.. I guess I'll buy the full version after all if I can't use it even though it worked. I guess I don't want to get sued.o_O

    The developer should really pull down the indie version on the Unity store if one needs to buy full version to fix the asset him/herself unless he's no longer alive, thats a different story.(Hopefully he's ok).
     
    Last edited: Nov 18, 2020
  49. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,891
    Indeed, buying the full asset with code and doing the changes above is the way to go, no reason to risk everything for few dollars in this case is my opinion.
     
    abotrix likes this.
  50. asdronin1

    asdronin1

    Joined:
    May 18, 2020
    Posts:
    2
    Hi, I have this same problem that was described by @corpsinheretoo

    "Could not find method google() for arguments [] on repository container."

    I updated all that can be updated in Android Studio but apparently nothing works, can someone tell me what to do here please? Thanks beforehand