Created
May 5, 2026 02:33
-
-
Save axemclion/346a36edb79906a649f26e32aa888c1e to your computer and use it in GitHub Desktop.
Android Nexus 7 Kiosk setup to remove unnecessary apps / services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Nexus 7 kiosk device setup — run after every factory reset / RR data wipe | |
| # Connects via: adb connect 192.168.1.248:5555 | |
| # | |
| # KEPT (enabled): | |
| # com.android.systemui — status bar, notifications, recents | |
| # com.android.inputmethod.latin — keyboard | |
| # com.android.browser — stock browser (only browser available on Android 5.1) | |
| # com.cyanogenmod.trebuchet — launcher (home screen); required by SystemUI recents | |
| # org.cyanogenmod.profiles — required by SystemUI | |
| # org.cyanogenmod.cmsettings — required by SystemUI | |
| # cyanogenmod.platform — required by SystemUI | |
| # com.android.providers.media — media scanning, needed for general storage access | |
| # com.android.providers.downloads — download manager | |
| # com.android.providers.settings — settings storage | |
| # com.android.providers.userdictionary — keyboard | |
| # com.android.packageinstaller — needed to sideload APKs | |
| # com.android.externalstorage — SD card / USB storage | |
| # com.android.documentsui — file picker | |
| # com.android.certinstaller — SSL certificates | |
| # com.android.captiveportallogin — WiFi login pages | |
| # com.android.defcontainer — APK install helper | |
| # com.android.keychain — key storage | |
| # com.android.shell — ADB shell | |
| # com.google.android.webview — WebView (used by homeautomation app) | |
| # eu.chainfire.supersu — root access | |
| # | |
| # DISABLED (removed to reduce thread/memory usage): | |
| # RR-specific bloat: | |
| # com.cyanogenmod.eleven — music player | |
| # com.cyanogenmod.filemanager — file manager | |
| # com.cyanogenmod.lockclock — lock screen clock widget | |
| # org.cyanogenmod.audiofx — audio effects | |
| # org.cyanogenmod.theme.chooser — theme engine UI | |
| # org.cyanogenmod.themes.provider — theme engine service | |
| # org.cyanogenmod.wallpapers.photophase — live wallpaper | |
| # org.omnirom.omniswitch — alternative app switcher | |
| # com.rr.ota — RR OTA updater | |
| # com.grarak.kerneladiutor — kernel tuning app | |
| # Telephony (WiFi-only tablet, no SIM): | |
| # com.android.phone — phone/dialer | |
| # com.android.server.telecom — telecom service | |
| # com.android.providers.telephony — SMS/MMS storage | |
| # com.android.mms — messaging app | |
| # com.android.mms.service — MMS service | |
| # com.android.smspush — SMS push | |
| # com.android.stk — SIM toolkit | |
| # com.android.cellbroadcastreceiver — emergency alerts | |
| # Unused apps/services: | |
| # com.android.calculator2 — calculator | |
| # com.android.calendar — calendar app | |
| # com.android.camera2 — camera | |
| # com.android.contacts — contacts | |
| # com.android.deskclock — clock/alarm | |
| # com.android.email — email client | |
| # com.android.exchange — Exchange sync | |
| # com.android.gallery3d — photo gallery | |
| # com.android.printspooler — printing | |
| # com.android.soundrecorder — voice recorder | |
| # com.android.bluetooth — Bluetooth | |
| # com.android.nfc — NFC | |
| # com.android.dreams.basic — screensaver | |
| # com.android.dreams.phototable — photo screensaver | |
| # com.android.galaxy4 — live wallpaper | |
| # com.android.musicvis — music live wallpaper | |
| # com.android.noisefield — live wallpaper | |
| # com.android.phasebeam — live wallpaper | |
| # com.android.wallpaper — wallpaper picker | |
| # com.android.wallpaper.holospiral — live wallpaper | |
| # com.android.wallpaper.livepicker — live wallpaper picker | |
| # com.android.wallpapercropper — wallpaper crop tool | |
| # com.android.apps.tag — NFC tag writer | |
| # com.android.managedprovisioning — enterprise device setup | |
| # com.svox.pico — text-to-speech engine | |
| # com.android.location.fused — fused location provider | |
| # com.android.providers.calendar — calendar storage | |
| # com.android.providers.contacts — contacts storage | |
| # com.android.sharedstoragebackup — backup to shared storage | |
| # com.android.backupconfirm — backup confirmation UI | |
| adb shell su -c " | |
| # Re-enable SystemUI CM platform dependencies (may have been disabled) | |
| pm enable org.cyanogenmod.profiles | |
| pm enable cyanogenmod.platform | |
| pm enable org.cyanogenmod.cmsettings | |
| pm enable com.cyanogenmod.trebuchet | |
| # Telephony off — suppress 'mobile data stopped' dialog | |
| settings put global mobile_data 0 | |
| settings put global data_roaming 0 | |
| settings put global airplane_mode_on 1 | |
| am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true | |
| # Location off | |
| settings put secure location_mode 0 | |
| settings put secure location_providers_allowed '' | |
| # Background sync off | |
| settings put global sync_disabled 1 | |
| settings put global backup_enabled 0 | |
| # Reduce animation overhead | |
| settings put global window_animation_scale 0.5 | |
| settings put global transition_animation_scale 0.5 | |
| settings put global animator_duration_scale 0.5 | |
| # Disable RR extras | |
| pm disable com.cyanogenmod.eleven | |
| pm disable com.cyanogenmod.filemanager | |
| pm disable com.cyanogenmod.lockclock | |
| pm disable org.cyanogenmod.audiofx | |
| pm disable org.cyanogenmod.theme.chooser | |
| pm disable org.cyanogenmod.themes.provider | |
| pm disable org.cyanogenmod.wallpapers.photophase | |
| pm disable org.omnirom.omniswitch | |
| pm disable com.rr.ota | |
| pm disable com.grarak.kerneladiutor | |
| # Disable telephony | |
| pm disable com.android.phone | |
| pm disable com.android.server.telecom | |
| pm disable com.android.providers.telephony | |
| pm disable com.android.mms | |
| pm disable com.android.mms.service | |
| pm disable com.android.smspush | |
| pm disable com.android.stk | |
| pm disable com.android.cellbroadcastreceiver | |
| # Disable unused apps | |
| pm disable com.android.calculator2 | |
| pm disable com.android.calendar | |
| pm disable com.android.camera2 | |
| pm disable com.android.contacts | |
| pm disable com.android.deskclock | |
| pm disable com.android.email | |
| pm disable com.android.exchange | |
| pm disable com.android.gallery3d | |
| pm disable com.android.printspooler | |
| pm disable com.android.soundrecorder | |
| pm disable com.android.bluetooth | |
| pm disable com.android.nfc | |
| pm disable com.android.dreams.basic | |
| pm disable com.android.dreams.phototable | |
| pm disable com.android.galaxy4 | |
| pm disable com.android.musicvis | |
| pm disable com.android.noisefield | |
| pm disable com.android.phasebeam | |
| pm disable com.android.wallpaper | |
| pm disable com.android.wallpaper.holospiral | |
| pm disable com.android.wallpaper.livepicker | |
| pm disable com.android.wallpapercropper | |
| pm disable com.android.apps.tag | |
| pm disable com.android.managedprovisioning | |
| pm disable com.svox.pico | |
| pm disable com.android.location.fused | |
| pm disable com.android.providers.calendar | |
| pm disable com.android.providers.contacts | |
| pm disable com.android.sharedstoragebackup | |
| pm disable com.android.backupconfirm | |
| echo 'Done' | |
| " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment