Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

For general discussion and questions specific to Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

Postby NYLimited » Thu Sep 19, 2013 5:17 pm

domix wrote:i have a problem,

i have 2.08.HSPL, Leo_RADIO_2.15.50.14, MAGLDR v1.13, ClockworkMod Recovery 5.0.2.6 and 2gb sd card

i instal thru aroma instaler, and istal on nand, everything is sucesful, and device restar, but stuck on boot screen where is a circle cyanongeMod. It can take a hour but nothing change.

Is problem with system partition i have 400m, or what i doing wrong.

every rom that i instal on nand stuck on boot screen, if i istal rom on sd card than work perfect, but where to fin a rom like this for instal on sd card


You cannot have a 400 MB system partition if you are installing everything in NAND.

You have to reduce the size of the system partition (which may create different problems) or purchase a larger SD card and switch to a DataOnEXT installation method.

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Advertisement
 

Postby NYLimited » Fri Sep 20, 2013 5:24 pm

malkovich wrote:It usually takes about two minutes, and I'm pretty sure they all use the same script. Which has been around for ages, so I don't think it came from kokotas. What recovery log do you mean? There is no error output. The fix_permissions script just starts normally, then a few milliseconds later exits normally.

I thought there would be many people who had tried fixing permissions on this ROM, it's a pretty regular thing for me.


Not sure why you are trying to fix permissions but if you feel adventurous try this script. Before you do, make sure you have a current nandroid backup just in case!

The script does require a working busybox, of course!

Copy the attached code someplace on your device, save it as "permissions" or some other name of your choice and set permission for it as executable. Launch TERMINAL and you should be able to run the script.

Be patient as it will parse all your apps so the more you have the longer it will take.

Code: Select all
#!/system/bin/sh

start=` busybox date +%s `
pkg_lines=`LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/system/lib pm list packages -f | busybox cut -d ':' -f2 `
total=` echo $pkg_lines | busybox wc -w `
current=0

echo
echo "Attempting to fix permissions... this could take a while!"
echo

busybox mount -o remount,rw /system

for pkgline in ${pkg_lines}; do
   
   packagename=` echo $pkgline | busybox cut -d '=' -f2 `
   bindir=` echo $pkgline | busybox cut -d '=' -f1 `
   datadir=/data/data/$packagename
   moduid=` busybox grep $bindir /data/system/packages.xml |
      busybox sed 's%.*serId="\(.*\)".*%\1%' | 
      busybox cut -d '"' -f1 `
   
   current=$(($current+1))
   echo "(${current} of ${total}) ${packagename}..."
   
   if busybox [ -e $bindir ]; then

      appdir=` busybox dirname $bindir `

      if busybox [ $appdir = /system/app ]; then
         busybox chown 0 $bindir
         busybox chown :0 $bindir
         busybox chmod 644 $bindir
      elif busybox [ $appdir = /data/app ]; then
         busybox chown 1000 $bindir
         busybox chown :1000 $bindir
         busybox chmod 644 $bindir
      elif busybox [ $appdir = /data/app-private ]; then
         busybox chown 1000 $bindir
         busybox chown :$moduid $bindir
         busybox chmod 640 $bindir
      fi

      if busybox [ -d $datadir ]; then

         busybox chmod 755 $datadir
         busybox chown $moduid $datadir
         busybox chown :$moduid $datadir

         directories=` busybox find $datadir -mindepth 1 -type d `

         for file in $directories; do

            setperm=755
            uid_1=$moduid
            gid_1=$moduid
            filename=` busybox basename $file `
            
            case $filename in
               lib)
                  busybox chmod 755 $file
                  uid_1=1000
                  gid_1=1000
                  setperm=755
               ;;
               shared_prefs)
                  busybox chmod 771 $file
                  setperm=660               
               ;;
               databases)
                  busybox chmod 771 $file
                  setperm=660
               ;;
               cache)
                  busybox chmod 771 $file
                  setperm=600
               ;;
               *)
                  busybox chmod 771 $file
                  setperm=771
               ;;
            esac
            
            busybox chown $uid_1 $file
            busybox chown :$gid_1 $file

            busybox find $file -type f -maxdepth 1 ! -setperm $setperm -exec busybox chmod $setperm {} ';'
            busybox find $file -type f -maxdepth 1 ! -user $uid_1 -exec busybox chown $uid_1 {} ';'
            busybox find $file -type f -maxdepth 1 ! -group $gid_1 -exec busybox chown :$gid_1 {} ';'

         done
      fi
   fi
done

busybox mount -o remount,ro /system
sync

stop=` busybox date +%s `
totaltime=` busybox expr $stop - $start`
hours=` busybox expr $totaltime / 3600`
remndr=` busybox expr $totaltime % 3600`
minutes=` busybox expr $remndr / 60`
seconds=` busybox expr $remndr % 60`
totaltime=`busybox printf "%02d:%02d:%02d\n" "$hours" "$minutes" "$seconds"`

echo
echo
echo "Finished settting permissions in ${totaltime}"
echo

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

Postby uguccione500 » Fri Sep 20, 2013 7:42 pm

