The most complete and detailed itvbox built-in source on the whole network. Itvbox has a member version with background installation and front-end decompilation graphic tutorials-pro-tested

is it beautiful? Do you want to make one for yourself?

 iTVBOX Ruyi Edition Installation and Packaging Instructions

Please configure your pagoda first, and resolve the domain name to the newly created background website. Of course, you can also use ip.

The first step: first install the background:

Copy the files in the compressed package to the root directory of the website: the following files are all thrown into the root directory of the website

 Configuration: Pseudo-static (or choose thinkphp directly):

 The pseudo-static code is as follows:

location ~* (runtime|application)/{
    return 403;
}
location / {
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
}

Configure the website running directory:

Background modification:

1. admin/userdata.php modify background account password

2. include/db.config.php modify the database information and import the database

3. PHP installation extension: redis, fileinfo, redis

4. Access the background: domain name/admin

5. Application management--replace the APPKEY, which cannot be replaced after it needs to be connected to the APP

6. The aggregation interface can be connected to the json file address of TVBOX, or you can add a site on the left. Adding a site is
     recommended to use the resource station API interface, which supports XML and JSON
     to connect to your own Apple cms site. You can open the API interface and fill in [Add Site]

7. The files that need to be modified and replaced are as follows:
     app/api.json The live address of the docking, change the domain name to your own
     data/pic/0.png is the user profile picture of the member center, replace it with your own
     template/default/index.php Change the contact information and APP download address to your own

Front-end APP decompilation and packaging:

Decompile the package with this:

Recommended decompilation software: NP manager

You can use the NP manager to decompile the APP to the background.
Click on the APK installation package, select [View] -- classes.dex -- DEX Edit PLUS

Search [10000] to find the pt file and click to open it. The 21st line is the base64 encrypted domain name, change it to your own.
Baidu has many Base64 encryption tools, I use https://base64.us domain name format http://www.******.com  
line 37 is APPKEY, change it to the same as the background, save, return .

The alt attribute for this image is empty; the file name is 8c0c8f31da57d03f897d3de009727c1.png

There are picture files in the res directory, replace the APP inside with your own, save the APP without replacing it with a manager, rename the suffix to .zip, open it with compression software, and rename your icon file to replace it.

To modify the package name, you can use the APK coexistence function to change it, click APK file--function--APK coexistence.
To modify the APP name, click APK file--General Edit--Enter name--Save in the upper right corner and return.
Under normal circumstances, it will be automatically signed. If the automatic signature is not used, click the APK file--APK signature.

Why use NP manager instead of MT manager? Because NP has a general editor, it is very convenient to modify the APP name, but MT does not seem to have it.

It is recommended to use 360 ​​Reinforcement Assistant to strengthen the application, so that it cannot be decompiled, prevent APP flooding, and prevent virus reporting.
360 Reinforcement Assistant Official:
You must first sign with the Reinforcement Assistant, then reinforce, and then sign, so that the APP can be opened normally, otherwise it will flash back and report an error.
-------------------------------------------------- ---------------------------
The front-end APP is packaged with AS tools:

If you purchased the front-end source code, you need to package it with Android Studio.
Open the project, Edit -- Find -- Find in path, and search for the four words [Docking domain name].
You can find this file manually without searching: app\src\main\java\com\github\tvbox\osc\util\HawkConfig.java line 16: public static final String BASE_URL_ENC = "aHR0cDovL3R2YXBwLmhhaWp1LnZpcA=="
where
aHR0cDovL3R2YXBwLmhhaWp1Ln ZpcA== It is the domain name after Base64 encryption. After encrypting your own domain name and replacing it with
Base64 encryption tools, Baidu has many tools. I use https://base64.us domain name format http://www.*****.com  

Line 18: public static String API_KEY = "PknQQQMRth5ZRmDk4TPa4EsAJ6rxt7CG"; //Interface key APPKEY
Change API_KEY to your own background application APPKEY

In the app\build.gradle file, modify the package name on line 17, modify the version number on line 11, and modify the file name generated after packaging on line 29 (no changes are required)

Search [Hey Drama] and change the APP name to your own, and you will not search to manually find the file modification: app\src\main\res\values\strings.xml

Then it can be packaged. Source code packaging is very complicated, mainly because of the construction of the environment, which cannot be explained clearly in a few words. If you can’t, you can contact customer service for consultation, remote assistance, and packaging on behalf of you.

Guess you like

Origin blog.csdn.net/jack8988/article/details/131803266