I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
androidmonkey said:
I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
Click to expand...
Click to collapse
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
xidominicanoix said:
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
Click to expand...
Click to collapse
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
androidmonkey said:
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
Click to expand...
Click to collapse
the install never did this afaik ... does ddms work now though?
xidominicanoix said:
the install never did this afaik ... does ddms work now though?
Click to expand...
Click to collapse
ddms loads just fine now but my phone doesnt show up. My phone is connected with "USB debugging connected" enabled.
Any ideas?
did you mount your sd card?
Got it working, the windows driver wasnt installed.
I didnt realize I just needed to use the cmd line to install Navigation, not ddms. Thanks for the help
all you need is the command line to run ddms. Just put it where you have adb, go there via command line, and type"
ddms
Tada. eidt: it's not perfect, but it's mostly there.
Cannot mount SD card in terminal / console
delete ......
This has been bothering me for awhile now. I set the phone on the table and browse or read on it. The screen goes off and now I have to pick the phone up to wake it back up. Very irritating! I'd rather be able to press the volume keys and use the pattern lock than use the fingerprint reader, when I'm not holding the phone.
I decided I'd look into this tonight and actually it turns out it's very easy. The script took longer than figuring the mod itself. Surprise, surprise, the solution is in android.policy.jar again.
This mod will make pressing the volume keys wake the phone first, then subsequent presses will change volume as usual. I won't bother with a detailed how-to this time since I put some time into a fairly complete script, but for people who are curious, here are the details:
File: KeyguardViewMediator.smali
Method: private isWakeKeyWhenKeyguardShowing(I)Z
How: Delete cases 0x18 and 0x19 in the switch statement at the bottom of the method. These tell it to return true for volume up and down keys. Careful about changing the others. Some refer to non-existent buttons on the Atrix, but others (as I found out) affect your headset mic button and other events. For a detailed how-to on taking apart and putting together the android.policy.jar, please see this thread
The script is now universal, for all ROMs. OS X, Linux, Windows.
How does it do that? Like this:
1. It takes android.policy.jar directly from your phone.
2. Decompiles the jar.
3. Patches it.
4. Recompiles it.
5. Pushes the jar back onto your phone.
6. Cleans up and reboots the phone.
Some prerequisites before you run the script:
1. Obviously make sure you're backed up. You can't hard brick with this, but there is a possibility of soft brick if there's a bug. It should be safe because it checks for errors at nearly every command, but nevertheless have CWM ready. I have tested this on OS X and Windows. Linux users, you will need to test this yourself. It should be fine though, because you use the same script as OS X, but with a different adb. Just verify that the script and adb have the correct executable permissions, or chmod as necessary.
2. You must have java installed on your computer because it needs that to compile the android.policy.jar file. To check, you can type, "java" in a command line window. If you get a "no java command" type message, then java isn't installed correctly on your machine, or you need to add the path to java.exe to your path environment variable.
3. You must be deodexed.
4. Make sure to set your USB connection to "None" on your phone.
5. On your phone, go to Settings > Applications > Development and make sure USB debugging is turned on.
6. Plug your phone into your PC and let it install any necessary drivers. (OS X users ignore this, Linux users... You're on your own )
7. Then you can run wakeonvolume.sh for OS X/Linux and wakeonvolume.bat for windows.
* Thanks to natboy for solving the script issue for XP users!
I appreciate you and your work in the development of the atrix
xredjokerx said:
I appreciate you and your work in the development of the atrix
Click to expand...
Click to collapse
I'm happy to help out my fellow Atrix users
nice work, although you could have just installed nolock from the market and be done with it don't need root and a a risky mod for it
I hate the sliding finger lock screen.. it's worthless... Yet if you disable the screen lock it doesn't go away. i consider that a bug.
maledyris said:
2. You must have java installed on your computer because it needs that to compile the android.policy.jar file. To check, you can type, "java" in a command line window. If you get a "no java command" type message, then java isn't installed correctly on your machine, or you need to add the path to java.exe to your path environment variable.
Click to expand...
Click to collapse
You need a java compiler (javac) or just the java virtual machine (java) ?
If you need a compiler then you need the java sdk not just the j2se
No error msgs, phone rebooted but mod doesn't seem to work, phone doesn't wake up.
booting up my virtual machine as we speak
i'll report results soon.
-----------------------------------------
Pick your ROM:
1) Bell
2) Stock ATT 1.83
3) GingerBlur v4
4) Gladiatrix
-----------------------------------------
'choice' is not recognized as an internal or external command,
operable program or batch file.
Copying system files...
135 File(s) copied
-----------------------------------------
Do you want the "No Hardkey Vibrations" mod?
'choice' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------
Do you want the "Volume Keys Wake" mod?
'choice' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------
Compiling classes.dex...
-----------------------------------------
Packaging android.policy.jar...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Scanning
Updating archive .\android.policy.jar
Compressing classes.dex
Compressing META-INF\MANIFEST.MF
Everything is Ok
-----------------------------------------
Cleaning up work directory...
now i believe i have the standard services.jar, because hard key vibes are back.
n1ckr0th said:
-----------------------------------------
Pick your ROM:
1) Bell
2) Stock ATT 1.83
3) GingerBlur v4
4) Gladiatrix
-----------------------------------------
'choice' is not recognized as an internal or external command,
operable program or batch file.
Copying system files...
135 File(s) copied
-----------------------------------------
Do you want the "No Hardkey Vibrations" mod?
'choice' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------
Do you want the "Volume Keys Wake" mod?
'choice' is not recognized as an internal or external command,
operable program or batch file.
-----------------------------------------
Compiling classes.dex...
-----------------------------------------
Packaging android.policy.jar...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Scanning
Updating archive .\android.policy.jar
Compressing classes.dex
Compressing META-INF\MANIFEST.MF
Everything is Ok
-----------------------------------------
Cleaning up work directory...
now i believe i have the standard services.jar, because hard key vibes are back.
Click to expand...
Click to collapse
same here, no errors, but no choices
stevendeb25 said:
same here, no errors, but no choices
Click to expand...
Click to collapse
Worked for me, just make sure you run batch as admin and put it on the root of the C drive.
Looks like for one thing the script is using CHOICE which isn't available in Windows XP/NT. It was in MS-DOS and in Vista/Win 7.
I'm supplying the CHOICE.COM that came with the MSDOS supplement disks. You can google it and download it straight from Microsoft, so there shouldn't be any problems here. Unzip it and put it in the same directory the batch file is in. Also modify the batch file on the 12th line instead of choice /c 1234 put:
choice /C:1234
Edit: I haven't actually tried this yet, but that should get it going. Will try in a few..
Edit 2: This should only be needed if you're running WinXP/NT. I'm assuming it works under Win7 already.
Edit 3: It works! Once I added the choice.com file and modified the script as stated above, it worked on my XP box. Thanks for the mods OP! FYI, I'm on Gladiatrix v3.
Edit 4: Sorry for keep editing this post I must be bored at work today. With this latest edit, I'm uploading a zip for XP that has the choice.com file in it and the script modified to work with it. I'd think it'd work in Win7 also, but someone should test it to try it out.
natboy said:
Looks like for one thing the script is using CHOICE which isn't available in Windows XP/NT. It was in MS-DOS and in Vista/Win 7.
I'm supplying the CHOICE.COM that came with the MSDOS supplement disks. You can google it and download it straight from Microsoft, so there shouldn't be any problems here. Unzip it and put it in the same directory the batch file is in. Also modify the batch file on the 12th line instead of choice /c 1234 put:
choice /C:1234
Edit: I haven't actually tried this yet, but that should get it going. Will try in a few..
Edit 2: This should only be needed if you're running WinXP/NT. I'm assuming it works under Win7 already.
Edit 3: It works! Once I added the choice.com file and modified the script as stated above, it worked on my XP box. Thanks for the mods OP! FYI, I'm on Gladiatrix v3.
Edit 4: Sorry for keep editing this post I must be bored at work today. With this latest edit, I'm uploading a zip for XP that has the choice.com file in it and the script modified to work with it. I'd think it'd work in Win7 also, but someone should test it to try it out.
Click to expand...
Click to collapse
thank you so much natboy!
worked for me!
maleydris i love your mods, if i had a way of donating i would.
natboy said:
Looks like for one thing the script is using CHOICE which isn't available in Windows XP/NT. It was in MS-DOS and in Vista/Win 7.
I'm supplying the CHOICE.COM that came with the MSDOS supplement disks. You can google it and download it straight from Microsoft, so there shouldn't be any problems here. Unzip it and put it in the same directory the batch file is in. Also modify the batch file on the 12th line instead of choice /c 1234 put:
choice /C:1234
Edit: I haven't actually tried this yet, but that should get it going. Will try in a few..
Edit 2: This should only be needed if you're running WinXP/NT. I'm assuming it works under Win7 already.
Edit 3: It works! Once I added the choice.com file and modified the script as stated above, it worked on my XP box. Thanks for the mods OP! FYI, I'm on Gladiatrix v3.
Edit 4: Sorry for keep editing this post I must be bored at work today. With this latest edit, I'm uploading a zip for XP that has the choice.com file in it and the script modified to work with it. I'd think it'd work in Win7 also, but someone should test it to try it out.
Click to expand...
Click to collapse
Ah, sorry guys! I didn't realize that wasn't part of XP!
And thank you natboy! I'll update the OP when i'm home from work
Sent from my MB860 using XDA Premium App
franciscojavierleon said:
You need a java compiler (javac) or just the java virtual machine (java) ?
If you need a compiler then you need the java sdk not just the j2se
Click to expand...
Click to collapse
No, you don't need the compiler, just the vm.
Sent from my MB860 using XDA Premium App
franciscojavierleon said:
nice work, although you could have just installed nolock from the market and be done with it don't need root and a a risky mod for it
I hate the sliding finger lock screen.. it's worthless... Yet if you disable the screen lock it doesn't go away. i consider that a bug.
Click to expand...
Click to collapse
Nah, why would I want to completely get rid of lock? It's useful to me. I also like the fingerprint reader. I just want to be able to wake the phone's screen without resorting to the recessed power button. I'm generally satisfied with the locking mechanism as it is.
Granted, the script is risky as we've found the mod itself though is very clean and it's very clear cut what the code is doing there.
Sent from my MB860 using XDA Premium App
The command to remount system should be
Code:
mount -o rw,remount /dev/block/mmcblk0p12 /system
maledyris said:
Ah, sorry guys! I didn't realize that wasn't part of XP!
And thank you natboy! I'll update the OP when i'm home from work
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
Glad to help, thanks for the mod. I find it easier to unlock the phone now, by pushing the volume key with my thumb and swiping with my finger. Pushing the back button with the finger and sliding seemed to herky jerky to me.
thanks natboy modphone.zip working on xp
thanks maledyris for the original mod
great mod love it guys
You guys should try out no lock. It gets rid of the lock screen and allows you to wake up the phone with the volume keys.
rdubyah said:
You guys should try out no lock. It gets rid of the lock screen and allows you to wake up the phone with the volume keys.
Click to expand...
Click to collapse
yeah, but then it gets rid of the lock screen, which defeats the purpose of what the OP wanted.
Hi, because I'm new in the forum I'm not able yet to question about my problem in the sub forum "Android Development".
So here's my problem. I follow this guide and try to root my phone. But when i get to the 3rd step the command window pops up and then goes away immediately. I then try to run the script as an administrator (and cmd window remains open), then i choose 2 for external sd. But the message I
get is " nvflash is not recognized as an internal or external command". What is going wrong. I thought of copying the script and paste it in the nvflash program, but I'm afraid of bricking my phone...
Does anyone know what is going wrong?
Could be a lot of things, but start with checking that you have extracted the entire archive (with folder structure intact.) The error simply means it can't find the nvflash executable, which is included in the archive. (This can happen if you run the batch-file from within an archive manager for example.)
You must be in the folder where you extracted the .rar to run the batch file. In 'cmd' window you must use the cd command to go in the correct folder (= cd C:\Path\to\nvflash\folder).
Thanks for the answers. Everything is in the same extracted file. When i run the "flash-recovery" script I don't have to choose the path with cd, the only options I have is 1,2,X. On the other hand if i manually open cmd and go to the specific folder and try to run the script the message I get, is "choice is not recognized..." (choice must be a variable or something like that) and i can't choose something before that message
We're getting closer. Run the "install_external_xp" batch file, not the "flash-recovery" file. (This will work on any version of windows.)
So to make sure everything goes by the plan, follow these steps.
1) Extract full archive to C:\NV, and close the archive manager.
2) Browse to C:\NV using explorer
3) doubleclick the "install_external_xp" batch file
4) Follow rest of guide.
EDIT: Don't forget to start phone in APX-mode before 3).
Before i try this I'd like to ask if there is the possibility to brick my phone and not being able to recover it. Can rooting become so dangerous?
Any flashing procedure can in theory be dangerous if there's a faulty component involved somewhere, or you get a powercut in the middle of flashing, but in practice, no. The Optimus 2X is almost impossible to brick, thanks in a great part to NVFlash. Even if you mess it up completely you can restore it by using NVFlash to flash a stock ROM, then recover from there.
DISCONTINUED
This project is no longer developed due to current implementation restrictions to ease of use.
It is incompatible with android 5.0 and later.
{
"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"
}
The age of making and sharing mods for our favorite Android roms seems mostly over these days. This is probably due to themes and increasingly customizable third-party roms. However themes are not customizable (if you are as picky as I am, it's difficult to find one you are completely satisfied with) and customization options remain limited on popular roms. So after using Graphic Porter myself for some time now, I decided to share it with you
This is a tool that aims to bring the the drawables (.xml .png .9.png .gif .jpg files) you want to modify directly to you, handling apks and everything else between you and those drawables as transparently as possible. With advanced importing and editing capabilities, this tool can save you a lot of time and headache.
See Streamline Android Theming with Graphic Porter
« Features
Powerful profile system
Graphic Porter assesses your device and builds a profile for it, so it 'knows' exactly what images to look for when importing, as well as how to handle them for you very own device.
Flexible import system
Source drawables from other roms, mods or even your best friend's device! Graphic Porter will automatically select the most suitable drawables for your device and even resize them if necessary. It's recommended not to extract from devices that have a lower dpi than your own device to maintain the best quality possible. If possible, it will avoid resizing.
Advanced image editing tools
Not only can you edit images in your favourite image editor, it also contains useful and powerful tools to make most common color changes quickly.
Supports all Android's recommended types of drawables [NEW]
Edit .xml, .png, jpg, .gif and .9.png drawables.
Ability to change a drawable's type [NEW]
Drag and drop a different type of drawable to replace the original, like replacing holo_background_dark.xml with another image of your choosing!
Safe
Graphic Porter strives to eliminate common mistakes made while theming, as well as handling your device with as much care as possible and not taking any risks. Please do understand that, at the end of the day, you alone are responsible for your device.
Code is open, like Android
I'm not gonna hide what this script does on your computer or phone. You are free to look around and modify even if you know what you are doing - suggestions are always welcome.
If you want to use or replicate the functionality in Graphic Porter, I only ask that you leave me credit and also link to this thread.
« Screenshots: Graphic Porter
« Screenshots: Preview of my phone with some different colors
« Features that I'm thinking of adding
Add image editor to color grays and whites.
Create a customizable color list to choose from when selecting colors for one of the editors.
Enable Graphic Porter to remove specific drawables from the build.
Enable Graphic Porter to extract specific drawables.
Ideas are welcome
« Bugs found
None at the moment; please report them if discovered.
« System requirements you should try to comply with
Computer:
Windows 7 or later.
Installed drivers for your Android device, including ADB drivers if needed.
Installed Java 7 (JRE version 1.7).
Android device:
A custom recovery or fully functional ADB support in recovery.
Properly rooted - requires root access in recovery.
« Supported Android romsGraphic Porter is not limited to any specific rom. With that said, it's only configured (by default) for the following roms, or more specifically, the following 'drawable sets'. However, you can define your own sets (or customize the current ones) for your rom - see the how to, it is very simple.
Using drawable sets makes it easy to identify and modify only the drawables that affect the given component of the UI, as opposed to manually filtering through all the drawables in an apk (which you can also do with GP).
It is a given that you get very differently themed Android roms out there (and also just different,especially the OEM ones), as well as differences between Android versions themselves. This basically means that just because the CyanogenMod rom's toggle drawables are these ones, doesn't mean that they are the same ones Samsungs's TouchWiz roms use, even if they are present.
Currently, the following drawable sets are defined by default. If you are unsure what they are, 'Preview' them after importing the original in GP:
CyanogenMod 10+ based roms (PA, SlimRom, Carbon Rom, etc.)
General UI: Backgrounds (the Settings background, for example)
General UI: Phone (call) icons
General UI: Check boxes
General UI: Radio buttons
General UI: Switches
General UI: IM (Android) emotions/smilies
General UI: Text field underline
General UI: Text selection handle
General UI: Tab underline
General UI: Loading spinner/circle
Lockscreen: Pattern lock: Circle indicators
Lockscreen: Pattern lock: Dots (to connect)
Lockscreen: Slide Lock: Handles
Lockscreen: Slide Lock: Dots (around handle)
Notification panel: Quick Settings icons
Notification panel: Contextual Headers
Settings: Settings list icons
TouchWiz 4.4.2
Notification panel: Quick panel icons
You can configure additional images by following the steps below under "How to".
« Downloads
Graphic Porter 1.0.0B2 Download
Extract the zip and dubble-click "Graphic Porter.bat" to run. On the initial start up you will be required to create a profile for your device.
Release Notes
GP is able to function with or without apktool, it's entirely up to you and is disabled by default. Using apktool gives you the advantage to edit .9.png and .xml drawables as well, including the ability to change a drawable's type (like replacing an .xml drawable with a .png image). The downside is the possibility that apktool may fail, but when that happens you will only lose the benefits of using apktool for that specific apk - the 'normal' drawables will still be flashed to that apk. You may need to add custom versions of apktool and aapt for your rom.
Flashing recompiled apks (see Settings, disabled by default) could cause a bootloop, but if it happens, simply restore the apk backup.
I'll add more when they come to mind, can't remember everything at the moment.
Changelog
IMPROVE: No need to worry about filename duplicates in drawable configurations anymore.
FIX: ADB connect to device error. "adb get-serialno" was giving "unknown" at times where "adb device"s would give actual serial number, hence the error.
OTHER: Small fixes and changes
ADD: Apktool 2.0.0RC2, as well as the ability to select the apktool version in use. Useful for using custom apktool versions.
ADD: Ability to select aapt version in use, useful for using custom aapt versions.
UPDATED: Menus and controls. BEWARE
FIX: Updating exported explorer view after editing.
ADD: Support for .xml drawables.
ADD: Backup and restore feature.
UPDATED: Auto apk backup behaviour.
ADD: Automatic zipalign of apks.
REMOVE: xUltimate Draw9Patch Compiler.
UPDATED: Sorted settings menu and added new options, mostly related to apktool.
FIX: Draw-9-patch verify.
ADD: Ability to import non-decompiled .9.png drawables if there is another border for them to use, either in the current build or in the profile.
FIX: Java version checker not reporting incorrect version.
FIX: VRtheme importing.
ADD: Ability to change the format/type of drawables.
ADD: Unique profile ID for restore even if profile name was changed.
REMOVED: Automatic retry when having trouble accessing devise via ADB; device will be given more time to connect.
ADD: Option to select apk source when flashing.
ADD: Option to manually edit the apk source/resources.
OTHER: Various other improvements, changes and small fixes
Previous releases:
Graphic Porter 0.9.2 Download
0.9
ADD: Full support for .9.png images.
FIX: ADB recovery issue. You will be prompted to confirm the device is in recovery if it can't be confirmed.
TOOL: Updated ImageMagick to 6.8.9
FIX: Build save/restore ignored the editors' undo files.
FIX: Windows version check to display the error properly on pre-Windows 7 systems.
ADD: APKTool
ADD: xUltimate 9 Patch Compiler.
OTHER: Disabled Windows version check temporarily: issues with Windows 8
FIX: Crash when updating profile.
FIX: Small fixes
0.9.1
FIX: Adb false error "no root access".
ADD: A few more configs.
FIX: Compiling .9.png's. Worked around xUltimate's issues.
FIX: Windows version check.
ADD: Java version check.
0.9.2
FIX: 9-Patch verification on drag and drop.
OTHER: Small improvements.
FIX: Settings' cache verification of invalid values.
FIX: Adb export did not flash any mods.
ADD: Contingency added if xUltimate crashes (happens sometimes).
Graphic Porter 0.8 Download
Initial Release
« How to
Navigate through Graphic Porter
This is a batch script, and the only mouse input that is used is when dragging and dropping a file onto Graphic Porter. Besides that, navigation plays entirely on the keyboard. All the keys you can press appear on screen like this: [N] - the "N" key on your keyboard.
On the main menu, after creating your first profile, you can:
navigate through pages by pressing the keys [O] or [P] to move backwards or forwards respectively.
select any presented option by pressing the respective number from [1] to [0] (10).
select any additional or other options on the current page that are displayed at the bottom of the screen.
Adding custom versions of aapt and apktool
Some roms may need special versions of apktool or aapt in order to decompile and recompile successfully.
Place your custom version of aapt or apktool in "resources\tools\aapt_versions" or "resources\tools\apktool_versions" respectively. Don't worry about a specific filename format.
In Graphic Porter, go to Settings. On the 'Advanced' page, select 'current apktool/aapt version' and select the one you want to use.
Reset the settings to default
Simply exit Graphic Porter and delete the file "resources\settings\settings_cache".
Configure drawable sets for your rom
You will need the names of the drawables you want to add, so you'll have to extract the system apk that contains them from your rom and extract the apk itself as well. You will find the images inside the apk at "res/drawable*/*".
In the directory "resources\settings\drawable_functions\", create a folder with a simple identifying name (without spaces), like "QuickSettingsIcons", and open it. You can copy other folders in this directory and simply modify them accordingly.
Create a text file named "Properties" (without the .txt extension) and add the following lines:
Code:
name=Quick Settings Icons
category=NOTIFICATION PANEL
resize_on_extract=yes
name: The name that will appear in Graphic Porter.
category: The name of the category by which it would be grouped together on a page.
resize_on_extract: The value can be "yes" or "no". It sets whether or not the images should be resized if they are too big or too small when they are extracted. For example, the Quick Settings Icons should be resized but the Holo Backgrounds should not (they can be resized manually if needed). If you are unsure, keep it "yes".
Create a text file named after apk that contains the images, for example, for the "SytemUI.apk" you will create a text file named "SystemUI.apk". In it, list the names of the drawables you want to be added. You can also specify an extension for the drawable if you only want that type to be profiled. If you only want drawables with that specific name to match, regardless of the type/extension, add a period "." at the end of the name. You may use more than one wildcard at any position in the file names. For example:
Code:
ic_qs_nfc_*
*_qs_signal*.*
ic_qs_screen_timeout_off.
ic_wifi_*
You will need to create a file like this for each apk that contains the images you are targeting.
Optional: Create a text file named "Exceptions" to add a list of files the profiler should ignore. You can use wildcards in 3 ways only, or without a wildcard, namely:
Code:
*_qs*
*_activated.png
ic_*
ic_qs_screen_timeout_off.xml
Note: A wildcard at the beginning and end will match anywhere, including beginning or end. No wild card will need to match the entire file name, including the extension.
You will need to restart Graphic porter and update your profile for changes to take effect.
« CreditsThank you all for reporting issues you experience and helping make Graphic Porter a stable tool everyone can use, and of course, thanks for using it
Android Debugging Bridge
7 Zip
Image Magick
Universal Flasher Tool
Command Line Calc
OptiPNG
apktool
Android Debugging Bridge
ZipAlign
Graphic Porter NOW ...well on 06-11-2014...
1.0.0B1. Nuff' said.
Previous updates:
04-11-2014
Currently testing A LOT of changes... Will release 1.0.0Beta1 when reasonably stable...
The first 1.x release!!!
02-11-2014
Figured out why I was having trouble with apktool - it had nothing to do with apktool.
Now I'm having this issue. As that does seem to be apktool/aapt related, I will finish and prepare Graphic Porter 1.0.0B1 for release. Apktool and aapt can be manually updated and selected later on, unless this issue is resolved before then.
30-10-2014
Still having problems with apktool - at least on my CM11 rom
The use of apktool would be completely optional (amoungst other new options). This will ensure that GP can be used despite having rom compatiblitity issues with apktool.
NOTE: apktool will need to be enabled to modify 9.png and xml drawables.
There are also already improvements to drawable handling, as it no longer just handles image drawables.
So currently, what's causing the delay is that neither apktool 1.5.2 or 2.0.0RC2 is compiling 9.pngs, and even thought 2.0.0RC2 does compile the xmls, they are about 2-3 times the original size (didnt check the output of 1.5.2), which tells me something is wrong - no modifications to the decompiled xmls were made.
As you've probably predicted, flashing the recompiled system apks result in a bootloop (-c option is used when building with apktool, also I've tried manually copying the META-INF and manifest xml with no change in outcome.) The apks are decompiled and recompiled without any errors or even warnings.
Any ideas? I'll gather more info when i get to my computer and post a question on this.
Ok, some more not-so-good news: I no longer have access to an uncapped internet connectio , and will have to make do with about 1GB p/m which is intended only for personal use when not connected to wifi (the uncapped line). I'm mentioning this becuase I will not be able to test different roms with this tool, not to mention only updating my own rom only once or twice p/m...
This is technologically shattering to someone who average 30-100GB p/m
16-10-2014
Working on a big-err experimental release...... and then ironing... hopefully in just a few days depending on time available.
Oh yeah and I'm dumping xUltimate - too many issues (hopefully...) with anti-virus programs. :fingers-crossed:
05-10-2014
So after a series of troublesome 0.9.x releases, hopefully after 0.9.2 we can move on to features as apposed to bug fixes. :fingers-crossed:
02-10-2014
I honestly did not expect Graphic Porter to get noticed this quickly (if at all), but hey I'm definitely not complaining
Also I updated my terrible, inexplicable language use and word skipping tendencies in the OP >.>
02-10-2014
Fixed the whole 9-patch compiling issue.. download GP 0.9.1
02-10-2014
Having issues with compiling .9.png's... working on it.
Also the whole adb/root/flashing issue should be resolved in the upcoming release.
01-10-2014
Updated Graphic Porter Bring those .9.pngs!!!
30-09-2014
Fixed it. However.. it seems after all ImageMagick does not care for the 9 -patch binary chunk :/ Busy working on providing full support for *.9.pngs...
28-09-2014
Since Carbon rom (unofficial) isn't being built anymore for my device, I decided to use CyanogenMod for a while - I'm very happy jactivelte is officially supported by CM now
Anyway, after Graphic Porter booted my device into recovery (I wanted to flash the images I just colorized), it couldn't find any device that is in recovery connected to my computer . As it turns out, even if my CM device is in recovery, it still labels itself as a "device". So when I have time to work around this, I will upload screenshots of when the above modifications are flashed to your device, and of course, update Graphic Porter. This wasn't a problem on Carbon rom, that's why Graphic Porter used this method.
Can someone provide me a download link for APKFramework? (addon) ...cant download it from provided link in First Post.
_moelle said:
Can someone provide me a download link for APKFramework? (addon) ...cant download it from provided link in First Post.
Click to expand...
Click to collapse
The mediafire link seems to work fine here
Uploaded it to Google Drive for you.
As an alternative you can duplicate the "resources\settings\function_config\CheckBoxes" folder and rename it to "APKFramework". Then simply replace the line "btn_check_*.png" in the text file "Names_framework-res.apk" with this:
Code:
*.png
You should also change the name in the "Properties" text file. See the 'How to' above.
Error
I get a Error Whenever I try to open it
Downloaded - Extracted it Desktop - Open it
HTML:
START UP
'10' is not recognized as an internal or external command,
operable program or batch file.
'9' is not recognized as an internal or external command,
operable program or batch file.
'8' is not recognized as an internal or external command,
operable program or batch file.
'7' is not recognized as an internal or external command,
operable program or batch file.
'6' is not recognized as an internal or external command,
operable program or batch file.
'5' is not recognized as an internal or external command,
operable program or batch file.
'4' is not recognized as an internal or external command,
operable program or batch file.
'3' is not recognized as an internal or external command,
operable program or batch file.
'2' is not recognized as an internal or external command,
operable program or batch file.
'1' is not recognized as an internal or external command,
operable program or batch file.
------------------------------------------------------------------------------
--------------------
This Program is designed for Windows 7 and above.
Press any key to exit
Open It With Admin Privileges
HTML:
Please ensure that you have properly downloaded and extracted:
"Graphic Porter 0.8.zip".
-----------------------------------------------------------------
[ANY KEY] Exit
Calingo said:
I get a Error Whenever I try to open it
Downloaded - Extracted it Desktop - Open it
HTML:
START UP
'10' is not recognized as an internal or external command,
operable program or batch file.
'9' is not recognized as an internal or external command,
operable program or batch file.
'8' is not recognized as an internal or external command,
operable program or batch file.
'7' is not recognized as an internal or external command,
operable program or batch file.
'6' is not recognized as an internal or external command,
operable program or batch file.
'5' is not recognized as an internal or external command,
operable program or batch file.
'4' is not recognized as an internal or external command,
operable program or batch file.
'3' is not recognized as an internal or external command,
operable program or batch file.
'2' is not recognized as an internal or external command,
operable program or batch file.
'1' is not recognized as an internal or external command,
operable program or batch file.
------------------------------------------------------------------------------
--------------------
This Program is designed for Windows 7 and above.
Press any key to exit
Open It With Admin Privileges
HTML:
Please ensure that you have properly downloaded and extracted:
"Graphic Porter 0.8.zip".
-----------------------------------------------------------------
[ANY KEY] Exit
Click to expand...
Click to collapse
What version of Windows are you running? This error occurs because you are running a version of windows lower than Windows 7 - at least it appears to the script that way.
Version
br.ruan said:
What version of Windows are you running? This error occurs because you are running a version of windows lower than Windows 7 - at least it appears to the script that way.
Click to expand...
Click to collapse
I am running windows 8 64 Bit
One more thing should I connect tmy device before opening the program :highfive: :good:
By the way nice work mahn sounds awesome just wana try it any donation links
Calingo said:
I am running windows 8 64 Bit
One more thing should I connect tmy device before opening the program :highfive: :good:
By the way nice work mahn sounds awesome just wana try it any donation links
Click to expand...
Click to collapse
Ey I worked on this script for a time when I had Windows 8 64-bit and it had no problems. I'll look for a work around for this.
In the meantime, you can edit "Graphic Porter.bat" in Notepad++ (or Notepad) and delete the following line, it's around line 45:
Code:
call "%BIN%\callscripts\WINDOWSVERSIONCHECK"
Thanks but I will have to get back to you on that Thanks though
Device
br.ruan said:
Ey I worked on this script for a time when I had Windows 8 64-bit and it had no problems. I'll look for a work around for this.
In the meantime, you can edit "Graphic Porter.bat" in Notepad++ (or Notepad) and delete the following line, it's around line 45:
Code:
call "%BIN%\callscripts\WINDOWSVERSIONCHECK"
Thanks but I will have to get back to you on that Thanks though
Click to expand...
Click to collapse
Should I Try Connecting my device before running the program
:fingers-crossed:
just wanna throw a question in....there is the option to replace images by using a "mod or rom-zip" ...using a rom is working with no problems but what kind of path/file structure does the "mod" zip need to have? to replace images by using a rom zip makes no sense to me cause a rom zip mostly contains stock icons etc.
if i chose another zip, the script doesnt find the images which i want to have replaced (they are in the zip but looks like not placed in the right folder.)
Calingo said:
Should I Try Connecting my device before running the program
:fingers-crossed:
Click to expand...
Click to collapse
I was just about to update my post about that :|
But no it won't change that error you're getting, the only way for you now (until I upload the next) is to remove that line from the main script.
It's almost 2AM here and my brain is slowing down........
_moelle said:
just wanna Throw a question in....there is the option to replace images by using a "mod or rom-zip" ...using a rom is working with no problems but what kind of path/file structure does the a "mod" zip need to have? to change by a rom zip makes no sense to me cause a rom zip nostly contains stock icons etc.
if i chose another zip, the script doesnt find the images which i want to have replaced .
Click to expand...
Click to collapse
Choosing from another rom's file is usefule in cases like Carbon rom mostly still has white stock themed switches, etc. while CyanogenMod and PA has blue ones now, which can easily be colorized into any other color.
The "traditional" mods you get have the same file structure as roms (in a sense, it's like a partial rom you're flashing). Apart from those it will also extract from morph and vrtheme mods - they dont have apks in them, just the images.
The reason GP doesn't find the images you are looking for is probably because they aren't there. Even though it is 'the same thing' in both roms, the names for the files may be different, so they won't be picked up. You can look in "resources\cached_mods\<you_mod_name>" for all the files that were extracted. Roms vary in many ways, especially when you get in between manufacturers... it's a pain
Tried
br.ruan said:
I was just about to update my post about that :|
But no it won't change that error you're getting, the only way for you now (until I upload the next) is to remove that line from the main script.
It's almost 2AM here and my brain is slowing down........
Click to expand...
Click to collapse
I Tried Changing The Script By removing That Line I Get Some Yes No error too Quickly Too many Times And At last it says Check log For Errors
Then I Converted The BAT TO EXE Then Ran The EXE in Compatibility Mode But Same This Program Was Built For windows 7 and Above Bla Bla Bla ....
Logs Are Attached Below
Should I try Connecting My Device And Running The Program
Calingo said:
I Tried Changing The Script By removing That Line I Get Some Yes No error too Quickly Too many Times And At last it says Check log For Errors
Then I Converted The BAT TO EXE Then Ran The EXE in Compatibility Mode But Same This Program Was Built For windows 7 and Above Bla Bla Bla ....
Logs Are Attached Below
Should I try Connecting My Device And Running The Program
Click to expand...
Click to collapse
Those errors shouldn't even be running >.> never mind that they are just completely wrong, those commands shouldn't even exist (not with those options - hence the errors).
Download attached version. It's mostly the same as the prior version. It's not the final version 0.9, but a backup I kept for the changes im currently making on 0.9. The larger size is due to an update of ImageMagick.
Seriously though, connecting your device to your computer won't change a thing. You can try if you really want to though...
UPDATE:
Are you sure its not running in power shell?
br.ruan said:
Those errors shouldn't even be running >.> never mind that they are just completely wrong, those commands shouldn't even exist (not with those options - hence the errors).
Download attached version. It's mostly the same as the prior version. It's not the final version 0.9, but a backup I kept for the changes im currently making on 0.9. The larger size is due to an update of ImageMagick.
Seriously though, connecting your device to your computer won't change a thing. You can try if you really want to though...
UPDATE:
Are you sure its not running in power shell?
Click to expand...
Click to collapse
Why Me
START UP
'10' is not recognized as an internal or external command,
operable program or batch file.
'9' is not recognized as an internal or external command,
operable program or batch file.
'8' is not recognized as an internal or external command,
operable program or batch file.
'7' is not recognized as an internal or external command,
operable program or batch file.
'6' is not recognized as an internal or external command,
operable program or batch file.
'5' is not recognized as an internal or external command,
operable program or batch file.
'4' is not recognized as an internal or external command,
operable program or batch file.
'3' is not recognized as an internal or external command,
operable program or batch file.
'2' is not recognized as an internal or external command,
operable program or batch file.
'1' is not recognized as an internal or external command,
operable program or batch file.
------------------------------------------------------------
--------------------
This Program is designed for Windows 7 and above.
Press any key to exit
Same Error Please Help I have a Idea If this works For you Copy All the files With the Profile and Zip It And Send it to me i will extract it and run it as it is
Calingo said:
Why Me
START UP
'10' is not recognized as an internal or external command,
operable program or batch file.
'9' is not recognized as an internal or external command,
operable program or batch file.
'8' is not recognized as an internal or external command,
operable program or batch file.
'7' is not recognized as an internal or external command,
operable program or batch file.
'6' is not recognized as an internal or external command,
operable program or batch file.
'5' is not recognized as an internal or external command,
operable program or batch file.
'4' is not recognized as an internal or external command,
operable program or batch file.
'3' is not recognized as an internal or external command,
operable program or batch file.
'2' is not recognized as an internal or external command,
operable program or batch file.
'1' is not recognized as an internal or external command,
operable program or batch file.
------------------------------------------------------------
--------------------
This Program is designed for Windows 7 and above.
Press any key to exit
Same Error Please Help I have a Idea If this works For you Copy All the files With the Profile and Zip It And Send it to me i will extract it and run it as it is
Click to expand...
Click to collapse
I don't upload the files if they don't work for me I always test them, that's why I don't understand.
The profile isn't the problem, it's the Windows version check - as well as some really funny command interpreter...
Here it is, with a profile of my phone and the Windows version check removed. Even though those other errors you mention makes no sense, this one might hopefully work for you.
Update: I'll be back up in a few hours if you have any more problems.
wow thanks so going to try this in the morning
Thanks loads will report back
@br.ruan Didnt Work
GP_Debug.bat
Did Something For quite Seconds Like actually it was working But then Closed Automatically
I Got Some Logs But too lazy to upload Them So I am Now trying To Make These Work On some Other PC or different account
Hope It Works I tried all this while my device Was Connected
Tool stacked up
hey, got stacked while extracting the png's whats wrong?
am extracting from my device with adb connected.
Code:
SETTINGS > MANAGE PROFILES > CREATE PROFILE
----------------------------------------------------------------------------------------------------
No valid profiles are installed! Please create one.
ERROR: No devices connected! Please troubleshoot below
ERROR: Please authorise this computer on your device!
[COLOR="Red"]Creating profile: Framework... emo_im_wtf.png[/COLOR]
----------------------------------------------------------------------------------------------------
juDGEY2k10 said:
wow thanks so going to try this in the morning
Thanks loads will report back
Click to expand...
Click to collapse
My pleasure Thanks
Calingo said:
@br.ruan Didnt Work
GP_Debug.bat
Did Something For quite Seconds Like actually it was working But then Closed Automatically
I Got Some Logs But too lazy to upload Them So I am Now trying To Make These Work On some Other PC or different account
Hope It Works I tried all this while my device Was Connected
Click to expand...
Click to collapse
Man I was half asleep sorry
I forgot to ask you to do something for me. The "GP_Debug.bat" file I added additionally so you could send me some more info on whats going in.. It is suppose to just close - It only contains the start up script.
In the folder wherein "GP_Debug.bat" lies, hold [SHIFT] while right-clicking on the white space of the explorer window, then click "Open command window here".
Run the following command:
Code:
GP_Debug.bat >>log.txt
Send me dat log.txt
Run "Graphic Porter.bat" to use the script.
xdagee said:
hey, got stacked while extracting the png's whats wrong?
am extracting from my device with adb connected.
Code:
SETTINGS > MANAGE PROFILES > CREATE PROFILE
----------------------------------------------------------------------------------------------------
No valid profiles are installed! Please create one.
ERROR: No devices connected! Please troubleshoot below
ERROR: Please authorize this computer on your device!
[COLOR="Red"]Creating profile: Framework... emo_im_wtf.png[/COLOR]
----------------------------------------------------------------------------------------------------
Click to expand...
Click to collapse
Hi it's a shame it didn't display that "wtf" icon
If it just freezes like that, it's ImageMagick . It rarely happens though. I've tried to find any fault in the script, but it seems to be caused when running the instances of ImageMagick very rapidly after one another. Either that or the error appears more frequently because you are using ImageMagick a lot more that you would usually do :silly:
If anyone has advice on this I'm all ears.
Just close the command window and restart Graphic Porter. If it happens after you made some modifications, just choose "[R] Restore build" when on the configuration menu and select "AUTOSAVE -- --". Autosave has to be enabled in settings.
br.ruan said:
My pleasure Thanks
Man I was half asleep sorry
I forgot to ask you to do something for me. The "GP_Debug.bat" file I added additionally so you could send me some more info on whats going in.. It is suppose to just close - It only contains the start up script.
In the folder wherein "GP_Debug.bat" lies, hold [SHIFT] while right-clicking on the white space of the explorer window, then click "Open command window here".
Run the following command:
Code:
GP_Debug.bat >>log.txt
Send me dat log.txt
Run "Graphic Porter.bat" to use the script.
Hi it's a shame it didn't display that "wtf" icon
If it just freezes like that, it's ImageMagick . It rarely happens though. I've tried to find any fault in the script, but it seems to be caused when running the instances of ImageMagick very rapidly after one another. Either that or the error appears more frequently because you are using ImageMagick a lot more that you would usually do :silly:
If anyone has advice on this I'm all ears.
Just close the command window and restart Graphic Porter. If it happens after you made some modifications, just choose "[R] Restore build" when on the configuration menu and select "AUTOSAVE -- --". Autosave has to be enabled in settings.
Click to expand...
Click to collapse
Well managed to find my way out.
I realised that extracting pngs from device through adb causes the freeze.
to avoid that just get a zip of the rom and extract from there.
that's exactly what i did and extracted successfully.
Now trying to do something wired; but not finding my way out.
After following your script.