[Galaxy S II Android Development] Troubadour666:
installtheme script trouble with stanTRC recovey

Hi ,

little repport about aroma installtheme.sh script with new stanTRC .

log from install with 8.43v76 (old recovery) , from int-card install aroma with vrtheme process.

after flash, i reboot recovery again, and plug USB to see log :

vrtheme-backup folder is present in int-card at end of process and vrtheme folder doesnt exist

vrtheme-backup folder is made during installtheme.sh script., call in updater-scrip.

vrtheme folder is created during updater-script execution

at end of updater-script, we have delete /sdcard/vrtheme/ folder, so its normal no exist.

AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers

ROM Name : NEATROM ROM AROMA
ROM Version : 4.1.2 XWMS3
ROM Author : Jeetu
Device : Samsung Galaxy S2 I9100
Start at : Sun Apr 13 14:41:26 2014

*=========================================*
NeatRom AROMA BY JEETU

NEATROM BY SALE
*=========================================*
unmount of /system failed; no such volume
unmount of /preload failed; no such volume
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/rm] with 3 args
Extract: /system/media/audio/ui/Lock.ogg
Extract: /system/media/audio/ui/Unlock.ogg
Extract: /data/sec_data/SystemUI.apk
*==========LAUNCHER===============*
*==========DUALBOOT INSTALL===============*
*=============SystemUi Mod=================*
Installing s4 23 bottom toggle
Extract: /system/framework/lidroid-res.apk
*===========KEYBOARS===============*
*==========DUALBOOT INSTALL===========*
*=========BACKGROUND===============*

> Modify files
*================STORE==================*
*===========DUALBOOT INSTALL===============*

*=========================================*
Install One Piece Ace
Extract: /sdcard/vrtheme/preload/symlink/system/app/SystemUI.apk/res/drawable-hdpi/Thumbs.db
Extract: /sdcard/vrtheme/preload/symlink/system/app/SystemUI.apk/res/drawable-hdpi/back_ground.png
> Modify files
*=============Weather=================*
*==========DUALBOOT VERSION==============*

Extract: /sdcard/vrtheme/cleanup.sh
Extract: /sdcard/vrtheme/zip
Extract: /sdcard/vrtheme/zipalign
[COLOR="Red"] about to run program [/sdcard/vrtheme/installtheme.sh] with 1 args
Processing /preload/symlink/system/app/
[/COLOR] Processing SystemUI.apk
Backups done for sec_data apps
Working on SystemUI.apk
updating: res/drawable-hdpi/back_ground.png (deflated 1%)
adding: res/ (stored 0%)
adding: res/drawable-hdpi/ (stored 0%)
adding: res/drawable-hdpi/Thumbs.db (deflated 8%)
Patched system files
Zipaligning SystemUI.apk
Zipaligning aligned
Unable to open 'aligned' as zip archive
VillainTheme is done
about to run program [/tmp/create_preload_symlinks] with 1 args
ln: /system/app/AccuweatherDaemon.apk: File exists
ln: /system/app/AccuweatherWidget.apk: File exists
ln: /system/app/AccuweatherWidget_Main.apk: File exists
ln: /system/app/AnalogClockSimple.apk: File exists
ln: /system/app/AnalogClockUnique.apk: File exists
ln: /system/app/ApplicationsProvider.apk: File exists
ln: /system/app/BCService.apk: File exists
ln: /system/app/BadgeProvider.apk: File exists
ln: /system/app/BasicLiveWallpapers.apk: File exists
ln: /system/app/CapabilityManagerService.apk: File exists
ln: /system/app/CertInstaller.apk: File exists
ln: /system/app/ChromeBookmarksSyncAdapter.apk: File exists
ln: /system/app/ClockPackage.apk: File exists
ln: /system/app/ContextAwareService.apk: File exists
ln: /system/app/DefaultContainerService.apk: File exists
ln: /system/app/DigitalClock.apk: File exists
ln: /system/app/Divx.apk: File exists
ln: /system/app/DrmProvider.apk: File exists
ln: /system/app/DualClockAnalog.apk: File exists
ln: /system/app/DualClockDigital.apk: File exists
ln: /system/app/FmRadio.apk: File exists
ln: /system/app/GMS_Maps.apk: File exists
ln: /system/app/Gmail.apk: File exists
ln: /system/app/GmsCore.apk: File exists
ln: /system/app/GoogleBackupTransport.apk: File exists
ln: /system/app/GoogleCalendarSyncAdapter.apk: File exists
ln: /system/app/GoogleContactsSyncAdapter.apk: File exists
ln: /system/app/GoogleLoginService.apk: File exists
ln: /system/app/GooglePartnerSetup.apk: File exists
ln: /system/app/GoogleSearchWidget.apk: File exists
ln: /system/app/GoogleServicesFramework.apk: File exists
ln: /system/app/Hangouts.apk: File exists
ln: /system/app/InputDevices.apk: File exists
ln: /system/app/InputEventApp_U1_EUR_OPEN.apk: File exists
ln: /system/app/JobManager.apk: File exists
ln: /system/app/KeyChain.apk: File exists
ln: /system/app/Keystring_factory_JBUP.apk: File exists
ln: /system/app/LogsProvider.apk: File exists
ln: /system/app/Microbes.apk: File exists
ln: /system/app/MtpApplication.apk: File exists
ln: /system/app/Music2.apk: File exists
ln: /system/app/MusicFX.apk: File exists
ln: /system/app/MusicPlayer.apk: File exists
ln: /system/app/NeatEfs.apk: File exists
ln: /system/app/NetworkLocation.apk: File exists
ln: /system/app/OceanWeather.apk: File exists
ln: /system/app/PackageInstaller.apk: File exists
ln: /system/app/Phone_Util_U1_EUR_OPEN.apk: File exists
ln: /system/app/Phonesky.apk: File exists
ln: /system/app/PlusOne.apk: File exists
ln: /system/app/PreloadInstaller.apk: File exists
ln: /system/app/ProgramMonitor.apk: File exists
ln: /system/app/SamsungCamera.apk: File exists
ln: /system/app/SamsungIME.apk: File exists
ln: /system/app/SecBluetooth.apk: File exists
ln: /system/app/SecBrowser.apk: File exists
ln: /system/app/SecCalculator2.apk: File exists
ln: /system/app/SecCalendar.apk: File exists
ln: /system/app/SecCalendarProvider.apk: File exists
ln: /system/app/SecContacts.apk: File exists
ln: /system/app/SecContactsProvider.apk: File exists
ln: /system/app/SecDownloadProvider.apk: File exists
ln: /system/app/SecDownloadProviderUi.apk: File exists
ln: /system/app/SecFactoryPhoneTest.apk: File exists
ln: /system/app/SecGallery2.apk: File exists
ln: /system/app/SecLauncher2.apk: File exists
ln: /system/app/SecLiveWallpapersPicker.apk: File exists
ln: /system/app/SecMediaProvider.apk: File exists
ln: /system/app/SecMms.apk: File exists
ln: /system/app/SecNoteMyFiles.apk: File exists
ln: /system/app/SecOmaDownloadProvider.apk: File exists
ln: /system/app/SecPhone.apk: File exists
ln: /system/app/SecSettings.apk: File exists
ln: /system/app/SecSettingsProvider.apk: File exists
ln: /system/app/SecTelephonyProvider.apk: File exists
ln: /system/app/SecWallpaperChooser.apk: File exists
ln: /system/app/SecurityProvider.apk: File exists
ln: /system/app/SelfTestMode_U1_EUR_OPEN.apk: File exists
ln: /system/app/SerialNumberLabelIndicator_JBUP.apk: File exists
ln: /system/app/SetupWizard.apk: File exists
ln: /system/app/SharedStorageBackup.apk: File exists
ln: /system/app/SimpleAlarmClock.apk: File exists
ln: /system/app/SmartcardService.apk: File exists
ln: /system/app/Street.apk: File exists
ln: /system/app/SystemInfo_U1_EUR_OPEN.apk: File exists
ln: /system/app/SystemUI.apk: File exists
ln: /system/app/TwDVFSApp.apk: File exists
ln: /system/app/UpdateMeNeatRom.apk: File exists
ln: /system/app/UserDictionaryProvider.apk: File exists
ln: /system/app/VideoPlayer.apk: File exists
ln: /system/app/VoiceRecorder.apk: File exists
ln: /system/app/WeatherWall.apk: File exists
ln: /system/app/YouTube.apk: File exists
ln: /system/app/lcdtest_U1_EUR_OPEN.apk: File exists
ln: /system/app/minimode-res.apk: File exists
ln: /system/app/serviceModeApp_U1_EUR_OPEN.apk: File exists
ln: /system/app/shutdown_JBUP.apk: File exists
run_program: child exited with status 1
about to run program [/sbin/rm] with 3 args
about to run program [/sbin/busybox] with 3 args
about to run program [/sbin/busybox] with 3 args
about to run program [/sbin/busybox] with 3 args
*=========================================*

NeatRom AROMA By JEETU

*=========================================*
*=========================================*
Done
*=========================================*
script result was [*=========================================*]

Installer Sucessfull (Status 0)

End at : Sun Apr 13 14:41:36 2014

I reboot recovery, flash v106 and reboot recovey to re-test aroma.

with v106 , i remove line that delete /sdcard/vrtheme/ folder during process to see if exist before to be deleted ;)

i delete manulay all existenZ vrtheme folder in int / ext cards too and try before re-test.

at end of process i reboot recovery and see log:

vrtheme folder exist in sdcard , it countains all stuff to prepare the theming process. :good:

but vrtheme-backup folder isnt in /sdcard/ like in V76 , i think installtheme.sh havent created it during process.

AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers

ROM Name : NEATROM ROM AROMA
ROM Version : 4.1.2 XWMS3
ROM Author : Jeetu
Device : Samsung Galaxy S2 I9100
Start at : Sun Apr 13 14:54:49 2014

*=========================================*
NeatRom AROMA BY JEETU

NEATROM BY SALE
*=========================================*
unmount of /system failed; no such volume
unmount of /preload failed; no such volume
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/mount] with 3 args
mount: mounting /dev/block/mmcblk0p11 on /sdcard failed: Device or resource busy
run_program: child exited with status 255
about to run program [/sbin/mount] with 3 args
about to run program [/sbin/rm] with 3 args
Extract: /system/media/audio/ui/Lock.ogg
Extract: /system/media/audio/ui/Unlock.ogg
Extract: /data/sec_data/SystemUI.apk
*==========LAUNCHER===============*
*==========DUALBOOT INSTALL===============*
*=============SystemUi Mod=================*
Installing s4 23 bottom toggle
Extract: /system/framework/lidroid-res.apk
*===========KEYBOARS===============*
*==========DUALBOOT INSTALL===========*
*=========BACKGROUND===============*

> Modify files
*================STORE==================*
*===========DUALBOOT INSTALL===============*

*=========================================*
Install One Piece Ace
Extract: /sdcard/vrtheme/preload/symlink/system/app/SystemUI.apk/res/drawable-hdpi/Thumbs.db
Extract: /sdcard/vrtheme/preload/symlink/system/app/SystemUI.apk/res/drawable-hdpi/back_ground.png
> Modify files
*=============Weather=================*
*==========DUALBOOT VERSION==============*

Extract: /sdcard/vrtheme/cleanup.sh
Extract: /sdcard/vrtheme/zip
Extract: /sdcard/vrtheme/zipalign
[COLOR="Red"] about to run program [/sdcard/vrtheme/installtheme.sh] with 1 args
run_program: execv failed: Permission denied
run_program: child exited with status 1
[/COLOR] about to run program [/tmp/create_preload_symlinks] with 1 args
ln: /system/app/AccuweatherDaemon.apk: File exists
ln: /system/app/AccuweatherWidget.apk: File exists
ln: /system/app/AccuweatherWidget_Main.apk: File exists
ln: /system/app/AnalogClockSimple.apk: File exists
ln: /system/app/AnalogClockUnique.apk: File exists
ln: /system/app/ApplicationsProvider.apk: File exists
ln: /system/app/BCService.apk: File exists
ln: /system/app/BadgeProvider.apk: File exists
ln: /system/app/BasicLiveWallpapers.apk: File exists
ln: /system/app/CapabilityManagerService.apk: File exists
ln: /system/app/CertInstaller.apk: File exists
ln: /system/app/ChromeBookmarksSyncAdapter.apk: File exists
ln: /system/app/ClockPackage.apk: File exists
ln: /system/app/ContextAwareService.apk: File exists
ln: /system/app/DefaultContainerService.apk: File exists
ln: /system/app/DigitalClock.apk: File exists
ln: /system/app/Divx.apk: File exists
ln: /system/app/DrmProvider.apk: File exists
ln: /system/app/DualClockAnalog.apk: File exists
ln: /system/app/DualClockDigital.apk: File exists
ln: /system/app/FmRadio.apk: File exists
ln: /system/app/GMS_Maps.apk: File exists
ln: /system/app/Gmail.apk: File exists
ln: /system/app/GmsCore.apk: File exists
ln: /system/app/GoogleBackupTransport.apk: File exists
ln: /system/app/GoogleCalendarSyncAdapter.apk: File exists
ln: /system/app/GoogleContactsSyncAdapter.apk: File exists
ln: /system/app/GoogleLoginService.apk: File exists
ln: /system/app/GooglePartnerSetup.apk: File exists
ln: /system/app/GoogleSearchWidget.apk: File exists
ln: /system/app/GoogleServicesFramework.apk: File exists
ln: /system/app/Hangouts.apk: File exists
ln: /system/app/InputDevices.apk: File exists
ln: /system/app/InputEventApp_U1_EUR_OPEN.apk: File exists
ln: /system/app/JobManager.apk: File exists
ln: /system/app/KeyChain.apk: File exists
ln: /system/app/Keystring_factory_JBUP.apk: File exists
ln: /system/app/LogsProvider.apk: File exists
ln: /system/app/Microbes.apk: File exists
ln: /system/app/MtpApplication.apk: File exists
ln: /system/app/Music2.apk: File exists
ln: /system/app/MusicFX.apk: File exists
ln: /system/app/MusicPlayer.apk: File exists
ln: /system/app/NeatEfs.apk: File exists
ln: /system/app/NetworkLocation.apk: File exists
ln: /system/app/OceanWeather.apk: File exists
ln: /system/app/PackageInstaller.apk: File exists
ln: /system/app/Phone_Util_U1_EUR_OPEN.apk: File exists
ln: /system/app/Phonesky.apk: File exists
ln: /system/app/PlusOne.apk: File exists
ln: /system/app/PreloadInstaller.apk: File exists
ln: /system/app/ProgramMonitor.apk: File exists
ln: /system/app/SamsungCamera.apk: File exists
ln: /system/app/SamsungIME.apk: File exists
ln: /system/app/SecBluetooth.apk: File exists
ln: /system/app/SecBrowser.apk: File exists
ln: /system/app/SecCalculator2.apk: File exists
ln: /system/app/SecCalendar.apk: File exists
ln: /system/app/SecCalendarProvider.apk: File exists
ln: /system/app/SecContacts.apk: File exists
ln: /system/app/SecContactsProvider.apk: File exists
ln: /system/app/SecDownloadProvider.apk: File exists
ln: /system/app/SecDownloadProviderUi.apk: File exists
ln: /system/app/SecFactoryPhoneTest.apk: File exists
ln: /system/app/SecGallery2.apk: File exists
ln: /system/app/SecLauncher2.apk: File exists
ln: /system/app/SecLiveWallpapersPicker.apk: File exists
ln: /system/app/SecMediaProvider.apk: File exists
ln: /system/app/SecMms.apk: File exists
ln: /system/app/SecNoteMyFiles.apk: File exists
ln: /system/app/SecOmaDownloadProvider.apk: File exists
ln: /system/app/SecPhone.apk: File exists
ln: /system/app/SecSettings.apk: File exists
ln: /system/app/SecSettingsProvider.apk: File exists
ln: /system/app/SecTelephonyProvider.apk: File exists
ln: /system/app/SecWallpaperChooser.apk: File exists
ln: /system/app/SecurityProvider.apk: File exists
ln: /system/app/SelfTestMode_U1_EUR_OPEN.apk: File exists
ln: /system/app/SerialNumberLabelIndicator_JBUP.apk: File exists
ln: /system/app/SetupWizard.apk: File exists
ln: /system/app/SharedStorageBackup.apk: File exists
ln: /system/app/SimpleAlarmClock.apk: File exists
ln: /system/app/SmartcardService.apk: File exists
ln: /system/app/Street.apk: File exists
ln: /system/app/SystemInfo_U1_EUR_OPEN.apk: File exists
ln: /system/app/SystemUI.apk: File exists
ln: /system/app/TwDVFSApp.apk: File exists
ln: /system/app/UpdateMeNeatRom.apk: File exists
ln: /system/app/UserDictionaryProvider.apk: File exists
ln: /system/app/VideoPlayer.apk: File exists
ln: /system/app/VoiceRecorder.apk: File exists
ln: /system/app/WeatherWall.apk: File exists
ln: /system/app/YouTube.apk: File exists
ln: /system/app/lcdtest_U1_EUR_OPEN.apk: File exists
ln: /system/app/minimode-res.apk: File exists
ln: /system/app/serviceModeApp_U1_EUR_OPEN.apk: File exists
ln: /system/app/shutdown_JBUP.apk: File exists
run_program: child exited with status 1
about to run program [/sbin/busybox] with 3 args
about to run program [/sbin/busybox] with 3 args
about to run program [/sbin/busybox] with 3 args
*=========================================*

