{
"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"
}
What programs do I need? Leave link. Thank you!
try VTS studio,
google it,
best android development suite
Are you trying to decompile a system app from a ROM? If yes then do this:
You need the following:
1. framework-res.apk and twframework-res.apk from the ROM which you took the apk from
2. Probably administrator privilege
You need to do the following:
1. Navigate to Desktop and look for user name folder.
Example: Desktop/Carl/
2. Navigate to user name folder and look for "framework" folder inside "apktool" folder
Example: Desktop/Carl/apktool/framework/
3. Open apktool folder and inside you will see a bunch of frameworks in .apk folder
4. Leave that folder open and take the framework-res.apk and twframework-res.apk from the ROM which you took the apk you're trying to decompile/compile
5. Rename framework-res.apk to: 1.apk and twframework-res.apk to: 2.apk
6. Copy 1.apk and 2.apk to Desktop/<username>/apktool/framework/
Example: Copy 1.apk and 2.apk to Desktop/Carl/apktool/framework/
Once you're done, close and apk tool that you're using and try decompiling/compiling again. If still the problem exist, restart your computer.
Hope this helps.
PS. Sorry for late reply, kinda busy at work.
CarlDeanCatabay said:
Are you trying to decompile a system app from a ROM? If yes then do this:
You need the following:
1. framework-res.apk and twframework-res.apk from the ROM which you took the apk from
2. Probably administrator privilege
You need to do the following:
1. Navigate to Desktop and look for user name folder.
Example: Desktop/Carl/
2. Navigate to user name folder and look for "framework" folder inside "apktool" folder
Example: Desktop/Carl/apktool/framework/
3. Open apktool folder and inside you will see a bunch of frameworks in .apk folder
4. Leave that folder open and take the framework-res.apk and twframework-res.apk from the ROM which you took the apk you're trying to decompile/compile
5. Rename framework-res.apk to: 1.apk and twframework-res.apk to: 2.apk
6. Copy 1.apk and 2.apk to Desktop/<username>/apktool/framework/
Example: Copy 1.apk and 2.apk to Desktop/Carl/apktool/framework/
Once you're done, close and apk tool that you're using and try decompiling/compiling again. If still the problem exist, restart your computer.
Hope this helps.
PS. Sorry for late reply, kinda busy at work.
Click to expand...
Click to collapse
THANKS! Carl, is sucess!
vitorhugo said:
THANKS! Carl, is sucess!
Click to expand...
Click to collapse
Place solved in title k
Sent from my Titan TV S320 using xda premium
Related
So, here i'm again porting a tutorial based on DSM_'s Tut
What do you need:
JRE (Java Runtime Environment)
Install:
Windows:
Download apktool
Download apktool-install-windows
Unpack both pakages you will get three files, copy those files to your Windows directory i.e. C:\WINDOWS
Decoding files:
Open Command. Run>cmd
Type-
Quote
apktool d file.apk [directory]
Example - apktool d D:\nfsshift.apk D:\nfsshift
Done!
{
"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"
}
FrameworkFiles
Apktool needs the framework files to decode and build apks.
Standard framework is embedded into apktool, so you don't need to do anything for most apk files. But some manufacturers, for example Samsung, add their own framework files and use them in system apps. To use apktool against such apps, you must pull framework from a device and install/register it to apktool.
For Example, you want to decode TouchWizLauncher.apk from Android v2.2 of Galaxy 5. If you try to do that, you will get an error message:
You need to install framework in apktool Type-
apktool if [framework location]
I have the got the framework-res.apk & twframework-res.apk by extracting the ROM. You can also copy it from your phone. But take care you must copy framework.apk from that ROM in which you got the Application file.
Then try again
Now is working.
How to build decoded files:
Just type
apktool b [directory in which you have decoded the files]
Example - apktool b D:\nfsshift
Done!
You will find the apk file inside the decoded directory, like I found it in - D:\nfsshift\dist\nfsshift.apk
Now you need to sign your APK file.
How to Sign APK files:
When publishing an application or a custom rom you need to sign the .apk or .zip files with a certificate using a private key. The Android system uses the certificate to identify the author of an application and establish trust relationship between applications. The classic way of doing this was to use keytool then sign it with jarsigner. In this tutorial i’ll explain an alternative method which is relatively easy to use for most people using a tool called SignApk.jar.
First download the SignAPK tool - http://www.mediafire.com/?rw57ftajd6nm81s
Extract them to a directory you will remember. I have put them in C:\SignApk
Now just open cmd and type -
Quote
cd C:\SignApk
java -jar signapk.jar certificate.pem key.pk8 your-app.apk your-app-signed.apk
Example - java -jar signapk.jar certificate.pem key.pk8 D:\nfsshift\dist\nfsshift.apk D:\nfsshift\dist\nfsshift-signed.apk
Your APK is signed and can be installed.
●๋•ηι¢є ιηƒσ●๋•
Sent from my GT-S7500 using xda app-developers app
I know this is an old post but I need some help. I have the apktool, dex2jar and jd-gui in a folder on my Desktop
I installed the framework-res.apk and it installs into a different folder. Do I need to have the Framework folder into the same folder as the other files or will it be able to locate the framework files no matter where they are.
The reason I ask is because even though I have installed the framework, I am still getting error message when attempting apktool d filename.apk. Any ideas would be helpful, thank you
This will show you how to Decompile and Recompile SecPhone.apk (Deodexed) for Jellybean 4.1.1 and 4.1.2
Tools Needed:
This zip file: http://www.mediafire.com/?0b2ad2ow254ou3a
Java jdk and environment variables set correctly (if you don't know how, Google it)
Notepad++
7Zip
Decompile:
1. Download attached files and unzip folder to Desktop.
2. Place SecPhone.apk in Tools folder you just downloaded.
3. Hold Shift and right click inside of folder then click "Open command window here". Make sure no files are selected or it will not show.
5. Type apktool d SecPhone.apk and hit enter. This will create a folder called SecPhone.
6. You’re done you have decompiled the apk.
Recompile:
1. Hold Shift and right click inside of folder then click "Open command window here".
2. Type apktool b SecPhone nSecPhone.apk and hit enter. This will error and look something like this:
{
"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"
}
3. Now look at the code. If you look you will see there are 3 errors like this: Desktop\Tools\SecPhone\res\values-es\strings.xml:195: error: (they might look slightly different with your apk).
4. The things you need to fix this are right here (values-es) refers to a folder in the apk Desktop\Tools\SecPhone\res\ and strings.xml refers to an xml file inside that folder. Also if you read the whole line you will see it is some sort of format error. So go to Desktop\Tools\SecPhone\res\values-es\strings.xml and open it with Notepad++.
5. Now refer back to the error log and you will see values-es\strings.xml:195 the 195 refers to the line in the file that is causing the error. Scroll to that line, it says something like "%1$d% del ciclotranscurrido. So what’s the error? Let’s find out. Copy the code between the "" in this case its throttle_time_frame_subtext.
6.Now go to Desktop\Tools\SecPhone\res\values\strings.xml and open that with Notepad++ and search for code you just copied throttle_time_frame_subtext and compare the two files. You can see the difference error code has this %1$d% and the correct code has %1$d٪ so correct the code and save the file. Now do this for all 3 errors.
7. Now with all errors fixed we can Recompile so type apktool b SecPhone nSecPhone.apk and press Enter. This time it will complete without errors.
8. Open original SecPhone.apk with 7zip and open new nSecPhone.apk with 7zip and copy META-INF and AndroidManifest.xml from originalapk to new apk. Rename new apk to SecPhone.apk and its ready to be flashed. Don't forget to Zipalign. DONE!
If this helps you please don't forget the thanks button
Reserved
Thanks for this mate.. I was wondering for a long time on this error
sent from here, there, somewhere!!
Thanks for your work!
This tutorial is for people building roms based on CyanogenMod only !
This tutorial will explain how to use a custom CyanogenMod apk theme as the default when building roms
Things you will need
1. Java JDK and Java JRE installed
2. ApkTool - Download
3. Notepad++ - Download
4. Theme apk file
5. Your custom rom
Step 1
Download and extract apktool into a folder on the root of you drive, call the folder apk
Once extracted you you have three files like this
{
"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"
}
Step 2
If you have already packaged your rom use something such as WinRAR to extract it to a folder.
Once extracted it should look similar to this
Step 3
In your rom folder navigate to system/framework and look for the framework-res.apk file
It should look like this
Step 4
Copy the framework file to your apktool folder
Your apk tool folder should now look like thisView attachment 2484553
Step 5
Now copy your theme into the same folder
The folder should now look like thisView attachment 2484556
Step 6
Run command prompt and enter the following commands
Code:
cd C:\apk
Code:
apktool if framework-res.apk
Code:
apktool d <whatever your theme apk is called>.apk
Your CMD windows should now look like this
Step 6
Go back to your apktool folder and now you should have a folder called <your theme name>.apk
It will look like this View attachment 2484571
Step 7
Go inside that folder and open AndroidManifest.xml with Notepad++
Step 8
Once you open this file you need to look for two strings, they should look similar to these ones
Step 9
Once you have found these strings minimize the Notepad++ window and navigate back to your rom folder
Now navigate to system and open build.prop with Notepad++ and add these two lines
Code:
persist.sys.themeId=~~~~~~
persist.sys.themePackageName=+++++++++
Replace "~~~~~" with theme id from AndriodManifest.xml
Replace "+++++" with package name from AndroidManifest.xml
Mine would look like this
Now save build.prop
Step 10
Go to your rom folder and navigate to system/app and copy your theme apk inside of this folder
Now zip your rom back up and flash it
When your rom boots you should now see you custom theme
Note
If you cant get apktool to work and it keeps saying something along the lines of "java is not an exacutable command"
Make sure you have installed the Java SDK and Java JRE and navigate to C:\Program Files (x86)\java
and you should see a folder called "jdk1.7.0_45" or "jdk" with different numbers after it
Now go to control panel and on the right hand side click "Advanced System Settings"
Then click "environment variables"
Under "system variables" create a new variable and call it JAVA_HOME
In variable value put the path of your java sdk folder so it would be
C:\Program Files (x86)\Java\jdk<what ever numbers are here on your pc>
Or 32 bit users
C:\Program Files\Java\jdk<what ever numbers are here on your pc>
Now before you save the environment variable put the path in speech marks like this
Now save and reboot
And for CM12.1 its possible? Or CM11?? I try but not work :/
XDA PORTAL
Click to expand...
Click to collapse
Hello everyone
In this tutorial i will show you how to integrate the recovery into a custom rom.
This way users will not have to install it separately
{
"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"
}
REQUIREMENTS:
You must know how to build a custom rom using Android Kitchen.
You must know how to edit an updater-script using Notepad++.
The WORKING folder of your rom (the one you get from the android kitchen when you extract system.img or zip folder or system.tar).
The recovery's flashable zip.
For this tutorial i am gonna use the PhilZ Touch CWM as example but this method is universal for all recoveries.
So, let's start:
1. Create in the kitchen's WORKING folder, a new folder and name it system2 (in your case working folder's name is gonna be different).
2. Extact the recovery's system folder contents into the system2 folder (the one previously created).
3. From the recovery's META-INF folder open, using Notepad++, the updater-script.
In my case looks like this:
4. Before proceeding, let me explain what is going on with the following lines:
package_extract_file("system/bin/recovery.tar", "/system/bin/recovery.tar");
package_extract_file("system/bin/taimport", "/system/bin/taimport");
package_extract_file("system/bin/taimportx", "/system/bin/taimportx");
package_extract_dir("system/btmgr", "/system/btmgr");
----- package_extract_dir(” “, “/”) – This command extracts all the files from the folder mentioned inside first quotation to the directory inside second quotation. -----
So since you created a new folder named system2, the above lines should be edited and look like this:
package_extract_file("system2/bin/recovery.tar", "/system/bin/recovery.tar");
package_extract_file("system2/bin/taimport", "/system/bin/taimport");
package_extract_file("system2/bin/taimportx", "/system/bin/taimportx");
package_extract_dir("system2/btmgr", "/system/btmgr");
5. Now open, using Notepad++, the updater-script for your rom.
6. Now copy the edited lines from the recovery's updater-script into the updater-script of your rom (add them at the bottom). Remove the show_progress lines. Now save the file.
7. Now you can build your rom and enjoy the integrated recovery!
8. Happy rom building
reserved
Too good
So you are back with your pc i guess
Awesome! Definitely looks much, much better than the "ms-dos" clone I see in my device
Bro @DaRk-L0rD
Very nice and very clear explained, specially for new ones :good:
Very clever tutorial my friend!! :good:
keep rocking...
Nice guide..
U are featured on portal. Congrats
Sent from my C5303 using XDA Premium 4 mobile app
Congratz bro.your post is on portal.nice job
Great, its work for me! :highfive:
{
"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"
}
INTRODUCTION
this is a guide , with this, you can make your own flashable zips
DISCLAIMER
Code:
[SIZE="3"][CENTER]Please Follow The Instructions Carefully, Just In case Anything Goes Wrong, Please Don't Blame Me[/CENTER][/SIZE]
DOWNLOAD
BASE.zip
INSTRUCTIONS
Download the given BASE.zip
place it somewhere in your PC and extract it using any zip manager(Ex: WinRAR , 7zip etc)
you will find 3 folders
go inside system, and add whatever you want..
then repack the zip ,give whatever the name you want and flash using twrp:good:
HOWTO?
detailed guide/ instructions
like, how to add apps, boot animation, ringtones, fonts etc
ADDINGAPPS
go inside system folder
create a folder named "priv-app" (without quotes)
and now, create another folder (with the name of your app, without spaces) inside priv-app
and place the apk file inside the folder that you just created
the path of your apk should be like:
Code:
[CENTER]BASE\system\priv-app\PixelLauncher\PixelLauncher.apk[/CENTER]
BOOTANIMATION
go inside system folder
create a folder named "media" (without quotes)
and place the bootanimation.zip file inside the folder that you just created
the path of your apk should be like:
Code:
[CENTER]BASE\system\media\bootanimation.zip[/CENTER]
RINGTONES
go inside system folder
create a folder named "media" (without quotes)
inside media, create another folder "audio" (without quotes)
inside media, create another folder "ringtones" (without quotes)
and place the ringtone.ogg file inside the folder that you just created
the path of your apk should be like:
Code:
[CENTER]BASE\system\media\audio\ringtones\"yourfile".ogg[/CENTER]
CUSTOMFONTS
download any FULL font pack
and extract the font zip,
you till noticee font files
use the same procedure and coppy ALL font files to "fonts" folder inside system, and obtain path to be like
Code:
[CENTER]BASE\system\fonts\font files.ttf[/CENTER]
if you want to add some apps that can be uninstalled later,
you will find a folder named "data" ,inside the BASE.zip
inside that, there will be another folder named "app"
now, drop any apk here, if you want that apk to be uninstallable after the flash, that is
it should be like like
Code:
[CENTER]BASE\data\app\uninstallable_app.apk[/CENTER]
WARNING
DO NOT TOUCH ANYTHING INSIDE META-INF FOLDER
IMPORTANT
:laugh::goodLAY ON AND PRESS THANKS :good::laugh:
thilak devraj said:
INTRODUCTION
this is a guide , with this, you can make your own flashable zips
hi thilak,
can you pl. re-upload the link?
thanks
Click to expand...
Click to collapse
subodhverma21 said:
thilak devraj said:
INTRODUCTION
this is a guide , with this, you can make your own flashable zips
hi thilak,
can you pl. re-upload the link?
thanks
Click to expand...
Click to collapse
what happened with the current link?? its working fine
Click to expand...
Click to collapse
thilak devraj said:
subodhverma21 said:
what happened with the current link?? its working fine
Click to expand...
Click to collapse
There was some problem in my pc with google links.
Now Downloaded successfully in my L-22.
I have been searching for this flash able zip from such long time.
Thank you very much.
Click to expand...
Click to collapse
subodhverma21 said:
thilak devraj said:
There was some problem in my pc with google links.
Now Downloaded successfully in my L-22.
I have been searching for this flash able zip from such long time.
Thank you very much.
Click to expand...
Click to collapse
you are welcome and feedback is much appriciated
Click to expand...
Click to collapse