[DEV RESOURCES][AMDL] P-ROM, Dump, Tools, Resources & Tips [5/18]

blulite

Senior Member
Aug 28, 2010
336
167
0
SecExchange.apk decompile?

Trying to use "Apk Manager" from OP to decompile SecExchange.apk. Getting these errors:

Code:
--------------------------------------------------------------------------
|Fri 05/24/2013 --  9:13:37.13|
--------------------------------------------------------------------------
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)
--------------------------------------------------------------------------
|Fri 05/24/2013 --  9:14:28.29|
--------------------------------------------------------------------------
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)
Could Not Find P:\jeff\Downloads\AndDev Tools\Apk Manager\place-apk-here-for-mod
ding\../place-apk-here-for-modding/signedSecExchange.apk
Could Not Find P:\jeff\Downloads\AndDev Tools\Apk Manager\place-apk-here-for-mod
ding\../place-apk-here-for-modding/unsignedSecExchange.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" java.lang.NullPointerException
        at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.
java:326)
        at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:138)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
0)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
        at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:491)
        at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
        at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
        at brut.androlib.Androlib.getResTable(Androlib.java:50)
        at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
        at brut.apktool.Main.cmdDecode(Main.java:146)
        at brut.apktool.Main.main(Main.java:77)
Press any key to continue . . .
 

KryptosXLayer2

Prolific Contributor
Nov 3, 2007
1,532
366
0
Charlotte, NC
en.wikipedia.org
This on TW would be really cool.

And now that we have a recovery, is it possible to make this flashable?
or better yet, a deodexed stock TW ROM to flash.... are there any plans to make one that will work well with the Xposed mods we've already done, @Nottach? My problem is that I've already done SystemUI changes and Xposed changes, don't want to lose everything I've done just by going to a new ROM, but I can see the need for converting from odexed to deodexed, again, now that we have recovery....
 

wonner

Senior Member
Dec 19, 2010
497
152
0
45
Hayward, CA
or better yet, a deodexed stock TW ROM to flash.... are there any plans to make one that will work well with the Xposed mods we've already done, @Nottach? My problem is that I've already done SystemUI changes and Xposed changes, don't want to lose everything I've done just by going to a new ROM, but I can see the need for converting from odexed to deodexed, again, now that we have recovery....
He mentioned in the other thread that he's building a ROM that utilizes the Xposed framework...or something like that. :)

Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
 

geoldr

Senior Member
Feb 4, 2012
902
118
0
SF Bay Area
He mentioned in the other thread that he's building a ROM that utilizes the Xposed framework...or something like that. :)

Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
This would be great. I want to use this mod but don't want to install the p-rom the framework and the APK's. I'm just waiting for a ROM that has all this built in!
 

zacharyt86

Senior Member
Jan 2, 2013
142
48
0
Decatur, IL
I'm having an issue here. I've search all over this thread and it doesn't seem anyone else is having it or anything similar. I followed the instructions in the op, did a factory reset and then Odin back to stock, but now when I run the software update it tells my my software is up to date, so I'm pretty much stuck on AMDB, I've tried using the update for 3 days now it it always says its up to date, tried and got the same result through kies.

Sent from my SAMSUNG-SGH-I337 using xda premium
 

scott14719

Prolific Contributor
Dec 24, 2011
2,223
830
0
I'm having an issue here. I've search all over this thread and it doesn't seem anyone else is having it or anything similar. I followed the instructions in the op, did a factory reset and then Odin back to stock, but now when I run the software update it tells my my software is up to date, so I'm pretty much stuck on AMDB, I've tried using the update for 3 days now it it always says its up to date, tried and got the same result through kies.

Sent from my SAMSUNG-SGH-I337 using xda premium
Why not ODIN the AMDL firmware onto your phone?
 

zacharyt86

Senior Member
Jan 2, 2013
142
48
0
Decatur, IL
Why not ODIN the AMDL firmware onto your phone?
Do you know of somewhere its hosted at? The only places I could find it were SamMoible, and it kept saying file not found, and the deodex version on here, and that one says not to flash due to issues still being worked out.

Sent from my SAMSUNG-SGH-I337 using xda premium
 

scott14719

Prolific Contributor
Dec 24, 2011
2,223
830
0

jcejohnson

Senior Member
Jul 1, 2012
101
18
0
Atlanta
menu / back button issues?

Has anyone else noticed that the menu and back capacitive buttons sometimes quit working? They light up but do not respond when tapped. A reboot always fixes it but nothing else seems to.The device is about a week old & the only mods are P-ROM and nX.
 

scott14719

Prolific Contributor
Dec 24, 2011
2,223
830
0
Has anyone else noticed that the menu and back capacitive buttons sometimes quit working? They light up but do not respond when tapped. A reboot always fixes it but nothing else seems to.The device is about a week old & the only mods are P-ROM and nX.
I've had P-Rom on my phone since it was released. I am using the first release and not the updated release, but I haven't had a single issue with any of it. Maybe its something to do with the update (was updated for the X-posed module), but I haven't heard of any other people with this problem. Good luck.
 

jcejohnson

Senior Member
Jul 1, 2012
101
18
0
Atlanta
Thanks for the info. I may Odin my way back to stock since I don't have a lot of custom stuff in place yet and didn't really baseline last week before modding.
 

xfullmetal17

Senior Member
Jan 31, 2011
628
54
0
So I'm trying to disable the Media Volume Alert by modifying android\media\AudioManager of framework.jar, as shown below, and I'm unable to get the device to fully boot after replacing the original file. It just hangs on the AT&T logo. I can get ADB so I can replace the original and then it boots.

Does my mod look like it should break it? All I did was change the level at which the dialog appears to 16 (0x10) instead of 10 (0xa). I would think that would be OK. I don't get any error recompiling either. I've tried wiping dalvik-cache between replacements, no luck. I've also tried returning false at the beginning of the 'isEarProtectLimitOn' method, no luck. I'm stuck, any ideas?

line 483
Code:
# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 60
    const-string v0, "AudioManager"

    sput-object v0, Landroid/media/AudioManager;->TAG:Ljava/lang/String;

    .line 269
    const/16 v0, 0xd

    new-array v0, v0, [I

    fill-array-data v0, :array_16

    sput-object v0, Landroid/media/AudioManager;->DEFAULT_STREAM_VOLUME:[I

    .line 2971
    const/16 v0, 0x10

    sput v0, Landroid/media/AudioManager;->EAR_PROTECT_LIMIT_INDEX_DISABLE:I

    .line 2972
[COLOR="Red"]--    const/16 v0, 0xa[/COLOR]
[COLOR="Green"]++    const/16 v0, 0x11[/COLOR]

    sput v0, Landroid/media/AudioManager;->EAR_PROTECT_LIMIT_INDEX_NORMAL:I
EDIT: This is the correct edit to disable the Loud Volume Notification. I guess my tools were out of date. After updating baksmali it worked.

Basically instead of at level 10 it triggers only at the max volume, which I think is triggered someplace else. I'll keep looking for the root.

EDIT2: In addition to the above edit the 'EAR_PROTECT_DEFAULT_INDEX' needs to be changed so it doesn't trigger at Max Volume.
Same file, line 109:
Code:
.field public static final EAR_PROTECT_DEFAULT_INDEX:I = [COLOR="Red"]0x11[/COLOR]
No moar Loudness warnings!!
If I've used the 30-step volume mod (here) do I need to modify that const/16 with whatever my max volume value is? Clearly I'd have to do the hex code, but I'm unsure on the other.

edit: Trying it, worst that happens is I have to re-copy the vanilla framework.jar

edit #2: works only changing the hex value, have to remember to do max+1 though so it doesn't buzz me at full volume though =/
 
Last edited:

~wolverine~

Senior Member
Sep 20, 2011
476
182
0
Kentucky
Well I don't know what happened but the extended power menu doesn't show up. I did everything as instructed, everything installed correctly just no EPM. I then tried both scrosler's methods to install it and both times it showed that it was installed. Still no joy. Hold power button in and I get the stock menu. Build number is showing Nottach.JDQ39.I337UCUAMDL. Any suggestions?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone