[Q] [Update Script] Permissions - Micromax A110

I want to make a update patch
but some confusion for permissions
I want permission with folder with subfolder/s & file/s
Code:
drwxr-xr-x
Which string/code I use in script
For example
Code:
set_perm_recursive(0, 0, 0755, 0644, "/folder");
Somebody Help me please
@mmxandy @bsuhas @sagarwep @SuperDroid-BOND @Dark4Droid @captain_nemo @pratikmore @ibshar @Ak****banta @jaunty @anand_mmx @proseray & @all who know this

Use set_perm_recursive(0, 0, 0755, "/system/folder");

Dark4Droid said:
Use set_perm_recursive(0, 0, 0755, "/system/folder");
Click to expand...
Click to collapse
For folder there is always 4 value some thing like
(0, 0, 0755, 0644, "/system")
for life that 3
(0, 0, 0755, "/system/app/input.apk")
I need for folder.. is this right??
I know nothing about fix permission..
sorry if it noobish

ekhasti said:
For folder there is always 4 value some thing like
(0, 0, 0755, 0644, "/system")
for life that 3
(0, 0, 0755, "/system/app/input.apk")
I need for folder.. is this right??
I know nothing about fix permission..
sorry if it noobish
Click to expand...
Click to collapse
If the folder isnt on System... No special need to set permission.... Just Include this on Script " package_extract_dir("folder", "/folder"); "

Dark4Droid said:
If the folder isnt on System... No special need to set permission.... Just Include this on Script " package_extract_dir("folder", "/folder"); "
Click to expand...
Click to collapse
Thanks.. for help..
I try it.. if not working then tell you..
if working.. then I already press Thanks

Related

Nexus S AOSP ROM - Stuck at 'Obtaining IP Adress'