NeatRom AROMA By JEETU

*=========================================*
*=========================================*
Done
*=========================================*
script result was [*=========================================*]

Installer Sucessfull (Status 0)

End at : Sun Apr 13 14:54:54 2014

installtheme process code with red line i think dont work

[COLOR="Red"]#!/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 /preload/symlink/system/app/"
busybox mkdir -p /sdcard/vrtheme-backup/preload/symlink/system/app
busybox mkdir -p /sdcard/vrtheme/apply/preload/symlink/system/app[/COLOR]
cd /sdcard/vrtheme/preload/symlink/system/app/
for f in $(ls)
do
echo "Processing $f"
cp /data/sec_data/$f /sdcard/vrtheme/apply/preload/symlink/system/app/
cp /data/sec_data/$f /sdcard/vrtheme-backup/preload/symlink/system/app/
done
echo "Backups done for sec_data apps"
# repeat for /system/app now

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

if [ "$systemapp" -eq "1" ]; then
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"
fi

# 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/preload/symlink/system/app/
for f in $(ls)
do
echo "Working on $f"
cd /sdcard/vrtheme/preload/symlink/system/app/$f/
/sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/preload/symlink/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 [ "$systemapp" -eq "1" ]; then
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 framework 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/preload/symlink/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 [ "$systemapp" -eq "1" ]; then
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
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/preload/symlink/system/app/aligned/
cp * /data/sec_data/
chmod 644 /data/sec_data/*
if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/aligned/
cp * /data/app/
chmod 644 /data/app/*
fi
if [ "$systemapp" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/app/aligned/
cp * /system/app/
chmod 644 /system/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

one of my best report :)

Question : what is the problem ?

thanks.