User Tools

Site Tools

Translations of this page:

howto:crystalsky

This is an old revision of the document!


OriginalGangsterCow

MAVProxyUser found a way to sideload and install apk´s on the CrystalSky. This works through the DirtyCow exploit. It temporary patches the installd, which was modded by DJI to prevent installation of apks through adb (Android Debug Bridge).

You need to have adb installed and CrystalSky connected via USB to your PC for this script!

https://github.com/MAVProxyUser/OriginalGangsterCow

This has been tested on an CrystalSky 7.85, System Version 02.02.08.01 and 02.02.09.00

Rooting

Since CrystalSky FW 02.04.02.00 you are able to install up to 20 apk´s. However, if the apk is in need of the Play Store you still need to root your CrystalSky to be able to flash the Play Store with chainfire.

Check this Git Repo for rooting your CrystalSky:

https://github.com/Opcodeffm/csroot

This has been tested on an CrystalSky 7.85, System Version 02.02.09.00, 02.04.02.00, 2.05.00.00 (09/02/2018), V02.06.03.00 (12/04/2018) and v02.06.06.00 (12/23/2018).

Once this root is applied you will be able to install any apk and there is no need to do the APK installation steps below.

APK installation blocked

DJI blocked apk installation, they do this through a modified installd. Bin4ry patched the installd to allow installations again, download it here: https://dji-rev.slack.com/files/bin4ry/F6L7R9ZFT/installd With root remount the system partion rw and then overwrite the original installd in /system/bin/installd. Make sure you keep the correct file permissions.

This file cannot be downloaded since it is hosted on Slack and the admin of the dji-rev Slack group must invite users to that group. One cannot simply request access to this file through Slack, nor this wiki, making this entire rooting process difficult to complete. It would be recommended that the owner move the installd file to a location that all may access without a need for a slack account and being invited.

The installd file is contained in the OriginalGangsterCow git hub download. I'm not sure why the note above is still part of the wiki.

This will allow sideloading of APKs.

WARNING!

Triple check file name and file permissions before rebooting as your CS can get bricked if mishandling the installd. And as long as we dont have a good way of creating & restoring a (nandroid) backup that is risky…

This has been tested on an CrystalSky 7.85, System Version 02.02.08.01 and 02.02.09.00

Settings

To unlock more settings use this build.prop: https://dji-rev.slack.com/files/bin4ry/F6MFB6K8D/build.prop Remount system partition rw and overwrite the build.prop in /system/build.prop. Make sure you keep the correct file permisions. chmod 644 build.prop

WARNING!

Triple check file contents, file name and file permissions before rebooting as your CS can get bricked if mishandling the build.prop. And as long as we dont have a good way of creating & restoring a (nandroid) backup that is risky…

This has been tested on an CrystalSky 7.85, System Version 02.02.08.01 and 02.02.09.00

Google Play Store

To make Google Play Store work, first you need root!

After that, you need a flashing tool and the needed zip which contains the Play Store, Framework etc. The flashing tool can be downloaded here: https://www.apkmirror.com/apk/chainfire/flashfire/ The needed zip can be downloaded here: http://opengapps.org/ Choose Platform: “ARM” Android: “5.1” Variant: “pico”

- Install (sideload) flashfire

- Give flashfire su, if asked

- Copy the zip (i.e. open_gapps-arm-5.1-pico-20170811.zip) to an sd card, plug it in the CS sd1 slot

- In flashfire, tap the “+” sign on the right hand corner.

- Choose “Flash ZIP or OTA”

- Tap on top of the filebrowser to change to “Filesystem root”

- Navigate to “mnt/external_sd1”

- Choose your zip file

- Leave “Auto-mount” and “Mount/system read/write” unchecked

- Hit the checkmark and there you go

After several reboots, you will be greeted with the setup assistant. Step through it, make your settings and thats it.

WARNING!

Triple Check the choosen Platform, Android Version and Variant to avoid flashing wrong software, which could brick your device. Execute the steps carefully and you should be good.

This has been tested on an CrystalSky 7.85, System Version 02.02.08.01, 02.02.09.00, 02.04.02.00, and 2.06.06.00.

Default Wifi regulatory domain

This is mostly for Spark users, maybe for Mavic Air (I don't have one so I can't tell)

The Wifi regulatory domain (country code) influence the allowed channels in each frequency. Especially many databases including CrystalSky are NOT up to date, and for exemple in Europe do not allow the 149 and above 5.8 GHz channels that are requiered to use Spark in 2.4 Ghz without OTG (in that case the RC to CS link would be in 5.8 GHz)

One solution is to manually set the regulatory domain with shell wifi command (use a terminal application)

su -c “iw reg set “US” (need root)

But i found that when doing transitions from 2.4 to 5.8 there could be a time where the devices is going back to default regdom, and get stuck because the new channel can not be seen after switching in the GO4 App.

Another solution is to change the default regdom that was assigned by CS at setup. You also need root and to edit the file /data/property/persist.country.code and change whatever value is inside by 8348 which codes for “US” 5can use e.g. ES Explorer - paid version - to do that directly on the rooted CS)

The full CS country 2 letters code to this 4 hex code is :

“AL” : “8008” , ALBANIA “DZ” : “800C” , ALGERIA “AR” : “8020” , ARGENTINA “AM” : “8033” , ARMENIA “AW” : “8215” , ARUBA “AU” : “8024” , AUSTRALIA “AT” : “8028” , AUSTRIA “AZ” : “801f” , AZERBAIJAN “BH” : “8030” , BAHRAIN “BD” : “8032” , BANGLADESH “BB” : “8034” , BARBADOS “BY” : “8070” , BELARUS “BE” : “8038” , BELGIUM “BZ” : “8054” , BELIZE “BO” : “8044” , BOLVIA “BA” : “8046” , BOSNIA “BR” : “804C” , BRAZIL “BN” : “8060” , BRUNEI “BG” : “8064” , BULGARIA “KH” : “8074” , CAMBODIA “CA” : “807C” , CANADA “CA” : “9389” , CANADA_AP “CL” : “8098” , CHILE “CN” : “809C” , CHINA “CO” : “80AA” , COLOMBIA “CR” : “80BC” , COSTA “HR” : “80BF” , CROATIA “CY” : “80C4” , CYPRUS “CZ” : “80CB” , CZECH “DK” : “80D0” , DENMARK “DO” : “80D6” , DOMINICAN “EC” : “80DA” , ECUADOR “EG” : “8332” , EGYPT “SV” : “80DE” , EL “EE” : “80E9” , ESTONIA “FI” : “80F6” , FINLAND “FR” : “80FA” , FRANCE “F2” : “80FF” , FRANCE2 “GE” : “810C” , GEORGIA “DE” : “8114” , GERMANY “GR” : “812C” , GREECE “GL” : “8130” , GREENLAND “GD” : “8134” , GRENADA “GU” : “813C” , GUAM “GT” : “8140” , GUATEMALA “HT” : “814C” , HAITI “HN” : “8154” , HONDURAS “HK” : “8158” , HONG “HU” : “815C” , HUNGARY “IS” : “8160” , ICELAND “IN” : “8164” , INDIA “ID” : “8168” , INDONESIA “IR” : “816C” , IRAN “IE” : “8174” , IRELAND “IL” : “8178” , ISRAEL “IT” : “817C” , ITALY “JM” : “8184” , JAMAICA “JP” : “8188” , JAPAN “JO” : “8190” , JORDAN “KZ” : “818E” , KAZAKHSTAN “KE” : “8194” , KENYA “KP” : “8198” , NORTH “KR” : “819A” , KOREA_REPUBLIC “K2” : “819B” , KOREA “K3” : “819C” , KOREA “KW” : “819E” , KUWAIT “LV” : “81AC” , LATVIA “LB” : “81A6” , LEBANON “LI” : “81B6” , LIECHTENSTEIN “LT” : “81B8” , LITHUANIA “LU” : “81BA” , LUXEMBOURG “MO” : “81BE” , MACAU “MK” : “8327” , MACEDONIA “MY” : “81CA” , MALAYSIA “MT” : “81D6” , MALTA “MX” : “81E4” , MEXICO “MC” : “81EC” , MONACO “MA” : “81F8” , MOROCCO “NP” : “820C” , NEPAL “NL” : “8210” , NETHERLANDS “AN” : “8212” , NETHERLANDS_ANTILLES “NZ” : “822A” , NEW_ZEALAND “NO” : “8242” , NORWAY “OM” : “8200” , OMAN “PK” : “824A” , PAKISTAN “PA” : “824F” , PANAMA “PE” : “825C” , PERU “PH” : “8260” , PHILIPPINES “PL” : “8268” , POLAND “PT” : “826C” , PORTUGAL “PR” : “8276” , PUERTO_RICO “QA” : “827A” , QATAR “RO” : “8282” , ROMANIA “RU” : “8283” , RUSSIA “RW” : “8286” , RWANDA “SA” : “82AA” , SAUDIA “ME” : “81F3” , MONTENEGRO “RS” : “82B0” , SERBIA “SG” : “82BE” , SINGAPORE “SK” : “82BF” , SLOVAKIA “SI” : “82C1” , SLOVENIA “ZA” : “82C6” , SOUTH “ES” : “82D4” , SPAIN “LK” : “8090” , SRI “SE” : “82F0” , SWEDEN “CH” : “82F4” , SWITZERLAND “SY” : “82F8” , SYRIA “TW” : “809E” , TAIWAN “TH” : “82FC” , THAILAND “TT” : “830C” , TRINIDAD “TN” : “8314” , TUNISIA “TR” : “8318” , TURKEY “UG” : “8320” , UGANDA “AE” : “8310” , UNITED “UA” : “8324” , UKRAINE “GB” : “833A” , UNITED_KINGDOM “US” : “8348” , UNITED_STATES “US” : “8349” , UNITED “PS” : “834A” , UNITED_STATES_PS “UY” : “835A” , URUGUAY “UZ” : “835C” , UZBEKISTAN “VE” : “835E” , VENEZUELA “VN” : “82C0” , VIETNAM “YE” : “8377” , YEMEN “ZW” : “82CC” ZIMBABWE

howto/crystalsky.1554914692.txt.gz · Last modified: 2019/04/10 16:44 by cantrepeat