STR=Setup\ storage;DOA=“Setup ‘draw over apps’ (Press ENTER)”;IBO=“Setup ‘ignore battery optimizations’ (Press ENTER)”;SBP=“Setup & Background pop-ups permissions”;ALE=“Setup ‘allow-external-apps’”;ICL=Install\ Clang;ACT=android.settings;PKG=package:com.termux;PT=~/.termux/termux.properties;echo $STR;termux-setup-storage;read -p “$DOA”;am start -a $ACT.action.MANAGE_OVERLAY_PERMISSION -d $PKG > /dev/null;read -p “$IBO”;am start -a $ACT.IGNORE_BATTERY_OPTIMIZATION_SETTINGS > /dev/null;read -p “$SBP”;am start -a $ACT.APPLICATION_DETAILS_SETTINGS -d $PKG > /dev/null;echo $ALE;if [ -f $PT ];then awk ‘/^#/{print;next }/^\s*allow-external-apps/{gsub(/allow-external-apps.*/,“allow-external-apps=true”);found=1}{print $0}END{if(!found)print “allow-external-apps=true”}’ $PT > “$TMPDIR/a.tmp” && mv “$TMPDIR/a.tmp” $PT;else mkdir -p $(dirname $PT);echo ‘allow-external-apps=true’ > $PT;fi;echo $ICL;pkg i clang -y;apt autoremove --purge;apt clean;echo ok
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Gemini CLI Mobile Development | 0 | 996 | June 28, 2025 | |
| Please update the Gemini Developer API | 1 | 199 | April 22, 2025 | |
| Gemini model are completly broken | 6 | 287 | March 26, 2026 | |
| I Still cannot build a simple calculator android app | 0 | 28 | January 14, 2026 | |
| New Linux antigravity | 0 | 55 | February 21, 2026 |