Coder Social home page Coder Social logo

Syntax error in rootAVD.sh about rootavd HOT 5 CLOSED

newbit1 avatar newbit1 commented on September 26, 2024
Syntax error in rootAVD.sh

from rootavd.

Comments (5)

sjhill01 avatar sjhill01 commented on September 26, 2024

The issue is that the rootAVD.sh file has Windows line endings (at least it did on my system after a git clone). After opening and doing a "save as" in Textpad with Unix line endings, it worked properly!

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

hmm, I did just download it from git and edited it with N++.
I will check the ending settings it. Perhaps this is the reason why shakalaca used this dos2unix command.
adb -e shell "dos2unix /data/local/tmp/process.sh"

from rootavd.

sjhill01 avatar sjhill01 commented on September 26, 2024

Yeah, I found that note on his project README, too - I assume that's why. Not sure how dos2unix behaves if it's already unix, but might be worth incorporating it in the script?

from rootavd.

newbit1 avatar newbit1 commented on September 26, 2024

Yes absolutely! I just updated the rootAVD.sh with the unzipping into the emulator.
I will change the rootAVD.bat tonight.

from rootavd.

Wolfhound905 avatar Wolfhound905 commented on September 26, 2024

I am getting this error

[-] Test if ADB SHELL is working
[-] ADB connectoin possible
[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell
[*] looking for Magisk installer Zip
[*] Cleaning up the ADB working space
[*] Creating the ADB working space
[*] Push Magisk.zip into /data/data/com.android.shell/Magisk
[-] B:\items\Projects\rootAVD\Magisk.zip: 1 file pushed, 0 skipped. 283.3 MB/s (11278270 bytes in 0.038s)
[-] Backup exists already
[*] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] C:\Users\aiden\AppData\Local\Android\Sdk\system-images\android-31\google_apis\x86_64\ramdisk.img: 1 file pushed, 0 skipped. 301.4 MB/s (3685301 bytes in 0.012s)
[-] Copy rootAVD Script into Magisk DIR
rootAVD.sh: 1 file pushed, 0 skipped. 13.9 MB/s (78955 bytes in 0.005s)
[-] run the actually Boot/Ramdisk/Kernel Image Patch Script
[*] from Magisk by topjohnwu and modded by NewBit XDA
: inaccessible or not foundl/Magisk/rootAVD.sh[7]:
: inaccessible or not foundl/Magisk/rootAVD.sh[11]:
'data/data/com.android.shell/Magisk/rootAVD.sh[14]: syntax error: unexpected 'in```

from rootavd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.