applications – i needed to change icon and tittle for (maas360 apk) and i got this error

i wanted to change icon and title of an app (maas360). i used a tool called (APK Editor Studio) when i unpack it. it gives me this (unpacking error).

I: Using Apktool 2.4.1 on com.fiberlink.maas360.android.control_2020-12-14.apkException in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:315) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:103) at brut.apktool.Main.cmdDecode(Main.java:170) at brut.apktool.Main.main(Main.java:76) Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55) at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38) at brut.directory.ExtFile.getDirectory(ExtFile.java:52) at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:313) ... 3 more Caused by: java.util.zip.ZipException: zip file is empty at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.zip.ZipFile.<init>(Unknown Source) at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53) ... 6 more

java – Limpar dados e caches de um apk

É possível limpar os dados de um apk do sistema android (EX: Chrome) com alguma linha de comando implementada em um botão ? Estou tentando fazer um apk para facilitar e agilizar a limpeza de dados e caches de certos app do sistema android, já dei uma pesquisada mas não acho nada a respeito, se alguém poder me ajudar com um link sobre o assunto agradeço.

android sdk – Changing the minSDKVersion of an apk

I wanted to run an app on emulator (on ANdroid 4.4 (API Level 19)) but the app has minSDKVersion 24 (I found out using aapt command).

So, is it possible that we can change the minSDKVersion of an apk whose source code is not available, so that I can run the repackaged version of an app in the older devices, even though device doesn’t support?

If yes, then how we can do it as there is no trace in the Android Manifest.xml file w.r.t minSDKVersion for this app (All we have is the targetSDKVersion and the compileSDKVersion)?

How aapt figures out the minSDKVersion of an apk even when there is no attribute like minSDKVersion in the Android Manifest.xml file?

bluetooth – Apk doesn’t install

i’ve just written an android app using android studio. The app compiles with no errors and i have also generated the signed apk, but if i try to install it on my smartphone (samsung galaxy S8), it says “app not installed”. What can be the matter?
Here there are my java codes, my gradle, my manifest.

package com.unicampania.btapp;

import android.bluetooth.BluetoothSocket;
import android.os.Handler;
import android.os.Message;
import android.util.Log;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;

public class ConnectedThread extends Thread{
    private final BluetoothSocket mmSocket;
    private final InputStream mmInStream;
    private final OutputStream mmOutStream;
    public static final int RESPONSE_MESSAGE = 10;
    Handler uih;

    public ConnectedThread(BluetoothSocket socket, Handler uih){
        mmSocket = socket;
        InputStream tmpIn = null;
        OutputStream tmpOut = null;
        this.uih = uih;
        Log.i("(THREAD-CT)","Creating thread");
        try{
            tmpIn = socket.getInputStream();
            tmpOut = socket.getOutputStream();

        } catch(IOException e) {
            Log.e("(THREAD-CT)","Error:"+ e.getMessage());
        }

        mmInStream = tmpIn;
        mmOutStream = tmpOut;

        try {
            mmOutStream.flush();
        } catch (IOException e) {
            return;
        }
        Log.i("(THREAD-CT)","IO's obtained");

    }
    public void run(){
        //byte() buffer = new byte(1024);
        //int bytes;
        BufferedReader br = new BufferedReader(new InputStreamReader(mmInStream));
        Log.i("(THREAD-CT)","Starting thread");
        while(true){
            try{
                // bytes = mmInStream.read(buffer);
                String resp = br.readLine();
                //Transfer these data to the UI thread
                Message msg = new Message();
                msg.what = RESPONSE_MESSAGE;
                msg.obj = resp;
                uih.sendMessage(msg);
            }catch(IOException e){
                break;
            }
        }
        Log.i("(THREAD-CT)","While loop ended");
    }

    public void write(byte() bytes){
        try{
            Log.i("(THREAD-CT)", "Writting bytes");
            mmOutStream.write(bytes);

        }catch(IOException e){}
    }

    public void cancel(){
        try{
            mmSocket.close();
        }catch(IOException e){}
    }
}
package com.unicampania.btapp;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.widget.Toolbar;
import java.io.IOException;
import java.util.UUID;
import androidx.appcompat.app.AppCompatActivity;

public class Main extends AppCompatActivity {

    public final static String MODULE_MAC = "98:D3:34:90:6F:A1";
    public final static int REQUEST_ENABLE_BT = 1;
    private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805f9b34fb");

    BluetoothAdapter bta;
    BluetoothSocket mmSocket;
    BluetoothDevice mmDevice;
    ConnectedThread btt = null;
    Button switchLight, switchRelay;
    TextView response;
    boolean lightflag = false;
    boolean relayFlag = true;
    public Handler mHandler;

