seaky / nspanel_pro_roottool_apk

29 stars 0 forks source link

Firmware Updates. Where do we find them in order to be able to update? #1

Open TeDeVPrime opened 1 year ago

TeDeVPrime commented 1 year ago

Hello! i have downloaded the apk and installed it but from what i understand, i need to upload the firmware to nspanel. but there are no instructions where we can find these files

thank you

nassermahrous commented 1 year ago

I have the same problem, can you please help

redford-jones commented 1 year ago

I'd be interested to hear where I can find the files too. I managed to pull the eWeLink binaries from the panel and tried to search them for a firmware download path, but no such luck so far.

seaky commented 1 year ago

Somebody ;) uploaded the firmware files here https://drive.google.com/drive/folders/1bHLLJy8vYUjkCCnyUmrHgEFWi_2cxywv

Use at your own risk

I personally do not reccomend to upgrade above 1.5.0 because in 1.5.6+ lot of usefull commands were removed such as chown, chmod, dd, df, getprop, setprop etc..

Could not downgrade actual firmware due to the android OTA restriction!

nassermahrous commented 1 year ago

thank you, is there a way to disable developer mode on nspanel pro also how do I upload the file, I can't find the folder /storage/emulated/0/

nassermahrous commented 1 year ago

I added home assistant webpage and it worked, thank youuuu :)

seaky commented 1 year ago

Nice 👍 What version did you update to?

nassermahrous commented 1 year ago

Thanks to u. 1.6. I found an easier way. I reset first then update. It works great. Did any one upload the 1.7? By the way. For home assistant users the new webpages option is very convenient and easy to use. With out any side loading. Thank you again

Best regards Nasser Mahrous

On 23 Apr 2023, at 21:18, seaky @.***> wrote:



Nice 👍 What version did you update to?

— Reply to this email directly, view it on GitHubhttps://github.com/seaky/nspanel_pro_roottool_apk/issues/1#issuecomment-1519136841, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP3YKLSAFC2LXGMEQIYPQ5DXCV6BFANCNFSM6AAAAAAW5TQIEI. You are receiving this because you commented.Message ID: @.***>

shajek commented 1 year ago

Is there any benefit to update FW for "sideloaded" nspanel ? I ask because when i load HA companion app with dashboard what i use for mobile device it is very sluggish, like animation of on/off slider for light animate for 1-2s.

seaky commented 1 year ago

Hi,

I've analyzed all the system updates so far including 1.7. From OS perspective it is intact and still the AOSP 8.1 Oreo so for example the fw 1.3 android binaries are equivallent to 1.7. The rockchip drivers also looks the same. Of course the vendor part is different for example the ControlApp and the internal zigbee server.

As a "sideload user" definitely there is no reason to upgrade to higher version or I assume that the performance will be the same looks like the rockchip drivers are the same in every version. If you want to mix Sonoff Ecosystem and HA usage could be a benefit. But some new feature is limited to a "non-rooted" user such as intercom calling between the devices even if you upgrade fw and force ugrade the apk (normally if you are rooted wont get any update).

btw nowadays dont have to root the device to sideload apps I have 2 rooted and 3 unrooted (but sideloaded) device.

TeDeVPrime commented 1 year ago

The main thing that i would like to update at some point is having the nspanel pro as a zigbee router. has anyone found a solution to use the nspanel pro as a zigbee router or coordinator without the Sonoff software?

frayos commented 9 months ago

Hello, A) FY 2.1.0 file name is : CoolKit_Sonoff_480P_20230926_2.1.0-ota.zip B) Found URL to Download : ZIP + APK /data/data/com.eWeLinkControlPanel/files/log/controlPanelLog_20231014_1.log (grep zip in this file)

C) Happy to share send those to someone, but not to host them :)

TeDeVPrime commented 9 months ago

why not host them? use a megaupload or w/e. can i have it?

frayos commented 9 months ago

here it is for 30 days : ZIP https://transfert.free.fr/zzq7RPI APK https://transfert.free.fr/ISbDMwU

FYI not sure if the APK was needed as I tried to install it before ZIP and it failed.

WARNING : I lost the ADB over TCP after the upgrade, I had to register to ewelink and request it there in the Phone app by clicking a lot of times on the build to get Developer and Toggle ADB which loses warranty and future updates ...

TeDeVPrime commented 9 months ago

yeap i know about the warranty. i really can't justify the purchase of the NSPanel Pro.... and i have two. we can't use it as a zigbee router... or a bluetooth proxy.... we can't use it as an actual wall switch..... you can't easily ADB to it to make it useful...... it is just a pain in the butt device.

since i flashed the NSPanel with Blackyamas esp solution.... it became my favorite device. so much potential and useful wall switch.... i bought 3 of them in the last two weeks. before flashing them.... they were almost useless.

Tasshack commented 7 months ago

@frayos can I have that zip/apk too? Or preferably v2.2.0 if you have it. Thanks.

TeDeVPrime commented 7 months ago

yeah i think i read that in the latest firmwares Sonoff let's u use ADB? also with the latest firmware, you can set the zigbee as a repeater / router instead of a coordinator!

frayos commented 7 months ago

Unfortunately since i enabled ADB in ewelink I lost "power" to get updates ...

If someone has not enabled ADB in ewelink and get this file : /data/data/com.eWeLinkControlPanel/files/log/controlPanelLog_*log then we can get the zip ...

Wondering if full reset will allow to upgrade though

tommolling commented 7 months ago

Here you go for v2.2

https://global-otadl2bsy.coolkit.cc/nspanel-pro/rom/25/CoolKit_Sonoff_480P_20231109_2.2.0-ota.zip

Tasshack commented 7 months ago

Wondering if full reset will allow to upgrade though

I have tried reset but even system recovery does not restore the adb state from the app. I think Developer Mode check can be bypassed from device apk itself using a tool like frida (this will require a little bit of reverse engineering but I have already decompiled the app and since it is a react native app it can be modified easily without needing to recompile the whole apk) but that may not even recover the OTA ability of the device if the cloud stores a flag for each device. When I first got the device I have upgraded it to v2.2.0 and then enabled the Developer Mode but trying to install Xposed bricked the device and after the restoration I got v1.5.4 without ability to upgrade with OTA.

nikosillo commented 6 months ago

Unfortunately since i enabled ADB in ewelink I lost "power" to get updates ...

If someone has not enabled ADB in ewelink and get this file : /data/data/com.eWeLinkControlPanel/files/log/controlPanelLog_*log then we can get the zip ...

Wondering if full reset will allow to upgrade though

I have a panel that does not have adb installed and is not yet updated, it comes from the factory with firmware 1.7. How can I access that file, or how can I find out the path to the ficehro of the next updates? It's already on version 2.3 I think

frayos commented 6 months ago

So you need ADB access from command line then adb shell then su then cd /data/data/com.eWeLinkControlPanel/files/log/

then log is here (once ewelink has been started once)

yet maybe a comment will give us the link to 2.3.0 :)

nikosillo commented 6 months ago

So you need ADB access from command line then adb shell then su then cd /data/data/com.eWeLinkControlPanel/files/log/

then log is here (once ewelink has been started once)

yet maybe a comment will give us the link to 2.3.0 :)

Ok but if I enable ADB I can no longer see future updates. I understand that this would only serve to rescue the link to the latest version, and for the next update would require a new device updated to the latest version and repeat the method, right?

frayos commented 6 months ago

if you are in 1.7 it s probably already enabled or you may need the dismount to usb connect the first time (i did this but realized i may not have needed it)

Indeed should you still need ADB once upgrade you ll need to lose access to next versions until someone posts a link

nikosillo commented 6 months ago

I am trying to access and adb by IP is closed, I have opened the device and by usb is also closed. It's weird.

biwizit commented 6 months ago

@nikosillo Did you follow this step ? https://github.com/seaky/nspanel_pro_roottool_apk/issues/1#issuecomment-1763038349

had to register to ewelink and request it there in the Phone app by clicking a lot of times on the build to get Developer and Toggle ADB which loses warranty and future updates ...

seaky commented 6 months ago

I've uploaded

Good luck

seaky commented 6 months ago

But I'll write it down here too: I don't understand why everyone wants to update to newer firmware. In every new firmware case, the OS is Android 8.1 AOSP. Even the build number is the same since 1.2. So simple there is no reason to update to newer firmware except if you want to go back somehow to Sonoff mode.

But allways there is a but... if you already unlocked the OS via Sonoff official method you simply lost new serverside features forever by default because your ewlink account register the device as a rooted device (You've been warned by the App).

You can update by my tool to newer firmware but there is allways a risk to completely brick your device because if the new fw does not support adb and if you unlocked your device it will be useless. From 1.3 to 1.11 is safe. I have not check the 2.x versions yet.

Btw there is way more easier method to unlock the device without loosing any support forever.

pvklink commented 6 months ago

Hi, finally found a thread about the ns panel pro. I bought my ns panel pro yesterday and activated adb.. Everything went ok till i clicked the wrong file with the launcher. After that i only get a chinese menu where i can test al parts of my device or some qrcode with a chipid My panel is unusable now...

Is there a way to flash this device without the ewelink app and adb? I want to use it with the hass app. No problem if something goes wrong... It is useless anyway with the current chinese test environment

svanrossem commented 6 months ago

But I'll write it down here too: I don't understand why everyone wants to update to newer firmware. In every new firmware case, the OS is Android 8.1 AOSP. Even the build number is the same since 1.2. So simple there is no reason to update to newer firmware except if you want to go back somehow to Sonoff mode.

But allways there is a but... if you already unlocked the OS via Sonoff official method you simply lost new serverside features forever by default because your ewlink account register the device as a rooted device (You've been warned by the App).

You can update by my tool to newer firmware but there is allways a risk to completely brick your device because if the new fw does not support adb and if you unlocked your device it will be useless. From 1.3 to 1.11 is safe. I have not check the 2.x versions yet.

Btw there is way more easier method to unlock the device without loosing any support forever.

I've just wanted V2.2.0 for the new router mode. I've enabled it and saw all this is handled by MQTT...

/vendor/bin/siliconlabs_host/mosquitto_sub -h 127.0.0.1 -i debug -v -t '#'
zigbee/system/availability {"online":true,"reason":"zigbee app start"}
zigbee/system/transmit-power-updated {"transmitPower":9}
zigbee/system/network-role/information {"role":"Repeater"}
zigbee/system/pair {"pair":true}
zigbee/system/pairing {"pairing":true,"countdown":180,"reason":"Pair request"}
zigbee/system/pairing {"pairing":false,"countdown":0,"reason":"Countdown is over"}
seaky commented 6 months ago

Hi, finally found a thread about the ns panel pro. I bought my ns panel pro yesterday and activated adb.. Everything went ok till i clicked the wrong file with the launcher. After that i only get a chinese menu where i can test al parts of my device or some qrcode with a chipid My panel is unusable now...

Is there a way to flash this device without the ewelink app and adb? I want to use it with the hass app. No problem if something goes wrong... It is useless anyway with the current chinese test environment

What does it mean "I clicked the wrong file" If you accidentally started the test app it does not need to reflash the device jus run the adb shell input keyevent 3

seaky commented 6 months ago

But I'll write it down here too: I don't understand why everyone wants to update to newer firmware. In every new firmware case, the OS is Android 8.1 AOSP. Even the build number is the same since 1.2. So simple there is no reason to update to newer firmware except if you want to go back somehow to Sonoff mode. But allways there is a but... if you already unlocked the OS via Sonoff official method you simply lost new serverside features forever by default because your ewlink account register the device as a rooted device (You've been warned by the App). You can update by my tool to newer firmware but there is allways a risk to completely brick your device because if the new fw does not support adb and if you unlocked your device it will be useless. From 1.3 to 1.11 is safe. I have not check the 2.x versions yet. Btw there is way more easier method to unlock the device without loosing any support forever.

I've just wanted V2.2.0 for the new router mode. I've enabled it and saw all this is handled by MQTT...

/vendor/bin/siliconlabs_host/mosquitto_sub -h 127.0.0.1 -i debug -v -t '#'
zigbee/system/availability {"online":true,"reason":"zigbee app start"}
zigbee/system/transmit-power-updated {"transmitPower":9}
zigbee/system/network-role/information {"role":"Repeater"}
zigbee/system/pair {"pair":true}
zigbee/system/pairing {"pairing":true,"countdown":180,"reason":"Pair request"}
zigbee/system/pairing {"pairing":false,"countdown":0,"reason":"Countdown is over"}

Have you updated to 2.2.0 for zigbee router mode?

If yes, can you tell me more about this because I can pull any binary from 2.2fw without having to install the firmware so I could make an installable package. thanks in advance

pvklink commented 6 months ago

Hi, finally found a thread about the ns panel pro. I bought my ns panel pro yesterday and activated adb.. Everything went ok till i clicked the wrong file with the launcher. After that i only get a chinese menu where i can test al parts of my device or some qrcode with a chipid My panel is unusable now... Is there a way to flash this device without the ewelink app and adb? I want to use it with the hass app. No problem if something goes wrong... It is useless anyway with the current chinese test environment

What does it mean "I clicked the wrong file" If you accidentally started the test app it does not need to reflash the device jus run the adb shell input keyevent 3

I think, i selected a wrong file instead of the launcher or the original nspanel pro startupfile. I thought i selected the original nspanelpro startup file but it seems i selected something wrong. as i get a strange chinese test interface with two options as described before.

Problem is that adb does not seem to be active anymore, so no options to put it back to another state so that i can use the device for example the hass app, i dont need the rest ...

So want to now if the device is useless, then it goes straight to the garbage... Strange that a manufacturer sells a device with an developer option and then has problems when you use it Will ask my collegae at the court if this is legal...

seaky commented 6 months ago

But I reather assumed that you have faced with this screen: nspanel_pro_recovery

or something like that a QR code in the middle!

Luckily you dont have to reflash your device. If you see a qrcode in the middle you somehow lost your ewelink licence.

Try the following

bdherouville commented 6 months ago

Hi,

I installed 2.3, enabled Zigbee router mode and paired to my Z2M. Everything looks fine. I enabled turbo mode through the mobile app.

seaky commented 6 months ago

Hi,

I installed 2.3, enabled Zigbee router mode and paired to my Z2M. Everything looks fine. I enabled turbo mode through the mobile app.

Is the Adb still accessible?

bdherouville commented 6 months ago

Yes. Surprisingly the 2.3 upgrade is not persisted. When rebooting on recovery it reinstall 1.7.

seaky commented 6 months ago

Yes. Surprisingly the 2.3 upgrade is not persisted. When rebooting on recovery it reinstall 1.7.

Lets continue here: Forum

pvklink commented 6 months ago

But I reather assumed that you have faced with this screen: nspanel_pro_recovery

or something like that a QR code in the middle!

Luckily you dont have to reflash your device. If you see a qrcode in the middle you somehow lost your ewelink licence.

Try the following

  • disassemble the unit
  • power it up by usb otg cable
  • try to access it via adb

hi @seaky excuses for the late reaction... got corona, so no energy for this problem :-( And yess, this is the screen and logo i got. I disabled the unit and i you mentioned a otg usb cable Is that a special usb cable ? I do have a usb mico to https://www.allekabels.nl/usb_accessoires/usb_micro_kabel.html to usb a male and plugged it in my windows 11 pc. i also installed the adb platform tools but the adb device is not recognized when i plug my usb cable in. https://www.allekabels.nl/usb_accessoires/usb_micro_kabel.html do i need a specia cable?

seaky commented 6 months ago

U definitely need OTG USB cable stuff like that I prefer to buy micro to USB-A if you've got one, write me on email and I help you to get out from the rabbit hole.

pvklink commented 6 months ago

Ok,received the cables and connect the nspanel pro via the new otg cable with extention to the usb of my win11 pc. Still got the chinese logo, with chipid and two buttons The adb devices -l command gives no device So, it does not work

When i start the nspanel with a normal usb cable connect to my pc i can start the nspanel pro with the reset panel pushed at the sametime as connecting the usb cable and then i get a screen where i can mount. But with a normal usb cable that still gives the same chinese screen, so that does not help

When i push the reset button and connect the new usb cable otg an extension , it gives a black screen

grrrr

Verzonden vanuit Mail voor Windows

Van: seaky Verzonden: maandag 1 januari 2024 19:58 Aan: seaky/nspanel_pro_roottool_apk CC: peter van klink; Comment Onderwerp: Re: [seaky/nspanel_pro_roottool_apk] Firmware Updates. Where do wefind them in order to be able to update? (Issue #1)

But I reather assumed that you have faced with this screen: nspanel_pro_recovery.jpeg (view on web) This is the recovery firmware: • do the factory reset (turn off 5 times) • disassemble the unit • power it up by usb cable • and the back on the unit locate the boot/reset button • select mount /system via short click and on the menu item click it for 10 sec — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

seaky commented 6 months ago

How to get out from rabbit hole.

[!CAUTION] Make sure of the proper connection, you can see the pinout labels under the pinheader!

Now without reboot do the adb connect and install a custom launcher https://github.com/seaky/nspanel_pro_tools_apk?tab=readme-ov-file#install-custom-launcher

Now you have a working device, good luck

pvklink commented 6 months ago

Ok, much further!

  1. I made a usb cable that i attached to the power pins, and it powers up
  2. Also connected the keyboard
  3. Yes i get the menu after windows N and i can connect to WIFI !
  4. But… no option in settings/system for USB debugging ☹ i have
    • language & input
    • Gestures
    • Date & time
    • Backup
    • Rest options
    • About tablet
  5. I serarched every option for the usb debugging, not there…

Pff, long way to go, hope thats not the end after all your help….

Verzonden vanuit Mail voor Windows

Van: seaky Verzonden: donderdag 11 januari 2024 21:56 Aan: seaky/nspanel_pro_roottool_apk CC: peter van klink; Comment Onderwerp: Re: [seaky/nspanel_pro_roottool_apk] Firmware Updates. Where do wefind them in order to be able to update? (Issue #1)

Ok,received the cables and connect the nspanel pro via the new otg cable with extention to the usb of my win11 pc. Still got the chinese logo, with chipid and two buttons The adb devices -l command gives no device So, it does not work When i start the nspanel with a normal usb cable connect to my pc i can start the nspanel pro with the reset panel pushed at the sametime as connecting the usb cable and then i get a screen where i can mount. But with a normal usb cable that still gives the same chinese screen, so that does not help When i push the reset button and connect the new usb cable otg an extension , it gives a black screen grrrr Verzonden vanuit Mail voor Windows Van: seaky Verzonden: maandag 1 januari 2024 19:58 Aan: seaky/nspanel_pro_roottool_apk CC: peter van klink; Comment Onderwerp: Re: [seaky/nspanel_pro_roottool_apk] Firmware Updates. Where do wefind them in order to be able to update? (Issue #1) But I reather assumed that you have faced with this screen: nspanel_pro_recovery.jpeg (view on web) This is the recovery firmware: • do the factory reset (turn off 5 times) • disassemble the unit • power it up by usb cable • and the back on the unit locate the boot/reset button • select mount /system via short click and on the menu item click it for 10 sec — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***> • Disassemble the unit • Connect 5V to the 5V pin you and ground to GND pin min 2A powersource is required

Caution Make sure of the proper connection, you can see the pinout labels under the pinheader! • Connect the OTG cable with a connected keyboard thats why I suggested to buy a USB-micro to USB-A • After the device is booted and the ewelink pair app appeared press Windows + N key on your keyboard • Navigate to Quick settings and enter • Under Settings go to Wif and connect device to Wifi • Under Setting go to System -> Developer options -> USB debugging enbale • Check ip address Now without reboot do the adb connect and install a custom launcher https://github.com/seaky/nspanel_pro_tools_apk?tab=readme-ov-file#install-custom-launcher Now you have a working device, good luck — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

seaky commented 6 months ago

Ohh yes i forgot if you dont have Developer options. Just tap the About -> Build number multiple times!!

After you can enable status bar int the display -> show status bar option.

Btw what is About tablet -> Build number?

You are close... be patient ;)

seaky commented 6 months ago

Btw I created a full tutorial here: https://github.com/seaky/nspanel_pro_roottool_apk?tab=readme-ov-file#get-out-from-rabbit-hole

pvklink commented 6 months ago
  1. Show status bar = yes
  2. About tablet build number 1.6.0

Greetz peter From holland

Verzonden vanuit Mail voor Windows

Van: seaky Verzonden: vrijdag 12 januari 2024 19:55 Aan: seaky/nspanel_pro_roottool_apk CC: peter van klink; Comment Onderwerp: Re: [seaky/nspanel_pro_roottool_apk] Firmware Updates. Where do wefind them in order to be able to update? (Issue #1)

Ummm that's intresting... Do you have display -> show status bar if yes enable it and you can navigate through status bar below. What is About tablet -> Build number? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

pvklink commented 6 months ago

Thats looks great! My situation seems to be nastier then that ☹

Verzonden vanuit Mail voor Windows

Van: seaky Verzonden: vrijdag 12 januari 2024 20:00 Aan: seaky/nspanel_pro_roottool_apk CC: peter van klink; Comment Onderwerp: Re: [seaky/nspanel_pro_roottool_apk] Firmware Updates. Where do wefind them in order to be able to update? (Issue #1)

Btw I created a full tutorial here: https://github.com/seaky/nspanel_pro_roottool_apk?tab=readme-ov-file#get-out-from-rabbit-hole — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

seaky commented 6 months ago

Have you tried what I wrote? "Ohh yes i forgot if you dont have Developer options. Just tap the About -> Build number multiple times!!"

It will solve your issue!

pvklink commented 6 months ago

yes, that did the trick!

seaky commented 6 months ago

yes, that did the trick!

pvklink could you please send me an email seaky77(at)gmail(dt)com

I'd like to investigate what caused your issue especially why your licence data has been corrupted.

seaky commented 5 months ago

The firmware what you uploaded is corrupt or not compatible with this unit.

Do you really want to upgrade firmware or do you want to sideload apps?

If you want to upgrade fw just download one of them from the google drive above or u can find the link in the manual (frontpage)

Rename file which begins with Coolkit or NSPanel86 to system_update.zip and copy to the proper folder. After the verification it will update the device.