Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: Do you find the latest beta functional ?
Yes 989 75.15%
No 327 24.85%
Voters: 1316. You may not vote on this poll

 
Post Reply+
Tip us?
 
Ateisti
Old
#501  
Member
Thanks Meter 19
Posts: 33
Join Date: Aug 2010
Great script, made it easy to apply a circle battery mod to my SGS.

There's a bug in the latest beta though, that doesn't allow you to select a project if you have more than one .apk in the place-apk-here-for-modding directory.

On line 215:

if /I %INPUT% LSS !count! (goto chc)

Should be:

if /I %INPUT% LSS 1 (goto chc)
 
Daneshm90
Old
(Last edited by Daneshm90; 30th August 2010 at 08:07 PM.)
#502  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by Ateisti View Post
Great script, made it easy to apply a circle battery mod to my SGS.

There's a bug in the latest beta though, that doesn't allow you to select a project if you have more than one .apk in the place-apk-here-for-modding directory.

On line 215:

if /I %INPUT% LSS !count! (goto chc)

Should be:

if /I %INPUT% LSS 1 (goto chc)
Right, thnx for tht. Wonder why ppl didnt complain :S

Update :

So ive been using this beta since i put it out, editing it anytime i found a quirk. And i think its stable enough to release. So heres the last one before i make it a stable release. I'll setup a poll in front thread asking for the stability of this beta and based on it i'll time the stable release. Plz if u have any issues, post here (try not to pm ), and i'll try to get it fixed.

Download Here
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
x3gypxtianx
Old
#503  
x3gypxtianx's Avatar
Member
Thanks Meter 1
Posts: 39
Join Date: Feb 2010
Location: Los Angeles
I have decompiled framework-res.apk successfully from the /system/framework/ folder but having trouble compiling it again.

I keep getting:

Code:
Building APK
"An Error Occurred, Please Check The Log (Option 21)"
Press any key to continue...

Any idea why this is happening?


Update: After going through the log, I noticed that all the issues are from public.xml. About 50~60 of the drawable values have this error:

(path of public.xml : line number) "declared here is not defined"

I checked, though, and they're all there... :/

Building up my phone legacy:

Samsung Galaxy S - current

HTC Hero (GSM) - gave to my brother



Nika Creations | Design and Development
 
rori~
Old
#504  
rori~'s Avatar
Senior Member
Thanks Meter 446
Posts: 3,817
Join Date: Aug 2009
Location: Vienna

 
DONATE TO ME
Quote:
Originally Posted by x3gypxtianx View Post
I have decompiled framework-res.apk successfully from the /system/framework/ folder but having trouble compiling it again.

I keep getting:

Code:
Building APK
"An Error Occurred, Please Check The Log (Option 21)"
Press any key to continue...

Any idea why this is happening?
This happens frequently when I experiment bad edits :)

Sent from my Nexus One
#SG3, LG 2X
#CyanX Lock Screen
#LockscreenMod #BlackSmilies #BlackWidgets #SmokedWidgets #ADW ThemeSmoked #Statusbar PulldownMod #Tmo-CM7 Themes: HoneycreamTheme..

#Twitter
-------------------------------------------------------
If you like my work, buy me a cold Budweiser
 
Daneshm90
Old
#505  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by x3gypxtianx View Post
I have decompiled framework-res.apk successfully from the /system/framework/ folder but having trouble compiling it again.

I keep getting:

Code:
Building APK
"An Error Occurred, Please Check The Log (Option 21)"
Press any key to continue...

Any idea why this is happening?


Update: After going through the log, I noticed that all the issues are from public.xml. About 50~60 of the drawable values have this error:

(path of public.xml : line number) "declared here is not defined"

I checked, though, and they're all there... :/
Won't flame you

99.9% its happening because ur decompiling a themed framework-res.apk

Try doing so to a stock one and you won't experience these issues.

Reason i say "flame" is cuz its been mentioned 5+ times in this thread.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
addelh
Old
#506  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Apr 2009
Hey Danesh,

Awesome job on the script mate. Wondering if you could help me through this error though .

