Is it possible to make edits in . apk?

Asked

Viewed 117 times

0

I developed an app in java, android studio, and will publish it on a web platform of my own (also developed in java).

Only those who have access to this platform are licensed customers and this control is performed by a stringkey(Ex: "123456").

The downloaded app is generic to all customers, and what will differentiate the accesses to each base (each customer has its product base) will be stringkey. This is requested on the first page of the app: the user type, the app accesses the platform, validates and returns some data (among them the db connection string).

inserir a descrição da imagem aqui

I would like to optimize this process(imagine the stringkey is long), do not want the user to type.

As the web platform knows the user’s stringkey, would like to, at the time of the apk download:

1-Change the layout displayed above(Ex: editKey.setText("123456");) (I had difficulty locating Edit by opening the layout in the Notepad)

or

2-Generate a text file with stringkey inside and make the app read this file when booting (the problem here is that I don’t know where to put this file so the app has access when it is installed)

or

3-Some other way out that solves the problem

1 answer

1


With the right text file for your problem. You can generate the file in the Mobile Downloads folder. Ai after Voce use it with the app, can erase the txt and record the data in the Settings on android.

You just need to check on this online platform, if the guy is downloading by Mobile, true case then vc download the txt next to the apk.

  • I found the right solution.

  • You could use tbm a Qrcode, containing this information, on the page where you download the apk, and by the apk you would ask to read the same..

Browser other questions tagged

You are not signed in. Login or sign up in order to post.