Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't compile lewa-res.apk (sdk 16) from LeWaOS - bootloop #612

Closed
iBotPeaches opened this issue Mar 18, 2015 · 4 comments
Closed

I can't compile lewa-res.apk (sdk 16) from LeWaOS - bootloop #612

iBotPeaches opened this issue Mar 18, 2015 · 4 comments

Comments

@iBotPeaches
Copy link
Owner

Original issue 502 created by info@danbar.cz on 2013-08-10T10:21:55.000Z:

What steps will reproduce the problem?

  1. adb pull (/framework/framework-res.apk, lewa-res.apk, mediatek-res.apk, /system/SystemUI.apk )
  1. install from apktool this 4 files. (apktool if framework-res.apk), etc.
  2. framework-res.apk = 1.apk, mediatek-res.apk = 2.apk, lewa-res.apk = 9.apk, SystemUI.apk = 127.apk
  3. apktool d lewa-res.apk
  4. nothing edit, only apktool b lewa-res
  5. In 7z copy from original app this 2 things (META-INF, AndroidManifest.xml) to new compilate version.
  6. New version of lewa-res.apk copy in totalcommander to rom in zip. Install in TWRP 2.5.0.0 or CWM 6.0.3.0. or Lewa Frog recovery.

What is the expected output? What do you see instead?
After install rom in zip with this edited (only decompilated, and compilated) lewa-res.apk I have bootloop (freeze logo on booting system).

If i translate other app from /framework/ (framework-res.apk, mediatek-res.apk) or app from /system/ (as Settings.apk), everything are OK (same step by step).

I need OK lewa-res.apk (without bootloop) :-) Please help me...

What version of the product are you using? On what operating system?
phone: Lenovo P770
ROM: LeWA OS - http://static.lewatek.com/yun/Lenovo_P770_JB/LeWa_Lenovo_P770_JB_ROM_13.08.09_40a3d.zip

I use:
last version of http://apkmultitool.com/?q=node/5
last version apktool 1.5.2
jdk1.7.0_25 (64bit)
Windows 8 64 bit
in android SDK manager i have download last version for API 18, 17, 16.

@iBotPeaches
Copy link
Owner Author

Comment #1 originally posted by info@danbar.cz on 2013-08-19T17:40:55.000Z:

C:\APK-Multi-Tool\other>apktool d lewa-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\DanBar\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Done.
I: Copying assets and libs...

C:\APK-Multi-Tool\other>apktool b -f lewa-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more

@iBotPeaches
Copy link
Owner Author

Comment #2 originally posted by connor.tumbleson on 2013-09-03T02:05:34.000Z:

I'm not going through an entire ROM :p too busy for that. Meet me half way please.

Upload all apk's in the /system/framework
and the affected apk.

@iBotPeaches
Copy link
Owner Author

Comment #3 originally posted by info@danbar.cz on 2013-09-04T10:51:09.000Z:

Now I can decompilated, translated and recompilated lewa-res.apk !!!

This is step by step guide:

  1. Download new version jBart https://github.com/BurgerZ/jBART/archive/master.zip and unzip
  2. download this file: http://androidforum.cz/download/file.php?id=8456
  3. to folder jBart\data\frameworks_single\ copy (unzip) fake3.apk up to fake8.apk (from number 2) - zip file)
  4. to same folder copy framework-res.apk, framework.jar, mediatek-res.apk from original lewa rom (zip)
  5. in JBart choose Single file, set path to lewa-res.apk, and tap to Decompile
  6. in folder jBART\lewa-res.apk.bzproject\decompiled\lewa-res.apk\ edit file apktool.yml by notepad++
  7. search "- 1"
    8] replace to:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
    9) save this file
    10) to folder jBART\lewa-res.apk.bzproject\decompiled\lewa-res.apk\res\ add your translate (as usualy)
    11) in program JBart choose button Compile
    12 in folder jBART\lewa-res.apk.bzproject\compiled\ you find new app (functioned with translate)

@iBotPeaches
Copy link
Owner Author

Comment #4 originally posted by connor.tumbleson on 2013-09-04T12:21:25.000Z:

okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant