yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Parrillo:
Hi wanam, your work is really impressive.

I tried your tutorial but I couldn't. Could you help me?

I flashed my S2 I9100 with de AndersonDJ v3.3 ROM. Then I did this steps:

1)Copy the /system/app/Contacts.apk to C:\Apk_Manager_ICS\place-apk-here-for-modding

2)Execute script.bat

3)Type "22" and select option "1" = Contacts.apk

4)Type "9" to decompile

5)Open "Contacts.apk\smali\com\android\contacts\activitie s\DialtactsActivity.smali" with Editplus and change.

6)Open "Contacts.apk\smali\com\sec\android\app\dialertab\ calllog\CallLogFragment.smali" and change.

7)Type "11" to compile.

Then I choose "yes" for next two questions (something like "Is it a system apk" and "Copy the files not changed").

An unsigned file was created in "C:\Apk_Manager_ICS\place-apk-here-for-modding"

I renamed to "Contacts.apk" and copy to /system/app/

But "View All Call logs" is not default yet..

What am I doing wrong?

Thanks
[Galaxy S II Themes and Apps] wanam:
You have to remove the classes.dex from "keep" folder after the 2nd "Yes".
[Galaxy S II Themes and Apps] Parrillo:
Sorry wanam but I didn't find the "classes.dex".

It is the first time that I use an apk_tool. I don't know if I have been made correctly.

I used "Windows Search" before put 2nd YES, but I didn't find the "classes.dex".

The ROM was based on XWLP9. The only option that I have use is 9 and 11?

Thank you very much.
[Galaxy S II Themes and Apps] arkerio:
Thanx a Ton for Tutorial Brother :)

but m not even able to decompile apk

it is giving me following error

java version "1.7.0_04"

Java(TM) SE Runtime Environment (build 1.7.0_04-b20)

Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

Could Not Find C:\Users\PriyamSura\Desktop\Theme Porter\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedContacts.apk

Could Not Find C:\Users\PriyamSura\Desktop\Theme Porter\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedContacts.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\PriyamSura\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x0104057c

W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x0104057c

