Ваша корзина пуста.
15 сентября 2019 г. 12:53:24

Howto: Rooting DJI Crystal Sky

7 months ago
#556 Цитировать
CantRepeat wrote:
IIRC I had to use the pro version of ES File Explorer.

In the guide.

The copy/overwrite needs to be done with ES Explorer Pro as it handles properly overwriting a file with read/only partitions etc. If you try to modify it directly, the unmodified version would be restored automatically from a cache, erasing your changes.


Hello,

I followed the instructions and used ES Explorer Pro, but NLD GO 4.1.22CS icon disappears.
0
7 months ago
#599 Цитировать
I'm about to root my CS but have a question before I move forward.........

Once the CS is rooted and working, how do I revert back to it's original state? Do I just re-flash with the DJI firmware??
0
5 months ago
#864 Цитировать
I've followed all the steps in here but my custom CS GO4 app still keeps disappearing at random times.

I used the Pro version of ES File Explorer as detailed too.

Some times the app stays present for many reboots of the CS and will be there for a week or so, but at other times it disappears the very next day.

When I run this command:

su -c "pm enable dji.pilot.pad"


The app comes right back and I'm good to go again.

Can I set something up that will run that command each time the CS boots up?

0
5 months ago
#866 Цитировать
For all you guys still having issue with the NLD app icon not staying persistent through reboot, try this pls.


adb shell
su
cd /
cp /data/data/dji.system.launcher/shared_prefs/dji.system.launcher.xml /mnt/internal_sd/Download/
cd /mnt/internal_sd/Download
ls
verify dji.system.launcher.xml is present
exit
exit
adb pull /mnt/internal_sd/Download/dji.system.launcher.xml

verify dji.system.launcher.xml is on your PC

close the bash shell!!

edit dji.system.launcher.xml with notepad++ on your PC

add the line <string name="KEY_MUTEX_PREF_PKG">dji.pilot.pad</string> so your xml file looks something like this.

NOTE: if you have <string name="KEY_MUTEX_PREF_PKG">dji.go.v4</string> just edit dji.go.v4 to dji.pilot.pad

Do NOT copy and paste the text below, edit your file.

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
    <int name="KEY_APP1_INDEX" value="2" />
    <int name="KEY_APP2_INDEX" value="2" />
    <string name="KEY_MUTEX_PREF_PKG">dji.pilot.pad</string>
    <long name="KEY_BOOT_CNT" value="18" />
    <int name="KEY_F1_INDEX" value="0" />
    <string name="KEY_TRAFFIC_USED_TIMESTAMP">2019-04-14</string>
    <long name="KEY_TRAFFIC_USED_TOTAL" value="214388073" />
    <long name="KEY_TRAFFIC_USED_TODAY" value="26259130" />
    <int name="KEY_F2_INDEX" value="1" />
</map>

save the file

Now back on your CS in a terminal window and get root use this command to unhide the NLD app

su (pop up from SuperSU, grant access)

su -c "pm enable dji.pilot.pad"

verify you can now see the NLD APP icon in applications

start a NEW bash terminal and transfer the edited file

adb push dji.system.launcher.xml /mnt/internal_sd/Download/

now open a shell and move the file
adb shell
su
cd /
mv -f /mnt/internal_sd/Download/dji.system.launcher.xml /data/data/dji.system.launcher/shared_prefs/

reboot your CS and verify the NLD APP is still in the apps menu.
0
5 months ago
#867 Цитировать
Thanks for the reply @CantRepeat :)

When I type:

su


It pauses for around ten seconds, then I get a response like so:


C:\adb>adb shell
shell@zs600b:/ $ su
1|shell@zs600b:/ $


Is that right?

Then when I try to copy the file to the memory card I get a "Permission denied" error:


cp /data/data/dji.system.launcher/shared_prefs/dji.system.launcher.xml /mnt/internal_sd/Download/


But, if I put `su` in front of the copy command, then it works:


su cp /data/data/dji.system.launcher/shared_prefs/dji.system.launcher.xml /mnt/internal_sd/Download/


After I have edited the file locally the same thing happens when I issue the `mv` command to move the edited file from the SD card back to internal, I get a Permission denied error.

But if I put `su` in front of it again then it seems to work:


su mv -f /mnt/internal_sd/Download/dji.system.launcher.xml /data/data/dji.system.launcher/shared_prefs/


I've rebooted the CS a few times and it's still there, I shall let you know if it sticks :)

Thanks again!
0
5 months ago
#870 Цитировать
No, not really.

Did you run the root script at the beginning of the guide?

When you adb shell it puts you in the shell and when you su it should give you root.

Are you seeing a prompt in SuperSU on the CS? I would check the to make sure SuperSU is granting permission to adb shell.



BUT, the end result is that you have a persistent NLD icon after reboot.

You can also use ES File Explorer Pro in root mode to check the /data/data/dji.system.launcher/shared_prefs/dji.system.launcher.xml and see if dji.pilot.pad is still in the xml after a reboot.

If it is there it's a good chance it will remain there.
1
5 months ago
#871 Цитировать
Hmm - no, there is no ADB Shell listed in my SuperSU.

There are apps listed in there that I have granted root to previously  (ES File Explorer, Terminus, Notepad) but that's all.

You know what I was doing wrong?

I was not looking at the screen of my CS while doing this...

I looked in the logs of SuperSU to see lots of failed requests from 'adb shell' - that's why it seemed to hang for ten or fifteen seconds, the console was waiting for me to approve the request on the CS!


D'oh!

Thanks for your help man!

0
5 months ago
#872 Цитировать
CantRepeat wrote:
No, not really.
You can also use ES File Explorer Pro in root mode to check the /data/data/dji.system.launcher/shared_prefs/dji.system.launcher.xml and see if dji.pilot.pad is still in the xml after a reboot.

If it is there it's a good chance it will remain there.


Confirmed, after a reboot the dji.pilot.pad is still present in that file after several reboots.

Thanks again!!
0
5 months ago
#873 Цитировать
Richie wrote:
Hmm - no, there is no ADB Shell listed in my SuperSU.

There are apps listed in there that I have granted root to previously  (ES File Explorer, Terminus, Notepad) but that's all.

You know what I was doing wrong?

I was not looking at the screen of my CS while doing this...

I looked in the logs of SuperSU to see lots of failed requests from 'adb shell' - that's why it seemed to hang for ten or fifteen seconds, the console was waiting for me to approve the request on the CS!


D'oh!

Thanks for your help man!



Yeah whenever something request root access SuperSU will pop up a notification for you grant access to.

Glad you got it working.

Updated the missing app icon and android ID parts of the guide.
0
5 months ago
#876 Цитировать
I added a guide on how to make a backup of your CS's system image file and suggest you make one before you do something to make it impossible to do so.

You now have root access on your CS so you need to make a back of the system by making a system.img file.  Go to the link below and just do it!!

https://nolimitdronez.com/boards/topic/266/howto-backing-up-your-dji-crystal-sky-system-image
1