Error 64 when flashing OpenGapps


Question

One Gapps (pico and nano) errors with 64 when I try to install using twrp-3.3.1.4. I know I'm using the right version. I'm on a brand new One Plus 7 Pro.



##############################
_____ _____ ___ ____
/ _ \ | __ \ / _ \ | _ \
| / \ || |__) | |_| || | \ \
| | | || ___/| __/ | | | |
| \ / || | \ |__ | | | |
\_/ \_/ |_| \___| |_| |_|
___ _ ___ ___ ___
/ __| /_\ | _ \ _ \/ __|
| (_ |/ _ \| _/ _/\__ \
\___/_/ \_\_| |_| |___/
##############################

Open GApps nano 9.0 - 20191017

- Mounting /vendor

find: /system/system: No such file or directory
ls: /system/system: No such file or directory
- Gathering device & ROM information

***** Incompatible Device Detected *****

This Open GApps package cannot be
installed on this device's architecture.
Please download the correct version for
your device: arm

******* GApps Installation failed *******

- Copying Log to /sdcard

- NO changes were made to your device

Installer will now exit...

Error Code: 64
cp: can't stat '': No such file or directory
ls: /system/system: No such file or directory
cp: can't stat '/system/system/etc/g.prop': No such file or directory
cp: can't stat '/system/system/default.prop': No such file or directory
cp: can't stat '/system/system/build.prop': No such file or directory
cp: can't stat '/vendor/vendor/build.prop': No such file or directory
cp: can't stat '/data/local.prop': No such file or directory
cp: can't stat '/build.prop': No such file or directory
cp: can't stat '/system/system/addon.d/70-gapps.sh': No such file or directory
cp: can't stat '/cache/recovery/log': No such file or directory
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
- Unmounting /vendor

Updater process ended with ERROR: 64
I:Install took 9 second(s).
Error installing zip file '/sdcard/open_gapps-arm64-9.0-nano-20191017.zip'
Updating partition details...
I:Data backup size is 0MB, free: 227550MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0

Answer

I found that if upon receiving this error, before booting into LineageOS I can




  • Boot into the bootloader from TWRP,


    • Click on Reboot

    • Click on Bootloader


  • Boot into a new TWRP from the bootloader


    • Run twrp boot ./twrp.*.img


  • I can then install the gapps.






What cause this? Well my theory now is that the instructions on the Lineage OS suggest Wiping the System partition





  • Now tap Wipe.

  • Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.

  • Return to the previous menu and tap Advanced Wipe, then select the System partition and then Swipe to Wipe.




I was doing that and it was working for the purposes of installing LineageOS, but I believe after the Advanced Wipe on the System Partition something wasn't working. It's as if the wipe was complete and LineageOS could be installed, but mounting the partition after the install of LineageOS required rebooting into the recovery again. If you allow LineageOS to boot up before you flash GApps all bets are off. Worse this was the only way for it to work because if I rebooted into the recovery I would get the LineageOS recovery -- LineageOS now replaces TWRP entirely. I may have been able to install GApps from the LineageOS recovery's ADB Sideload option, but rebooting into TWPR recovery by proxy of the bootloader worked too.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes