[ROM][UNOFFICIAL] switchroot Android 10

Search This thread

valua

New member
Jul 31, 2019
3
0
I'm using nvidia games app to stream my games from geforce now but the buttons are reversed due to the controllers. Does anyone know a way to remap my buttons for geforce now?

Edit: tried using Tincore which works up until I get into a game, which doesn't recognize my controller.
 
Last edited:

xellspooun

Member
Jan 31, 2014
5
0
So, with the May's OTA update the battery consumption in sleep mode is dramatically improved. It's almost as good as in Horizon OS, my device loses about 2 or 3% in 24h in sleep mode on LineageOS.

However, I have encountered a strange problem a couple of times (besides some crashes): while the console sleeps, the fan continues to spin a bit for hours, which results in the battery being drained completely after 5-6 hours. Has anyone else faced this issue or is it just me and I have to check thoroughly my installed apps?

I always have my device on Do Not Disturbe, I have all notifications turned-off and I open Adguard only when browsing (since it's an app that pushes notifications even with alarm.zip installed draining a lot of battery this way).
 

fabnaz77

Account currently disabled
Sep 8, 2019
17
4
42
GB
meettomy.site
I'm using nvidia games app to stream my games from geforce now but the buttons are reversed due to the controllers. Does anyone know a way to remap my buttons for geforce now?

Edit: tried using Tincore which works up until I get into a game, which doesn't recognize my controller.
Why you don't flash the xbox joycon layout ?

EDIT: Ah ok you must use an external controler
maybe you can try this
https://www.reddit.com/r/GeForceNOW/comments/ffxfxb
 
Last edited:

darkdragone

Senior Member
Aug 7, 2010
76
5
What docks are supported with this? Is it just the nintendo switch dock/other that work with it natively or will other docks that work for Android work too?

I have one that I tried, a WavLink USB-C Hub with HDMI 4K 30Hz (link) but I can't get hdmi out on it. I did install the tablet rom but I didn't see that it meant hdmi wouldn't work. I also attached it directly to a portable usb-c monitor and still it did not have a display, it did power the display though.

I'm hoping that I can use this with streaming apps like Netflix or VRV to be able to download episodes while I'm at work then be able to watch them at home or away on a bigger screen. Home internet sucks but I have no other real option atm.
 

carriemay

New member
May 21, 2021
3
0
Thanks for this great update! But I met a big problem after I" Flash Android", it showed warning: kernel\twrp\dtb not found, which made me fail to into twrp. and when I tried select 'switchroot Android 10' while holding volume up, it showed "payload file is missing". Here are two photos. Thanks a lot.
IMG_3932.JPG

IMG_3931.jpg
 

simanicu

Member
Jan 14, 2016
37
9
Bangkok
Amazon Fire TV
Thanks for this great update! But I met a big problem after I" Flash Android", it showed warning: kernel\twrp\dtb not found, which made me fail to into twrp. and when I tried select 'switchroot Android 10' while holding volume up, it showed "payload file is missing". Here are two photos. Thanks a lot.
View attachment 5316015
View attachment 5316019
Use the UMS in Hekate to backup, format, restore backup and install Android.
Recheck step 1 and 11.
1. Be aware that if you have any previous Android Oreo installs on your SD card your old Android data will be wiped, so back it up. This cannot be avoided!
11. Now press next step, follow the instructions, if requested, backup your files with UMS to your PC and restore them afterwards with the UMS option.
 

Ginosius

Senior Member
Jul 5, 2011
216
122
Does anyone still have the previous zip?
icosa-tab-20210205-rel.zip would be the one I'm looking for.
If you can upload it somewhere please do.
 

carriemay

New member
May 21, 2021
3
0
Use the UMS in Hekate to backup, format, restore backup and install Android.
Recheck step 1 and 11.
1. Be aware that if you have any previous Android Oreo installs on your SD card your old Android data will be wiped, so back it up. This cannot be avoided!
11. Now press next step, follow the instructions, if requested, backup your files with UMS to your PC and restore them afterwards with the UMS option.
Thanks for your advice. I am sure I took these steps correctly. And when I tried to remove other zip files and keep only the rom file, it suddenly worked out. I could not figure out why but it did work.
 

pooyab

Senior Member
Dec 3, 2009
210
75
Rasht
To people having problem connecting in MTP mode to pc, replace switch driver in device manager with generic usb MTP one. this worked for me.
 

habla2k

New member
May 28, 2021
1
0
hey everyone,

i got a problem with my android partition. I want to start over, so i tried to flash the android in hekate but i can't install lineage again in twrp, i get an errorcode 7. first it says failed to unmount external_sd device is busy. and failed to update system image.

i can't partition the SD Card again because i use emuMMC as partition and don't want to wipe that too.

is there a way to wipe the android partition, create a new one and then start the installation? or format the partition completely and start over?

thank you.
 

Nik0LaAs

Member
May 3, 2013
16
0
Thank you for this great work. Awesome to be able to play xcloud games on my switch :D
I just have two questions:
- After reboot or going out from sleep mode, wifi doesn't reconnect automatically. I need to click on my network manually to connect. Am I the only one to have this issue ?
- Is it possible to use the joycon detached ? In fact to connect the joycon by bluetooth to Android ?
Thanks again
 

Stonkers

Senior Member
Feb 2, 2016
341
52
New York City
OnePlus 5
Thank you for this great work. Awesome to be able to play xcloud games on my switch :D
I just have two questions:
- After reboot or going out from sleep mode, wifi doesn't reconnect automatically. I need to click on my network manually to connect. Am I the only one to have this issue ?
- Is it possible to use the joycon detached ? In fact to connect the joycon by bluetooth to Android ?
Thanks again
I don't mean to be a wise ass but you really didnt just detach them and find out?
That being said audio BT works as well as other controllers and I have the same issue with wifi and sometimes with pdanet i jave to re-enter the password.
 

Nik0LaAs

Member
May 3, 2013
16
0
I don't mean to be a wise ass but you really didnt just detach them and find out?
That being said audio BT works as well as other controllers and I have the same issue with wifi and sometimes with pdanet i jave to re-enter the password.
Yeah of course I already tried to detach them :) But the Android bluetooth cannot find them. With an xbox controller, no problem, I can pair it.
 