How do I fix this? I did a clean AOSP build from latest ICS code.
Every network I try to connect to leaves me stuck at 'Obtaining IP Adress'
mobile data works just fine...
can anyone help me out so I could release my ROM?
wrong section
Sent from my Nexus S using xda premium
djjonastybe said:
How do I fix this? I did a clean AOSP build from latest ICS code.
Every network I try to connect to leaves me stuck at 'Obtaining IP Adress'
mobile data works just fine...
can anyone help me out so I could release my ROM?
Click to expand...
Click to collapse
I have ran into this a few times in my ROM. Usually after installing gapps. I am not sure what caused it but you can look at my updater-script and see what is different. Also make sure you have the matching retouch binary lines right. You want to only use the retouch line and file names from the same ROM that comes out of your compiler. Do use the lines from ROM A on ROM B...
djjonastybe said:
How do I fix this? I did a clean AOSP build from latest ICS code.
Every network I try to connect to leaves me stuck at 'Obtaining IP Adress'
mobile data works just fine...
can anyone help me out so I could release my ROM?
Click to expand...
Click to collapse
Like AndroidUser said. You have to re touch the right binary files. Compile your ROM with make -j4 otapackage option, then copy the retouch binaries part into your existing zip package. if you are running a 32 bit OS like me, you have adjust the VM size from 2048 to 1024. refer below for details.
"Try changing "java -Xmx2048m" in common.py to "java -Xmx1024m" if that fails try "java -Xmx512m" located in system/build/tools/releasetools/common.py"
basziee said:
wrong section
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
In my opinion it is the right since it's related to development. If you ask this in the Q&A section you never get an answer.
AndroidUser00110001 said:
I have ran into this a few times in my ROM. Usually after installing gapps. I am not sure what caused it but you can look at my updater-script and see what is different. Also make sure you have the matching retouch binary lines right. You want to only use the retouch line and file names from the same ROM that comes out of your compiler. Do use the lines from ROM A on ROM B...
Click to expand...
Click to collapse
Thanks I will compare the lines!
krarvind said:
Like AndroidUser said. You have to re touch the right binary files. Compile your ROM with make -j4 otapackage option, then copy the retouch binaries part into your existing zip package. if you are running a 32 bit OS like me, you have adjust the VM size from 2048 to 1024. refer below for details.
"Try changing "java -Xmx2048m" in common.py to "java -Xmx1024m" if that fails try "java -Xmx512m" located in system/build/tools/releasetools/common.py"
Click to expand...
Click to collapse
I use a 64-Bit Ubuntu in a VMWare VM with 4GB RAM I will try that tomorrow!
Thanks!
djjonastybe said:
I use a 64-Bit Ubuntu in a VMWare VM with 4GB RAM I will try that tomorrow!
Thanks!
Click to expand...
Click to collapse
then you should be good. just compile with otapackage option, copy and paste the retouch binaries from the updater-script into your existing one. it's prob not retouching the right binary files.
I noticed the line which is wrong. Do I have to do that all by hand? Seems like a lot of work...
my line has 17000 characters. While the one in AOSP+ only has 13000
I corrected the line with Notepad++. Now I am getting a status 6 error.
retouch_binaries /system/lib/libril.so 5c5ecbd5bec3083fd3462407d1dbb6cc1c1cde33 /system/lib/libhwui.so d36feb80018b476875bb9bb2a6c9e9977f3d0b1b /system/lib/libjni_mosaic.so 0db4a6633c3d70302044c656bea4f6e8da877ebf /system/lib/libsoundpool.so 4d4caff3b23123b829071fa61515a2b33a89140e /system/lib/libs3cjpeg.so e91ca63b991708a938ff01ef4f1765302cc65acd /system/lib/libsqlite_jni.so 760a909fe3bbe066f7bd213cff0734977e2feb25 /system/lib/libfilterpack_imageproc.so 08b8d60475bb0f345b52f608890ead97f9ddcb45 /system/lib/libwnndict.so 19bbfd314d2b8b8110a12e207fc7cd2653a13d61 /system/lib/libWnnJpnDic.so 0587b63761fd97847b1ce8a32228503d39f0fb7c /system/lib/libdefcontainer_jni.so 562b6b8f9c7c5ffb666d0edf74cc93a5dfae9d6c /system/lib/libnfc_ndef.so 15d024475cb42c58378d70670e4ebeb8ca0682e6 /system/lib/libRS.so 9cb5892ffd9350863705bba2f30beb9dd3d1655b /system/lib/libFFTEm.so d205648fbb7ca62dfc090ba77a9350870e996b59 /system/lib/libstagefright_soft_amrdec.so 48536564e2244d05af7536057895ec289b38a9da /system/lib/libWnnEngDic.so 0479928f7e103b0a13b9511de4e962fd978fe5a5 /system/lib/libskia.so 7a64ee04a64c82e6d3ffcdcdfcb8d312ac87c979 /system/lib/libcameraservice.so 02258d952c22630e9c40137e981893bda1d25f51 /system/lib/libOMX.SEC.AVC.Encoder.so 66d96958143e71144ac0d04a7506d2fd3b5eb501 /system/lib/libvideoeditorplayer.so 47fec7637670d351d95b982fd680e7d208e94331 /system/lib/libext2_profile.so 8348405a2617ba83a2a25f3f654f31335e13a2a0 /system/lib/libOMX.SEC.M4V.Encoder.so 123ce0d9b6f7a0ce93834c2de48bfe4e3fda285c /system/lib/libsystem_server.so 44237b2a6f56c89692e3ffbb21030273fc8914a6 /system/lib/libbluetoothd.so 8812f6b29f661ab6a47f18d7e4ced577ba41fdcd /system/lib/libbcinfo.so 79413ea98bfe2bc9bad7bfd7dd041a9b7614c41e /system/lib/libinput.so fbd929c5de843cd70911ff0094867b88956aea11 /system/lib/libctest.so a0a33000cdd5946da28fca2ee3333d6ab8773a78 /system/lib/libOpenSLES.so b306dffc88e678ba582bd55a9a8284ff66543b74 /system/lib/egl/egl.cfg 4d50747fefcca7d073d1e8a0b79c06ce5d83cc7d /system/lib/egl/libGLES_android.so 7a4ac57ffe0dca1cb955ff1f75e2d403ce5915d3 /system/lib/libsurfaceflinger.so 0e3612154128a06bcb6bcc6cd74a4e20bbc77d0f /system/lib/libui.so ba72369aefb074e3c3495a3e91ed07dfad11c138 /system/lib/libdvm.so a76008d1a70e06121c28b5dcda977f64b2e92a99 /system/lib/libOMX.SEC.M4V.Decoder.so 894c346fd5f0317528097bcb54a94acb925ed66c /system/lib/libstagefright.so 29578261ae508e9fe446d2657bc2ba8afab328b4 /system/lib/libexpat.so e762fca8ce1f7325560b5128236ed671ffe62d73 /system/lib/libwpa_client.so 0ce21914e07211152b9afcf1476ea9046e7290a8 /system/lib/libttscompat.so 0249f1061883156a62bca5b6a2d7f6d750129626 /system/lib/libnfc_jni.so 757aeb46b59d8631ef81ef6b67d1cc60d801daa1 /system/lib/soundfx/libreverbwrapper.so 0c58199b5047749ee85e8d74f63cc36fa8dc8b57 /system/lib/soundfx/libbundlewrapper.so d0b8da83859b446e8373437cd99468b4a0a02fe9 /system/lib/soundfx/libaudiopreprocessing.so 592e53ac441fdd3090ed5b5235675f1a52d0a2e7 /system/lib/soundfx/libvisualizer.so 242887595ca616f1fbff3aaaea803b1afb879fe0 /system/lib/libgui.so f8629d039f8763691d0ee395ae3b9842e64e302a /system/lib/libaudioeffect_jni.so cab444c9afa2e36a5c59c17ddfee0554db5e300d /system/lib/libandroid_servers.so 917c61b39d0fb4df48182d378c0f7fc664f33de0 /system/lib/libandroid_runtime.so e718e6769456bc1bd5c4c1e2d979352af93921a2 /system/lib/libhardware_legacy.so b67671f8bbc36f3323120e1fb02252eee18d2ae0 /system/lib/libstagefright_omx.so 08d18209d20afd6ba6dc5cd72af1d8b20fd00bbc /system/lib/libwilhelm.so 07c11ebc4752522e114e8515914d5f55915ab49a /system/lib/libdrm1_jni.so ed5849f6fd52f641c20f5ad7fe93456666f90df1 /system/lib/libtinyalsa.so 1f012d7309c45d878de67396285d1f65f4c0973d /system/lib/libdrm1.so 841ff99cfb2e6563d8abc421eb621aefe5816a5d /system/lib/libstagefright_soft_h264dec.so 4c31173ec1c867b21fbef938aee8ce4292d22f0a /system/lib/libext4_utils.so 00338e1e7edda9405fb19f9f80eb0b282417a608 /system/lib/libpower.so 3dd509ce82fa5201e3f0333c153bdf63d18d2952 /system/lib/libchromium_net.so 47db619a6ce4952c43aa33311f4397e81320c3f9 /system/lib/libvideoeditor_jni.so 22c9d8acd7c768e4f0e3b2b4a89315ad369476f4 /system/lib/libbluetooth.so d6c575728925efa4a53a7c690c4facaf6f70099a /system/lib/libpagemap.so 394799768ac07cc3ab909afd2e58d2a2551bd993 /system/lib/libdrmframework.so c48efc16920c468ebce152df92883259fcd79c71 /system/lib/libeffects.so c8c9728e04eddd40515231af248b92d53d7e5748 /system/lib/libstlport.so 4f7fa232df107cefeca44547928267f39368e0f5 /system/lib/libdl.so 92aa66ff903957b4ba32c3343d7af22360ca1428 /system/lib/libwebrtc_audio_preprocessing.so 78ef4160bb40c484454d3ef7ee07d0153c5456f3 /system/lib/libmedia_jni.so 8f85fb9645dcd0ffd0ab4a05841fe3a5f2570d79 /system/lib/libwebcore.so c57dce2036fe70c9378cffe38c5b7e3de48c6b81 /system/lib/libGLESv2_dbg.so c7d28d96e993cf7fb32cb1608f8b67579e2eab84 /system/lib/libGLESv2.so 51cb20b37c28b3690f92a8cc7b6f0084cdedd417 /system/lib/hw/nfc.herring.so f38ced47c20d270cb40f58d79886d5cbd8c67e48 /system/lib/hw/audio.primary.herring.so 844272b1a82cbe7f7bda1806644c5dcaca86b657 /system/lib/hw/gralloc.default.so a6790b23307be7cb817cf88decd9d3c335d11c0e /system/lib/hw/audio_policy.herring.so a77bad78910f39ad426242d8d8a7d0d5df043188 /system/lib/hw/camera.herring.so 4f5c6c39c515e941a614991dd9fe1c963bfccf79 /system/lib/hw/audio.primary.default.so 8e97370c698fd33ae2ecfd5c25354901327c1800 /system/lib/hw/camera.goldfish.so 69bbf2e5d9fb4953687b14fdb21a807e408f7092 /system/lib/hw/audio.a2dp.default.so 4a8dacfd432fa4bc8a720f27397c9a4f3703aef4 /system/lib/hw/lights.s5pc110.so 33804e261c213fb847b96557fc1cad7ec1a564a1 /system/lib/hw/audio_policy.default.so e4b82202be4a060f91d6c28f44d892b250cf6a47 /system/lib/hw/hwcomposer.s5pc110.so 1071e36da59ace4169c138118eb72d1f38375fcf /system/lib/hw/gps.goldfish.so 9cfd267a6f6c15b99403c3b0eb0304417cf1f3e8 /system/lib/hw/sensors.goldfish.so 3ee28ec356ffa83b698f7d703605b03e37f182cf /system/lib/hw/sensors.herring.so 9c933cfaf4d7a3fd75ff3fd3ba1f5c99fb61aea4 /system/lib/hw/lights.goldfish.so 5ce97f2a4245d7acb2b1a1319a5415a98c00fbf3 /system/lib/libjpeg.so bdb88fe8732a0dce2fa7338b7a1c7b3ad55fe1b3 /system/lib/libglib.so 43b7bbb92a37d689b000d971c29795f4808474c8 /system/lib/libdiskconfig.so e0a86139ce1c36aebc4bc9a677f9120ace45522c /system/lib/libbcc.so 8008001ef050fc13eda0c3c542dcdea354106a50 /system/lib/libutils.so 49ea83ebe8c6b0811e599d3d400f79c415f5c80a /system/lib/libvorbisidec.so 6b2f23794ea0b13d13e8d1fb1e72b5d54c371747 /system/lib/libnfc.so 4a32babd8ed1b124005706f6a40709396cfd021e /system/lib/bluez-plugin/input.so c526503459dfc2bf9ee222e54d2ca63f84c2f2e6 /system/lib/bluez-plugin/bluetooth-health.so 405d65ac52c5b7c91adaf16dfa8e1cb51308f890 /system/lib/bluez-plugin/audio.so 492a454e9c5e39945877885b938cb382d13b1272 /system/lib/bluez-plugin/network.so 3d115ad393d11a8ca05cd47459374f491c662871 /system/lib/libdbus.so 49bf20cf4bac139cea4c9e4bcb75f2ef60729a51 /system/lib/libsensorservice.so b82a4abc809937bcb0aec3fc2228b2af37674c11 /system/lib/libstagefright_soft_mpeg4dec.so e5614f2cf47c4814eaaefb642332a93636814af6 /system/lib/libstagefright_amrnb_common.so e6081dfb53f2f5f0fda0e22edd56bdbb5aeeaf95 /system/lib/libcamera_client.so d9dbdaaf42af5c77452406ecf2abb9b31faf6843 /system/lib/libsrec_jni.so 8d06dc316c4209c18048a1bd2e4eb65a229705c3 /system/lib/libcrypto.so aca58b6b72c7b2016d8141d0e26de26b9c9d30e2 /system/lib/libicuuc.so ef7007d17bde7e5e4883cf74d580bd892c08ff55 /system/lib/libext2_e2p.so c8eee6f7fa24e916d0848203c574c3d1e95b3e5a /system/lib/libc_malloc_debug_leak.so 0e754257ff0d01a1e809ea1ea084a4c2cb749a37 /system/lib/libiprouteutil.so 9c52922eeed75e9abc501fd45851404200bd8266 /system/lib/libjnigraphics.so 1ba961165e656e8eae3c320834b7609841410546 /system/lib/libaudioutils.so 60ea6b5440f8011ce001cdb2daf4b129bc025215 /system/lib/libSR_AudioIn.so 98e47e448c4b537db2bb907154c106eae133fcc1 /system/lib/libETC1.so f5ed26d3ca63400a6d43b907b3f7369c2d7fc57c /system/lib/libc_malloc_debug_qemu.so 43786af19f6d1cd757472331590188e2a6b53afb /system/lib/libnetutils.so fff5e5b88dcd10ba706cd6c35a20addc550e4abe /system/lib/libharfbuzz.so 49747238cfdd060c99bce5ab2f626b9ff675967f /system/lib/libsecril-client.so ca76d330b5ec8fc0a507369c31e8f9ce234bc7a2 /system/lib/libOMX.SEC.AVC.Decoder.so 4c067b2b0d08c26159ef7824401ce70bb228e983 /system/lib/libicui18n.so aeabcd0ff2460abb58dba8db5b97344de9340f28 /system/lib/libext2fs.so 9ed07dad377e80ad913490f374709842aa56687c /system/lib/libexif.so 71bda6b2c596982208c5326087494d3e31969a74 /system/lib/libmedia.so 9ff9429dce4c474b6bcf87f89ae93ab9b481b247 /system/lib/libandroid.so f63609ac8d0297aa774405bdff66e41434258829 /system/lib/drm/libfwdlockengine.so c139f2aeeb4dc0e7d1dfb760e881f332e5df947f /system/lib/libEGL.so dce1f3e3349c5aa7c9864661f68de0ba6f9ed960 /system/lib/libbluedroid.so 4e56d57bac668d054339cedb17a04a4112703c64 /system/lib/libstagefright_foundation.so 676f4b61281a304adcb7564b0cc7cc86bc4e7c3e /system/lib/libGLESv1_CM.so c95db97407430746a789d3c063f31885a0a38204 /system/lib/libjni_latinime.so dca61bf57ef76d665f291ee41655d05a51e41c7a /system/lib/libstagefright_enc_common.so 6f63373abb5504982603a71c00585c00a4d38e18 /system/lib/libttspico.so fdbc215d0bf4d32c2226ad2eeb05c8af400c055a /system/lib/libusbhost.so a49530e273480a400b16e373eb2933c183ff3587 /system/lib/libmtp.so ee4c51abb8d362944c61ebe81c75c016bbdd00a6 /system/lib/libcutils.so fbd8fd369f0e8629e6ef9b5cc5a1fec2cb81bd86 /system/lib/liblog.so d9eccfb9e338b2b1d3f5f6acff9500eca8a369fa /system/lib/libc.so bcd1339c098c346c0982bcd42f11518bf70f2ce7 /system/lib/libbinder.so b78cf9234d01ffe6e61d11f4bee0d9f9878970d9 /system/lib/librtp_jni.so a24e2e6386fba2d4f0e52ce7ef18ad36224db235 /system/lib/libdrmframework_jni.so ec2ded5bfc8168dfc5f87671ab00c709a69c11b4 /system/lib/libsysutils.so 524f6ff488f9f6627430fb55764e540e6d792472 /system/lib/libext2_com_err.so b9d60c4852cca097969db78202924860fa08c532 /system/lib/libspeexresampler.so 524334257b87c352b9835161df0d2f8bd54573b5 /system/lib/libstagefright_soft_vorbisdec.so 1a5a90a8a21cf76d8077564f9f94e7b474106cdf /system/lib/libext2_uuid.so 85d78fe8b4eb7d220bae92411bf5494fffd27bfb /system/lib/libfilterfw.so 82912f4b30df7650ea8fa21aae0f73f68cf31e1a /system/lib/libmediaplayerservice.so 5f9a45918c28ff5f72dbeeaae166cb2b8e23f00e /system/lib/libOpenMAXAL.so 484fa267f7a3b2ec9151e6c0319615b8a4c5d477 /system/lib/libssl.so 2a000f0891605179c9713055cb71d0f7836b6348 /system/lib/libstagefright_yuv.so aa3f2ae22ad4152b28e5ec7568047e3546785931 /system/lib/libz.so 341286f98a455daf3e7283e9bd90e065800ded38 /system/lib/libsonivox.so fff1920ab99925168d968e4aea8dfe2a8bad9f22 /system/lib/libstagefright_soft_vpxdec.so 41a2e328f93de570a97f8cf4f854983fee9fb919 /system/lib/libclcore.bc a1e2610fdc0c2ef151248092fa32be807d1b983d /system/lib/libstagefright_soft_aacdec.so 8d3e2e2ad9f6f7576d69d46c2e44cf36323dc2ca /system/lib/libsurfaceflinger_client.so 12ba180d276b44d96e23f91c3d328f6ffdeed0eb /system/lib/libnetlink.so 984b69f6ac2cfcebe6f1cd7c517cd0a753933d07 /system/lib/libstagefright_avc_common.so 513fc8b1dc28c59859fd615dcb7ff23453dcbba6 /system/lib/libaudioflinger.so 92d44f8380cef98be2312ccc6424ad1519408c1e /system/lib/libreference-ril.so 5e3f8dc54c7d3988f4efcc527827ae282bff1c01 /system/lib/libstagefright_soft_g711dec.so bf0a19063e6dbf7d27ebf2864be85e69b682b5f2 /system/lib/libsqlite.so de9f83f35a5331b748f841274b5ace3a40bf4f96 /system/lib/libstagefright_soft_mp3dec.so 788827a9d0aa25d978e0438a98f90027828301bf /system/lib/libnativehelper.so 93012e7952de63e0d135eda13c5fe81013f429b5 /system/lib/libstagefrighthw.so 9febb1608223ffff6de8242fd992493b02de86fe /system/lib/libvariablespeed.so fa5453fd5509d21cc786c372d4078b2f64e16d14 /system/lib/libSEC_OMX_Core.so 0ddc0742a0530eccf78682465a02d8080aa9bd82 /system/lib/libbtio.so 50bc7fa64e1c38db3da0874cec7f333ab79be543 /system/lib/libhardware.so 7b7bf794a080c86188286e1659b76d23f541cd6a /system/lib/librs_jni.so 7c6c4dbbd63d5caa91f109d4fc0f5e7fe24c0eb4 /system/lib/libemoji.so 5425905ee8f2e3f2d0e620d0f43fded0238c9ce1 /system/lib/libpowermanager.so 64e41a6be4a18e1a759d16efdbb308c64fe917b7 /system/lib/libgabi++.so 3967faff8029e179dd87367f0556ea600c6fcb83 /system/lib/libbcc.so.sha1 925f36b279ff57ed8b31b51ae1382e97465b6c0c /system/lib/libext2_blkid.so 1c959589996f9dd25fafceeee03fe4cde5611f0e /system/lib/libpixelflinger.so 135aefc8f8dafdfe5e7db71501006f309b25257b /system/lib/libstdc++.so 886dc19f381fafec376dc1f292aa1f0383e63bf2 /system/lib/libm.so c763a2b65489fea3335ea77d697a98498a63413e /system/lib/libthread_db.so 8bd44c66b1bf7b3f44ccab084407aebefdc17648
Click to expand...
Click to collapse
djjonastybe said:
In my opinion it is the right since it's related to development. If you ask this in the Q&A section you never get an answer.
Click to expand...
Click to collapse
1 - 0 for you .
Good luck with you rom
Sent from my Nexus S using xda premium
assert(!less_than_int(1325606577, getprop("ro.build.date.utc")));
assert(getprop("ro.product.device") == "crespo" ||
getprop("ro.build.product") == "crespo");
show_progress(0.500000, 0);
format("ext4", "EMMC", "/dev/block/platform/s3c-sdhci.0/by-name/system", "0");
mount("ext4", "EMMC", "/dev/block/platform/s3c-sdhci.0/by-name/system", "/system");
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
"/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
"/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
"/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
"/system/bin/kill", "/system/bin/ln", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
"/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
"/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
"/system/bin/sendevent", "/system/bin/setconsole",
"/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
"/system/bin/start", "/system/bin/stop", "/system/bin/sync",
"/system/bin/top", "/system/bin/touch", "/system/bin/umount",
"/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
retouch_binaries("/system/lib/libril.so", "5c5ecbd5bec3083fd3462407d1dbb6cc1c1cde33", "/system/lib/libhwui.so", "d36feb80018b476875bb9bb2a6c9e9977f3d0b1b", "/system/lib/libjni_mosaic.so", "0db4a6633c3d70302044c656bea4f6e8da877ebf", "/system/lib/libsoundpool.so", "4d4caff3b23123b829071fa61515a2b33a89140e", "/system/lib/libs3cjpeg.so", "e91ca63b991708a938ff01ef4f1765302cc65acd", "/system/lib/libsqlite_jni.so", "760a909fe3bbe066f7bd213cff0734977e2feb25", "/system/lib/libfilterpack_imageproc.so", "08b8d60475bb0f345b52f608890ead97f9ddcb45", "/system/lib/libwnndict.so", "19bbfd314d2b8b8110a12e207fc7cd2653a13d61", "/system/lib/libWnnJpnDic.so", "0587b63761fd97847b1ce8a32228503d39f0fb7c", "/system/lib/libdefcontainer_jni.so", "562b6b8f9c7c5ffb666d0edf74cc93a5dfae9d6c", "/system/lib/libnfc_ndef.so", "15d024475cb42c58378d70670e4ebeb8ca0682e6", "/system/lib/libRS.so", "9cb5892ffd9350863705bba2f30beb9dd3d1655b", "/system/lib/libFFTEm.so", "d205648fbb7ca62dfc090ba77a9350870e996b59", "/system/lib/libstagefright_soft_amrdec.so", "48536564e2244d05af7536057895ec289b38a9da", "/system/lib/libWnnEngDic.so", "0479928f7e103b0a13b9511de4e962fd978fe5a5", "/system/lib/libskia.so", "7a64ee04a64c82e6d3ffcdcdfcb8d312ac87c979", "/system/lib/libcameraservice.so", "02258d952c22630e9c40137e981893bda1d25f51", "/system/lib/libOMX.SEC.AVC.Encoder.so", "66d96958143e71144ac0d04a7506d2fd3b5eb501", "/system/lib/libvideoeditorplayer.so", "47fec7637670d351d95b982fd680e7d208e94331", "/system/lib/libext2_profile.so", "8348405a2617ba83a2a25f3f654f31335e13a2a0", "/system/lib/libOMX.SEC.M4V.Encoder.so", "123ce0d9b6f7a0ce93834c2de48bfe4e3fda285c", "/system/lib/libsystem_server.so", "44237b2a6f56c89692e3ffbb21030273fc8914a6", "/system/lib/libbluetoothd.so", "8812f6b29f661ab6a47f18d7e4ced577ba41fdcd", "/system/lib/libbcinfo.so", "79413ea98bfe2bc9bad7bfd7dd041a9b7614c41e", "/system/lib/libinput.so", "fbd929c5de843cd70911ff0094867b88956aea11", "/system/lib/libctest.so", "a0a33000cdd5946da28fca2ee3333d6ab8773a78", "/system/lib/libOpenSLES.so", "b306dffc88e678ba582bd55a9a8284ff66543b74", "/system/lib/egl/egl.cfg", "4d50747fefcca7d073d1e8a0b79c06ce5d83cc7d", "/system/lib/egl/libGLES_android.so", "7a4ac57ffe0dca1cb955ff1f75e2d403ce5915d3", "/system/lib/libsurfaceflinger.so", "0e3612154128a06bcb6bcc6cd74a4e20bbc77d0f", "/system/lib/libui.so", "ba72369aefb074e3c3495a3e91ed07dfad11c138", "/system/lib/libdvm.so", "a76008d1a70e06121c28b5dcda977f64b2e92a99", "/system/lib/libOMX.SEC.M4V.Decoder.so", "894c346fd5f0317528097bcb54a94acb925ed66c", "/system/lib/libstagefright.so", "29578261ae508e9fe446d2657bc2ba8afab328b4", "/system/lib/libexpat.so", "e762fca8ce1f7325560b5128236ed671ffe62d73", "/system/lib/libwpa_client.so", "0ce21914e07211152b9afcf1476ea9046e7290a8", "/system/lib/libttscompat.so", "0249f1061883156a62bca5b6a2d7f6d750129626", "/system/lib/libnfc_jni.so", "757aeb46b59d8631ef81ef6b67d1cc60d801daa1", "/system/lib/soundfx/libreverbwrapper.so", "0c58199b5047749ee85e8d74f63cc36fa8dc8b57", "/system/lib/soundfx/libbundlewrapper.so", "d0b8da83859b446e8373437cd99468b4a0a02fe9", "/system/lib/soundfx/libaudiopreprocessing.so", "592e53ac441fdd3090ed5b5235675f1a52d0a2e7", "/system/lib/soundfx/libvisualizer.so", "242887595ca616f1fbff3aaaea803b1afb879fe0", "/system/lib/libgui.so", "f8629d039f8763691d0ee395ae3b9842e64e302a", "/system/lib/libaudioeffect_jni.so", "cab444c9afa2e36a5c59c17ddfee0554db5e300d", "/system/lib/libandroid_servers.so", "917c61b39d0fb4df48182d378c0f7fc664f33de0", "/system/lib/libandroid_runtime.so", "e718e6769456bc1bd5c4c1e2d979352af93921a2", "/system/lib/libhardware_legacy.so", "b67671f8bbc36f3323120e1fb02252eee18d2ae0", "/system/lib/libstagefright_omx.so", "08d18209d20afd6ba6dc5cd72af1d8b20fd00bbc", "/system/lib/libwilhelm.so", "07c11ebc4752522e114e8515914d5f55915ab49a", "/system/lib/libdrm1_jni.so", "ed5849f6fd52f641c20f5ad7fe93456666f90df1", "/system/lib/libtinyalsa.so", "1f012d7309c45d878de67396285d1f65f4c0973d", "/system/lib/libdrm1.so", "841ff99cfb2e6563d8abc421eb621aefe5816a5d", "/system/lib/libstagefright_soft_h264dec.so", "4c31173ec1c867b21fbef938aee8ce4292d22f0a", "/system/lib/libext4_utils.so", "00338e1e7edda9405fb19f9f80eb0b282417a608", "/system/lib/libpower.so", "3dd509ce82fa5201e3f0333c153bdf63d18d2952", "/system/lib/libchromium_net.so", "47db619a6ce4952c43aa33311f4397e81320c3f9", "/system/lib/libvideoeditor_jni.so", "22c9d8acd7c768e4f0e3b2b4a89315ad369476f4", "/system/lib/libbluetooth.so", "d6c575728925efa4a53a7c690c4facaf6f70099a", "/system/lib/libpagemap.so", "394799768ac07cc3ab909afd2e58d2a2551bd993", "/system/lib/libdrmframework.so", "c48efc16920c468ebce152df92883259fcd79c71", "/system/lib/libeffects.so", "c8c9728e04eddd40515231af248b92d53d7e5748", "/system/lib/libstlport.so", "4f7fa232df107cefeca44547928267f39368e0f5", "/system/lib/libdl.so", "92aa66ff903957b4ba32c3343d7af22360ca1428", "/system/lib/libwebrtc_audio_preprocessing.so", "78ef4160bb40c484454d3ef7ee07d0153c5456f3", "/system/lib/libmedia_jni.so", "8f85fb9645dcd0ffd0ab4a05841fe3a5f2570d79", "/system/lib/libwebcore.so", "c57dce2036fe70c9378cffe38c5b7e3de48c6b81", "/system/lib/libGLESv2_dbg.so", "c7d28d96e993cf7fb32cb1608f8b67579e2eab84", "/system/lib/libGLESv2.so", "51cb20b37c28b3690f92a8cc7b6f0084cdedd417", "/system/lib/hw/nfc.herring.so", "f38ced47c20d270cb40f58d79886d5cbd8c67e48", "/system/lib/hw/audio.primary.herring.so", "844272b1a82cbe7f7bda1806644c5dcaca86b657", "/system/lib/hw/gralloc.default.so", "a6790b23307be7cb817cf88decd9d3c335d11c0e", "/system/lib/hw/audio_policy.herring.so", "a77bad78910f39ad426242d8d8a7d0d5df043188", "/system/lib/hw/camera.herring.so", "4f5c6c39c515e941a614991dd9fe1c963bfccf79", "/system/lib/hw/audio.primary.default.so", "8e97370c698fd33ae2ecfd5c25354901327c1800", "/system/lib/hw/camera.goldfish.so", "69bbf2e5d9fb4953687b14fdb21a807e408f7092", "/system/lib/hw/audio.a2dp.default.so", "4a8dacfd432fa4bc8a720f27397c9a4f3703aef4", "/system/lib/hw/lights.s5pc110.so", "33804e261c213fb847b96557fc1cad7ec1a564a1", "/system/lib/hw/audio_policy.default.so", "e4b82202be4a060f91d6c28f44d892b250cf6a47", "/system/lib/hw/hwcomposer.s5pc110.so", "1071e36da59ace4169c138118eb72d1f38375fcf", "/system/lib/hw/gps.goldfish.so", "9cfd267a6f6c15b99403c3b0eb0304417cf1f3e8", "/system/lib/hw/sensors.goldfish.so", "3ee28ec356ffa83b698f7d703605b03e37f182cf", "/system/lib/hw/sensors.herring.so", "9c933cfaf4d7a3fd75ff3fd3ba1f5c99fb61aea4", "/system/lib/hw/lights.goldfish.so", "5ce97f2a4245d7acb2b1a1319a5415a98c00fbf3", "/system/lib/libjpeg.so", "bdb88fe8732a0dce2fa7338b7a1c7b3ad55fe1b3", "/system/lib/libglib.so", "43b7bbb92a37d689b000d971c29795f4808474c8", "/system/lib/libdiskconfig.so", "e0a86139ce1c36aebc4bc9a677f9120ace45522c", "/system/lib/libbcc.so", "8008001ef050fc13eda0c3c542dcdea354106a50", "/system/lib/libutils.so", "49ea83ebe8c6b0811e599d3d400f79c415f5c80a", "/system/lib/libvorbisidec.so", "6b2f23794ea0b13d13e8d1fb1e72b5d54c371747", "/system/lib/libnfc.so", "4a32babd8ed1b124005706f6a40709396cfd021e", "/system/lib/bluez-plugin/input.so", "c526503459dfc2bf9ee222e54d2ca63f84c2f2e6", "/system/lib/bluez-plugin/bluetooth-health.so", "405d65ac52c5b7c91adaf16dfa8e1cb51308f890", "/system/lib/bluez-plugin/audio.so", "492a454e9c5e39945877885b938cb382d13b1272", "/system/lib/bluez-plugin/network.so", "3d115ad393d11a8ca05cd47459374f491c662871", "/system/lib/libdbus.so", "49bf20cf4bac139cea4c9e4bcb75f2ef60729a51", "/system/lib/libsensorservice.so", "b82a4abc809937bcb0aec3fc2228b2af37674c11", "/system/lib/libstagefright_soft_mpeg4dec.so", "e5614f2cf47c4814eaaefb642332a93636814af6", "/system/lib/libstagefright_amrnb_common.so", "e6081dfb53f2f5f0fda0e22edd56bdbb5aeeaf95", "/system/lib/libcamera_client.so", "d9dbdaaf42af5c77452406ecf2abb9b31faf6843", "/system/lib/libsrec_jni.so", "8d06dc316c4209c18048a1bd2e4eb65a229705c3", "/system/lib/libcrypto.so", "aca58b6b72c7b2016d8141d0e26de26b9c9d30e2", "/system/lib/libicuuc.so", "ef7007d17bde7e5e4883cf74d580bd892c08ff55", "/system/lib/libext2_e2p.so", "c8eee6f7fa24e916d0848203c574c3d1e95b3e5a", "/system/lib/libc_malloc_debug_leak.so", "0e754257ff0d01a1e809ea1ea084a4c2cb749a37", "/system/lib/libiprouteutil.so", "9c52922eeed75e9abc501fd45851404200bd8266", "/system/lib/libjnigraphics.so", "1ba961165e656e8eae3c320834b7609841410546", "/system/lib/libaudioutils.so", "60ea6b5440f8011ce001cdb2daf4b129bc025215", "/system/lib/libSR_AudioIn.so", "98e47e448c4b537db2bb907154c106eae133fcc1", "/system/lib/libETC1.so", "f5ed26d3ca63400a6d43b907b3f7369c2d7fc57c", "/system/lib/libc_malloc_debug_qemu.so", "43786af19f6d1cd757472331590188e2a6b53afb", "/system/lib/libnetutils.so", "fff5e5b88dcd10ba706cd6c35a20addc550e4abe", "/system/lib/libharfbuzz.so", "49747238cfdd060c99bce5ab2f626b9ff675967f", "/system/lib/libsecril-client.so", "ca76d330b5ec8fc0a507369c31e8f9ce234bc7a2", "/system/lib/libOMX.SEC.AVC.Decoder.so", "4c067b2b0d08c26159ef7824401ce70bb228e983", "/system/lib/libicui18n.so", "aeabcd0ff2460abb58dba8db5b97344de9340f28", "/system/lib/libext2fs.so", "9ed07dad377e80ad913490f374709842aa56687c", "/system/lib/libexif.so", "71bda6b2c596982208c5326087494d3e31969a74", "/system/lib/libmedia.so", "9ff9429dce4c474b6bcf87f89ae93ab9b481b247", "/system/lib/libandroid.so", "f63609ac8d0297aa774405bdff66e41434258829", "/system/lib/drm/libfwdlockengine.so", "c139f2aeeb4dc0e7d1dfb760e881f332e5df947f", "/system/lib/libEGL.so", "dce1f3e3349c5aa7c9864661f68de0ba6f9ed960", "/system/lib/libbluedroid.so", "4e56d57bac668d054339cedb17a04a4112703c64", "/system/lib/libstagefright_foundation.so", "676f4b61281a304adcb7564b0cc7cc86bc4e7c3e", "/system/lib/libGLESv1_CM.so", "c95db97407430746a789d3c063f31885a0a38204", "/system/lib/libjni_latinime.so", "dca61bf57ef76d665f291ee41655d05a51e41c7a", "/system/lib/libstagefright_enc_common.so", "6f63373abb5504982603a71c00585c00a4d38e18", "/system/lib/libttspico.so", "fdbc215d0bf4d32c2226ad2eeb05c8af400c055a", "/system/lib/libusbhost.so", "a49530e273480a400b16e373eb2933c183ff3587", "/system/lib/libmtp.so", "ee4c51abb8d362944c61ebe81c75c016bbdd00a6", "/system/lib/libcutils.so", "fbd8fd369f0e8629e6ef9b5cc5a1fec2cb81bd86", "/system/lib/liblog.so", "d9eccfb9e338b2b1d3f5f6acff9500eca8a369fa", "/system/lib/libc.so", "bcd1339c098c346c0982bcd42f11518bf70f2ce7", "/system/lib/libbinder.so", "b78cf9234d01ffe6e61d11f4bee0d9f9878970d9", "/system/lib/librtp_jni.so", "a24e2e6386fba2d4f0e52ce7ef18ad36224db235", "/system/lib/libdrmframework_jni.so", "ec2ded5bfc8168dfc5f87671ab00c709a69c11b4", "/system/lib/libsysutils.so", "524f6ff488f9f6627430fb55764e540e6d792472", "/system/lib/libext2_com_err.so", "b9d60c4852cca097969db78202924860fa08c532", "/system/lib/libspeexresampler.so", "524334257b87c352b9835161df0d2f8bd54573b5", "/system/lib/libstagefright_soft_vorbisdec.so", "1a5a90a8a21cf76d8077564f9f94e7b474106cdf", "/system/lib/libext2_uuid.so", "85d78fe8b4eb7d220bae92411bf5494fffd27bfb", "/system/lib/libfilterfw.so", "82912f4b30df7650ea8fa21aae0f73f68cf31e1a", "/system/lib/libmediaplayerservice.so", "5f9a45918c28ff5f72dbeeaae166cb2b8e23f00e", "/system/lib/libOpenMAXAL.so", "484fa267f7a3b2ec9151e6c0319615b8a4c5d477", "/system/lib/libssl.so", "2a000f0891605179c9713055cb71d0f7836b6348", "/system/lib/libstagefright_yuv.so", "aa3f2ae22ad4152b28e5ec7568047e3546785931", "/system/lib/libz.so", "341286f98a455daf3e7283e9bd90e065800ded38", "/system/lib/libsonivox.so", "fff1920ab99925168d968e4aea8dfe2a8bad9f22", "/system/lib/libstagefright_soft_vpxdec.so", "41a2e328f93de570a97f8cf4f854983fee9fb919", "/system/lib/libclcore.bc", "a1e2610fdc0c2ef151248092fa32be807d1b983d", "/system/lib/libstagefright_soft_aacdec.so", "8d3e2e2ad9f6f7576d69d46c2e44cf36323dc2ca", "/system/lib/libsurfaceflinger_client.so", "12ba180d276b44d96e23f91c3d328f6ffdeed0eb", "/system/lib/libnetlink.so", "984b69f6ac2cfcebe6f1cd7c517cd0a753933d07", "/system/lib/libstagefright_avc_common.so", "513fc8b1dc28c59859fd615dcb7ff23453dcbba6", "/system/lib/libaudioflinger.so", "92d44f8380cef98be2312ccc6424ad1519408c1e", "/system/lib/libreference-ril.so", "5e3f8dc54c7d3988f4efcc527827ae282bff1c01", "/system/lib/libstagefright_soft_g711dec.so", "bf0a19063e6dbf7d27ebf2864be85e69b682b5f2", "/system/lib/libsqlite.so", "de9f83f35a5331b748f841274b5ace3a40bf4f96", "/system/lib/libstagefright_soft_mp3dec.so", "788827a9d0aa25d978e0438a98f90027828301bf", "/system/lib/libnativehelper.so", "93012e7952de63e0d135eda13c5fe81013f429b5", "/system/lib/libstagefrighthw.so", "9febb1608223ffff6de8242fd992493b02de86fe", "/system/lib/libvariablespeed.so", "fa5453fd5509d21cc786c372d4078b2f64e16d14", "/system/lib/libSEC_OMX_Core.so", "0ddc0742a0530eccf78682465a02d8080aa9bd82", "/system/lib/libbtio.so", "50bc7fa64e1c38db3da0874cec7f333ab79be543", "/system/lib/libhardware.so", "7b7bf794a080c86188286e1659b76d23f541cd6a", "/system/lib/librs_jni.so", "7c6c4dbbd63d5caa91f109d4fc0f5e7fe24c0eb4", "/system/lib/libemoji.so", "5425905ee8f2e3f2d0e620d0f43fded0238c9ce1", "/system/lib/libpowermanager.so", "64e41a6be4a18e1a759d16efdbb308c64fe917b7", "/system/lib/libgabi++.so", "3967faff8029e179dd87367f0556ea600c6fcb83", "/system/lib/libbcc.so.sha1", "925f36b279ff57ed8b31b51ae1382e97465b6c0c", "/system/lib/libext2_blkid.so", "1c959589996f9dd25fafceeee03fe4cde5611f0e", "/system/lib/libpixelflinger.so", "135aefc8f8dafdfe5e7db71501006f309b25257b", "/system/lib/libstdc++.so", "886dc19f381fafec376dc1f292aa1f0383e63bf2", "/system/lib/libm.so", "c763a2b65489fea3335ea77d697a98498a63413e", "/system/lib/libthread_db.so", "8bd44c66b1bf7b3f44ccab084407aebefdc17648");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/gps.xml");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
write_raw_image(package_extract_file("boot.img"), "boot");
show_progress(0.100000, 0);
unmount("/system");
Click to expand...
Click to collapse
This is my original updater-script file. Maybe someone here can see if it's right. But it looks ok to me.
djjonastybe said:
This is my original updater-script file. Maybe someone here can see if it's right. But it looks ok to me.
Click to expand...
Click to collapse
Did you try what I suggested, that should have solved your problem.
I am still redownloading all source files. My VM crashed yesterday. So I have to redownload everything.
It can take lots of hours. Last time it took like 6 hours.
djjonastybe said:
I am still redownloading all source files. My VM crashed yesterday. So I have to redownload everything.
It can take lots of hours. Last time it took like 6 hours.
Click to expand...
Click to collapse
I am not a fan of compiling it in VM. You haven't considered a dual boot with linux? that would faster.
yeah but I like to play counter strike source meanwhile compiling Since it takes a long time...
And I dont know if bumblebee project is compatible with the 10.04 LTS release ? normally it should
I wonder how decreasing from 2048 to 1024 can solve that kind of problem. Is that all I have to do?