I: Decoding values*/* XMLs...

I: Done.

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0104057c

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)

at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)

at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)

at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)

at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)

at brut.apktool.Main.cmdDecode(Main.java:128)

at brut.apktool.Main.main(Main.java:65)
[Galaxy S II Themes and Apps] LiLChris06:
Thanks this very simple to do. :)

Not having to remove it from logsprovider is a plus!
[Galaxy S II Themes and Apps] engloa:
hi wanam

can you please update this for 404 based roms
[Galaxy S II Themes and Apps] .malo2000:
Up Up :good:
[Galaxy S II Themes and Apps] jebuchanan:
Will this work with GB roms?
[Galaxy S II Themes and Apps] .malo2000:
On Gb and 4.0.3 roms yes ;) on fw 4.0.4 no :'(

Inviato dal mio GT-I9100 usando Tapatalk
[Galaxy S II Themes and Apps] wanam:
It's the same mod for 4.0.4, you can compare with my 4.0.4 files.
[Galaxy S II Themes and Apps] jebuchanan:
For those of us that haven't programmed for 25 years and are out of the loop so to speak, could you make this a flashable mod?
[Galaxy S II Themes and Apps] .malo2000:
Ok ;) I have only to change the second file and now it's perfect ;)
[Android Q&A, Help & Troubleshooting] nice:
Does anyone know, with which device the 2.4 XL could be compatible, so that I could root it?

When searching for its real name,I can not find any useful information, but if I would know, what labeled tabet xy is behind, it would be much easier for me.

A firmware update is available here:

http://downloads.pointofview-online.com/Drivers/8 inch Protab2.4XL TAB-PROTAB2.4XL Firmware Upgrade/

If therein is anywhere the information, I am searching.
[Android Q&A, Help & Troubleshooting] Tirofog:
I'm installing a custom rom on a friend's Huawei U8160 and have tried the Smartlucky and Cyanogen, opting to go with the latter. The Smart has an e-mail widget which I'm trying to install with the Cyano but no matter what I do it won't work. The Smart has two apks, one for widget and one for the mail app. I've installed them both via adb, also from a backup and then finally I deleted the e-mail apk in the Cyano rom and inserted the two from the Smart rom and then re-flashed Cyano. I've also fixed permissions, wiped everything but always get a force close with the e-mail app and 'problem loading widget' when I try to add to home screen. I'm trying to keep everything on the phone simple and would appreciate any help sorting this.
[Android Q&A, Help & Troubleshooting] Tirofog:
The app opens and authenticates with server but then force closes - logcat is 'invalid package identifier' which as far as I can make out is to do with the signature, although I haven't modded the apk.. :confused: help me out here guys pls..
[HTC Amaze 4G] heyodee:
EDIT: DOES NOT WORK

For those with ICS that neeeds DSP

Thanks devgee for post
[HTC Amaze 4G] glacierguy:
Thanks... I also noticed my old version also worked :)

Sent from my HTC Ruby running Sense 3.6
[HTC Amaze 4G] eggydrums:
I had this app back when I had my g2 with ics it was so much better, ics interface is awesome

Sent from my HTC Amaze 4G using Xparent Green Tapatalk 2
[HTC Amaze 4G] superevilllama:
Hmmm. I installed and got force closes when trying to enable different settings. Tried putting in /system/app and same thing happens.
[HTC Amaze 4G] glacierguy:
It's working good for me. Mean combo when used with poweramp

Edit... Nvm... I see what ya mean now

Sent from my HTC Ruby running Sense 3.6
[HTC Amaze 4G] heyodee:
It does force close if you install it by clicking.

However, I renamed the file and pushed it to /system/app

All works well now
[HTC Amaze 4G] superevilllama:
Right. See above. I installed it that way as well and had the same issue. It says that right in my post.
[HTC Amaze 4G] heyodee:
Sorry you are having this problem mate.... Maybe you can go with v1. Not sure why it FCs.
[HTC Amaze 4G] superevilllama:
Its cool. Ill try it. Either way thanks for posting them!
[HTC Amaze 4G] heyodee:
Updated....

Version 2 crashes

Version 1 does not crash but has no effect on audio as far as I can tell

This sucks
[HTC Amaze 4G] glacierguy:
Shouldn't there be an odex file to go with it? I'm guessing that's why its crashing

Sent from my HTC Ruby running Sense 3.6
[HTC Amaze 4G] kishon120:
http://xdaforums.com/showpost.php?p=21510142&postcount=14

It says you have to flash through cwm to get it working right . The version in this link also includes lib files I think .
[HTC Amaze 4G] superevilllama:
Ahh you are right. A lot of extr files. I will try it.

EDIT: nope, still crashes even after flashing.
[HTC Amaze 4G] stratax:
it keeps force closes for me

edit: tried the one from the cyanogenmod post and it still FC lame
[HTC Amaze 4G] Double0EK:
It does the same for me...FC = Fail Constantly

Wait....I sent this with Tapatalk?
[HTC Amaze 4G] EclipzeRemix:
No it means force closes silly :p

Sent From HTC Amaze Speed Rom 2.0.0 ICS Sensless Alpha 1
[HTC Amaze 4G] eggydrums:
Just flashed that, no problems so far, thanks for posting

Sent from my HTC_Amaze_4G using Xparent Green Tapatalk 2
[HTC Amaze 4G] kishon120:
Its still force closes on me . Going to try one more time with this version http://xdaforums.com/showpost.php?p=21013174&postcount=6 This was the first one i tried but never flashed through cwm .
[HTC Amaze 4G] morrislee:
No odex should be required as it should contain classes.dex.

odexed systems are allowed to have deodexed apps. If you look closely, framework-res.apk and the com.htc.resources.apk both are not odexed
[HTC Amaze 4G] electronicrice:
Try this one. I extracted it from CM9 nightly for Galaxy S 2 and it's working on my ICS rom. Just install like a normal apk
[HTC Amaze 4G] kishon120:
Im trying it now . Crossing fingers hoping it works.:eek::eek:

Edit: Still a no go. i installed like a regular apk ... NO FC :) :) . butttt it has no effect on audio whatsoever . i even made it a system app with the correct permissions . Restarted my phone and the same thing happened . I think this version is missing lib files .
[HTC Amaze 4G] heyodee:
Tried this, no force closes...

However, no effects either.

Can you post the lib file as well? /system/lib/soundfx/libcyanogen-dsp.so

Thanks
[HTC Amaze 4G] eggydrums:
Hey guys gonna try the one you flash through recovery on mikes new version of his Rom, will report back:D

Edit: flashing the one in the op with arhd 2.1.0 works, it fc'd while playing music through the speaker while changing the settings on the app, but other than that it works

Sent from my HTC_Amaze_4G using Xparent Green Tapatalk 2
[HTC Amaze 4G] :
To be honest, Poweramp has been blowing me away. Bangs my car component speakers, but also crystal clear. Plus, u can pick and choose which folder libs to pull the music from!

Who needs dsp or beats

Sent from my HTC Ruby running Sense 3.6
[HTC Amaze 4G] kishon120:
I do . Dsp provides so much bass its ridiculous . I used it with power amp all the time . Ever try turning the preset amp down ... Bass set to moderate or extreme ?? You're missing out lol
[HTC Amaze 4G] :
No I'm not. Poweramp has an eq and a cleaner bass boost. I used dsp for quite some time... Sounds like YOU are missing out

All these girls excited Oooo ya know they like it I'm so icy, so icy Girl don't try to fight it All yo friends invited I'm so icy, so icy
[HTC Amaze 4G] kishon120:
Lmaoooo true .
[HTC Amaze 4G] stratax:
used to love poweramp before having Sense. i cant stand having more than one of the same app (two/three camera apps, etc) just makes the phone slower and bloated. i love the interface on the htc music, poweramp looks like one of the skins from winamp from early 2000 lol. dsp is nice because it works with everything. im sure there is a way to get it to work :p
[HTC Amaze 4G] :
I just froze my HTC music apk with Titanium Backup. I also hate redundant apps.

Sent from my iced out HTC Ruby
[HTC Amaze 4G] adslee:
+1, Power Amp is hands-down, the best music app I've ever used
[HTC Amaze 4G] eggydrums:
Man guys couldn't get it to work not even on a dodexed rom, and yeah poweramp is awesome!

Amaze 4G ENERGY ICS
[HTC Amaze 4G] chrispaw:
you probably need the libs too. ill take a look.
[HTC Amaze 4G] chrispaw:
try pushing these to their proper folders.

(not a flashable file, use 7zip to extract).
[HTC Amaze 4G] NuclearBier:
I tried this but both files already existed and it still seems to have no effect on my sound. It doesn't force close or anything, and I can adjust all the settings but nothing changes. The sound is still very quiet. I even set the effects to be extreme, but once again nothing. I purchased volume+ for my Transformer but would rather use this if I could get it to work. Thanks for your work!
[HTC Amaze 4G] kishon120:
Bump: anything ??
[HTC Amaze 4G] superevilllama:
bumpity bump

Any luck guys? I would love this to work with stock odexed ICS
[HTC Amaze 4G] kishon120:
Well at least it works in Energy Rom
[HTC Amaze 4G] NRGZ28:
Yep.. was just gonna mention that.
[HTC Amaze 4G] Y2Ne1:
That's why Your our ANDROID GOD you be effing ish up then be like BAM B eat it hahahahaha your a BEAST NRG :D
[HTC Amaze 4G] NRGZ28:
LOL :P
[HTC Amaze 4G] zerocrack:
I have the last energy rom, 6/21(stock) and DPS/beat does not work. Am i missing something? I do not have enough post to post in development section :(
[HTC Amaze 4G] xlxcrossing:
Anyone wanna try out my zip. It works great!
[HTC Amaze 4G] Ventus_zx:
Does this work? Guess I'll try it
[HTC Amaze 4G] xDC23:
Thank YOU!! i've been looking for a good music player since the stock ones on these roms have just stopped working on me or became really laggy. Poweramp is awesome though!! :good:
[HTC Amaze 4G] jaytee20:
I was getting fc's in dsp on speed rom7.8 and this seemed to clear or up.:thumbup:
[HTC Amaze 4G] blindshooter:
thanks bro.. hope this work on my phone
[Captivate General] YogurtSlinger:
Try to wait out the bootloop, if you manage to get your phone booted (may take up to 4 hours) download terminal from the market, and use the command: Reboot download, then reflash to stock using heimdal

If you are unable to get your phone into download mode, you will need Jtag or unbrickable mod. (I had this problem, My phone booted after 2 hours from powering it on. since this happened while flashing back to stock, I was unrooted, and had to wait a total of 7 hours, through 3 reboots to get my phone rooted and into download mode.) http://xdaforums.com/showthread.php?t=1481526

does this mean a jig wont work on BOOTLOOPED Captivate?
[Captivate General] Red_81:
1. Questions go in the Q&A

2. A jig should work on all but the Hard Brick
[Captivate General] RootTheMachine:
Okay dude, you've already posted several threads about your bootloop. You also PM'd me. I realize it's frustrating to be in a bootloop, but really nothing can be said until you get your jig and test it out. Jigs usually work where nothing else does, but there's a small chance it won't work. That post you quoted doesn't mention a jig at all, so I would assume they didn't use one. Oh, and as stated above, this belongs in Q&A (like most of the threads that get posted here...)
[Samsung Galaxy Nexus] CMNein:
For you nightly flashers you may have noticed scripts in your system/addon.d folder. Called 50-cm.sh, 70-gapps.sh, and 71-gapps-faceunlock.sh. The gapps scripts are not part of CM but CM is able to utilize these scripts, found in most Gapps packages.

These scripts b/u your hosts, Gapps, and Faceunlock files/apps/libs so you don't have to reflash them with every nightly. If you happen to have other apps installed as system/apps that are NOT part of the CM9 zip, then you must either restore them after every flash, or reinstall. In my case there were libs that I had to copy back to system/lib after every flash.

Easy solution:

-copy 50-cm.sh

-rename to 91-cm.sh

-place file back into addon.d

-edit the following bolded/underlined/red text to your needs, the text below is merely the contents of the file you just copied,

no need to copy/paste from here

:

#!/sbin/sh
#
# /system/addon.d/[B][U][COLOR="Red"]50-cm.sh[/COLOR][/U][/B]
# During a CM9 upgrade, this script backs up	/sy	stem/etc/hosts,
# /system is formatted and reinstalled, then	the	file is restored.
#

. /tmp/backuptool.functions

list_files() {
cat <<EOF
[B][U][COLOR="Red"]etc/hosts[/COLOR][/U]	[/B]
EOF
}

case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT	; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLAC	EMEN	T"
[ -f "$C/$S/$FILE" ] && restore_file $	S/"$	FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac

1. change 50-cm.sh to 91-cm.sh,

2. delete etc/hosts and:

3. Insert app/yourappname.apk (pay attention to

actual

file names),

4. Insert lib/yourappname.so (if applicable)

5. You can reference the 70-Gapps.sh script to get a feel for how to lay things out.

The script will only look in the /system partition so you only require the partial path: app, bin, lib, etc....

Thanks to: http://xdaforums.com/showpost.php?p=24409231&postcount=2107 for the inspiration
[Samsung Galaxy Nexus] CMNein:
...........
[Samsung Galaxy Nexus] blowtorch:
this is the best thanks so much
[Samsung Galaxy Nexus] blowtorch:
it seems like 91-cm.sh will only delete files in the "post-restore" section only if you have selected to back up at least one app in the "cat <<EOF" section first.

is there a way to modify the script for removing files only without having to back up at least one app first?

thanks
[Samsung Galaxy Nexus] CMNein:
Not sure. I wonder if you put it under the pre-backup stub (?)
[Samsung Galaxy Nexus] blowtorch:
I think the script ceases to continue to run if there is no file(s) listed in the EOF section?

I will play around with it some more using your suggestion when I get the chance and I'll post the results as well ...

I really don't have a need to backup anything prior to flashing a new nightly but, I really like removing the bloat which consists of basically the same files that you've listed. For now however I have moved Apex launcher into the system/app and am backing that up with this script in order to get the remove files function to work.
[Samsung Galaxy Nexus] CMNein:
Or you could add it to the Gapps script. I prefer to run a separate one, but if you don't have any additional files you want to back up the existing one would work just fine.
[Samsung Galaxy Nexus] blowtorch:
you can use the script to only delete files without backup as well but, you need to have a entry under the "list_files cat EOF section". i put a fake entry in the EOF section "app/xxx.apk" and even though that xxx.apk doesn't exist the rest of the script functions and it deletes the files that i want after flashing a new nightly.

thanks for your help CMNein

this is the exact script that i use below with the official cm10 nightlys

#blowtorch custom post flash auto delete script

. /tmp/backuptool.functions

list_files() {
cat <<EOF
[COLOR="red"]app/xxx.apk[/COLOR]
EOF
}

case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
[COLOR="Red"]rm system/app/MagicSmokeWallpapers.apk
rm system/app/PhaseBeam.apk
rm system/app/RomManager.apk
rm system/app/VisualizationWallpapers.apk
rm system/app/HoloSpiralWallpaper.apk
rm system/app/LiveWallpapers.apk
rm system/app/CMWallpapers.apk
rm system/app/LiveWallpapersPicker.apk
rm system/media/audio/ui/camera_click.ogg
rm system/media/audio/ui/camera_focus.ogg[/COLOR]
;;
esac
[Samsung Galaxy Nexus] Guto ViP:
Thank you! I will use this for backup Cerberus and Avast Anti-thief! :D
[Samsung Galaxy Nexus] jumpers:
hi, why is it needed to be renamed 91-cm.sh ? what issues if leaving 50-cm.sh ?

(sorry for my poor english.)
[Samsung Galaxy Nexus] CMNein:
You only have to rename it if you want it as a separate script. If you're just editing the existing script then don't change the name.
[Samsung Galaxy Nexus] Swilly:
Hi,

I have tried this, copying to 91-cm.sh with the following contents

Also set the permissions for this in the addon.d directory to 755 as per 50-cm.sh

#!/sbin/sh

#

# /system/addon.d/91-cm.sh

# During a CM10 upgrade, this script backs up /system/etc/hosts,

# /system is formatted and reinstalled, then the file is restored.

#

. /tmp/backuptool.functions

list_files() {

cat <<EOF

media/audio/ringtones/Viva La Vida Live.m4a

media/audio/ringtones/Poison.mp3

media/audio/ringtones/Wife Warning.mp3

media/audio/notifications/Dragon Roar.mp3

media/audio/notifications/Evil Laugh.mp3

media/audio/notifications/Im Stuck N Ur Pocket.mp3

media/audio/notifications/Woody WoodPecker.mp3

media/audio/notifications/Yoda.mp3

media/audio/notifications/Yogi Bear Message.mp3

media/audio/alarms/James Brown - I feel good.mp3

EOF

}

case "$1" in

backup)

list_files | while read FILE DUMMY; do

backup_file $S/"$FILE"

done

;;

restore)

list_files | while read FILE REPLACEMENT; do

R=""

[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"

[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"

done

;;

pre-backup)

# Stub

;;

post-backup)

# Stub

;;

pre-restore)

# Stub

;;

post-restore)

# Stub

;;

esac

Now after running my last update using of the hellybean ROM, the files were not restored and the 91-sh.cm file was deleted.

What have I got wrong ??

Thanks

Simon
[Samsung Galaxy Nexus] CMNein:
Your script looks good. Not all ROMs support it however, even if they're CM based.
[Samsung Galaxy Nexus] jumpers:
i think that also files with spaces are not allowed (not tested yet), try renaming your files with underscores ans "-", and update your script.
[Samsung Galaxy Nexus] CMNein:
Derp, totally missed that. :o
[Samsung Galaxy Nexus] jumpers:
it seems that this tool is not more working on CM10.1. :(
[Samsung Galaxy Nexus] CMNein:
Backup works, but removal doesn't on 10.1 yet, although it's been a while since I've bothered trying.
[Samsung Galaxy Nexus] CMNein:
Hmmm...no luck getting rm command to work on 10.1 yet, any idears? Because n00b.
[Samsung Galaxy Nexus] jumpers:
see precedent comment.

envoyé a partir de ma p5100 cyanogenmodisee...
[Samsung Galaxy Nexus] CMNein:
:highfive:
[Samsung Galaxy Nexus] CMNein:
Removal works on 10.1, just not the same way it did on CM10. Edited Post #4. A couple of smarter people pointed out my d3rp in the N4 CM thread.
[Samsung Galaxy Nexus] billyjed:
Win with this!

Sent from my Apple IIe