Stonkers

Senior Member
Feb 2, 2016
341
52
New York City
OnePlus 5
Yeah of course I already tried to detach them :) But the Android bluetooth cannot find them. With an xbox controller, no problem, I can pair it.
That's weird. Mine work as normal when i detach them. I didn't have to do anything just like in switchOS. I actually have it docked right now in android playing geforce. Did you flash the xbox control zip? If you did maybe flash it again. I hope you get it workin.
 

loginONETHREE

New member
Jun 6, 2021
2
0
thank you for this! i managed to try this out twice but can't seem to connect to my wifi. After looking throught the comments, it seems the only fix is to create a guest wifi and connect to that. Was there ever any other options?
 

C0nvert

Senior Member
Oct 22, 2013
67
2
Berlin
Hey Guys,
I have a really strange Problem.
Got successfully running Android 10 on my switch (tablet Version)
But two things won't work.

1. Dock Modus --> there is no picture on the TV
(In Horizon OS it's working , so no bad USB C Port)
2. Can't connect a PS4 controller over Bluetooth.
I see the Controller in the Setting but when I try to pair them it got stuck in the process and never pair it successfully.

Did I do something wrong?
Has anyone experience the same Problems?
 

AndyYan

Recognized Contributor
Jan 30, 2012
4,778
4,414
Beijing
Thanks for making the manifest and patches available for building, and in a fairly straightforward way (standalone device manifest that can slot into an existing workspace, rather than a full manifest). Managed to successfully build and boot on first try.

Couple of things to mention:
  • Patches are in different formats (regular, diff, binary) - can you unify them please?
  • "hardware_nvidia_input_hook" instead of "hardware_nvidia_inputhook"
  • vendor_firmware-cb-update.patch has already been merged
 

Top Liked Posts

  • There are no posts matching your filters.
  • 111
    Introduction
    A new, updated version of Android for the Nintendo Switch. Now based off of Android 10 (Q) (LineageOS 17.1 with Shield TV trees) it's faster, more responsive and has many new features over the previous release, including deep sleep and an Android TV build.

    Features
    • Android 10 based on Lineage 17.1
    • Significantly improved UI smoothness compared to Oreo.
    • OTA updates (bugfixes and new features without a reinstall).
    • Deep sleep that can last for weeks compared to hours in the previous version.
    • RSMouse support for controlling a mouse cursor with your right stick
    • Full Joy-Con and Pro Controller support with analog sticks and rails.
    • Hori Joy-Con support.
    • Uses Joy-Con HOS Bluetooth paring data.
    • Both Android TV and Android Tablet builds.
    • Reworked fan profiles for quieter operation.
    • Optimized dock support with resolution scaling.
    • OTG support including DisplayPort or HDMI output (no power supply necessary).
    • 3rd party dock/hub support including DisplayPort or HDMI output.
    • Rewritten charging driver to properly support USB-PD.
    • Optimized touch screen driver.
    • Easier install via hekate partition tool.
    • Reworked, simpler, power profiles.
    • Much improved WiFi driver with less dropouts.
    • Shield TV remote app support for easy docked control.
    • Reboot to payload support.
    • Improved Bluetooth accessory support.
    • Auto rotation support.


    Installing
    Follow the tutorial here



    Stay in touch

    Discord:https://discord.gg/6gWvaASF72
    Twitter: https://twitter.com/switchroot_org
    Website: https://switchroot.org/

    Sources
    https://gitlab.com/switchroot/android
    https://gitlab.com/switchroot
    See manifest repo for build instructions.

    Credits
    Ave - Handling hosting of OTAs and the switchroot website. Check out her patreon!
    CTCaer - Fixing a lot of things in the kernel - charging, dock, touch etc - and adding Android install support for nyx. Donate to his patreon here!
    Langerhans - Figuring out the majority of stuff for deep sleep and helping massively with initial bringup.
    Steel01 - Maintaining the Shield TV Lineage trees which ours are heavily based on.
    Nvidia + Nintendo - ❤
    Everyone else who contributed!
    6
    runs great games run great emulators runs great but my bluethoot headphones cut in and out the audio for some reazon maybe a bug anyone having the same problem? apart from that android is running great
    Will be fixed in next OTA
    Running great except "Bluetooth" keeps crashing multiple times after starting up the system.
    But Bluetooth works afterwards.

    Is this a known issue?

    thx

    Does anyone has the same issue?
    Will be fixed in next OTA

    I was able to get some logs concerning my broken Wifi. Below is a logcat of me tapping on the wifi icon in the notification dropdown. There's some errors and I hope it helps getting to the bottom of the problem.

    Code:
    =u:r:magisk_client:s0:c84,c256,c512,c768 tcontext=u:r:hal_graphics_allocator_default:s0 tclass=fd permissive=1 app=com.android.terminal
    02-08 20:40:39.375  6777  6777 I su      : type=1400 audit(0.0:714): avc: denied { read } for name="audio.primary.tegra.so" dev="mmcblk0p3" ino=536 scontext=u:r:magisk_client:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1 app=com.android.terminal
    02-08 20:40:39.375  6777  6777 I su      : type=1400 audit(0.0:715): avc: denied { getattr } for path="/vendor/lib/hw/audio.primary.tegra.so" dev="mmcblk0p3" ino=536 scontext=u:r:magisk_client:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1 app=com.android.terminal
    02-08 20:40:39.375  6777  6777 I su      : type=1400 audit(0.0:716): avc: denied { read } for name="bin" dev="mmcblk0p3" ino=26 scontext=u:r:magisk_client:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=dir permissive=1 app=com.android.terminal
    02-08 20:40:39.727  6781  6781 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
    02-08 20:40:39.733  6781  6781 I AndroidRuntime: Using default boot image
    02-08 20:40:39.734  6781  6781 I AndroidRuntime: Leaving lock profiling enabled
    02-08 20:40:39.739  6781  6781 I /system/bin/app_process: Core platform API reporting enabled, enforcing=false
    02-08 20:40:39.888  6781  6781 D ICU     : Time zone APEX file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
    02-08 20:40:39.906  6781  6781 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
    02-08 20:40:39.930  6781  6781 W /system/bin/app_process: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes
    02-08 20:40:39.938  6781  6781 D AndroidRuntime: Calling main entry com.android.commands.content.Content
    02-08 20:40:39.957  6781  6781 D AndroidRuntime: Shutting down VM
    02-08 20:40:39.967  6574  6574 I RenderThread: type=1400 audit(0.0:717): avc: denied { call } for scontext=u:r:untrusted_app_27:s0:c129,c256,c512,c768 tcontext=u:r:hal_cplservice_default:s0 tclass=binder permissive=1 app=com.topjohnwu.magisk
    02-08 20:40:39.971  6574  6574 I RenderThread: type=1400 audit(0.0:718): avc: denied { call } for scontext=u:r:untrusted_app_27:s0:c129,c256,c512,c768 tcontext=u:r:hal_cplservice_default:s0 tclass=binder permissive=1 app=com.topjohnwu.magisk
    02-08 20:40:41.115  3376  3376 I InputReader: type=1400 audit(0.0:719): avc: denied { call } for scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    02-08 20:40:41.972  3376  3911 W NotificationService: Toast already killed. pkg=com.topjohnwu.magisk callback=android.app.ITransientNotification$Stub$Proxy@f6bb064
    02-08 20:40:43.435  3149  3149 I storaged: type=1400 audit(0.0:720): avc: denied { call } for scontext=u:r:storaged:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    02-08 20:40:43.463  3376  3398 W WindowManager: Unable to start animation, surface is null or no children.
    02-08 20:40:52.965  3376  3376 W WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@3f976a3
    02-08 20:41:00.002  3586  3586 D KeyguardClockSwitch: Updating clock: 20:41
    02-08 20:41:08.115  3376  3412 E LightsService: Light requested not available on this device. 2
    02-08 20:41:08.117  3376  3470 E LightsService: Light requested not available on this device. 2
    02-08 20:41:46.319  3586  3586 D StatusBar: disable<e i a s b h r c s > disable2<q i n >
    02-08 20:41:46.363  3519  3538 D RSMouse : mFeatureEnabled=true  mPackageEnabled=true
    02-08 20:41:48.149  3376  4233 I WifiService: setWifiEnabled package=com.android.systemui uid=10097 enable=true
    02-08 20:41:48.149  3376  3485 D WifiController: StaEnabledState.enter()
    02-08 20:41:48.149  3376  3486 D WifiActiveModeWarden: received a message in WifiDisabledState: { when=0 what=0 target=com.android.internal.util.StateMachine$SmHandler }
    02-08 20:41:48.149  3376  3486 D WifiActiveModeWarden: Switching from WifiDisabledState to ClientMode
    02-08 20:41:48.149  3376  3486 D WifiActiveModeWarden: Entering ClientModeActiveState
    02-08 20:41:48.150  3376  3486 D WifiClientModeManager: entering IdleState
    02-08 20:41:48.150  3376  3486 D WifiActiveModeWarden: State changed from client mode. state = 2
    02-08 20:41:48.151  3376  3376 D WifiP2pService: Wifi enabled=false, P2P Interface availability=true
    02-08 20:41:48.151  3376  3486 I WifiVendorHal: Vendor Hal started successfully
    02-08 20:41:48.153  3376  3486 I SupplicantStaIfaceHal: Starting supplicant using HIDL
    02-08 20:41:48.154  3376  3487 I WifiP2pNative: Registering for interface available listener
    02-08 20:41:48.156  3376  3486 I android_os_HwBinder: HwBinder: Starting thread pool for getting: android.hardware.wifi.supplicant@1.0::ISupplicant/default
    02-08 20:41:48.156  3376  3486 E SupplicantStaIfaceHal: Death handler already present
    02-08 20:41:48.161  3068  3068 E android.hardware.wifi@1.0-service: Failed to open wlan fw path param: No such file or directory
    02-08 20:41:48.155  3068  3068 I wifi@1.0-servic: type=1400 audit(0.0:721): avc: denied { read } for name="fw_path" dev="mmcblk0p10" ino=784924 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:wifi_vendor_data_file:s0 tclass=lnk_file permissive=1
    02-08 20:41:48.161  3068  3068 E android.hardware.wifi@1.0-service: Failed to change firmware mode
    02-08 20:41:48.161  3376  3486 D HalDevMgr: updateRttController: no one is interested in RTT controllers
    02-08 20:41:48.161  3376  3486 E HalDevMgr: executeChipReconfiguration: configureChip error: 9 ()
    02-08 20:41:48.161  3376  3486 E WifiVendorHal: Failed to create STA iface
    02-08 20:41:48.161  3376  3486 E WifiNative: Failed to create STA iface in vendor HAL
    02-08 20:41:48.161  3376  3486 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle
    02-08 20:41:48.161  3376  3486 D WifiActiveModeWarden: State changed from client mode. state = 4
    02-08 20:41:48.161  3376  3486 D WifiClientModeManager: expected stop, not triggering callbacks: newState = 1
    02-08 20:41:48.161  3376  3486 E WifiNative: Could not get Iface object for interface null
    02-08 20:41:48.162  3376  3376 D WifiP2pService: Wifi enabled=false, P2P Interface availability=true
    02-08 20:41:48.162  3376  3486 D WifiActiveModeWarden: ClientMode failed, return to WifiDisabledState.
    02-08 20:41:48.162  3376  3486 D WifiController: ClientMode unexpected failure: state unknown
    02-08 20:41:48.162  3376  3486 D WifiClientModeManager:  currentstate: IdleState
    02-08 20:41:48.162  3376  3486 D WifiScanRequestProxy: Sending scan available broadcast: false
    02-08 20:41:48.162  3376  3489 I WifiScanningService: wifi driver unloaded
    02-08 20:41:48.163  3376  3486 I WifiScanRequestProxy: Scanning is disabled
    02-08 20:41:48.164  3376  3409 D KernelCpuUidUserSysTimeReader: Removing uids 1037-1037
    02-08 20:41:48.165  3376  3486 D WifiActiveModeWarden: Entering WifiDisabledState
    02-08 20:41:48.166  3376  3486 D WifiActiveModeWarden: received a message in WifiDisabledState: { when=-3ms what=3 target=com.android.internal.util.StateMachine$SmHandler }
    02-08 20:41:48.166  3376  3486 D WifiActiveModeWarden: Switching from WifiDisabledState to WifiDisabled
    02-08 20:41:48.166  3376  3486 D WifiActiveModeWarden: Entering WifiDisabledState
    02-08 20:41:48.166  3376  3486 E WifiNative: Could not get Iface object for interface null
    02-08 20:41:48.169  4206  4782 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
    02-08 20:41:49.891  3069  3069 I joycond : type=1400 audit(0.0:722): avc: denied { read } for scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_kobject_uevent_socket permissive=1


    EDIT:

    I also grabbed a dmesg which I have uploaded to my server since it's too large to attach here

    Grepping for "wifi"/"wlan" yields a whole lot of errors, for example:
    service "vendor.wifiloader" exited with status 255

    Naturally, wifi works just fine in Horizon, just in case you suspect faulty hardware
    Thanks, does it only crash after sleep?

    How Can I reboot to hekate ? Thanks
    Reboot and hold vol-
    For me the sleep mode is not working. Battery draining really fast. Anyone with the same problem?
    Should be fixed in OTA
    Today my Lp0 didn't work. I use CPU spy to observe this. This happened after a reboot.

    My switch stayed on with 100mhz all the time but screen was off.

    I turned wifi and bt on and off. This helped. Afterwards my switch went into deep sleep again and stayed there as long as the screen was off.

    Maybe this helps.
    Should be fixed in OTA
    5
    Flash this in TWRP and reboot. It fixes ZL ZR button for the pro controller in bluetooth.
    5
    I'm unable to connect to wifi.
    4
    anyone get safetynet to pass?
    I flashed it and gapps and tested safety net and it failed. Wasn't sure if there was something I missed

    yes I did. To me a while to work out but you have to:

    1. Mans sure you have flashed magisk
    2. In the manager install busybox and magiskhidepropsconf
    3. Reboot
    4. Install termux from the App Store
    5. Open termux and type ‘su props’
    6. Option 1 then follow the instructions to change the fingerprint to nvidia shield tv pro 2019
    7. Reboot and it all works