Hello guys... But in the version 3.1 of this rom how I can enable ADB? In the past versions I have found it in the menu, now seems to be disappeared... :(
Thank you very much...
HTC HD2 (LEO512)
Bootloader: MAGLDR v1.13
HSPL: 2.08.HSPL
Rom: NexusHD2-JellyBean-CM10.2 (V3.1)
uguccione500
Junior Member
 
Posts: 14
Joined: Thu Aug 08, 2013 9:08 am
Country: Italy (it)
Has thanked: 1 time
Been thanked: 0 time

Re: Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

Postby gazzacbr » Sat Sep 21, 2013 5:48 pm

Hi, i finally got some time to install this, replacing my trusty tytung JellyBean CM10 V1.3a.
no problems at all. everything working exactly as before.
i've just seen the note about youtube and not to update but i dont see the youtube app anyway (not that i ever use it really)
was it removed?
gazzacbr
Junior Member
 
Posts: 6
Joined: Mon Jul 29, 2013 5:23 pm
Country: United Arab Emirates (ae)
Has thanked: 6 times
Been thanked: 0 time

System crashing on first boot

Postby shobhit92bhar » Thu Sep 26, 2013 3:27 pm

I have been using NexusHD2 Roms since CM10.1 V2.0 on NAND on my HTC HD2 EU 512MB internal. I installed v3.1 today on NAND, but on first boot it keeps giving me error msgs like android.gapps, android.phone, android.media are closed and then the rom restarts. This is the first time I am recieving such kind of crashes.

Please let me know how to solve these issues bcoz I want to use this rom asap.

Thanks in advance.
shobhit92bhar
Junior Member
 
Posts: 24
Joined: Thu Sep 26, 2013 3:20 pm
Country: India (in)
Has thanked: 14 times
Been thanked: 2 times

Re: Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

Postby tytung » Thu Sep 26, 2013 4:06 pm

uguccione500 wrote:Hello guys... But in the version 3.1 of this rom how I can enable ADB? In the past versions I have found it in the menu, now seems to be disappeared... :(
Thank you very much...


ADB is enabled by default.

“Settings” -> “About phone” -> tap on “Build number” 7 times to enable “Developer options”.
“Settings” -> “Developer options” -> check/uncheck the “USB debugging” checkbox to enable/disable ADB.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

Postby tytung » Thu Sep 26, 2013 4:08 pm

gazzacbr wrote:Hi, i finally got some time to install this, replacing my trusty tytung JellyBean CM10 V1.3a.
no problems at all. everything working exactly as before.
i've just seen the note about youtube and not to update but i dont see the youtube app anyway (not that i ever use it really)
was it removed?


No, the old YouTube app is in the zip file and will be installed.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: System crashing on first boot

Postby tytung » Thu Sep 26, 2013 4:27 pm

shobhit92bhar wrote:I have been using NexusHD2 Roms since CM10.1 V2.0 on NAND on my HTC HD2 EU 512MB internal. I installed v3.1 today on NAND, but on first boot it keeps giving me error msgs like android.gapps, android.phone, android.media are closed and then the rom restarts. This is the first time I am recieving such kind of crashes.

Please let me know how to solve these issues bcoz I want to use this rom asap.

Thanks in advance.


Your system and/or data partition on NAND might be not large enough to save files.
Please change the install method from NAND to the other two methods.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Photo and SuperSU

Postby benlm72 » Thu Sep 26, 2013 4:58 pm

Hi tytung,
If I undesrtand well, here is the place to let you know the pbs I have with this rom :
- camera is sometimes bad on screen (but photo is OK)
- sometimes, apps that need root rigths doesn't manage to get them, I have an error message telling that the app doesn't have the time to get root rights (for example llama). I've tried tu replace Superuser by SuperSU, from Google Play, but I can't achive to do that : after downloading and running SuperSU, I've a message asking me to updat binary, but when answering yes I finally get an error message telling me that upate failed. Do you know a way to install SuperSU ?
- wifi list not correctly updates (but wifi connexion is OK)
- cell changes not detected when phone is in stand-by mode (but it seems to be an android pb, not a pb of your rom)
Thank's having a look at my post !
benlm72
Junior Member
 
Posts: 59
Joined: Sat Aug 31, 2013 6:17 pm
Country: France (fr)
Has thanked: 14 times
Been thanked: 19 times

Re: Photo and SuperSU

Postby NYLimited » Thu Sep 26, 2013 7:02 pm

benlm72 wrote:- sometimes, apps that need root rigths doesn't manage to get them, I have an error message telling that the app doesn't have the time to get root rights (for example llama). I've tried tu replace Superuser by SuperSU, from Google Play, but I can't achive to do that : after downloading and running SuperSU, I've a message asking me to updat binary, but when answering yes I finally get an error message telling me that upate failed. Do you know a way to install SuperSU ?


With most superuser apps you can set an app to prompt again and thus force root privs ionce again. You can definitely do this with SuperSU.

If your SuperSU install is failing (probably has to do with root rights also) download the 1.65 flashable zip file, and place it on your SD Card. Reboot your device into recovery and install the zip file via recovery.

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

PreviousNext

Return to HD2 Android Q&A, Help & Troubleshooting and General

Who is online

Users browsing this forum: No registered users and 0 guests