Il Forum è consultabile solo in modalità lettura. Per domande o consigli iscriviti al nostro GRUPPO FACEBOOK / COMMUNITY cliccando qui

[GUIDA] installazione/uso di apktool con ubuntu

Discussion in 'Personalizzazioni' started by yann73, Jul 18, 2012.

  1. yann73

    yann73 Golden Droid

    Joined:
    Feb 5, 2010
    Messages:
    7,157
    Likes Received:
    1,176
    Mmmmmh... mi lascia perplesso !!!
    che PC è ??? 32 oppure 64 bit ???

    Io quando ho installato ubuntu, ho lasciato tale quale la partizione di windows, ho preso 70 GiB dalla partizione data per installarci Ubuntu.... ho un asus x53s con un I7 a 64 bit.... e ho messo la 12.04 LTS.... che differenza ci può stare tra noi ???

    mi puoi trascrivere la tua shell quando digiti il comando ??? per avere l'esatto errore !!!
     
    Last edited: Dec 10, 2012
  2. simoscorpion

    simoscorpion Power Droid

    Joined:
    Jul 26, 2012
    Messages:
    45,604
    Likes Received:
    11,831
    23 bit, è un hp del 2007, ho messo la partizione da 20gb, intendi l'errore che da l'ubuntu software center o il terminale
     
  3. asus85

    asus85 Baby Droid

    Joined:
    Oct 7, 2012
    Messages:
    11
    Likes Received:
    4
    Ciao Bellisima Guida, volevo chiede informazioni sulla parte dell'installazione del framework-res.apk (tengo un galaxy nexus con jb4.3 non riesco a capire come devo installare il framework sulla cartella di apktool ) con ubuntu 13.04 !
     
    Last edited: Sep 3, 2013
  4. yann73

    yann73 Golden Droid

    Joined:
    Feb 5, 2010
    Messages:
    7,157
    Likes Received:
    1,176
    Ciao.. Devi semplicemente incollare il framework secondario di Samsung sul pc... Qualsiasi directory va bene ma basta che riporti la directory precisa al comando apktool if...
    Quindi Poi devi digitare :
    apktool if <directory del file framework secondario>
     
  5. asus85

    asus85 Baby Droid

    Joined:
    Oct 7, 2012
    Messages:
    11
    Likes Received:
    4

    Ciao Yann, ho fatto tutto come dici e mi restituisce questo errore:

    Code:
    mario@mario-Lenovo-B590:~$ apktool if  home/mario/Scaricati/framework-res.apk
    Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: home/mario/Scaricati/framework-res.apk (File o directory non esistente)
    	at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:406)
    	at brut.androlib.Androlib.installFramework(Androlib.java:365)
    	at brut.apktool.Main.cmdInstallFramework(Main.java:193)
    	at brut.apktool.Main.main(Main.java:69)
    Caused by: java.io.FileNotFoundException: home/mario/Scaricati/framework-res.apk (File o directory non esistente)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:159)
    	at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
    	... 3 more
    
    se apro il terminale e dò apktool :

    Code:
    mario@mario-Lenovo-B590:~$ apktool
    Apktool v1.4.3 - a tool for reengineering Android apk files
    Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
    Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
    
    Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]
    
    COMMANDs are:
    
        d[ecode] [OPTS] <file.apk> [<dir>]
            Decode <file.apk> to <dir>.
    
            OPTS:
    
            -s, --no-src
                Do not decode sources.
            -r, --no-res
                Do not decode resources.
            -d, --debug
                Decode in debug mode. Check project page for more info.
            -f, --force
                Force delete destination directory.
            -t <tag>, --frame-tag <tag>
                Try to use framework files tagged by <tag>.
            --keep-broken-res
                Use if there was an error and some resources were dropped, e.g.:
                "Invalid config flags detected. Dropping resources", but you
                want to decode them anyway, even with errors. You will have to
                fix them manually before building.
        b[uild] [OPTS] [<app_path>] [<out_file>]
            Build an apk from already decoded application located in <app_path>.
    
            It will automatically detect, whether files was changed and perform
            needed steps only.
    
            If you omit <app_path> then current directory will be used.
            If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
            will be used.
    
            OPTS:
    
            -f, --force-all
                Skip changes detection and build all files.
            -d, --debug
                Build in debug mode. Check project page for more info.
    
        if|install-framework <framework.apk> [<tag>]
            Install framework file to your system.
    
    For additional info, see: http://code.google.com/p/android-apktool/
    
     
    Last edited: Sep 3, 2013
  6. yann73

    yann73 Golden Droid

    Joined:
    Feb 5, 2010
    Messages:
    7,157
    Likes Received:
    1,176
    Ops... Non era cancellato ma stava in moderazione xD... A volte succede finché non raggiungere una soglia di tot post come utenti ;-) comunque ora dovrebbe essere tornato visibile e se così non fosse fammi sapere tranquillamente :alol:

    Quello ti dà un errore di Java!!! Secondo me non hai Java aggiornato sulla tua macchina ;-)
    Non sono molto esperto quindi prova a cercare qualche soluzioni... E fammi sapere!!!


    Inviato dal mio Nexus 4 con Tapatalk 4
     
  7. asus85

    asus85 Baby Droid

    Joined:
    Oct 7, 2012
    Messages:
    11
    Likes Received:
    4
    Ok, ora si vede il post!
    Comunque per il java non installato mi sembra strano ci do una vista appena torno da lavoro!

    Inviato dal mio maguro con Tapatalk 4
     
    yann73 likes this.