You will need to goto a 3rd party website that hosts Google apps and download the newest (for your device) version. The one I use is http://gappsandroid.blogspot.com/ , you can download EVERY single Official Google app.
Answer from HasH_BrowN on Stack ExchangeYou will need to goto a 3rd party website that hosts Google apps and download the newest (for your device) version. The one I use is http://gappsandroid.blogspot.com/ , you can download EVERY single Official Google app.
You could use OpenGApps. I believe it is sanctioned by Google and allows you to easily select a version for your device architecture and Android version, customizing the package by which apps/services you want.
Once downloaded, you can flash the package via recovery. It is also possible to extract the apps for a manual upgrade; see my answer here for details.
Videos
Hey Redditors.
While I was setting up Google Wallet (after a manual instalation from APKMirror, because it isn't supported in my country yet), the app asked which Google account I have to link and then proceeded afterwards to download the August 2023 Google play system update. Rebooted twice afterwards and the patch is still on August 2023 and uninstalled Wallet (Will definitely be using it though while travelling, but not for now)
FYI : Been stuck on February 2023 before it I proceeded to said installation.
Absolutely. You will need to build a mechanism, though, for your app to call home to the server, find out if there's a newer version of the app, and if there is, pull it down and install it. Once you've determined that you do need to pull down an update, you can do that with something similar to this AsyncTask:
protected String doInBackground(String... sUrl) {
String path = "/sdcard/YourApp.apk";
try {
URL url = new URL(sUrl[0]);
URLConnection connection = url.openConnection();
connection.connect();
int fileLength = connection.getContentLength();
// download the file
InputStream input = new BufferedInputStream(url.openStream());
OutputStream output = new FileOutputStream(path);
byte data[] = new byte[1024];
long total = 0;
int count;
while ((count = input.read(data)) != -1) {
total += count;
publishProgress((int) (total * 100 / fileLength));
output.write(data, 0, count);
}
output.flush();
output.close();
input.close();
} catch (Exception e) {
Log.e("YourApp", "Well that didn't work out so well...");
Log.e("YourApp", e.getMessage());
}
return path;
}
// begin the installation by opening the resulting file
@Override
protected void onPostExecute(String path) {
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setDataAndType(Uri.fromFile(new File(path)), "application/vnd.android.package-archive" );
Log.d("Lofting", "About to install new .apk");
this.context.startActivity(i);
}
Yes it is possible, here is roughly what you can do:
Get the current application versionCode
PackageInfo packageInfo = getPackageManager().getPackageInfo(context.getPackageName(), 0); int curVersionCode = packageInfo.versionCode;Have a server where you host the apk file and create a simple plain file containing only one integer, which represents the latest application version code.
When the app starts (or whenever you want to check for an update), retrieve the latest versionCode from the server (i.e via an HTTP request) and compare it with the current app version.
If there is a new version, download the apk and install it (will prompt a dialog for the user).
Edit:
You can use the code of @Blumer for this.
Let's say I make a fake google account to download apps, I log out of that account and disable playstore. When apps force me to update I enable playstore again, Do I need to log back in or can I update apps without the the need for a google account?