    @SuppressLint("NewApi")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ardcon);
        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        Log.i("(BLUETOOTH)", "Creating listeners");
        response = (TextView) findViewById(R.id.response);
        switchRelay = (Button) findViewById(R.id.relay);
        switchLight = (Button) findViewById(R.id.switchlight);
        switchLight.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i("(BLUETOOTH)", "Attempting to send data");
                if (mmSocket.isConnected() && btt != null) { //if we have connection to the bluetoothmodule
                    if (!lightflag) {
                        String sendtxt = "LY";
                        btt.write(sendtxt.getBytes());
                        lightflag = true;
                    } else {
                        String sendtxt = "LN";
                        btt.write(sendtxt.getBytes());
                        lightflag = false;
                    }
                } else {
                    Toast.makeText(Main.this, "Something went wrong", Toast.LENGTH_LONG).show();
                }
            }
        });
        switchRelay.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i("(BLUETOOTH)", "Attempting to send data");
                if (mmSocket.isConnected() && btt != null) { //if we have connection to the bluetoothmodule
                    if(relayFlag){
                        String sendtxt = "RY";
                        btt.write(sendtxt.getBytes());
                        relayFlag = false;
                    }else{
                        String sendtxt = "RN";
                        btt.write(sendtxt.getBytes());
                        relayFlag = true;
                    }

                    //disable the button and wait for 4 seconds to enable it again
                    switchRelay.setEnabled(false);
                    new Thread(new Runnable() {
                        @Override
                        public void run() {
                            try{
                                Thread.sleep(4000);
                            }catch(InterruptedException e){
                                return;
                            }

                            runOnUiThread(new Runnable() {
                                @Override
                                public void run() {
                                    switchRelay.setEnabled(true);
                                }
                            });

                        }
                    }).start();
                } else {
                    Toast.makeText(Main.this, "Something went wrong", Toast.LENGTH_LONG).show();
                }
            }
        });

        bta = BluetoothAdapter.getDefaultAdapter();

        //if bluetooth is not enabled then create Intent for user to turn it on
        if(!bta.isEnabled()){
            Intent enableBTIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
            startActivityForResult(enableBTIntent, REQUEST_ENABLE_BT);
        }else{
            initiateBluetoothProcess();
        }
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if(resultCode == RESULT_OK && requestCode == REQUEST_ENABLE_BT){
            initiateBluetoothProcess();
        }
    }

    public void initiateBluetoothProcess(){

        if(bta.isEnabled()){

            //attempt to connect to bluetooth module
            BluetoothSocket tmp = null;
            mmDevice = bta.getRemoteDevice(MODULE_MAC);

            //create socket
            try {
                tmp = mmDevice.createRfcommSocketToServiceRecord(MY_UUID);
                mmSocket = tmp;
                mmSocket.connect();
                Log.i("(BLUETOOTH)","Connected to: "+mmDevice.getName());
            }catch(IOException e){
                try{mmSocket.close();}catch(IOException c){return;}
            }

            Log.i("(BLUETOOTH)", "Creating handler");
            mHandler = new Handler(Looper.getMainLooper()){
                @Override
                public void handleMessage(Message msg) {
                    //super.handleMessage(msg);
                    if(msg.what == ConnectedThread.RESPONSE_MESSAGE){
                        String txt = (String)msg.obj;
                        if(response.getText().toString().length() >= 30){
                            response.setText("");
                            response.append(txt);
                        }else{
                            response.append("n" + txt);
                        }
                    }
                }
            };

            Log.i("(BLUETOOTH)", "Creating and running Thread");
            btt = new ConnectedThread(mmSocket,mHandler);
            btt.start();


        }
    }

}
GRADLE
plugins {
    id 'com.android.application'
}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.unicampania.btapp"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    lintOptions {

        checkReleaseBuilds false

    }
}

dependencies {

    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'android.arch.navigation:navigation-fragment:1.0.0'
    implementation 'android.arch.navigation:navigation-ui:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
MANIFEST
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.unicampania.btapp"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="16"
        android:targetSdkVersion="30" />

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

    <!-- Include required permissions for Google Maps API to run. -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <application
        android:allowBackup="true"
        android:appComponentFactory="androidx.core.app.CoreComponentFactory"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:testOnly="true"
        android:theme="@style/AppTheme"
        tools:replace="android:appComponentFactory"
        >
        <activity
            android:name=".Main"
            android:label="@string/title_activity_btapp"
            android:theme="@style/AppTheme.NoActionBar"
            tools:ignore="Instantiatable">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <!-- Needs to be explicitly declared on P+ -->
        <uses-library
            android:name="org.apache.http.legacy"
            android:required="false" />
    </application>

</manifest>

adb – Error Installing tshark using APK file

I am trying to install the tshark-3.4.3-r0.apk that I downloaded from https://pkgs.org/download/tshark on my Android Studio emulator. When I run the command “adb install tshark-3.4.3-r0.apk” I get the following error:

Performing Streamed Install
adb: failed to install tshark-3.4.3-r0.apk:
Failure (INSTALL_PARSE_FAILED_NOT_APK: 
Failed to parse /data/app/vmdl2122909991.tmp/base.apk:
Failed to load asset path /data/app/vmdl2122909991.tmp/base.apk)

Am I running the install command wrong? Is there an easier way to install this (not using termux or play store app) since it is part of the alpine linux repository?

aged APK site for sale

Why are you selling this site?
This is one of the several websites that I am unable to maintain.

How is it monetized?
I used to monetize it with Google Adsense. The new owner can try it as well. Apart from that, it can be monetized with VPN affiliate products.

Does this site come with any social media accounts?
No

How much time does this site take to run?
No much time needed

What challenges are there with running this site?
There is no challenges as such. I don’t have to maintain the websites that I am selling. This is one of many websites I am selling.
SEMrush

 

react native – Erro ao gerar apk com expo “expo build:android currently only supports managed workflow apps”

Criei um projeto do zero utilizando as seguintes instruções https://blog.rocketseat.com.br/expo-sdk-38-melhorias-que-fazem-do-expo-uma-opcao-ainda-melhor/ porém depois de 2 meses de trabalho ao tentar gerar a apk estou recebendo o aviso abaixo e ao ignorar e instalar a apk gerada o app simplesmente não abre, depois de instalado aparece a mensagem “O app parou de funcionar”.

Segue abaixo o aviso e meu package.json.

aviso:

⚠️  expo build:android currently only supports managed workflow apps.
If you proceed with this command, we can run the build for you but it will not include any custom native modules or changes that you have made to your local native projects.
Unless you are sure that you know what you are doing, we recommend aborting the build and doing a native release build through Android Studio.

package.json:

  {
  "main": "index.js",
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@expo-google-fonts/roboto": "^0.1.0",
    "@expo-google-fonts/ubuntu": "^0.1.0",
    "@react-native-community/async-storage": "^1.12.1",
    "@react-native-community/masked-view": "0.1.10",
    "@react-navigation/native": "^5.8.10",
    "@react-navigation/stack": "^5.12.8",
    "axios": "^0.21.1",
    "expo": "^40.0.1",
    "expo-app-loading": "^1.0.1",
    "expo-cli": "^4.1.6",
    "expo-font": "~8.4.0",
    "expo-linear-gradient": "~8.4.0",
    "expo-splash-screen": "~0.8.0",
    "expo-status-bar": "~1.0.3",
    "expo-updates": "~0.4.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-gesture-handler": "~1.8.0",
    "react-native-masked-text": "^1.13.0",
    "react-native-modal": "^11.6.1",
    "react-native-paper": "^4.7.1",
    "react-native-picker-select": "^8.0.4",
    "react-native-safe-area-context": "3.1.9",
    "react-native-screens": "~2.15.0",
    "react-native-unimodules": "~0.12.0",
    "react-native-vector-icons": "^7.1.0",
    "react-native-web": "~0.13.12",
    "react-navigation": "^4.4.3"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "@types/jest": "^26.0.20",
    "@types/react": "^17.0.0",
    "@types/react-native": "^0.63.45",
    "@types/react-native-vector-icons": "^6.4.6",
    "@types/react-test-renderer": "^17.0.0",
    "@typescript-eslint/eslint-plugin": "^4.12.0",
    "@typescript-eslint/parser": "^4.12.0",
    "babel-jest": "~25.2.6",
    "eslint": "6.8.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-prettier": "^7.1.0",
    "eslint-import-resolver-typescript": "^2.3.0",
    "eslint-plugin-import": "^2.20.1",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-react": "^7.19.0",
    "eslint-plugin-react-hooks": "^2.5.0",
    "jest": "~25.2.6",
    "prettier": "^2.2.1",
    "react-test-renderer": "~16.13.1",
    "typescript": "^4.1.3"
  },
  "jest": {
    "preset": "react-native"
  },
  "private": true
}

Não sei mais o que fazer, preciso usar o expo pois posteriormente vou lançar meu app para IOS também. Alguém tem alguma sugestão do que pode me ajudar?

applications – How to solve problem in APK Tools

So guys, I’m trying to decompile an apk with the apk tools and I’m not getting it, when I run apktool -d myapp.apk it displays this error to me:

 Exception in thread "main" brut.androlib.AndrolibException: Invalid chunk type: expected=0x00000200, got=0x00000203
    at brut.androlib.res.decoder.ARSCDecoder.checkChunkType(ARSCDecoder.java:542)
    at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:88)
    at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
    at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
    at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:786)
    at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
    at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
    at brut.androlib.Androlib.getResTable(Androlib.java:66)
    at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
    at brut.apktool.Main.cmdDecode(Main.java:170)
    at brut.apktool.Main.main(Main.java:76)

Can anyone help me with that? I would offer more reward does not yet

malware – How to solve problem in APK Tools

So guys, I’m trying to decompile an apk with the apk tools and I’m not getting it, when I run apktool -d myapp.apk it displays this error to me:

Exception in thread "main" brut.androlib.AndrolibException: Invalid chunk type: expected=0x00000200, got=0x00000203
at brut.androlib.res.decoder.ARSCDecoder.checkChunkType(ARSCDecoder.java:542)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:88)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:786)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
at brut.androlib.Androlib.getResTable(Androlib.java:66)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)

Can anyone help me with that? I would offer more reward does not yet

I’m doing this to insert a payload manually in the apk and I need to do this