Git Product home page Git Product logo

Comments (3)

anestisb avatar anestisb commented on June 18, 2024

The problem appears to be located at the fuse readdir() implementation of fuse-ext2

$ fuse-ext2 -o uid=$EUID,ro system.img.raw system

$ ls system/app
BasicDreams             CloudPrint2             GoogleHome              LatinImeGoogle          PrebuiltDeskClockGoogle Tycho                   qcrilmsgtunnel
Bluetooth               DMAgent                 GoogleJapaneseInput     LiveWallpapersPicker    PrebuiltExchange3Google UserDictionaryProvider  talkback
BluetoothMidiService    DocumentsUI             GooglePinyinIME         NfcNci                  PrebuiltGmail           Videos
CalculatorGoogle        DownloadProviderUi      GoogleTTS               PacProcessor            PrintSpooler            Wallet
CaptivePortalLogin      Drive                   HTMLViewer              PlayAutoInstallConfig   SetupSmartDeviceOverlay WebViewGoogle
CertInstaller           FaceLock                Hangouts                PlayGames               Stk                     YouTube
Chrome                  GoogleHindiIME          KeyChain                PrebuiltBugle           TimeService             atfwd

$ ls system/app/HiddenMenu
HiddenMenu.apk oat

$ gstat system/app/HiddenMenu
  File: system/app/HiddenMenu
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 3600003eh/905969726d	Inode: 2059        Links: 3
Access: (0755/drwxr-xr-x)  Uid: (  501/anestisb)   Gid: (    0/   wheel)
Access: 2009-01-01 10:00:00.000000000 +0200
Modify: 2009-01-01 10:00:00.000000000 +0200
Change: 2009-01-01 10:00:00.000000000 +0200
 Birth: -

$ find system/app -name "*Hidden*"

from android-prepare-vendor.

anestisb avatar anestisb commented on June 18, 2024

Using the older walk_dir() implementation instead of new default walk_dir2() seems to resolve the problem.

anestisb at khaos in ~/Tools/Misc/fuse-ext2 on master [!?] [2.7] $
$ git diff
diff --git a/fuse-ext2/op_readdir.c b/fuse-ext2/op_readdir.c
index 60e1890..203d60f 100644
--- a/fuse-ext2/op_readdir.c
+++ b/fuse-ext2/op_readdir.c
@@ -25,7 +25,7 @@ struct dir_walk_data {
        fuse_fill_dir_t filler;
 };

-#define _USE_DIR_ITERATE2 1
+//#define _USE_DIR_ITERATE2 1
 #if defined(_USE_DIR_ITERATE2) && (_USE_DIR_ITERATE2 == 1)
 static int walk_dir2 (ext2_ino_t dir, int   entry, struct ext2_dir_entry *dirent, int offset, int blocksize, char *buf, void *vpsid)
 {

from android-prepare-vendor.

anestisb avatar anestisb commented on June 18, 2024

Upstream fuse-ext2 has also implemented the temporarily fix - alperakcan/fuse-ext2@48cc22e

from android-prepare-vendor.

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.