Update script permission?

I am finishing off an update script and ran into a problem trying to set the permissions on an init.d script that I am loading to the system. Here are a few things I have tried to set on "crystal_clear" without success.
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/crystal_clear");
Am I even close with this? This is my first update script. I bet i'm just missing something stupid but it's been killing me for hours and tried so many variations.
Here is everything so far. If there is something else you see here that doesn't look right please let me know.
show_progress(0.1, 0);
ui_print("Mounting System Partition");
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
package_extract_file("tweaks/buildprop.sh", "/tmp/buildprop.sh");
package_extract_file("tweaks/sysmount/sysrw", "/tmp/sysrw");
package_extract_file("tweaks/sysmount/sysro", "/tmp/sysro");
set_perm(0, 0, 0777, "/tmp/buildprop.sh");
set_perm(0, 0, 0777, "/tmp/sysrw");
set_perm(0, 0, 0777, "/tmp/sysro");
ui_print("");
ui_print("Patching Build.prop");
run_program("/sbin/sh", "/tmp/sysrw");
run_program("/sbin/sh", "/tmp/buildprop.sh");
ui_print("");
ui_print("Patching adreno_config.txt, and egl.cfg");
package_extract_dir("system", "/system");
run_program("/sbin/sh", "/tmp/sysro");
show_progress(0.1, 10);
ui_print("");
ui_print("All tweaking processes are done");
ui_print("Adjusting framebuffer and color depth");
package_extract_file("system", "/system/etc/init.d");
set_perm(0, 0, 0777, 0777, "/etc/init.d/crystal_clear");
show_progress(0.2, 0);
unmount("/system");
ui_print("DONE");
General comments.
A simple
Code:
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
after I've extracted the all the files I've wanted to the right place has always worked fine in the CWM ZIP I keep for personal use to install BusyBox etc.
razz1 said:
package_extract_file("tweaks/sysmount/sysrw", "/tmp/sysrw");
package_extract_file("tweaks/sysmount/sysro", "/tmp/sysro");
set_perm(0, 0, 0777, "/tmp/sysrw");
set_perm(0, 0, 0777, "/tmp/sysro");
run_program("/sbin/sh", "/tmp/sysrw");
run_program("/sbin/sh", "/tmp/sysro");
Click to expand...
Click to collapse
You don't need these. CWM/TWRP will mount /system rw by default and you don't really need to remount it ro in CWM.
package_extract_dir("system", "/system");
package_extract_file("system", "/system/etc/init.d");
Click to expand...
Click to collapse
Is "system" a directory or a file?
That said, I think you want the former - just have a system folder in the root of your ZIP mirroring where you want the files to be placed (so in your ZIP, create a "system" folder at the same level as META-INF and then have a "etc" folder inside that, then a "init.d" folder inside "etc" with your script inside "init.d").
THANK YOU!
I'm going to try a few things you said and go from there.
Here is my current hierarchy...
4xMultiSampling_Antialiasing.zip
......META-INF
..........com
.............google
................android
.....................update-binary
.....................updater-script
......system
.........etc
.............Init.d
................crystal_clear. <-----this is what would not change to 0777
......lib
........egl
..........egl.config
......tweaks
.........build.prop.sh
.........sysmount
..............sysro
..............sysrw
razz1 said:
.............Init.d
Click to expand...
Click to collapse
If that's not a typo, it needs to be init.d - ext* file systems, unlike Windows', are case-sensitive
Yes that was a typo, but I appreciate your attention to detail because that's is exactly what I need. As you know, its that sort of thing that can kill a script. Critique away!
It appears I was able to pull it off with your help. Thanks. All is well here now.
Glad to hear it.

[Q] zip for recovery with installation of apps /data

Good morning,
First I apologize if this post goes here.
I'm trying to make a flash file to install some apps in memory data, but there is no way to run the script because I do not know how to mount / data.
How could mount /data?
I put the script that used so far to copy some melodies, the bootanimation and some app to /system
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/media/audio");
set_perm_recursive(0, 0, 0755, 0644, "/system/media/bootanimation.zip");
unmount("/system");
Im not a pro in developing x)
From what i know u can make flashaple zips at android kitchen
Sent from my GT-N7100 using xda premium

[GUIDE]Aroma Installer on any rom[Easy and simple]

Hello XDA member, i have little guide to add Aroma In your rom, this guide very easy to use, just need little change, and i gave the clues what you can change and can't change
Ok, to the point of the guide
Download the latest AROMA installer from this thread or my edited Aroma installer here
Then follow these little instructions
loadlang("langs/en.lang");
change "langs/en.lang" to change language, see in the aroma folder
theme("sense");
change "sense" to change aroma theme, see in the aroma folder
Added changelog/features
write your rom features or changelog in this files the file is in META-INF\com\android\google\android\aroma\changelog.txt
Little tutorial
Note :
> "xxx" means the words inside this ""
> you can change all xxx words
Option 1 : Option for select devices
> In aroma-config
);
selectbox(
#-- Title
"xxx", > you can change the "xxx" words
#-- Sub Title
"xxx", > you can change the "xxx" words
#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png
"@default",
#-- Will be saved in /tmp/aroma/mods.prop
"system.prop",
"xxx","", 2, > you can change the "xxx" words
"xxx","xxx",1, > you can change the "xxx" words
"xxx","xxx",0, > you can change the "xxx" words
"xxx","xxx",0 > you can change the "xxx" words
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
> In updater-script
# xxx
# xxx
if
file_getprop("/tmp/aroma/system.prop","selected.1") == "1"
then
ui_print("xxx");
package_extract_dir("model/p760", "/system");
endif;
> you can change the "xxx" after "package_extract_dir" words depend on your own,
i use p760, which is the file is located in model/p760 folder,
make sure you put the right position of the file,
example :
i want to put "ducati-m3.bin" file in system/vendor/firmware
then that file should be in model/p760/vendor/firmware (look at the folder)
do the same thing for the rest of it
Option 2 : Option for add or remove apps
You can edit what you to install or remove from your rom, i used "Live Wallpapers" and some apps, you can edit yourself
> In aroma-config
checkbox(
"Install apps", > you can change the "xxx" words
"Uncheck items to remove", > you can change the "xxxx" words
"@default", > you can't change the "xxx" words
"remove.prop", > you can't change the "xxxx" words
"Live Wallpapers","",2, > you can change the "xxx" words
"Basic Dreams","",1, > you can change the "xxx" words
"Cosmic Flow","",1, > you can change the "xxx" words
"Photo Table","",1, > you can change the "xxx" words
"Applications","",2, > you can change the "xxx" words
"Carhome.apk","Carhome",1, > you can change the "xxx" words
"Protips.apk","Pro tips",1, > you can change the "xxx" words
"QuickBoot.apk","Quick Boot",1, > you can change the "xxx" words
);
> In updater-script
For install apps
# xxx > you can change the xxx words
# xxx > you can change the xxx words
if
file_getprop("/tmp/aroma/xxx.prop","selected.1") == "1" > you can change the xxx.prop words
then
ui_print("xxxx"); > you can change the "xxx" words
package_extract_file("camera/GoogleCamera.apk", "/system/app/GoogleCamera.apk");
endif;
> you can change the "xxx" after "package_extract_file" words depend on your own,
i use camera, which is the file is located in camera folder, then name of camera app
then i want to install in system/app folder, do the same thing for the rest of it
For remove apps
# xxx > you can change the xxx words
# xxx > you can change the xxx words
if
file_getprop("/tmp/aroma/remove.prop","item.1.1") == "0"
then
delete("/system/app/CarHome");
endif;
> change this "/system/app/CarHome" depend on what you want to remove, i used CarHome app
do the same thing for the rest of it
Last step : Change Updater script for installing rom
=> Step one : Device initial
Fine these lines
assert(getprop("ro.product.device") == "p760" || getprop("ro.build.product") == "p760" || abort("This package is for \"p760\" devices; this is a \"" + getprop("ro.product.device") + "\"."); );
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
set_perm(0, 0, 0644, "/tmp/backuptool.functions");
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.200000, 0); >until this
Replace those lines with your updater.scirpt until show_progress line
=> Step Two : Format system
Fine these lines
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
Replace those lines with your updater.scirpt
=> Step Three : Extracting files and setup symlink
"xxx" means skiping
Fine these lines
ui_print("@ Extracting System Files..");
package_extract_dir("system", "/system");
symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
symlink("../xbin/su", "/system/bin/su");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
"/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
"/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
xxxxx
xxxxx
show_progress(0.600000, 0);
Replace those lines with your updater.scirpt until show_progress line
=> Step Four : Setting permission
"xxx" means skiping
Fine these lines
ui_print("@ Setting Permissions");
set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u: object_r:system_file:s0");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u: object_r:system_file:s0");
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u: object_r:system_file:s0");
set_metadata("/system/bin/app_process", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u: object_r:zygote_exec:s0");
set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u: object_r:clatd_exec:s0");
xxxx
xxxx
ui_print("@ Done");
ui_print("@ By nasheich");
ui_print("@ If you like this new build");
ui_print("@ Go back to my thread and press THANKS button");
show_progress(1.000000, 0);
unmount("/system");
Replace those lines with your updater.scirpt until unmount("/system"); line
Click to expand...
Click to collapse
Credit :
- amarullz for Aroma Installer
- nasheich for this little guide
Tips and Trick
- For rom under Android 4.4.2 (Kitkar), skip the step 3 and step four,
- After installation, take a log, it's easier if your get installation failed, like status 6, status 7, etc
note : status 0 it's mean working or installation successful
Questions and Answers
Q : Can i use this on my rom ?
A : Yes, this cam be used for any roms
Q : I got error on installation, status 6/7
A : Check your updater.script, there must be something wrong
Q : I've checked it all, look like nothing wrong in updater.script, any idea ?
A : Try another recovery, in some device, aroma didn't work
@Nasheich Xfiles the link to your installer is broken.

[GUIDE] [TUT] Enable Bootanimation Sound On/Off Device For CyanogenMod - ‏LineageOS

Today Present way to enable sounds at bootanimations turn on/off device
if you open that file named bootanimation in system/bin, will find the way and follow, i have prepared the guide for cyanogenmod lollipop & marshmallow & nougat​​
Let's Start​Marshmallow & Lollipop :​​just i explain to you how to find it go to system/bin and open bootanimation
will conclude the following :
1 - codec for audio file must be [only 16 bit WAV files are supported]
2 - file will put in system/media [boot.wav & shutdown.wav]
3 - file zip will be named [shutdownanimation.zip & bootanimation.zip]
4 - open your build prob and add this lines
PHP:
ro.config.power_on=boot.wav
ro.config.power_off=shutdown.wav
​
Nougat :​​just i explain to you how to find it go to system/bin and open bootanimation
will conclude the following :
1 - codec for audio file must be .wav
2 - file will put in system/media [audio.wav]
3 - file zip will be named [bootanimation.zip]
4 - open your build prob and add this lines
PHP:
ro.config.power_on=boot.wav
ro.config.power_off=shutdown.wav
persist.sys.bootanim.play_sound=true
marshmallow & lollipop guide may work with some of nougat's roms
app help you to get and set audio file 16 bit WAV
Guide not confusing, it's very easy just put audio files and lines in build prob, guide long because i explaining with details
​Updater Script for Patching​
PHP:
ui_print("Installing Patch Boot Audio...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
delete("/system/media/shutanimation.zip");
delete("/system/media/boot.wav");
delete("/system/media/bootanimation.zip");
delete("/system/media/shutdown.wav");
delete("/system/media/shutdownanimation.zip");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Setting metadata...");
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/bin/bootanimation", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:bootanim_exec:s0");
set_metadata_recursive("/system/media", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Done!");
Download files audio and bootanimation for testing​
​
Support me, don't forget to hit thanks button​
well-done
Nice

Categories

Resources