[Q] Noob Help :/ - HTC Sensation

Ok here are step by step how i working in Virtuous ten Stuido and i get error :/ i use (Bruce2728 ROM 11/2) i want to change LatinIME.apk (Keyboard to THIS)
Ok here's steps
1. Open cm-10-20121102-bruce2728-pyramid and put on desktop frameworks-res.apk (Framework), LatinIME.apk (Application Keyboard)
2. Then i put frameworks-res.apk to C:\Documents and Settings\Anonymous26\apktool\framework where apk should be
3. Open Virtuous ten studio and click on new project:
Project: Apk - project
Apk - Tool: Framework tag - ramework-res
Smali: API level ( 4.1 Jelly Bean )
Import: Here i select location of LatinIME.apk (Desktop)
Then i press ok and start decompiling when decompiling over ( 6 mins ) then:
4. I select Styles from (Pic here)
5. Then i edit ( <item name="keyHintLetterColor">#8000000</item> ) from 262 line to <item name="keyHintLetterColor">#80E0E4E5</item>
6. Then i save this change and pres button build all
7. Wait till recompile/sing this edit apk
8. Then i run cmd and this recompiled/singed file add where i have adb files
9. Type cd c:\ Location of ADB
10. adb root
11. adb push LatinIME.apk /system/app/LatinIME.apk
12. abd reboot
And then this error when all is over :/ CLICK
Anyone help ? :/

XporteR21 said:
Ok here are step by step how i working in Virtuous ten Stuido and i get error :/ i use (Bruce2728 ROM 11/2) i want to change LatinIME.apk (Keyboard to THIS)
Ok here's steps
1. Open cm-10-20121102-bruce2728-pyramid and put on desktop frameworks-res.apk (Framework), LatinIME.apk (Application Keyboard)
2. Then i put frameworks-res.apk to C:\Documents and Settings\Anonymous26\apktool\framework where apk should be
3. Open Virtuous ten studio and click on new project:
Project: Apk - project
Apk - Tool: Framework tag - ramework-res
Smali: API level ( 4.1 Jelly Bean )
Import: Here i select location of LatinIME.apk (Desktop)
Then i press ok and start decompiling when decompiling over ( 6 mins ) then:
4. I select Styles from (Pic here)
5. Then i edit ( <item name="keyHintLetterColor">#8000000</item> ) from 262 line to <item name="keyHintLetterColor">#80E0E4E5</item>
6. Then i save this change and pres button build all
7. Wait till recompile/sing this edit apk
8. Then i run cmd and this recompiled/singed file add where i have adb files
9. Type cd c:\ Location of ADB
10. adb root
11. adb push LatinIME.apk /system/app/LatinIME.apk
12. abd reboot
And then this error when all is over :/ CLICK
Anyone help ? :/
Click to expand...
Click to collapse
Hi,
Since you are now using VTS,perhaps you should post there as well.
Look HERE

No secsess :/

Related

[Q] AutoApkTool

Here how i want to made a change in LatinIME.apk ( Keyboard ) in Bruce2728 Rom
1. I work on (AutoAPKTool2.0.4)
2. I download the rom cm-10-20121030-bruce2728-pyramid (HTC Sensation)
3. I drag out the file from APP directory (LatinIME.apk) this is keyboard to desktop
4. Then i go to Framework directory in this rom and drag out file Framework-res.apk and drag it to desktop
5. Then i add this 2 files in "AutoAPKTool2.0.4\_INPUT_APK" and run AutoAPKToolMain.bat
6. When open this window i select number 1 (if framework-res.apk) and press enter
7. Then i select number 81 ( Instrall additional framework file ) and add the location of Framework-res.apk witch is in _INPUT_APK and press enter
8. Then i select number 6 and add location of LatinIME.apk and press enter and wait until decompile
9. When decompile end i open the "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\res\values" directory and edit Style.xml with notepad++ ( <item name="keyHintLetterColor">#80000000</item> ) to ( <item name="keyHintLetterColor">#80E0E4E5</item> )
10. Then i go back to AutoAPKToolMain.bat and select number 9 and add location of "\_INPUT_APK\LatinIME" and press enter
11. Wait until recompile and then i get this error:
"[*] "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"
recompiling "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified."
12. Ok i close this log and open "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\dist\LatinIME.apk ( Recompiled File ) and drag out this resources.arsc and drag it to desktop
13. Then i open the original LatinIME.apk and replace Original Resources.arsc with edited Resources.arsc
14. Then i upload this file to SD card and install it then start install and when must type App installed type app not installed :/
Does anyone know what is wrong ?
Hi,
You are better off asking where a dev or themer will see this.
Look HERE
XporteR21 said:
Here how i want to made a change in LatinIME.apk ( Keyboard ) in Bruce2728 Rom
1. I work on (AutoAPKTool2.0.4)
2. I download the rom cm-10-20121030-bruce2728-pyramid (HTC Sensation)
3. I drag out the file from APP directory (LatinIME.apk) this is keyboard to desktop
4. Then i go to Framework directory in this rom and drag out file Framework-res.apk and drag it to desktop
5. Then i add this 2 files in "AutoAPKTool2.0.4\_INPUT_APK" and run AutoAPKToolMain.bat
6. When open this window i select number 1 (if framework-res.apk) and press enter
7. Then i select number 81 ( Instrall additional framework file ) and add the location of Framework-res.apk witch is in _INPUT_APK and press enter
8. Then i select number 6 and add location of LatinIME.apk and press enter and wait until decompile
9. When decompile end i open the "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\res\values" directory and edit Style.xml with notepad++ ( <item name="keyHintLetterColor">#80000000</item> ) to ( <item name="keyHintLetterColor">#80E0E4E5</item> )
10. Then i go back to AutoAPKToolMain.bat and select number 9 and add location of "\_INPUT_APK\LatinIME" and press enter
11. Wait until recompile and then i get this error:
"[*] "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"
recompiling "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified."
12. Ok i close this log and open "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\dist\LatinIME.apk ( Recompiled File ) and drag out this resources.arsc and drag it to desktop
13. Then i open the original LatinIME.apk and replace Original Resources.arsc with edited Resources.arsc
14. Then i upload this file to SD card and install it then start install and when must type App installed type app not installed :/
Does anyone know what is wrong ?
Click to expand...
Click to collapse
Whats wrong with just apktool - that on its own has never failed me, its only when you add other utilities in that things **** up (with the exception of VTS which I use for multiple apk like the tweaks but for single apk I use apktool on its own). Also with apktool on its own, its a hell of a lot easier to debug problems
So what tools to use
Sent from my HTC Sensation using xda app-developers app
XporteR21 said:
So what tools to use
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
Virtuous Ten Studio: http://www.virtuousrom.com/p/ten-studio.html
Apktool 1.5.0 by iBotPeaches: http://forum.xda-developers.com/showthread.php?t=1755243
Replace the apktool in the virtuous program files folder with the iBotPeaches one - I have never had any problems decompiling/recompiling apk's or jar's with this combination
Jonny said:
Virtuous Ten Studio: http://www.virtuousrom.com/p/ten-studio.html
Apktool 1.5.0 by iBotPeaches: http://forum.xda-developers.com/showthread.php?t=1755243
Replace the apktool in the virtuous program files folder with the iBotPeaches one - I have never had any problems decompiling/recompiling apk's or jar's with this combination
Click to expand...
Click to collapse
heheheh i try you're metod and it's working i can install the app but app crash every time i open it :/
XporteR21 said:
heheheh i try you're metod and it's working i can install the app but app crash every time i open it :/
Click to expand...
Click to collapse
replied to the PM
still no secsess ;(
Sent from my HTC Sensation using xda app-developers app

ApkTool

Hy all i know i'm anoying with this but i realy want to edit this apk file (LatinIME.apk) can ayone explane me what is wrong whit this error and how to fix it :/
Oky Step by Step
1. I work on (AutoAPKTool2.0.4)
2. I download the rom cm-10-20121030-bruce2728-pyramid (HTC Sensation)
3. I drag out the file from APP directory (LatinIME.apk) this is keyboard to desktop
4. Then i go to Framework directory in this rom and drag out file Framework-res.apk and drag it to desktop
5. Then i add this 2 files in "AutoAPKTool2.0.4\_INPUT_APK" and run AutoAPKToolMain.bat
6. When open this window i select number 1 (if framework-res.apk) and press enter
7. Then i select number 81 ( Instrall additional framework file ) and add the location of Framework-res.apk witch is in _INPUT_APK and press enter
8. Then i select number 6 and add location of LatinIME.apk and press enter and wait until decompile
9. When decompile end i open the "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\res\valu es" directory and edit Style.xml with notepad++ ( <item name="keyHintLetterColor">#80000000</item> ) to ( <item name="keyHintLetterColor">#80E0E4E5</item> )
10. Then i go back to AutoAPKToolMain.bat and select number 9 and add location of "\_INPUT_APK\LatinIME" and press enter
11. Wait until recompile and then i get this error:
"[*] "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INP UT_APK\LatinIME"
recompiling "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INP UT_APK\LatinIME"...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified."
12. Ok i close this log and open "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\dist\LatinIM E.apk ( Recompiled File ) and drag out this resources.arsc and drag it to desktop
13. Then i open the original LatinIME.apk and replace Original Resources.arsc with edited Resources.arsc
14. Then i upload this file to SD card and install it then start install and when must type App installed type app not installed :/
i allready try with Virtous ten Studio i Decompile file, edit it, recompile back to apk, sign it, uplolad on sd card, install it... and still crash every time i open the keyboard every time i want to type any message.... Sorry i'm new in this :/

[GUIDE] Remove Blocking Mode notification (root/deodexed Samsung ROM required)

Hi Guys
As the Title says
Credits goes to exscape
Hope to bring you guys my rom soon to I9500
ORIGINAL LINK
Requirements:
* DEODEXED AND ROOTED Samsung Jelly Bean ROM (I use WanamLite XXDLIH v3.9, google it - I can't post the link)
* 7-zip (google it)
* Galaxy S III - not sure if other models than the i9300 will work, my guess is that they will. I can't test on other phones than my own, though, so you're on your own in that case! Also no idea if Note models will work, I've never used one.
* A Windows computer - unless the tools are available for other platforms.
* Java -- if you can do Start -> Run -> "java" -> OK without an error, you should be fine.
* A bit of patience
As always, this is on your own risk!
Steps to hack:
0) BACK UP YOUR PHONE! My suggestion would be to take a nandroid backup before getting started.
1) Get an apktool that works with JB APKs.
Here's the one I use (assemble the link): mediafire . com / ?ufzdylekbkloffy
(Sorry for doing that, but surely posting guides constitutes making helpful contributions? )
The ZIP contains two apktool versions, one for decoding and one for building.
Thing is, I'm not 100% sure on where I got the apktool JARs. I think one of them is the unmodified 1.4.2 JAR, and one is modified to work with ICS (and newer) APKs.
I couldn't get EITHER of them to both decode AND build, so I made two separate batch scripts.
I do promise that the thing's safe, but if you don't trust me, you can find them elsewhere - I'm just not sure exactly where. I found them by trial and error.
2) Unpack the tools to a directory, e.g. "apktool" on your desktop. (If you want to follow this guide to the letter, you need to use that folder too.)
3) Start a command prompt - Start -> Run -> enter "cmd" -> click OK
4) Connect your phone via USB, and make sure USB debugging is enabled on it (under Settings -> Developer Options)
5) Enter the following commands, exactly as specified, in order of course:
cd Desktop\apktool
adb pull /system/framework/framework-res.apk
java -jar apktool-BUILD.jar if framework-res.apk
adb pull /system/app/SecSettings.apk
apktool-d SecSettings.apk SecSettings-mod
You should now have a "SecSettings-mod" directory (under Desktop\apktool) with the contents of the APK.
6) Browse to SecSettings-mod\smali\com\android\settings\dormantmode, right-click "DormantModeNotiReceiver.smali" and Open With... -> Notepad (or right-click and "Edit", if that choice exists)
7) Click the Edit menu -> Find..., and search for "notificationCreate" (no quotes). The first hit should be ".method public notificationCreate [... etc]"; click Find Next.
The next hit should be something like
invoke-virtual {p0, p1}, Lcom/android/settings/dormantmode/DormantModeNotiReceiver;->notificationCreate(Landroid/content/ContextV
8) Comment that line out by adding a # as the very first character, so you end up with
# invoke-virtual {p0, p1}, Lcom/android/settings/dormantmode/DormantModeNotiReceiver;-notificationCreate(Landroid/content/ContextV
9) A few lines down (10 or so), there's another invoke-virtual, for notificationClear. Comment this out as well, aagin by adding a # as the first character on the line.
When you're done, save and exit.
10) OK, we're getting there. Time to rebuild the modded APK.
Go back to the command prompt (or start a new one, see above).
Run this command:
apktool-b SecSettings-mod SecSettings-new.apk
This may take a LONG while, it takes a bit over 11 minutes for me (nearly all of it to build resources). Be patient!
When it's completed, open up both the ORIGINAL .apk and the modded one in separate 7-zip windows. Delete "AndroidManifest.xml" from the modified apk, then select and copy "META-INF" and "AndroidManifest.xml" from the original to the modified APK. Exit 7-zip.
11) Time to get the modded file over to your phone! Run these commands:
adb remount
adb push SecSettings-new.apk /system/app
adb shell
12) You should now have the file on your phone, and have an adb shell open. Almost there!
If you're not root (i.e. if the command line ends with $ rather than #), run "su".
Then:
cd /system/app
mv SecSettings.apk SecSettings.apk.OLD
mv SecSettings-new.apk SecSettings.apk
... and you're finally DONE

[THEMING GUIDES][EASY METHODS][ALSO FOR NOOBS][Playing with 9.pngs]

///How to easily edit 9.pngs easily \\\
Lets start ...
Step 1
Decompile the app.
Step 2
Enter into res/drawables
Step 3
open 9.png with paint.net(preffered)not tested others
Get it here (www.getpaint.net)
Step 4
change its color to ur wish (note--dont touch those 4 borders at the ends)
Step 5
Close and save png
Step 6
Now recompile
Step 7
Install
congo it works fine.............
No need of draw9patch...
Notes:
Must knw how to compile- recompile apps.
Must try more coming soon..........
Dont Spoil This Thread Please!!!!
PRESS LIKE BUTTON IF U LIKE MY WORK
Today i will guide you on how to decompile with Apk Tool,so I would post here
Needed files :-
Windows
ApkTool
Java JDK/JRE 32 bit
Cmd/terminal knowledge
Step 1
First you need to extract that zip folder to anywhere you choose, preferably on root of c/drive E.g: C:/android/apktool extracting the files to 'apktool' folder.
Step 2
Now copy the apk you would like to mod into your Apk Tool folder.
Step 3
Command Prompt:
Open up your Command Prompt by going to:
Start -> run -> type : Cmd
Step 4
Your cmd will probly look like this..
C:\users\yourname>
so type in
cd.. (Yes include the '..' and press enter after you type each command.)
this will get you to back directory so now you will see
C:\users>
so type again
cd..
you should now see this:
C:\>
now type in:
cd 'apktoo'l/'directory'
for me it looks like:
cd android/apktool
now you should see:
C:/android/apktool>
and you are in the apktool directory
Step 5
Installing Framework
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
This will install the devices framework to your system. need to do this.
Step 6
Decompiling
Now to decompile the apk you want to edit, type this:
apktool d framework-res.apk framework1
Step 7
Recompiling...
Now to recompile your new apk type this:
apktool b framework1 framework-res-new.apk
framework1 is the folder with your edited files
framework-res-new.apk is your new apk file
We cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature
use something like 7zip or winrar, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk
Your new modded APK is now ready, Congrats!:highfive:
Good Luck ..
must try
Just For Knowledge....
If... we use 7zip.. extract apk on desktop..
then replace modified.png with orignal.png
then aad to orignal apk
or
we just hunt png which we want to replace.
just extract that one with same res. & name
then add that on it right place
Is that working???
i.e. I want to replace icon of Gallary3d (JB4.3) (Gal+Cam)
with icon of samsung s4 icon Gallary2 (Gal+Cam)