I'll explain what i'm trying to do and how i'm doing it;

I'm running Cyanogen Mod 6.0 on a HTC Desire. I'm wanting to edit a lock screen in the app 'Widgetlocker'.

Previously i've been using adb to pull the apk and after editing the image i wanted i'd push it back and it works fine untill i reboot my phone. Then it deletes Widgetlocker.

With your script i've been running the following;

0 - Pulling apk from /data/app/com.teslacoilsw.widgetlocker-1.apk
1 - Extracts fine
- I edit the image i want
2 - Optimizes fine
3 - I've tried selecting both System and Regular apk and it zips fine
4 - Here's the problem when i hit Sign apk i get the following;
Signing Apk
"An Error Occured, Please Check The Log <option 21>"

When i check the logs this is what i see;

Exception in thread "main" Could Not Find C:\AndroidSDK\tools\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
The system cannot find the file specified.
java.lang.UnsupportedClassVersionError: com/android/signapk/SignApk (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"

Hope i've provided sufficient information.

Thanks in advance!

-del
 
Daneshm90
Old
#507  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by addelh View Post
Hey Danesh,

Awesome job on the script mate. Wondering if you could help me through this error though .

I'll explain what i'm trying to do and how i'm doing it;

I'm running Cyanogen Mod 6.0 on a HTC Desire. I'm wanting to edit a lock screen in the app 'Widgetlocker'.

Previously i've been using adb to pull the apk and after editing the image i wanted i'd push it back and it works fine untill i reboot my phone. Then it deletes Widgetlocker.

With your script i've been running the following;

0 - Pulling apk from /data/app/com.teslacoilsw.widgetlocker-1.apk
1 - Extracts fine
- I edit the image i want
2 - Optimizes fine
3 - I've tried selecting both System and Regular apk and it zips fine
4 - Here's the problem when i hit Sign apk i get the following;
Signing Apk
"An Error Occured, Please Check The Log "

When i check the logs this is what i see;

Exception in thread "main" Could Not Find C:\AndroidSDK\tools\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
The system cannot find the file specified.
java.lang.UnsupportedClassVersionError: com/android/signapk/SignApk (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"

Hope i've provided sufficient information.

Thanks in advance!

-del
Hey.

How did u sign ur apk before? Try putting tht .jar in apk manager other folder.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
kevdog
Old
#508  
Senior Member
Thanks Meter 4
Posts: 150
Join Date: Jan 2010
What version of apktool is in the final beta? 1.3.2 was just released.
 
addelh
Old
(Last edited by addelh; 4th September 2010 at 03:32 AM.)
#509  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Apr 2009
Quote:
Originally Posted by Daneshm90 View Post
Hey.

How did u sign ur apk before? Try putting tht .jar in apk manager other folder.
Hey,

That's the thing.. I dont think i was ever signing it.

I'd do the following steps;

adb pull data/app/com.teslacoilsw.widgetlocker-1.apk com.teslacoil.widgetlocker-1.apk

I'd edit the image i want in drawable-hdpi then place it back in the apk, then;

adb remount

adb push com.teslacoilsw.widgetlocker-1.apk data/app/

Done.

Am i doing something wrong in the procedure?

Cheers!

-del

PS. This is also a paid app.. If that makes a difference.
 
Daneshm90
Old
#510  
Daneshm90's Avatar
Recognized Developer - OP
Thanks Meter 549
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by addelh View Post
Hey,

That's the thing.. I dont think i was ever signing it.

I'd do the following steps;

adb pull data/app/com.teslacoilsw.widgetlocker-1.apk com.teslacoil.widgetlocker-1.apk

I'd edit the image i want in drawable-hdpi then place it back in the apk, then;

adb remount

adb push com.teslacoilsw.widgetlocker-1.apk data/app/

Done.

Am i doing something wrong in the procedure?

Cheers!

-del

PS. This is also a paid app.. If that makes a difference.
Well its an app on the /data partition, upon change it must be resigned.

Without resigning it won't show up in ur app drawer, and upon installing it will give u a parsing error.

See if ur path to apk manager has any wierd spaces/symbols in it.
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...