Showing posts with the label Android

Step by step migration of ASP.NET Core 2.2 to 3.1

In order to upgrade/migrate core version to 3.1 following steps to be perform.
Download and install Visual Studio 2019 version 16.4 or higher.Download and install .NET Core 3.1 the projects of solution to .NET Core 3.1 , because ASP.NET Core 3.1 requires it.Update existing Nuget packages to a version compatible with ASP.NET Core 3.1 in each projectUse IHost interface from a IHostBuilder instead of building and running a IWebHost from a IWebHostBuilder in Program.cs public static IHostBuilder CreateWebHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseKestrel() .UseSerilog() .UseStartup<Startup>(); }) Change AddMvc method has been replaced by AddControllers in Startup.cs of each projects.In Startup.cs,UseMvc method to be replaced by…

Move all apps to sd card in Android by using adb interface setting

I have experienced all apps in android device not moving to sd card and  this leads to out of space the phone memory. To deal with this we can set default installation location to sd card. To achieve this we need to use adb interface and some commands.
Before using this trick you need to download the SDK package from android . Once you have the SDK you can find the adb tool in /platform-tools/, though in my case I have it at /tools/.
After you’ve installed the SDK you’ll need to connect your phone to your computer using the USB data cable. You’ll also need to make sure that debugging is possible by visiting “Settings -> Applications -> Development” and checking “USB Debugging”.
To change the the install location we are going to run the pm command via the adb shell. Here’s the details of the pm command:

The setInstallLocation command changes the default install location 0 [auto]: Let system decide the best location 1 [internal]: Install on internal device storage 2 [external…

Root your Gingerbread 2.3.4 android Mobile Phone

Root your Gingerbread 2.3.4 android Mobile Phone with following steps. before you start you have to download some files from here and follow the steps below

 Put the phone in Debug Mode: Go to Settings > Applications > Development and check USB debugging box. Extract the files from the zip below, connect the phone via USB, and copy them to the phone via ADB like this: Code:
adb push Superuser.apk /sdcard/Superuser.apk adb push su /sdcard/su adb push busybox /sdcard/busybox adb push exploit.bin /data/local/tmp/exploit.bin
Now we enter the phone's internal shell, also using ADB: Code:
adb shell
Then we take advantage of the "fake" root exploit: Code:
cd /data/local/tmp chmod 0755 exploit.bin ./exploit.bin
Now after that last command you should be back to your normal console, not the phone one, so we need to connect to it again, and doing so we should now see that we have root permissions since the "#" symbol is displayed instead of "$". Code:
adb sh…

Proxy settings in android phone

Hi all, here i am going to demostrate about the proxy settings in android phone.
As there is no UI for proxy settings for android web browser.
But the android web browser will read the proxy settings in its settings database.
Here is the instructions to enable the proxy in the android web browser.
to do this setting you must download SDK package from android

you need to check USB Debugging option in phones setting

and follow the step given below

> adb shell # sqlite3 /data/data/ sqlite> INSERT INTO system VALUES(99,’http_proxy’, ‘proxy:port’); sqlite>.exit You can talk to settings.db for more information. sqlite> SELECT * FROM system; sqlite> .tables sqlite> .databases sqlite> .schema table_name sqlite> more SQL expression to talk to the tables Don’t forget the ‘;’ at the end of the SQL expression.