Help to change Settings.apk 5.1 (Lollipop)

Hi,
Im trying to edit the Settings.apk from my android, following a guide I found here, the only difference of this guide to my system was, the path of Settings is: /system/priv-app/Settings/Settings.apk
After that I was trying to do copy the file using the adb shell but gave me error of permision (even by doing: "adb shell" and then "su"), but I fixed it by copying it myself through the APP "RootExplorer"
The only problem is that after I do that and I restart hte phone, the Settings are gone. So I restored the original file and restarted the phone but the Settings keeps not appearing.
Tried wipe cache but no changes.
After search better, I found on google someone that had the same problem but after try to do all without use sign Settings.apk with ZipSign, worked... but not for me.
So I guess something changed from versions 4.x to 5.1
Could someone lend me a hand pls ? Pointing what Im doing wrong.
PS: I need reinstall the original ROM after this (so I get my settings back (with adb sidepull), so no data is lost)
The guide I followed:
Stuff You'll Need for the guide
Apktool (And therefore Java too)
A suitable Text Editor for your OS. For Windows, Notepad++ is best, for Linux I recommend Geany In this guide I will be using Geany on Ubuntu
Zipsigner on your device (for ease of use)
adb
NOTE: If you are using Linux, run everything, including apktool and your text editor/file manager as ROOT/SUDO
Do this first: Decompiling Settings.apk
Difficulty: ★★☆☆☆
1.) Open a command window in a suitable location, where apktool.jar is also located
1.) Pull your apk from your device
Code:
adb pull /system/app/Settings.apk
2.) Pull and install the framework from your device to apktool
Code:
adb pull /system/framework/framework-res.apk
Code:
java -jar apktool.jar if framework-res.apk
3.) Decompile your Settings.apk
Code:
java -jar apktool.jar d -s Settings.apk
(No source is needed)
Editing the Strings of your Settings apk
Difficulty: ★★☆☆☆
Editing the Settings option's icon
Difficulty: ★★★☆☆
Adding options to the settings headers
Difficulty: ★★★★☆
Adding dividers to settings
Difficulty: ★★★☆☆
Reordering Settings
Difficulty: ★★☆☆☆
Adding items to submenus
Want to add a "Credits" option to your "About device" menu? This is what you need
Difficulty: ★★★☆☆
Bonus: Forcing "Developer settings" to be available by default on 4.2
Difficulty: ★★☆☆☆
Do this last: Recompiling
Difficulty: ★★☆☆☆
1.) Re-open the command window that you used to decompile, in the same location
2.) Run the following code:
Code:
java -jar apktool.jar b Settings
3.) Push the new, unsigned apk to your device:
Code:
adb push Settings/dist/Settings.apk /sdcard/
4.) On the device, open Zipsigner and select the Settings.apk using the in/out button
5.) On the dropdown, select "platform"
6.) Press sign
7.) When it's done, run the following codes in the command window on the PC:
(Note: Some people might need to run 'adb root' first)
Code:
adb remount
Code:
adb shell cp /system/app/Settings.apk /system/app/Settings.bak
Code:
adb shell cp /sdcard/Settings-signed.apk /system/app/Settings.apk
8.) Reboot your device, you are done

Categories

Resources