Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD][StunnerB4/4.2/4.3/5/.19/.26|AOSPv6/7/8|CM9v2/3] Recent Apps Mod [28/4]

OP matius44

16th April 2012, 01:13 AM   |  #101  
matius44's Avatar
OP Senior Member
Sunderland
Thanks Meter: 1,077
 
1,798 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by mfractal

You had a battery % mod before right? Whatever happened to it?

Sent from my CM9 powered Galaxy Note

Yea it was for the first release of CM9, and in imilka's version I thought there are options to change the battery type or am I wrong??

EDIT: I mean in Settings tab
16th April 2012, 01:16 AM   |  #102  
mfractal's Avatar
Senior Member
Flag Londrina
Thanks Meter: 522
 
1,673 posts
Join Date:Joined: Aug 2009
Donate to Me
More
There is such an option (check out the screen shot I posted) but I don't like the way it looks. Yours was cooler :)

Sent from my CM9 powered Galaxy Note
16th April 2012, 01:27 AM   |  #103  
matius44's Avatar
OP Senior Member
Sunderland
Thanks Meter: 1,077
 
1,798 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by mfractal

There is such an option (check out the screen shot I posted) but I don't like the way it looks. Yours was cooler :)

Sent from my CM9 powered Galaxy Note

Actually it was Nick's work in the first place only problem with it is that battery mod is in SystmUI.apk, so is also Recent Apps mod, so it's either one of them or both of them together! What do you think?
Last edited by matius44; 16th April 2012 at 08:08 AM.
The Following 2 Users Say Thank You to matius44 For This Useful Post: [ View ]
16th April 2012, 04:35 AM   |  #104  
mfractal's Avatar
Senior Member
Flag Londrina
Thanks Meter: 522
 
1,673 posts
Join Date:Joined: Aug 2009
Donate to Me
More
Quote:
Originally Posted by matius44

Actually it was neck's work in the first place only problem with it is that battery mod is in SystmUI.apk, so is also Recent Apps mod, so it's either one of them or both of them together! What do you think?

I know I'd love to have them both together :)
16th April 2012, 08:09 AM   |  #105  
matius44's Avatar
OP Senior Member
Sunderland
Thanks Meter: 1,077
 
1,798 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by mfractal

I know I'd love to have them both together :)

Will see probably will release a test version and see how the demand for it
Last edited by matius44; 16th April 2012 at 08:11 AM.
The Following User Says Thank You to matius44 For This Useful Post: [ View ]
16th April 2012, 08:19 AM   |  #106  
matius44's Avatar
OP Senior Member
Sunderland
Thanks Meter: 1,077
 
1,798 posts
Join Date:Joined: Feb 2011
EDIT: Sorry network timeout
16th April 2012, 03:38 PM   |  #107  
mfractal's Avatar
Senior Member
Flag Londrina
Thanks Meter: 522
 
1,673 posts
Join Date:Joined: Aug 2009
Donate to Me
More
Quote:
Originally Posted by matius44

Will see probably will release a test version and see how the demand for it

You got your first beta tester right here

Sent from my CM9 powered Galaxy Note
16th April 2012, 03:41 PM   |  #108  
nickshertzer's Avatar
Senior Member
Thanks Meter: 597
 
1,125 posts
Join Date:Joined: Dec 2006
More
I think that there may be a way to "inject" the needed changes into CM9 without replacing the entire SystemUI.apk

Check out this thread:
[Framework MOD][Update 2.27.12]All ICS ROMS

Checking updater-script shows all the interesting stuff is happening in "installtheme.sh"

