init.d on 5X - Nexus 5X Q&A, Help & Troubleshooting

I was wondering where init.d might be located on 5X? Not able to find it in /system/etc/ like most devices.
Basically trying to include a new init.d script but not sure where to put it.
Thanks in advance!

catharsis724 said:
I was wondering where init.d might be located on 5X? Not able to find it in /system/etc/ like most devices.
Basically trying to include a new init.d script but not sure where to put it.
Thanks in advance!
Click to expand...
Click to collapse
Try placing in /su/su.d/ if you're rooted with superSU
Sent from my SHIELD Tablet K1 using Tapatalk

Exile1975 said:
Try placing in /su/su.d/ if you're rooted with superSU
Sent from my SHIELD Tablet K1 using Tapatalk
Click to expand...
Click to collapse
Might not have that because I have systemless phh Superuser.
Code:
bullhead:/ # ls
...
drwxr-xr-x 3 0 2016-11-28 00:38 res
drwx------ 2 0 2016-11-07 18:55 root
drwxr-xr-x 3 4.0K 2016-11-28 11:20 sbin
lrwxrwxrwx 1 21 2016-11-28 00:38 sdcard -> /storage/self/primary
-rw-r--r-- 1 758 2016-11-28 00:38 seapp_contexts
-rw-r--r-- 1 68 2016-11-28 00:38 selinux_version
-rw-r--r-- 1 203K 2016-11-28 00:38 sepolicy
-rw-r--r-- 1 11K 2016-11-28 00:38 service_contexts
drwxr-xr-x 4 80 2016-11-28 11:20 storage
dr-xr-xr-x 13 0 1971-01-18 11:50 sys
drwxr-xr-x 17 4.0K 2016-11-27 15:50 system
...

Related

Blu Studio 5.3 - Customizing GUI Audio and Boot Animation

Hi there again. I was just browsing around my Blu Studio 5.3 using adb and found these customizing gems.
Boot Animation and Audio
The Studio 5.3 apparently uses a standard bootanimation.zip and bootaudio.mp3 for its bootup. These files are found in /system/media. Going to try a custom one.
Edit: Custom boot animations work including zips using jpg files. Just make sure that you create your zip in STORAGE mode only, don't use compression or it won't work.
User Interface Sounds
The sounds for alarms, notifications and ringtones are in /system/media/audio:
Code:
/system/media/audio
drwxr-xr-x 1 0 0 2048 Jan 1 2010 .
drwxr-xr-x 1 0 0 2048 Jan 1 2010 ..
drwxr-xr-x 1 0 0 2048 Jan 1 2010 alarms
drwxr-xr-x 1 0 0 2048 Jan 1 2010 notifications
drwxr-xr-x 1 0 0 2048 Jan 1 2010 ringtones
drwxr-xr-x 1 0 0 2048 Jan 1 2010 ui
Also, apparently we can customize the audio for the UI itself. I found these files listed in /system/media/audio/ui:
Code:
/system/media/audio/ui
drwxr-xr-x 1 0 0 2048 Jan 1 2010 .
drwxr-xr-x 1 0 0 2048 Jan 1 2010 ..
-rw-r--r-- 1 0 0 3753 Aug 1 2008 Effect_Tick.ogg
-rw-r--r-- 1 0 0 6193 Aug 1 2008 KeypressDelete.ogg
-rw-r--r-- 1 0 0 7972 Aug 1 2008 KeypressReturn.ogg
-rw-r--r-- 1 0 0 7392 Aug 1 2008 KeypressSpacebar.ogg
-rw-r--r-- 1 0 0 3753 Aug 1 2008 KeypressStandard.ogg
-rw-r--r-- 1 0 0 4661 Aug 1 2008 Lock.ogg
-rw-r--r-- 1 0 0 4666 Aug 1 2008 Unlock.ogg
-rw-r--r-- 1 0 0 5582 Aug 1 2008 VideoRecord.ogg
-rw-r--r-- 1 0 0 10289 Aug 1 2008 camera_click.ogg
-rw-r--r-- 1 0 0 8484 Aug 1 2008 focused.ogg
-rw-r--r-- 1 0 0 21471 Aug 1 2008 focusing.ogg
Hi guys,
As you can see I'm new at the forum, but I have a Motorola Atrix 4G, Rooted, Unlocked BOOTLOADER, and with the NOTTACHTRIX ROM Installed with the Darks Side Kernel....
I also recently bought a Blu Studio D510, and I have an issue with play music...
I tried with several music players, and I'm still not success...
All the type of files that I tried are .mp3 and .wma
Do you know were I need to put the files in order to used the music player?
Thank You...
Ing.MiguelSR said:
Hi guys,
As you can see I'm new at the forum, but I have a Motorola Atrix 4G, Rooted, Unlocked BOOTLOADER, and with the NOTTACHTRIX ROM Installed with the Darks Side Kernel....
I also recently bought a Blu Studio D510, and I have an issue with play music...
I tried with several music players, and I'm still not success...
All the type of files that I tried are .mp3 and .wma
Do you know were I need to put the files in order to used the music player?
Thank You...
Click to expand...
Click to collapse
I've seen that you placed your question to different threads dealing with BLU Studio 5.3, but nobody has answered yet,
I cannot tell you any wise advice either, because in my phone -- and presumably in case of others' also -- the stock Music Player finds the mp3 songs in the SD card, whichever folder they are in, and plays them normally.
Your op, system must be faulty then. A hard reset (after backup) may help.
Regards,
Tibor

