Privacy on Android

585 readers
6 users here now

Discussion about making android more private and secure by using and replacing stock android with FOSS apps and Services

Community Rules :

  1. No discussion/suggestions about direct use of Non-Free, Non-Privacy Respecting Services
  2. Follow Lemmy's Code of Conduct.
  3. Be respectful. Be Chill. Everyone should feel welcome here.

founded 4 years ago
MODERATORS
1
 
 

cross-posted from: https://lemmy.dbzer0.com/post/36841328

Hello, everyone! I wanted to share my experience of successfully running LLaMA on an Android device. The model that performed the best for me was llama3.2:1b on a mid-range phone with around 8 GB of RAM. I was also able to get it up and running on a lower-end phone with 4 GB RAM. However, I also tested several other models that worked quite well, including qwen2.5:0.5b , qwen2.5:1.5b , qwen2.5:3b , smallthinker , tinyllama , deepseek-r1:1.5b , and gemma2:2b. I hope this helps anyone looking to experiment with these models on mobile devices!


Step 1: Install Termux

  1. Download and install Termux from the Google Play Store or F-Droid

Step 2: Set Up proot-distro and Install Debian

  1. Open Termux and update the package list:

    pkg update && pkg upgrade
    
  2. Install proot-distro

    pkg install proot-distro
    
  3. Install Debian using proot-distro:

    proot-distro install debian
    
  4. Log in to the Debian environment:

    proot-distro login debian
    

    You will need to log-in every time you want to run Ollama. You will need to repeat this step and all the steps below every time you want to run a model (excluding step 3 and the first half of step 4).


Step 3: Install Dependencies

  1. Update the package list in Debian:

    apt update && apt upgrade
    
  2. Install curl:

    apt install curl
    

Step 4: Install Ollama

  1. Run the following command to download and install Ollama:

    curl -fsSL https://ollama.com/install.sh | sh
    
  2. Start the Ollama server:

    ollama serve &
    

    After you run this command, do ctrl + c and the server will continue to run in the background.


Step 5: Download and run the Llama3.2:1B Model

  1. Use the following command to download the Llama3.2:1B model:
    ollama run llama3.2:1b
    
    This step fetches and runs the lightweight 1-billion-parameter version of the Llama 3.2 model .

Running LLaMA and other similar models on Android devices is definitely achievable, even with mid-range hardware. The performance varies depending on the model size and your device's specifications, but with some experimentation, you can find a setup that works well for your needs. I’ll make sure to keep this post updated if there are any new developments or additional tips that could help improve the experience. If you have any questions or suggestions, feel free to share them below!

– llama

2
 
 

cross-posted from: https://lemmy.ml/post/17202620

I have OnePlus 7 Pro that I successfully flashed with LineageOS 21 with MicroG. Do you have some interesting apps or ideas to take advantage of it? I thought of some Magisk modules. Maybe someone is more experience than me! This is the spare smartphone, the main one is GrapheneOS, so I don't mind breaking stuff.

3
 
 

The article is AdGuard centric but it sheds light on the whole process where Google suddenly decided to ban ad blockers.

4
 
 

appOps manager / ADB simulator for rooted devices ONLY (#su Magisk).

'''USE WITH CAUTION.'''

5
 
 
6
 
 

Maps on F droid was nice but its not working for me , i use sometimes transpotr. i found that OSMand+ is not very user friendly sadly ... Another good app for navigating OSM ?

Maybe using OSM from web is an alternative ?

thoughts on maps.me ?

7
 
 

Video help how to use Android Universal Debloater by w1nst0n on Unix Terminal

8
 
 

Looking for solutions to delete/opt out as much as i can from GAFAMs and other chinese closed-sources stuff ... im a noob and i feel lost right now ... would this be a good idea? https://gitlab.com/W1nst0n/universal-android-debloater/

Or should i think about Lineage OS or similar ?

9
 
 

The main goal is to improve battery performance and privacy by removing unnecessary and obscure system apps. This can also contribute to improve security by reducing the attack surface. The script has a menu that lets you choose what debloat list you want to use. I strongly encourage you to take a look at the lists because the default selection may not suit you. All packages are as well documented as possible in order to provide a better understanding of what you can delete or not.