openandroidinstaller-dev / openandroidinstaller

Makes installing alternative Android distributions nice and easy.
https://openandroidinstaller.org
GNU General Public License v3.0
431 stars 33 forks source link

Add support for `8505F` #476

Open teofortnite333 opened 7 months ago

teofortnite333 commented 7 months ago

Is your device already requested?

Brand

Lenovo

Name

Tab m8

Device code

'8505F

Model

Tab m8

Device images

Download the platform-tools for Linux from here by using the terminal.

cd ~/
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
Use this command to unzip it:

unzip platform-tools-latest-linux.zip -d ~
Now you have to add adb and fastboot to your PATH. In the same terminal enter this:

cd ~/
nano ~/.profile
Just enter the following text at the bottom of the file that opens up, save it and close.

# add Android SDK platform tools to path
if [ -d "$HOME/platform-tools" ] ; then
    PATH="$HOME/platform-tools:$PATH"
fi
Key combination to save file and exit in nano editor is: (Ctrl + O) + (Enter) + (Ctrl + X). Then, run this to update your environment.

source ~/.profile
2. Install the build packages
Several packages are needed to build a Custom ROM and all those can be installed easily by using Akhil Narang's scripts. Run this:

cd ~/
git clone https://github.com/akhilnarang/scripts
cd scripts
./setup/android_build_env.sh
3. Create the directories
You’ll need to set up some directories in your build environment To create them:

mkdir -p ~/bin
mkdir -p ~/android
The ~/bin directory will contain the git-repo tool (commonly named “repo”) and the ~/android directory will contain the source code of the Custom ROM

4. Install the repo command
Enter the following to download the repo binary and make it executable (runnable):

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
5. Configure git
Given that repo requires you to identify yourself to sync Android, run the following commands to configure your git identity:

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
6. Initialize the source repository and download
Get into the android directory that we created and initialize the branch of repo that you wish to build. You can find the link to initialize the repo in the manifest of the particular ROM. As I am considering LineageOS ROM for example, you can look at their manifest from here. LineageOS calls this particular repo as "android" but for other ROMs it is usually called as "manifest". Just for reference you can look at the manifest of Pixel Experience from here.

cd ~/android
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs
Download the source code by this command:

repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

Do you own the device and would be willing to test the installer?

Additional context

Download the platform-tools for Linux from here by using the terminal.

cd ~/
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
Use this command to unzip it:

unzip platform-tools-latest-linux.zip -d ~
Now you have to add adb and fastboot to your PATH. In the same terminal enter this:

cd ~/
nano ~/.profile
Just enter the following text at the bottom of the file that opens up, save it and close.

# add Android SDK platform tools to path
if [ -d "$HOME/platform-tools" ] ; then
    PATH="$HOME/platform-tools:$PATH"
fi
Key combination to save file and exit in nano editor is: (Ctrl + O) + (Enter) + (Ctrl + X). Then, run this to update your environment.

source ~/.profile
2. Install the build packages
Several packages are needed to build a Custom ROM and all those can be installed easily by using Akhil Narang's scripts. Run this:

cd ~/
git clone https://github.com/akhilnarang/scripts
cd scripts
./setup/android_build_env.sh
3. Create the directories
You’ll need to set up some directories in your build environment To create them:

mkdir -p ~/bin
mkdir -p ~/android
The ~/bin directory will contain the git-repo tool (commonly named “repo”) and the ~/android directory will contain the source code of the Custom ROM

4. Install the repo command
Enter the following to download the repo binary and make it executable (runnable):

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
5. Configure git
Given that repo requires you to identify yourself to sync Android, run the following commands to configure your git identity:

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
6. Initialize the source repository and download
Get into the android directory that we created and initialize the branch of repo that you wish to build. You can find the link to initialize the repo in the manifest of the particular ROM. As I am considering LineageOS ROM for example, you can look at their manifest from here. LineageOS calls this particular repo as "android" but for other ROMs it is usually called as "manifest". Just for reference you can look at the manifest of Pixel Experience from here.

cd ~/android
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs
Download the source code by this command:

repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
tsterbak commented 7 months ago

Hey, thank you for your interest in the project.

The installer needs a working TWRP version available and I cannot find one. Do you know of any available version and a custom ROM for this device?