Asus Eee Note, a peek within....

Discussion in 'Asus (Android)' started by whazzup, Jan 12, 2011.

  1. jjsimpso

    jjsimpso Pen Pal - Newbie

    Joined:
    Jan 27, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    5
    Are you using an external microsd card or the internal one? I believe the dvt_check script goes on an external microsd card that you load in the slot.
     
  2. latinvixen

    latinvixen Artist

    Joined:
    Dec 3, 2010
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    31
    Location:
    Florida
    Oh add another micro sd card in the slot along side with the internal one that is already in the device? so in total 2 micro sd cards but one with the fullinstall.zip info?
     
  3. jjsimpso

    jjsimpso Pen Pal - Newbie

    Joined:
    Jan 27, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    5
    Just to clarify, the dvt_check script doesn't go on the microsd card you pulled from inside your Eee Note. All you have to do is put the script on any blank microsd card you have laying around and load it into the slot on the bottom of the Eee Note.

    It appears that it is a test script that is automatically called from any external microsd card that is in the slot on bootup.

    Am I making sense? :)

    EDIT: Yes, I think you've got it! (I haven't tried it myself, but that is my understanding)
     
  4. latinvixen

    latinvixen Artist

    Joined:
    Dec 3, 2010
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    31
    Location:
    Florida
    Aha wow ok I feel dumb, I got it to work. Thank you so much for this file :D
     
  5. pbarrette

    pbarrette Scribbler - Standard Member

    Joined:
    Jan 24, 2011
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    31
    Location:
    Huntsville, AL
    Hi all,

    We need a way to stop processing the profile script if we are logging in via telnet. Currently, a telnet login attempts to load kernel modules, re-attach the wacom panel and launch the eeeserver.

    Spawning a second eeeserver instance also causes some of the child apps to spawn and causes problems as the QCop messages are recieved by both instances of the eeeserver and whatever child app each eeeserver thinks is in focus.

    Basically, the EeeNote starts freaking out every time you telnet in.

    I assume there must be some way to determine if the profile is being executed from a telnet session and if so, exit the profile script.

    Anyone?

    pb
     
  6. Joshua.Lamorie

    Joshua.Lamorie Pen Pal - Newbie

    Joined:
    Jan 2, 2011
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    15
    In the same dvt_check used to start telnetd, use a sed script to add another user in /etc/passwd. Or, add the -l switch to telnetd to start a different shell. I stupidly left my external microSD at work, and am not able to test some of these things.

    I will try to add some of your scripts to the github project later tonight (EST).

    Joshua

    EDIT: assuming telnetd is actually a busy box applet
     
  7. wahaha432

    wahaha432 Pen Pal - Newbie

    Joined:
    Jan 30, 2011
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    I think we can check whether we are on pty (remote login) or tty (console) using the tty command. The problem is, which part of profile can be retained, and which part should be omitted? Some part of profile should still be retained, such as setting up environmental variables, paths, aliases, etc.

    EDIT:
    Links to tty command
     
    Last edited by a moderator: May 18, 2015 at 7:26 PM
  8. Joshua.Lamorie

    Joshua.Lamorie Pen Pal - Newbie

    Joined:
    Jan 2, 2011
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    15
    Hey, DaEvil,

    Without any research, the syntax of that remark file looks like JSON. However, as far as storage of note files, I assumed that everything was being stored in sqlite files.

    Code:
    [jpl@jpl-desktop onboard_sd]$ find . -name *.db
    ./sdb6/eTablet/etc/db/notedata.db
    ./sdb6/eTablet/etc/db/ebookdata.db
    ./sdb6/eTablet/etc/db/voicedata.db
    ./sdb6/eTablet/etc/db/stickymemodata.db
    ./sdb6/eTablet/etc/db/photodata.db
    ./sdb6/eTablet/etc/db/phonebookdata.db
    ./sdb6/eTablet/etc/db/tagdata.db
    
    Here are some details regarding the notedata database.

    Code:
    sqlite> .databases
    seq  name             file                                                      
    ---  ---------------  ----------------------------------------------------------
    0    main             /home/jpl/Documents/Eee Note/onboard_sd/sdb6/eTablet/etc/d
    sqlite> .tables
    book      page      template
    sqlite> .schema book
    CREATE TABLE [book] (
      [ID] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, 
      [CreateTime] TEXT NOT NULL, 
      [LastAccTime] TEXT NOT NULL, 
      [Name] NVARCHAR(100) NOT NULL, 
      [TemplateID] INTEGER DEFAULT (1), 
      [Thumbnail] BLOB, 
      [LastOpenPageID] INTEGER, 
      [FirstAlpha] INT, 
      [IsLock] BOOLEAN DEFAULT (0), 
      [IsDelete] BOOLEAN DEFAULT (0), 
      [Type] INTEGER DEFAULT (2));
    sqlite> .schema page
    CREATE TABLE [page] (
      [ID] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, 
      [BookID] INTEGER NOT NULL, 
      [CreateTime] TEXT NOT NULL, 
      [LastAccTime] TEXT NOT NULL, 
      [Name] NVARCHAR(100), 
      [PageIndex] INTEGER, 
      [TemplateID] INTEGER, 
      [Path] TEXT, 
      [Thumbnail] BLOB, 
      [DrawArea] TEXT, 
      [IsDelete] BOOLEAN DEFAULT (0), 
      [FirstAlpha] INTEGER);
    sqlite> .schema template
    CREATE TABLE [template] (
    [ID] INTEGER  NOT NULL PRIMARY KEY AUTOINCREMENT,
    [Name] NVARCHAR(200)  NOT NULL,
    [Path] NVARCHAR(200)  NOT NULL
    );
    
    So, this implies that the image data is not stored in the data base, unless that's what 'DrawArea' is supposed to be. However, I think that it is most likely Path. For example;

    Code:
    sqlite> select Path from page;
    page_201101161625410.gif
    page_201101170858221.gif
    page_201101170922182.gif
    ...
    
    And then if I look for where that first file is...

    Code:
    [jpl@jpl-desktop onboard_sd]$ find . -name page_201101161625410.gif
    ./sdb6/eTablet/var/enotes/page_201101161625410.gif
    
    Interesting none the less.

    Joshua
     
  9. pbarrette

    pbarrette Scribbler - Standard Member

    Joined:
    Jan 24, 2011
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    31
    Location:
    Huntsville, AL
    Ok..

    I can test whether we are in a telnet session by checking that $PPID != 1. The parent ID of the main shell is 1, while the parent ID of a telnet shell is the PID of the telnet daemon.

    To that end I edited the profile, wrapping the commands after the "Done" notification in an if/else condition. If we're in telnet, I set some environment variables and skip over the rest. The main shell executes normally in the else clause.

    I also added a function in dvt_check that prints the fbecho statements in a more logical Y order. That's just a minor detail.

    The FullInstall.zip file has been updated accordingly.

    pb
     
  10. pbarrette

    pbarrette Scribbler - Standard Member

    Joined:
    Jan 24, 2011
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    31
    Location:
    Huntsville, AL
    Hi Joshua,

    I've had a look at the databases content while looking at creating and importing my own notes.

    The [Thumbnail] column is BLOB data which contains a 212x300 pixel PNG file. The PNG file is a zoomed area of the page which actually contains pixels drawn by the pen. The [DrawArea] column is text data in the format "x1,y1,x2,y2" which are screen coordinates that define the total area that was drawn on by the pen.

    Not so easy to inject custom data.

    pb
     
Similar Threads: Asus Note
Forum Title Date
Asus (Android) Asus EEE Note EA800 For Sale Aug 26, 2013
Asus (Android) Installation issues? How to install software packages .apk files for asus eee note? Aug 23, 2013
Asus (Android) ASUS EEE NOTE EA800 touchpad issue. Normal? Jul 29, 2013
Asus (Android) does the asus eee note have an LCD screen or e-ink? Jul 14, 2013
Asus (Android) ASUS EEE Note EA-800 with 32GB internal micro SD card Nov 27, 2012

Share This Page