Code:
show_progress(0.500000, 0);
ui_print("");
ui_print("True Blue ICS Theme");
ui_print("");
ui_print("Deleting Dalvik and Cache");
mount("ext4", "EMMC", "/dev/block/platform/s3c-sdhci.0/by-name/userdata", "/data");
delete_recursive("/data/dalvik-cache/");
delete_recursive("/cache/dalvik-cache/");
unmount("/data");
ui_print("");
ui_print("Intalling Theme");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
package_extract_dir("vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
ui_print("");
ui_print("Done! Reboot");
Here is the installtheme.sh
Code:
#!/sbin/sh
# Copyright VillainROM 2011. All Rights Reserved
# cleanup from last time
[ -d /sdcard/vrtheme-backup ] && rm -r /sdcard/vrtheme-backup

# we need to first go through each file in the "app" folder, and for each one present, apply the modified theme to the APK
# let us copy each original APK here first. 
echo "Processing /system/app/"
busybox mkdir -p /sdcard/vrtheme-backup/system/app
busybox mkdir -p /sdcard/vrtheme/apply/system/app
cd /sdcard/vrtheme/system/app/
for f in $(ls)
do
  echo "Processing $f"
  cp /system/app/$f /sdcard/vrtheme/apply/system/app/
  cp /system/app/$f /sdcard/vrtheme-backup/system/app/
done
echo "Backups done for system apps"

# repeat for /system/framework now


[ -d /sdcard/vrtheme/system/framework ] && framework=1 || framework=0

if [ "$framework" -eq "1" ]; then
echo "Processing /system/framework"
busybox mkdir -p /sdcard/vrtheme-backup/system/framework
busybox mkdir -p /sdcard/vrtheme/apply/system/framework
cd /sdcard/vrtheme/system/framework
for f in $(ls)
do
  echo "Processing $f"
  cp /system/framework/$f /sdcard/vrtheme/apply/system/framework/
  cp /system/framework/$f /sdcard/vrtheme-backup/system/framework/
done
echo "Backups done for frameworks"
fi

# repeat for /data/app now


[ -d /sdcard/vrtheme/data ] && dataapps=1 || dataapps=0

if [ "$dataapps" -eq "1" ]; then
echo "Processing /data/app/"
busybox mkdir -p /sdcard/vrtheme-backup/data/app
busybox mkdir -p /sdcard/vrtheme/apply/data/app
cd /sdcard/vrtheme/data/app/
for f in $(ls)
do
  echo "Processing $f"
  cp /data/app/$f /sdcard/vrtheme/apply/data/app/
  cp /data/app/$f /sdcard/vrtheme-backup/data/app/
done
echo "Backups done for data apps"
fi

# for each of the system apps needing processed 
cd /sdcard/vrtheme/apply/system/app/
for f in $(ls)
do
  echo "Working on $f"
  cd /sdcard/vrtheme/system/app/$f/
  /sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/system/app/$f *
done
echo "Patched system files"

if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/
for f in $(ls)
do
  echo "Working on $f"
  cd /sdcard/vrtheme/data/app/$f/
  /sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/data/app/$f *

done
echo "Patched data files"
fi

if [ "$framework" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/framework
for f in $(ls)
do
  echo "Working on $f"
  cd /sdcard/vrtheme/system/framework/$f/
  /sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/system/framework/$f *
done
echo "Patched framework files"
fi

# and now time to zipalign
cd /sdcard/vrtheme/apply/system/app/
busybox mkdir aligned
for f in $(ls)
do
  echo "Zipaligning $f"
  /sdcard/vrtheme/zipalign -f 4 $f ./aligned/$f
done

if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/
busybox mkdir aligned
for f in $(ls)
do
  echo "Zipaligning $f"
  /sdcard/vrtheme/zipalign -f 4 $f ./aligned/$f
done
fi

if [ "$framework" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/framework/
busybox mkdir aligned
for f in $(ls)
do
  echo "Zipaligning $f"
  /sdcard/vrtheme/zipalign -f 4 $f ./aligned/$f
done
fi

# time to now move each new app back to its original location
cd /sdcard/vrtheme/apply/system/app/aligned/
cp * /system/app/
chmod 644 /system/app/*
if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/aligned/
cp * /data/app/
chmod 644 /data/app/*
fi
if [ "$framework" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/framework/aligned/
cp * /system/framework/
chmod 644 /system/framework/*
fi

# Do not remove the credits from this, it's called being a douche
echo "VillainTheme is done"
# we are all done now
Maybe someone needs to contact VillainTheme/Brainmaster or demo23019 and figure out how we can leverage this awesome power. demo23019 uses it to change out 115 PNGs from the framework-res.apk on the fly, but from the looks of the script, it should be able to do a lot more...
Last edited by nickshertzer; 16th April 2012 at 03:44 PM.
The Following User Says Thank You to nickshertzer For This Useful Post: [ View ]
16th April 2012, 04:07 PM   |  #109  
Member
Flag Milano
Thanks Meter: 2
 
35 posts
Join Date:Joined: Jan 2012
More
Thanks, flashed chrome mod on stunner 5 and works fine.
Last edited by giogroove; 16th April 2012 at 04:12 PM. Reason: error typing'..
16th April 2012, 10:39 PM   |  #110  
Junior Member
Flag Västerås
Thanks Meter: 0
 
8 posts
Join Date:Joined: Apr 2012
More
Have FC on my Gnote. Says "Interface has unfortunately stopped".

Anyone know what could be wrong?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes