Related
Hello, everybody. I am a developer from Giayee ( Android Phone OEM/ODM ). We are now designed an android phone for a client. I come accross a difficult problem during developing. Our phone always restart from android logo after running for a few hours. And the log is:
E/dalvikvm-heap( 933): 28900-byte external allocation too large for this processE/ ( 933): VM won't let us allocate 28900 bytes
D/skia ( 933): --- decoder->decode returned false
...
E/AndroidRuntime( 933): android.view.InflateException: Binary XML file line #123: Error inflating class java.lang.reflect.Constructor
...
Please help me analyze this log. Thanks! Waiting for your answers, thanks!!!
First things first:
-hardware of the phone?
-which firmware version are you running?
Are you using modded rom?
Regards
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thread Index:
Post 1 - Information. PLEASE READ!
Post 2 - Usage and porting info.
Post 3 - Features status. To request features use the tab at the top of the thread.
Post 4 - Ported themes and links.
Click to expand...
Click to collapse
When posting I only ask of 3 simple requirements.
1) Please search or read first. If the question has been asked/answered i will not reply.
2) Post any log extracts and pictures within the "hide" tags to keep the thread clutter free.
3) Do not quote posts in full. If you have to, use the hide tags
What is CMX?
This is a batch script that runs on Windows to port CM11 themes to work with XTheme/HKTheme engine.
Unless porting png's solely, this is designed to take most of the leg work out of porting themes across, so expect some errors when working with the xml's. It is difficult to encompass all the different CM11 themes and quirks they bring with them without downloading and testing each and every theme available.
Ive tried to make the script as unobtrusive and self sufficient as possible with minimal user input in automatic mode.
If you include xml's, some manual labour may be necessary depending on the theme so expect to get your hands dirty. From the themes I've tested with xml's included, 50% have ported straight through and 50% have failed and required some extra attention.
When the script runs through the asset configuring phase (png's/xml's) it will open up a window for each package folder one at a time. One folder must finish processing before the other begins.
Requirements:
Java development kit (jdk) -Link. Installed and in your environment path -Link
CM11 theme to port Take your pick.
The ability to solve apktool log errors. I will help, but I will not spoonfeed!!.
Time Taken:
Setting up 10 minutes (inc. Java install)
Porting (depending on theme)
png's only- 2 minutes.
Difficulty- 2/10. Common error- 9 patch faults.
inc. xml's- 5 minutes.
Difficulty- Dependant on theme. Common error- xml faults.
Basically my script will work as follows when ran and "Automatic" is selected:
Set up required folders.
Automatically detect the apk in "CMThemeIn" folder and set it as the project or prompt the user to insert an apk.
Decompile set theme.
Create all the redirection.xml's required.
Cycle through the
Code:
assetsoverlays*InsertPackageNameHere*resdrawable
folders, and move them to the corresponding folder in the XTheme folder.
Gather xmls from res "drawable" and values" and insert appropriate redirections for that package name.
Ask the user to input a package name in AndroidManifest.xml.
Ask the user to input a theme, app, author and original themer name in strings.xml.
Compile, sign, zipalign and then place the output in "XThemeFinished" folder" ready for installing.
Currently the ports are best served with AOSP but there is an option to add redirections for TouchWiz and Semc (JellyBean 4.2 framework-res.apk).
The script offers you the option to include xml's or not.
Depending on the android version you are using certain xml's may not work or cause conflicts resulting in SOD's, force closes and bootloops.
To recover from a bootloop read the FAQ below.
Currently I wont be porting boot animations and fonts. Although I may add an option to port boot animations etc to a flashable zip.
Finally, the ported themes will NEVER look like the CM counterpart due to the Xposed limitation of themeing "styles.xml". This is not a restriction of the CMX tool, theme .apk or the theme engine
To find out more about the structure and for a better understanding go here and read more:
http://forum.xda-developers.com/showthread.php?t=2334637
Click to expand...
Click to collapse
FAQ
Q). It says Java not found, how do I add the Java path?
A). Check "What is CMX?" for a guide.
Q). The script fails in auto, what's wrong?
A). Read the log.txt and assets,txt in tools and look for any errors, if you cannot understand them then post your log either as a .txt file or as a snippet wrapped in hide tags as shown above.
Q). Whats the difference between CM10 and CM11 themes?
A). All the drawable resources for CM11 themes now reside in "assetsoverlays" and not "resdrawables" as they previously did. Also they no longer use redirection xml's.
Due to this change, XTheme and HKTheme engines do not support CM11 themes...until now.
Q). Why doesn't the theme look like the CM11 counterpart?
A). This is due to styles.xml not being supported and xml restrictions if not included.
Q). I've got a bootloop, how can I fix it?
A). Go and follow the instructions here: http://tinyurl.com/nm4eups
Q). Why does it take longer when porting than it used to?
A). I have muted the opening of seperate windows. Each folder in the CM11Themeassets directory is processed one at a time to prevent errors. This must be done correctly or this will have detrimental effects to the xml's being created and
cause compiling errors.
Q). What are the duties of the folders?
A).
"tools": Contains all the resources needed to help porting.
"CMThemeIn": This is the folder you place your desired CM theme to be ported.
"CMThemeOut": When apktool decompiles the apk from "CMThemeIn", this is the source/reference for porting.
"XTheme": Contains the resources from "CMThemeOut" that have been configured and modified to be X/HKTheme compatible.
"XThemeFinished: This folder is used to store the newly created, X/HKTheme compatible apk.
Q). How do I remove "ON" and "OFF" from the switches?
A). See this post: Link.
Q). I get "invalid resource directory name" in the error log, how do I fix it?
A). Something has broken the script process and caused the creation of unnecessary folders. Goto "XThemeXThemeBase.apkres" and remove the folders detailed in the log.
Example: "XThemeXThemeBase.apkresdrawable-SomeRandomName" delete "SomeRandomName" folder
Click to expand...
Click to collapse
Credits:
@brut.all, @iBotPeaches and @JesusFreke for apktool and smali/baksmali respectively.
@nhnt11 for his xml generator.jar.
@existz and @xIC-MACIx for letting me test on their themes.
@rovo89, @ruqqq and @hdbk1986 for Xposed, Xtheme and HKTheme respectively.
@pierx for TouchWiz 4.2 framework-res redirections.
All the beta-testers.
Click to expand...
Click to collapse
XDA:DevDB Information
CMX, Tool/Utility for all devices (see above for details)
Contributors
dully79
Version Information
Status: Beta
Current Beta Version: v3
Beta Release Date: 2014-09-15
Created 2014-08-29
Last Updated 2014-09-27
Using the script and porting.
Instuctions:
Download the zip.
Downloads can be found in the "Download" tab above.
Or if your browsing via mobile you can use this mirror: CMX beta v3
Unzip the "CMX" folder to a directory containing no spaces or rename the folder.
Any spaces within the containing folder will result in the jar files not being able to run.
BAD= C:/Users/My name/desktop/CMX beta T1000
GOOD= C:/Users/My_name/desktop/CMX_beta_T1000
I've also included Jarsigner.exe in the download. Move it to your "Java\bin" folder if you do not have it installed, otherwise you can delete it.
Start ".RunMe.bat".
Your now presented with 2 main options with regards to porting.
Automatic.
Manual.
I've covered automatic above in "What is CMX" so i'll explain manual.
Basically all the options in the manual menu (other than options 0 and 1) are what the automatic mode cycles through in the same order. This can be useful if you receive any errors and want to carry on from where automatic failed.
The options are self explanatory but I'll give basic details:
Choose apk. Can be used to override the automatic built in selection. Useful if you have a number of apks in the "CMThemeIn" folder, although it is recommended to just keep one apk to prevent possible bugs.
Decompile apk. Decompiles the chosen apk for assets extraction.
Create main redirections.xml. Creates the main redirection xml containing all the package redirections.THIS MUST RUN BEFORE 4+5.
Configure CM11 xml's. Configures and ports CM11 xml's to work with X/HKTheme.
Configure CM11 png's.Create package (app) redirections.xml's and copies all the images to the appropriate folders in XThemeBase.apk inc. theme icon and wallpaper.
Set package and strings.xml name. Asks the user to declare the new package name in AndroidManifest.xml. Ideally use the same as the theme but with an "X" prefixing. e.g "com.mac.theme.gem" becomes "Xcom.mac.theme.gem". Also asks the user to to set the new app, theme, porter and original author name.
Compile. Compiles XThemeBase.apk into the ported theme apk.
Sign and zipalign. Signs and zipaligns the newly compiled apk ready for installation. The key used is market compatible generated by me.
Return to main menu. Returns to the initial screen.
When porting a theme try to name it so it is easy to differentiate from the original.
Example.
Original package and app name:
com.mac.theme.gem
Gem Flat
Ported with png's only:
X.com.mac.theme.gem
X Gem Flat
Ported with xml's:
X.com.mac.theme.gem.inc
X Gem Flat inc
How to port the custom launcher icons?
To use the new custom icon porter option, you will find it under option 2 (Manual) and 9. Two pre-requisites must be met:
You must have decompiled the apk in CMThemeIn prior to choosing this option.
Set the AndroidManifest name or strings. If you have not, or closed the tool since porting the main theme, you can define them using option 2 (Manual) and 6.
If the theme you are porting doesnt support a certain density, you can use this jar tool to create them:
https://github.com/redwarp/9-Patch-Resizer/releases
ONLY CREATE DENSITIES LOWER THAN THE INPUT!.
Porting themes? Then read this:
If you are going to port a theme and share it, you MUST obtain permission from it's creator/author.
Not only is this good community manners it is XDA forum rules.:highfive:
XDA Rules
12. Using the work of others.
If you are developing something that is based on the work of another Member, you MUST first seek their permission and you must give credit to the member whose work you used. If a dispute occurs about who developed / created a piece of work, first try to settle the matter by private message and NOT in open forum. If this fails, you may then contact a Moderator and provide clear evidence that the work was created by you.
Click to expand...
Click to collapse
Feature status and changelog
Feature status:
Auto porting of xml's- xml's need the correct redirection prefix adding to the resource direction inside the file. This can be done manually if required (NOT RECOMMENDED). Complete.
Redirections for OEM ROM's e.g. TouchWiz, Semc etc. Complete.
Porting of app themed icons- This is something i will add in to port to a separate apk. Complete.
Porting of boot animations, fonts, ringtones etc. Possibly to a flashable zip.
styles.xml- Broken inside Xposed.
Changelog:
29/08/14
First beta release.
31/08/14 beta v1.1
Lots of code cleaning and bug fixes inc. message suppressing.
The script now searches for installed framework-res.apk, if none is found it will install the provided apk automatically.
If you input a CMTheme.apk that isnt a true CM11 Theme (doesn't use assets\overlays) you will receive a warning in the console and the decompiled folder will be removed.
"tools" folder contains:
framework-res.apk from CM11 for Mako.
aapt from android sdk build tools 4.4#
My updated version of the XTheme sample.apk A.K.A XThemeBase.apk
15/09/14 beta v3
Added xml porting support.
Updated XThemeBase.apk to include drawable and xml folder.
Lot's of code cleaning and bug fixes.
Removed opening of multiple windows. This results in a longer but cleaner process.
Added Jarsigner.exe to download.
Some other stuff.
23/09/14 beta v4
Removed jarsigner.
Removed framework-res.apk to reduce zip size (added to CMX folder in post #4 if required).
Added framework-res.apk redirections (4.2 Jelly Bean) for Sony and Samsung (thanks @pierx) devices.
Added the ability to port custom icons and wallpaper.If supported by the ported theme to a standalone Apex/Nova theme.apk. Manual option 9.
Fixed bug where invalid resource directories where created in XTheme.
Cleaned and re-wrote some code inc. an extra log for xml and png porting. This can be found in tools\ called assets.txt
24/09/14 beta v4.1
Added custom AndroidManifest and strings.xml to icon.apk porter. Uses values defined for main theme port. Can be redefined by selecting option 2 (Manual) and 6.
Ported CM11 Themes
The themes are split into 2 categories:
Drawables port.
Full port.
The reason for being split is because devices on older android versions (<4.3) might bootloop if using a fully ported 4.4 theme with a conflicting xml.
To cancel any bootloops you can disable Xposed via the flashable zip provided in rovo's Xposed thread, or by using adb shell delete in recovery. See faq above.
Layout:
[Supoorted densities] Name of theme- Created by author
Original thread- Link
Density key:
H=hdpi. X=xhdpi. XX=xxhdpi
Drawables only themes:
[X~XXHDPI] Gem Flat free v2.6.1- Created by @xIC-MACIx
Original thread-http://tinyurl.com/o3ofx5h
---------------------------------------------------------------------------------------
[XXHDPI] Android L-Mint v1.7- Created by @existz
Original thread-http://tinyurl.com/p2ulk26
Full port themes:
[X~XXHDPI] Gem Flat free v2.6.1- Created by @xIC-MACIx
Original thread-http://tinyurl.com/o3ofx5h
---------------------------------------------------------------------------------------
[XXHDPI] Android L-Mint v1.7- Created by @existz
Original thread-http://tinyurl.com/p2ulk26
---------------------------------------------------------------------------------------
[XXHDPI] Flats free v4/6 @rayford85
Original thread-http://tinyurl.com/mxf5jgb BEWARE.There is a bug when opening settings !
PLEASE NOTE: These ports are intended as a preview to what the tool can do. I will not be maintaining them or fixing bugs.
Downloads:
Click the Icon or the link.
Everything CMX related inside.
http://tinyurl.com/lv7cpqx
If you want to post ported themes in this thread then feel free and i will link to your post from here.
Please obtain the authors permission to port and distribute.
Many thanks to the authors of the themes for allowing me to port them.
If you download their theme you should go to the link above and thank them.:good:
First!!!!!!!.. Is it possible to make this an app for android? That would be great
Juansegovia20 said:
First!!!!!!!.. Is it possible to make this an app for android? That would be great
Click to expand...
Click to collapse
You win a prize for premature jubilation.
It probably is possible. If the script was converted from batch to .sh to run on your device, you could package it into an apk... But I won't be doing it. Creating this took me long enough. Plus I don't have the skills.
Ideally there would be an update to X/HKTheme or a new module developed. In the mean time this is the next best option.
dully79 said:
You win a prize for premature jubilation.
It probably is possible. If the script was converted from batch to .sh to run on your device, you could package it into an apk... But I won't be doing it. Creating this took me long enough. Plus I don't have the skills.
Ideally there would be an update to X/HKTheme or a new module developed. In the mean time this is the next best option.
Click to expand...
Click to collapse
I was just asking about the app because some of us don't have the knowledge do do all of this... but thanks, i hope someone here will accept requests to port the themes
Juansegovia20 said:
I was just asking about the app because some of us don't have the knowledge do do all of this... but thanks, i hope sometime here will accept requests to port the themes
Click to expand...
Click to collapse
There is no knowledge required.
All you need is:
Java installed on your Windows system.
A CM11 theme of your choice placed in "CMThemeIn"
Run the script, select option 1 (Automatic) and follow the prompts (4 of).
Install the resulting signed file in "XThemeFinished".
It takes 2 minutes literally. Everything is automated to make it as noob friendly as possible.:good:
If you have Windows give it a try and you'll be surprised how easy it is.
dully79 said:
There is no knowledge required.
All you need is:
Java installed on your Windows system.
A CM11 theme of your choice placed in "CMThemeIn"
Run the script, select option 1 (Automatic) and follow the prompts (4 of).
Install the resulting signed file in "XThemeFinished".
It takes 2 minutes literally. Everything is automated to make it as noob friendly as possible.:good:
If you have Windows give it a try and you'll be surprised how easy it is.
Click to expand...
Click to collapse
Awesome, thanks, i tried yesterday but i was confused, with this new instruction things look way easier,lol, I'll report back if i successfully managed to port a theme, thank you Sir!!
dully79 said:
and follow the prompts (4 of)
Click to expand...
Click to collapse
can u please explain this ?
theme is loaded and recognized, then i select 1 for automatic, then ?
i cannot seem to get anything as a result in the XTheme folder
eurochild said:
can u please explain this ?
theme is loaded and recognized, then i select 1 for automatic, then ?
i cannot seem to get anything as a result in the XTheme folder
Click to expand...
Click to collapse
There are only 4 prompts contained in the automatic option
Set AndroidManifest.xml "package name".
Set strings.xml "app name".
Set strings.xml "theme name".
Set strings.xml "copyright name". This is the original author.
What does the log say?
dully79 said:
There are only 4 prompts contained in the automatic option
Set AndroidManifest.xml "package name".
Set strings.xml "app name".
Set strings.xml "theme name".
Set strings.xml "copyright name". This is the original author.
What does the log say?
Click to expand...
Click to collapse
i dont get these prompts when on automatic mode
log
--------------------------------------------------------------------------
|30-Aug-14 -- 16:33:48.84|
--------------------------------------------------------------------------
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)
Error: Unable to access jarfile C:\Users\admin\Desktop\CMX-
The system cannot find the path specified.
Error: Unable to access jarfile C:\Users\admin\Desktop\CMX-
Error: Unable to access jarfile C:\Users\admin\Desktop\CMX-
eurochild said:
i dont get these prompts when on automatic mode
log
--------------------------------------------------------------------------
|30-Aug-14 -- 16:33:48.84|
--------------------------------------------------------------------------
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)
Error: Unable to access jarfile C:\Users\admin\Desktop\CMX-
The system cannot find the path specified.
Error: Unable to access jarfile C:\Users\admin\Desktop\CMX-
Error: Unable to access jarfile C:\Users\admin\Desktop\CMX-
Click to expand...
Click to collapse
Its not accessing apktool in the "tools" folder.
Try removing the "-" from CMX- and try again.
Can u create an app to Port themes?
READ!
IVIanuu said:
Can u create an app to Port themes?
Click to expand...
Click to collapse
Seriously?!
The thread only has 11 posts and 2 of them are regarding your question.
Please read or search before posting.
http://forum.xda-developers.com/announcement.php?f=1507:
1. Search before posting.
Use one of our search functions before posting or creating a new thread. Whether you have a question or just something new to share, it's very likely that someone has already asked that question or shared that news.
Click to expand...
Click to collapse
Juansegovia20 said:
First!!!!!!!.. Is it possible to make this an app for android? That would be great
Click to expand...
Click to collapse
dully79 said:
You win a prize for premature jubilation.
It probably is possible. If the script was converted from batch to .sh to run on your device, you could package it into an apk... But I won't be doing it. Creating this took me long enough. Plus I don't have the skills.
Ideally there would be an update to X/HKTheme or a new module developed. In the mean time this is the next best option.
Click to expand...
Click to collapse
post #14 @dully79 i'm on my mission right now
Thanks
dully79 said:
Its not accessing apktool in the "tools" folder.
Try removing the "-" from CMX- and try again.
Click to expand...
Click to collapse
same issue here even after removing the "-"
Rename the folder from "CMX- Betav1" to "CMX", the space will be throwing it out.
Everything works great.
Nicely done
Regards
everything goes well up until signing, zipaligning and recompilation.
Log:
Code:
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Panna\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...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Panna\AppData\Local\Temp\APKTOOL5025674521367376442.tmp, -0, arsc, -I, C:\Users\Panna\apktool\framework\1.apk, -S, D:\dRO\CMX\XTheme\XThemeBase.apk\res, -M, D:\dRO\CMX\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
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.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Panna\AppData\Local\Temp\APKTOOL5025674521367376442.tmp, -0, arsc, -I, C:\Users\Panna\apktool\framework\1.apk, -S, D:\dRO\CMX\XTheme\XThemeBase.apk\res, -M, D:\dRO\CMX\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Panna\AppData\Local\Temp\APKTOOL5025674521367376442.tmp, -0, arsc, -I, C:\Users\Panna\apktool\framework\1.apk, -S, D:\dRO\CMX\XTheme\XThemeBase.apk\res, -M, D:\dRO\CMX\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Hi everyone,
I was downloaded the darkne reborn game from play store with this site:
apps.evozi apk-downloader website (sorry I cant post the link, because I have no 10 post yet)
There is no problem, but when I wanted recompile with apk manager, I couldn't.
This is the log file (I removed the links because with link I can't make this post)
Code:
--------------------------------------------------------------------------
|2015.01.04. -- 22:03:31,27|
--------------------------------------------------------------------------
--2015-01-04 22:03:31-- (Removed link)
Resolving dl.dropbox.com... 107.21.218.30
Connecting to dl.dropbox.com|107.21.218.30|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: (Removed link) [following]
--2015-01-04 22:03:31-- (Removed link)
Resolving dl.dropboxusercontent.com... 54.204.27.17, 54.225.161.64, 54.225.247.210, ...
Connecting to (Removed link)|54.204.27.17|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Cookie coming from (Removed link) attempted to set domain to dropbox.com
Cookie coming from (Removed link) attempted to set domain to dropbox.com
Location: (Removed link) [following]
--2015-01-04 22:03:31-- (Removed link)
Connecting to dl.dropboxusercontent.com|54.204.27.17|:443... connected.
ERROR: cannot verify (Removed link) certificate, issued by `/C=US/O=DigiCert Inc/OU=(Removed link)/CN=DigiCert SHA2 High Assurance Server CA':
Unable to locally verify the issuer's authority.
To connect to (Removed link) insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
A subdirectory or file projects already exists.
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Peter\Desktop\manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.gamevil.darknessreborn2.android.google.global.normal.apk
Could Not Find C:\Users\Peter\Desktop\manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.gamevil.darknessreborn2.android.google.global.normal.apk
I: Baksmaling...
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: 14
at org.jf.dexlib.Util.ExceptionWithContext.withContext(Unknown Source)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Unknown Source)
at org.jf.dexlib.CodeItem.readItem(Unknown Source)
at org.jf.dexlib.Item.readFrom(Unknown Source)
at org.jf.dexlib.OffsettedSection.readItems(Unknown Source)
at org.jf.dexlib.Section.readFrom(Unknown Source)
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.Androlib.decodeSourcesSmali(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 14
at org.jf.dexlib.Util.NumberUtils.decodeShort(Unknown Source)
at org.jf.dexlib.Code.Format.Instruction21t.<init>(Unknown Source)
at org.jf.dexlib.Code.Format.Instruction21t.<init>(Unknown Source)
at org.jf.dexlib.Code.Format.Instruction21t$Factory.makeInstruction(Unknown Source)
... 13 more
Error occured at code address 24
code_item @0xe60
The first problem: Why write the log that "could not find"? I place the apk file to the folder, and I selected it with code 22.
Why write the log file, that (Unknown Source). This file is directly from play store.
camaropeti said:
Hi everyone,
I was downloaded the darkne reborn game from play store with this site:
apps.evozi apk-downloader website (sorry I cant post the link, because I have no 10 post yet)
There is no problem, but when I wanted recompile with apk manager, I couldn't.
This is the log file (I removed the links because with link I can't make this post)
Code:
--------------------------------------------------------------------------
|2015.01.04. -- 22:03:31,27|
--------------------------------------------------------------------------
--2015-01-04 22:03:31-- (Removed link)
Resolving dl.dropbox.com... 107.21.218.30
Connecting to dl.dropbox.com|107.21.218.30|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: (Removed link) [following]
--2015-01-04 22:03:31-- (Removed link)
Resolving dl.dropboxusercontent.com... 54.204.27.17, 54.225.161.64, 54.225.247.210, ...
Connecting to (Removed link)|54.204.27.17|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Cookie coming from (Removed link) attempted to set domain to dropbox.com
Cookie coming from (Removed link) attempted to set domain to dropbox.com
Location: (Removed link) [following]
--2015-01-04 22:03:31-- (Removed link)
Connecting to dl.dropboxusercontent.com|54.204.27.17|:443... connected.
ERROR: cannot verify (Removed link) certificate, issued by `/C=US/O=DigiCert Inc/OU=(Removed link)/CN=DigiCert SHA2 High Assurance Server CA':
Unable to locally verify the issuer's authority.
To connect to (Removed link) insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
A subdirectory or file projects already exists.
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Peter\Desktop\manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.gamevil.darknessreborn2.android.google.global.normal.apk
Could Not Find C:\Users\Peter\Desktop\manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.gamevil.darknessreborn2.android.google.global.normal.apk
I: Baksmaling...
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: 14
at org.jf.dexlib.Util.ExceptionWithContext.withContext(Unknown Source)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Unknown Source)
at org.jf.dexlib.CodeItem.readItem(Unknown Source)
at org.jf.dexlib.Item.readFrom(Unknown Source)
at org.jf.dexlib.OffsettedSection.readItems(Unknown Source)
at org.jf.dexlib.Section.readFrom(Unknown Source)
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.Androlib.decodeSourcesSmali(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 14
at org.jf.dexlib.Util.NumberUtils.decodeShort(Unknown Source)
at org.jf.dexlib.Code.Format.Instruction21t.<init>(Unknown Source)
at org.jf.dexlib.Code.Format.Instruction21t.<init>(Unknown Source)
at org.jf.dexlib.Code.Format.Instruction21t$Factory.makeInstruction(Unknown Source)
... 13 more
Error occured at code address 24
code_item @0xe60
The first problem: Why write the log that "could not find"? I place the apk file to the folder, and I selected it with code 22.
Why write the log file, that (Unknown Source). This file is directly from play store.
Click to expand...
Click to collapse
Well first off you still need to install the stock android frameworks. Second many games are set to be unmodable so they wont recompile and if they do then they break so it cant be used.
zelendel said:
Well first off you still need to install the stock android frameworks. Second many games are set to be unmodable so they wont recompile and if they do then they break so it cant be used.
Click to expand...
Click to collapse
Thanks the answer. Can you give me some instruction how can I install the android framework? I tink not this will be the problem, because I downloaded a modded version of this game, and that file I can make this procedure.
I need the smali files to "easily" modifying the game. Unfortunately this is a very complex game with many files in the assets/bin/data folder.
What do you think if I try search things (like gold, damage, attack, speed) with notepad++, and what files I found I modify with IDA 6.5 pro, and hex editor? It will work?
camaropeti said:
Thanks the answer. Can you give me some instruction how can I install the android framework? I tink not this will be the problem, because I downloaded a modded version of this game, and that file I can make this procedure.
I need the smali files to "easily" modifying the game. Unfortunately this is a very complex game with many files in the assets/bin/data folder.
What do you think if I try search things (like gold, damage, attack, speed) with notepad++, and what files I found I modify with IDA 6.5 pro, and hex editor? It will work?
Click to expand...
Click to collapse
You can grab the base framework files from the Google developer site. As for the mods you want. I couldn't tell you. I don't use games on my device. I have game systems for that.
Also of any of those are things you have to pay for that you want to get around then you will find no more help here.
Requirements:
*Catlog/Logcat app
How to read errors:
*Force close first the app you want to logcat
*Open Catlog and set the log level to error
Find/Search the AndroidRuntime then the app will show this:
E - FATAL EXCEPTION: main
E - Process: com blah blah <- The app that has error
E - java.lang.RuntimeException: NoSuchFieldError blah blah <- The error of the app
E - at blah blah(java:###) <- the smali or xml where the error occurs
(java:###) <- the .line in the smali where the error is placed
Errors I encounted as of when I started theming::cyclops::cyclops:
NoSuchMethodError - means there is a missing .method in the smali
NoSuchFieldError - means there is a missing .field in the smali
AbstractMethodError - means there is a missing Abstract method in the smali
Content.res - means wrong ID(0x7xxxxxxxx)
Unable to start activity - means the smali address it wrong or the code you declare is wrong
Note:
Not yet finished, Still thinking of the errors I encountered :v
Comment below the errors you encountered that is not stated in the guide
I will include logcat reading in porting system apps
#WeAreTeamPussy
credits :
Material Modding Team
XDA
Underground
MAAaD
MAAaDR
Maximum Team
Android Matrix Team
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
APK Editor Studio
APK Editor Studio is a free open-source APK reverse-engineering tool combining powerful features and the ease of use. It allows you to easily change APK icon, name, images and other Android application resources.
Download: https://qwertycube.com/apk-editor-studio/
Source Code: https://github.com/kefir500/apk-editor-studio
Issue Tracker: https://github.com/kefir500/apk-editor-studio/issues
Features
Icon Editor to easily change Android app icon.
Title Editor to quickly edit Android app title including translations.
Image Editor with an automatic format cross-conversion to replace Android images.
Code Editor with a syntax highlighting for XML, YAML, and Smali.
Android Explorer to manage files on your Android device and take screenshots.
Permission Editor to easily add or remove Android permissions.
Manifest Editor including a handy API level selector.
Resource Inspector to smoothly browse through the conveniently grouped resources.
APK Signer to automatically and painlessly sign APK, out of the box.
APK Optimizer aligning the APK for a reduced RAM consumption.
APK Installer to instantly install application on your devices.
APK Cloner for automatic package renaming and installing multiple app instances.
Supported Platforms
Windows (7 or later)
macOS (10.13 or later)
Linux
Requirements
Java 8 (or later)
Visual C++ Redistributable (Windows)
Screenshots
Great program for replacing and adding assets, changing app version, sdk target or permissions, also changing smali to escape ads loading...etc.
Update: ApkTool.jar 2.4.0. has error, but 2.3.x and 2.4.1 work fine.
Error opening apk file
Error unpacking APK.
java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Exception in thread "main"
alex_a_k said:
java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 52.0
Click to expand...
Click to collapse
As stated in the requirements, you should use Java 8 or later.
Hi
I tried to modify the APK of an app changing its title and icon.
Then I tried to install the modified and recompiled APK but Android installer asks to update the original app and does not install a new 'instance' of the app.
Maybe I'm totally wrong hoping this app (APK Editor Studio) allows to do what I described.
Please, can someone explain if I have some hope in doing what I need using this wonderful APK Editor? Do I have to change some file inside the APK?
Just for information I'm trying to edit the app named 'CoopVoce' (you can find it in the Play Store) in order to be able to have on my phone two different 'profiles' allowing me to manage my GSM-contract and my mother's one (this feature is not allowed in the original app).
Thanx for your support. C87
camilla87 said:
I tried to modify the APK of an app changing its title and icon.
Then I tried to install the modified and recompiled APK but Android installer asks to update the original app and does not install a new 'instance' of the app.
Click to expand...
Click to collapse
Hi,
Application instances have nothing to do with an app name or icon. There is a property called package name which represents a unique identifier of an application. In order to have multiple instances of an Android app, you will have to manually change it (e.g., check out this guide). Since you will need to work with the APK contents, you can still use APK Editor Studio and click File --> Explore Contents.
Also, the ability to easily change Android package name is planned in future releases.
kefir500 said:
Hi,
Application instances have nothing to do with an app name or icon. There is a property called package name which represents a unique identifier of an application. In order to have multiple instances of an Android app, you will have to manually change it (e.g., check out this guide). Since you will need to work with the APK contents, you can still use APK Editor Studio and click File --> Explore Contents.
Also, the ability to easily change Android package name is planned in future releases.
Click to expand...
Click to collapse
kefi500, thank you very much for your support. C87
camilla87 said:
Then I tried to install the modified and recompiled APK but Android installer asks to update the original app and does not install a new 'instance' of the app.
Maybe I'm totally wrong hoping this app (APK Editor Studio) allows to do what I described.
Click to expand...
Click to collapse
It is not possible to reinstall / update modded apk over original unless you have the same key/keystore/password as the author. Author of app made his own, and you could use generic/test keystore (username and password: android) or your own.
Or if you use "Patch Android" in certain-piracy-app to "accept all keys as true" and "enable installing of older version", you could install modded app over original...but you risk to got unstable system.
Or better way - make cloned app (with on exp. App Cloner 2.4.1) of your modded app and install it as "new" app.
Great tool!.
I am no developer but the tools is easy enough to navigate around in Debian.
I would like to use this tool to remove trackers from APK.
The manifest is easy enough to remove them but after I compiling and installing them (with new app name) successfully, when I run Warden from FDroid (another great tool, used to check for trackers, loggers in apps), I am still able to detect the same number of trackers as before I modify in APK Editor Studio.
Can advise how to use this tool to remove those sneaky trackers before compiling them? Is it necessary to decompile the apk to dex files in order to remove them?
cutezi said:
Is it necessary to decompile the apk to dex files in order to remove them?
Click to expand...
Click to collapse
Most likely, yes.
You can turn on decompilation to Smali in Settings → Options → Repacking → Decompile source code.
Methods of removing such trackers and loggers may vary from application to application, so you might have better luck searching for the corresponding information at the thematic posts.
kefir500 said:
Most likely, yes.
You can turn on decompilation to Smali in Settings → Options → Repacking → Decompile source code.
Methods of removing such trackers and loggers may vary from application to application, so you might have better luck searching for the corresponding information at the thematic posts.
Click to expand...
Click to collapse
Thanks for the reply. I will check it out.
Once again, appreciate the tool given.
Hope to see continued updates and guides in future :good:
this application support for decompile apk based kotlin or flutter?
When I try to save app (I change only name and versions) Iv got this error:
I: Using Apktool 2.4.1
I: Copying C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0} classes.dex file...
I: Copying C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0} classes2.dex file...
I: Copying C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0} classes3.dex file...
I: Copying C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0} classes4.dex file...
I: Copying C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0} classes5.dex file...
I: Copying C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0} classes6.dex file...
I: Building resources...
W: invalid resource directory name: C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0}\res navigation
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ja\AppData\Local\Temp\brut_util_Jar_16568988746625612370.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 27, --version-code, 3404, --version-name, 5.14.2, --no-version-vectors, -F, C:\Users\ja\AppData\Local\Temp\APKTOOL722049331306987534.tmp, -e, C:\Users\ja\AppData\Local\Temp\APKTOOL1489722396562226936.tmp, -0, arsc, -I, C:\Users\ja\AppData\Local\apk-editor-studio\frameworks\1.apk, -S, C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0}\res, -M, C:\Users\ja\AppData\Local\Temp\apk-editor-studio\apk\{cc1c89b6-f187-49a4-b7aa-0e5f50113dd0}\AndroidManifest.xml]
حاولت عمل شهادة لتطبيق ما باستخدام المفتاح الخاص بي ، وعند استخدامه في التطبيق ، يفشل في عمل الشهادة لأنه لم يقرأ تنسيق المفتاح
Hello. Tell me or give a link for instructions on moving (porting, installing) some system applications from android 10 to android 9. In the vastness of the Internet, I probably looked badly, did not find instructions. I want to install the Package Installer from android 10 to android 9.
MirXamer said:
... system applications from android 10 to android 9....
Click to expand...
Click to collapse
First of all, app need to be deodex (single apk file, not base.apk + odex/vdex files).
Most of apps can work if you change Minimum SDK from 29 (Android 10) to 28 (9.0 - Pie) (look at the upper right column Manifest in APK Editor studio).
Now look for AndroidManifest.xml in Files System column and delete
<queries> ... </queries> lines, if any.
Then save apk.
Hello.
Can anyone help for one application for watching TV.
I want after the correct user input name and password , the application does not want to re-enter.
If anyone can help write to me personally.
can this decompile an apk, then help me remove all ads for a specific app then rebuild apk without ads?
if not what can?
Can anyone help, how to change app name and icon displayed inside android auto launcher?
Thanks,
非常感谢