Posts

Showing posts from April, 2018

C#.Net Static Linking Adventures

My app uses two DLLs - say Lib1 and Lib2 from a CommonDll folder. With normal linking these DLL's also need to be placed with App executable. But previously we have been providing only App exe only. Hence to keep the compatibility and to lessen deployment headaches, the above 2 DLLs will be statically linked in the executable. In .Net world this not so straightforward as setting a static linking flag in linker. Here we need to provide following steps. I have added the rationale for each step alongwith. 1. Add the DLL's to project as resources - preferably in a Resources folder. Go into these DLLs properties and change "Build Action" from "Content" to "Embedded Resource". Now the DLLs shall get embedded in the exe. 2. Provide a handler for AssemblyResolve event. This new handler looks for assemblies in Resources and if found, loads them there. This handler is like below: private static Assembly ResolveEventHandler(Object sender, Resol

ROM adventures on Nubia Z9 mini

Remember this one I gave to my Sis last year... Well since last month it started giving problems. What happened was the phone would get stuck in starting apps phase and zombie out. Only way to bring it back from zombie mode is to factory reset from recovery. But after a few days, some things related to Google Play Services would update and the phone would zombie out again. Sister got fed up and gave me the phone to fix. So I went through a number of hoops to fix this issue and it's still not fixed. To start with, the phone ran Mokee ROM v6.0 - marshmallow based with open gapps. Now all this is about two years old - things from 2016. And it all worked fine for last two years. So what I did was reflashed everything and tried to see what's wrong. Worked fine till play services are updated. as soon as play services are updated, phone zombies out. Ok. Get new version of gApps. Got it but after clean flashing that too, no change. Same issue. So maybe the Rom is gone. So I download la