[Q] cm10 2012-11-04 gio bln

Dear jellaxy developers,
I'm not allowed to ask this one in the development section, because I am a noob with less then 10 posts. Obviously I have to post 10 posts.....
CM10 2012-11-04: GIO:
Great Release, no Problems so far. For me faster and more memory efficient than cm9.
But BLN does not work. In earlier CM9 releases I managed to get some liblights.so to get it running. In a later post I found erikcas mentioning that the lights.so have to be deleted... Neither works. My /system/lib/hw looks like:
localhost hw # ls -l
total 1177
-rw-r--r-- 1 root root 58768 Aug 1 2008 audio.a2dp.default.so
-rw-r--r-- 1 root root 5524 Aug 1 2008 audio.primary.default.so
-rw-r--r-- 1 root root 50692 Aug 1 2008 audio.primary.gio.so
-rw-r--r-- 1 root root 75324 Aug 1 2008 audio_policy.default.so
-rw-r--r-- 1 root root 75320 Aug 1 2008 audio_policy.gio.so
-rw-r--r-- 1 root root 17800 Aug 1 2008 camera.gio.so
-rw-r--r-- 1 root root 9552 Aug 1 2008 copybit.msm7x27.so
-rw-r--r-- 1 root root 9608 Aug 1 2008 gps.goldfish.so
-rw-r--r-- 1 root root 60788 Aug 1 2008 gps.msm7x27.so
-rw-r--r-- 1 root root 9888 Aug 1 2008 gralloc.default.so
-rw-r--r-- 1 root root 18104 Aug 1 2008 gralloc.msm7x27.so
-rw-r--r-- 1 root root 42348 Aug 1 2008 hwcomposer.msm7x27.so
-rw-r--r-- 1 root root 9572 Aug 1 2008 keystore.default.so
-rw-r--r-- 1 root root 9748 Aug 1 2008 lights.msm7x27.so
-rw-r--r-- 1 root root 5464 Aug 1 2008 local_time.default.so
-rw-r--r-- 1 root root 5416 Aug 1 2008 power.default.so
-rw-r--r-- 1 root root 84112 Aug 1 2008 sensors.gio.so
-rw-r--r-- 1 root root 9568 Aug 1 2008 sensors.goldfish.so
I tried to delete the lights.msm7x27, but I think this ones for the brightness of the display....
Any hints?
Best Regards
K
Rename from .zip to .so and put it in /system/lib/hw (rw-r--r--)
konstantin12 said:
Rename from .zip to .so and put it in /system/lib/hw (rw-r--r--)
Click to expand...
Click to collapse
Thanks, I tried this. It looked like that:
localhost home # mount -o rw,remount /system/system
localhost home # cd /system/lib/hw/
localhost hw # mv /data/lights.gio\(1\).zip .
localhost hw # mv lights.gio\(1\).zip lights.gio.so
localhost hw # chmod 644 lights.gio.so
localhost hw # mount -o ro,remount /systemnt /system
localhost hw # ls -l
total 1193
-rw-r--r-- 1 root root 58768 Aug 1 2008 audio.a2dp.default.so
-rw-r--r-- 1 root root 5524 Aug 1 2008 audio.primary.default.so
-rw-r--r-- 1 root root 50692 Aug 1 2008 audio.primary.gio.so
-rw-r--r-- 1 root root 75324 Aug 1 2008 audio_policy.default.so
-rw-r--r-- 1 root root 75320 Aug 1 2008 audio_policy.gio.so
-rw-r--r-- 1 root root 17800 Aug 1 2008 camera.gio.so
-rw-r--r-- 1 root root 9552 Aug 1 2008 copybit.msm7x27.so
-rw-r--r-- 1 root root 9608 Aug 1 2008 gps.goldfish.so
-rw-r--r-- 1 root root 60788 Aug 1 2008 gps.msm7x27.so
-rw-r--r-- 1 root root 9888 Aug 1 2008 gralloc.default.so
-rw-r--r-- 1 root root 18104 Aug 1 2008 gralloc.msm7x27.so
-rw-r--r-- 1 root root 42348 Aug 1 2008 hwcomposer.msm7x27.so
-rw-r--r-- 1 root root 9572 Aug 1 2008 keystore.default.so
-rw-r--r-- 1 root root 6170 Nov 8 07:59 lights.gio.so
-rw-r--r-- 1 root root 9748 Aug 1 2008 lights.msm7x27.so
-rw-r--r-- 1 root root 5464 Aug 1 2008 local_time.default.so
-rw-r--r-- 1 root root 5416 Aug 1 2008 power.default.so
-rw-r--r-- 1 root root 84112 Aug 1 2008 sensors.gio.so
-rw-r--r-- 1 root root 9568 Aug 1 2008 sensors.goldfish.so
localhost hw # exit
BLN Control still shows an error.
Maybe I should try a fresh install, since I upgraded from a CM9. Hmmm.

Auto-Debloat S4 Flashable Zip! [16 Jun 2013]

Now you can auto-debloat your Galaxy S4 beauty using my new Auto-Debloat S4 flashable zip!
Link: http://www.mediafire.com/download/awabu8cg5a19lj4/Debloat-SGS4.zip
This is tested working on my rooted, unlocked (bootloader) SGH-I337 (AT&T) running Stock AT&T JB 4.2.2 I337UCUAMDL and TWRP Recovery 2.5.0.2.
But it should work on just about any S4 ROM though the primary target is JB 4.2.2.
Now of course there are many ways to debloat your rooted S4. But you may find this one very useful.
By default, my flashable zip frees up 600MB of precious space in your 2.7GB /system partition by removing approximately 90 bloatware apks and their corresponding odex files! Run time is just over 30 seconds.
And the customizable database file (bloatware-apk-sorted.txt) is sorted by file size to help you focus on big bloats like Samsung’s Health app “SHealth2.apk” (88 MB).
Thus you can debloat even more by extracting the database “bloatware-apk-sorted.txt” from zip, changing filename suffixes from “.KEEP” to “.apk”, reinserting database and reflashing. Run time is shorter on the second and subsequent passes.
Want to "rebloat"? No problem: All bloatware is safely moved to a special directory: /sdcard/Download/Bloatware for quick recovery.
As usual, “I will let YOU DECIDE whether to wipe data!”
Here’s a clip of my original database “bloatware-apk-sorted.txt” showing some of the worst offenders --- at least in terms of file size:
-rw-r--r-- 1 root root 88540395 Apr 27 2013 SecSettings.KEEP
-rw-r--r-- 1 root root 87854416 Apr 27 2013 SHealth2.apk
-rw-r--r-- 1 root root 39695494 Apr 27 2013 Episodes.apk
-rw-r--r-- 1 root root 39428223 Apr 27 2013 SecGallery2013.KEEP
-rw-r--r-- 1 root root 36196565 Apr 27 2013 GroupPlay_20.apk
-rw-r--r-- 1 root root 33781912 Apr 27 2013 InteractiveTutorial.apk
-rw-r--r-- 1 root root 28792764 Apr 27 2013 SecContacts.KEEP
-rw-r--r-- 1 root root 27349911 Apr 27 2013 S-Voice_Android_phone_J.apk
-rw-r--r-- 1 root root 26746285 Apr 27 2013 Match3VS.apk
-rw-r--r-- 1 root root 25549401 Apr 27 2013 SMemo2.apk
-rw-r--r-- 1 root root 25440434 Apr 27 2013 Peel.apk
-rw-r--r-- 1 root root 23676201 Apr 27 2013 SamsungBooks.apk
-rw-r--r-- 1 root root 23168685 Apr 27 2013 AllSharePlay15.apk
-rw-r--r-- 1 root root 22967881 Apr 27 2013 ChatONV_J.apk
-rw-r--r-- 1 root root 22829640 Apr 27 2013 ClockPackage.KEEP
-rw-r--r-- 1 root root 22407406 Apr 27 2013 PolarisOffice5.KEEP
Click to expand...
Click to collapse
And here’s the script engine: auto-debloat.sh
#!/sbin/sh
echo " "
echo "Auto-Debloat for Samsung S4!"
echo "Initial Release (16 Jun 2013)"
echo "sendust7 @ xda developers"
bloatdir="/sdcard/Download/Bloatware"
bloatfile="/tmp/bloatware-apk-sorted.txt"
echo " "
echo "All bloatware files are suffixed by .apk in $bloatfile"
echo "System apps to be retained are suffixed by .KEEP in $bloatfile"
echo "All bloatware (apk and odex) will be moved to $bloatdir"
if [ -d $bloatdir ]; then
echo " "
else
echo " "
mkdir $bloatdir
fi
while read line; do
apkname=$(echo $line | cut -d" " -f9)
apkprefix=$(echo $apkname | cut -d"." -f1)
apkodex=$apkprefix.odex
if [ -f /system/app/$apkname ]; then
echo "Moving /system/app/$apkname to $bloatdir ..."
mv /system/app/$apkname $bloatdir
if [ -f /system/app/$apkodex ]; then
echo "Moving /system/app/$apkodex to $bloatdir ..."
mv /system/app/$apkodex $bloatdir
fi
fi
done < $bloatfile
Click to expand...
Click to collapse
Blessings Enjoy
Boom.
Can i use your application to debloat my Samsung Galaxy S4 Active SGH-i537. Running android 4.2.2. Its branded by AT&T and want to get rid of these crapy apps of AT&T. Kindly let me know.
Regards,

[Q] I want to build CM12 for my D859(ChinaTelecom)

D859 has 2sims, I can't use other g3 template, right
I already read a loi of information from cm wiki about hout to build a cm,
but I still have any clue yet,
I got D859 official rom scr code yesterday from opensource.lge.com,
I don't know how can I start for building cm,
I need some help, thank you!:laugh:
Here is the list of the files
LGD859_Lollipop_LGD859_V20a_Android_opensource/android/external: $ ls -al
drwxr-xr-x 17 578 brctl
drwxr-xr-x 21 714 dnsmasq
drwxr-xr-x 44 1496 e2fsprogs
drwxr-xr-x 7 238 ebtables
drwxr-xr-x 12 408 gcc-demangle
drwxr-xr-x 25 850 iproute2
drwxr-xr-x 21 714 iptables
drwxr-xr-x 31 1054 iputils
drwxr-xr-x 15 510 junit
drwxr-xr-x 41 1394 libexif
drwxr-xr-x 20 680 libnetfilter_conntrack
drwxr-xr-x 16 544 libnfnetlink
drwxr-xr-x 18 612 libnl
LGD859_Lollipop_LGD859_V20a_Android_opensource/android/vendor/lge: $ ls -la
drwxr-xr-x 3 102 apps
drwxr-xr-x 3 102 build
drwxr-xr-x 5 170 external
drwxr-xr-x 3 102 factory
drwxr-xr-x 4 136 frameworks
drwxr-xr-x 3 102 prebuilt
drwxr-xr-x 4 136 system
LGD859_Lollipop_LGD859_V20a_Android_opensource/kernel: $ ls -al
-rw-r--r-- 1 5935 AndroidKernel.mk
-rw-r--r-- 1 18693 COPYING
-rw-r--r-- 1 94984 CREDITS
drwxr-xr-x 237 8058 Documentation
-rw-r--r-- 1 2536 Kbuild
-rw-r--r-- 1 252 Kconfig
-rw-r--r-- 1 210475 MAINTAINERS
-rw-r--r-- 1 53855 Makefile
-rw-r--r-- 1 364155 Module.symvers
-rw-r--r-- 1 17459 README
-rw-r--r-- 1 3371 REPORTING-BUGS
drwxr-xr-x 31 1054 arch
drwxr-xr-x 38 1292 block
drwxr-xr-x 89 3026 crypto
drwxr-xr-x 112 3808 drivers
drwxr-xr-x 55 1870 firmware
drwxr-xr-x 149 5066 fs
drwxr-xr-x 26 884 include
drwxr-xr-x 14 476 init
drwxr-xr-x 17 578 ipc
drwxr-xr-x 133 4522 kernel
drwxr-xr-x 150 5100 lib
drwxr-xr-x 79 2686 mm
drwxr-xr-x 62 2108 net
drwxr-xr-x 14 476 samples
drwxr-xr-x 91 3094 scripts
drwxr-xr-x 18 612 security
drwxr-xr-x 28 952 sound
drwxr-xr-x 14 476 tools
-rw-r--r-- 1 37204 tuxera_update.sh
drwxr-xr-x 9 306 usr
drwxr-xr-x 3 102 virt
and its readme file said
1. Android build
- Download original android source code ( L 5.0 ) from source.android.com
- Untar opensource packages of LGD859_L_V20a_Android.tar.gz into downloaded android source directory
a) cat LGD859_L_V20a_Android.tar.gza* | tar zxvpf -
- And, merge the source into the android source code
- Run following scripts to build android
a) source build/envsetup.sh
b) lunch 1
c) make -j4
- When you compile the android source code, you have to add google original prebuilt source(toolchain) into the android directory.
- After build, you can find output at out/target/product/generic
2. Kernel Build
- Uncompress using following command at the android directory
tar xvzf LGD859_L_V20a_Kernel.tar.gz
- When you compile the kernel source code, you have to add google original prebuilt source(toolchain) into the android directory.
- Run following scripts to build kernel
a) cd kernel
1) D859
b) make ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- g3-ctc_cn-perf_defconfig zImage -j4
* "-j4" : The number, 4, is the number of multiple jobs to be invoked simultaneously.
- After build, you can find the build image(zImage) at arch/arm/boot
3. how to build chromium34_lge (vendor\lge\external\chromium34_lge\src),
please refer to README.txt at the folder mentioned above.

Rare directory listing in my Pixel 3 XL

Hi,
My apologies if this post in wrong place.
I already play with adb tool on my pixel 3 xl and I notice me rare directory listing.
Code:
adb shell ls -l
total 68
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 acct
drwxr-xr-x 54 root root 1140 2022-12-10 11:14 apex
lrw-r--r-- 1 root root 11 2008-12-31 22:00 bin -> /system/bin
lrw-r--r-- 1 root root 50 2008-12-31 22:00 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
l????????? ? ? ? ? ? cache -> ?
drwxr-xr-x 4 root root 0 1969-12-31 21:00 config
lrw-r--r-- 1 root root 17 2008-12-31 22:00 d -> /sys/kernel/debug
drwxrwx--x 49 system system 4096 2022-12-02 08:56 data
d????????? ? ? ? ? ? data_mirror
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 debug_ramdisk
drwxr-xr-x 23 root root 6180 2022-12-02 09:02 dev
lrw-r--r-- 1 root root 11 2008-12-31 22:00 dsp -> /vendor/dsp
lrw-r--r-- 1 root root 11 2008-12-31 22:00 etc -> /system/etc
l????????? ? ? ? ? ? init -> ?
-????????? ? ? ? ? ? init.environ.rc
d????????? ? ? ? ? ? linkerconfig
drwx------ 2 root root 16384 2008-12-31 22:00 lost+found
d????????? ? ? ? ? ? metadata
drwxr-xr-x 15 root system 320 1974-03-10 02:54 mnt
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 odm
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 odm_dlkm
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 oem
lrw-r--r-- 1 root root 19 2008-12-31 22:00 persist -> /mnt/vendor/persist
d????????? ? ? ? ? ? postinstall
dr-xr-xr-x 963 root root 0 1969-12-31 21:00 proc
drwxr-xr-x 14 root root 4096 2008-12-31 22:00 product
lrw-r--r-- 1 root root 21 2008-12-31 22:00 sdcard -> /storage/self/primary
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 second_stage_resources
drwx--x--- 4 shell everybody 80 1974-03-10 02:54 storage
dr-xr-xr-x 12 root root 0 1974-03-10 02:54 sys
drwxr-xr-x 12 root root 4096 2008-12-31 22:00 system
drwxr-xr-x 9 root root 4096 2008-12-31 22:00 system_ext
drwxr-xr-x 20 root shell 4096 2008-12-31 22:00 vendor
drwxr-xr-x 2 root root 4096 2008-12-31 22:00 vendor_dlkm
Anyone could light me what mean '??????? ?? ? ? " directory ?
Regards.

Categories

Resources