1. Nimm jetzt an unserem 2. ADVENT-Gewinnspiel teil - Alle Informationen findest Du hier!

Install applications on /system

Dieses Thema im Forum "Root / Hacking / Modding für Motorola Milestone" wurde erstellt von The Matrix, 16.04.2010.

  1. The Matrix, 16.04.2010 #1
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    Hi,
    [sorry, i don't speak deutch]
    i have a problem. i'm interested on install a applications (terminal emulator, google earth, and some others) in /system/app.
    but when i install in /system/app and next i make a hardreset on my milestone, the applications are correctly showed at launcher-menu, but if i try to execute, a error is triggered and the applications don't work.
    if i install in /data/app i don't have problems.
    with other applications the /system/app install works without problems.
    why?
    thank's for the answer
     
  2. -FuFu-, 16.04.2010 #2
    -FuFu-

    -FuFu- Android-Urgestein

    Beiträge:
    8,406
    Erhaltene Danke:
    3,148
    Registriert seit:
    17.03.2010
    Phone:
    Motorola Moto E 2.Gen
    sorry, my english is very very bad :D
    some apps have problems by installing to /system/app, the apps store there settings to /data/data, after a hardreset the /data patition is clean
    also the htc_ime.apk have problem when the datas vom /data/data a away

    when you install an app in normal way by the market or an filemanager, the app will create the file in /data/data, but when you only copy the akp to /data/app or /system/app die files in /data/data are missing and the apps don't work...


    i hope you understand what i try to explain ;) but i think an other user can explain it better :D because my english ist more then only bad ;)
     
  3. The Matrix, 16.04.2010 #3
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    ok.
    if i make a backup of the /data/data/[APPLICATION] files and i make a script that
    copies the backup to /data/data[APPLICATION] after a reset, the application that
    works? is that?
     
  4. mattmaso, 16.04.2010 #4
    mattmaso

    mattmaso Android-Experte

    Beiträge:
    460
    Erhaltene Danke:
    288
    Registriert seit:
    26.11.2009
    install the app normally to /data/app/ then the app should create the folders in /data/data/ and after this you can just move the app from /data/app/ to /system/app/
    I think this should work. :)
     
  5. The Matrix, 16.04.2010 #5
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    hi,
    i'm interested on create a process that make any basic applications available after a HardReset (withouf none install).
     
  6. mattmaso, 16.04.2010 #6
    mattmaso

    mattmaso Android-Experte

    Beiträge:
    460
    Erhaltene Danke:
    288
    Registriert seit:
    26.11.2009
    do you mean something like gscript?
     
  7. The Matrix, 16.04.2010 #7
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    hi,
    i'm interested on make a (basic) applications (like oi-file-explorer, terminal emulator) available after a hardreset via create the basic archives with a shell script on boot time
    (including the sh code at mot_boot_mode script), and my Q is: the needed files are in
    /data/data/APPLICATION (for make my backup)
    thank's!!
     
  8. -FuFu-, 16.04.2010 #8
    -FuFu-

    -FuFu- Android-Urgestein

    Beiträge:
    8,406
    Erhaltene Danke:
    3,148
    Registriert seit:
    17.03.2010
    Phone:
    Motorola Moto E 2.Gen
    gscript -.- i don't like it :D i love my adbrecovery + sh script ^^
     
  9. KisteBier, 16.04.2010 #9
    KisteBier

    KisteBier Android-Lexikon

    Beiträge:
    1,591
    Erhaltene Danke:
    314
    Registriert seit:
    30.11.2009
    Phone:
    Huawei P9 EVA-L19
    i think it was a possibility to install normally via market and move them from /data/app to /system/app - just like mattmaso suggested.
    after moving the apps, make a backup of /system/apps and /data/data.

    after doing so you should be able to easily write a script (for e.g. gscript or shell-script for recovery console, too. just like you prefer) that moves either just those apps you installed on your own (code for every single app was necessary) or everything in these folders (would result in just two single lines of code, one for /system/app and one for /data/data). the only thing you have to be aware of, is to make and restore backup of those data the apps install into /data/data, too!

    example:
    - install apps via market
    - make backup of /system/app (complete or just installed apps)
    - make backup of /data/data (complete or just the data installed by apps)

    - write script for restoring /system/app and /data/data (complete or just installed apps and data)
    - you´re done :)

    if you do so, it wouldn´t be a problem if updates for the apps appear, you could easily update via market. the "clean" way was making backup of just the apps (and installed data in /data/data!) you installed yourself. if some other stuff was in /data/data you would also restore these old data, if you make a complete backup.

    hope this helps :)
    sorry if there are some or more errors.. my english is a little rusty, i think ;)
     
  10. The Matrix, 16.04.2010 #10
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    ok,
    i have another problem.
    the directories in /data/data are ownered by the user app_X
    and X is a number.
    how assign the system this number? (i assume the user owner is rellevant).
    thanks
     
  11. The Matrix, 16.04.2010 #11
    The Matrix

    The Matrix Threadstarter Android-Hilfe.de Mitglied

    Beiträge:
    87
    Erhaltene Danke:
    18
    Registriert seit:
    08.04.2010
    good.
    solved.

    the problem of push any application to /system/app directory PERMANENTLY exists if the application uses a specific library.

    the specific library is created at /data/data/[APPLICATION]/lib
    after a hardReset, the /data is recreated and the libraries for the market downloaded applications are not correcly recreated.

    to prevent this, you have to keep the libraries installed in applications /system and do not want to re-download.
    backup, put it in /system/etc/sysapps_initial_libs/[APPLICATION]

    [APPLICATION is the /data/data/DIRECTORY]

    and run to start a shell (automatically via include in /system/bin/mot_boot_mode) to copy from the backup to the correct location if the libraries do not exist, which makes applications work correctly.
    I attached the script, if it helps you.

    note: i'm not responsible of damages....
     
    Zuletzt bearbeitet: 16.04.2010
    KisteBier bedankt sich.
  12. KisteBier, 16.04.2010 #12
    KisteBier

    KisteBier Android-Lexikon

    Beiträge:
    1,591
    Erhaltene Danke:
    314
    Registriert seit:
    30.11.2009
    Phone:
    Huawei P9 EVA-L19
    thanks for the good job and sharing your solution with other users!

    i´ll give it a try when i´ve got the time to do so.

    just for understatement:
    if i got it correctly, your script "just" restores the defined data, so we have to backup /system/app and /data/data first?
     
    Zuletzt bearbeitet: 16.04.2010
  13. bemymonkey, 23.06.2010 #13
    bemymonkey

    bemymonkey Android-Guru

    Beiträge:
    3,926
    Erhaltene Danke:
    351
    Registriert seit:
    06.12.2009
    Phone:
    Galaxy Nexus
    Hi! Is this script needed for all apps that are to be pushed to /system/app? Or only the problematic ones?
     

Diese Seite empfehlen